/*
Theme Name: The Store Web1
Theme URI: https://storefront-2.sadieparker.net
Description: Web 1.0 table-layout theme matching the Medusa storefront aesthetic
Version: 1.0
Author: The Store
License: GPL v2
Text Domain: thestore-web1
*/

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: #c0c0c0;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

a { color: #000080; }
a:visited { color: #551a8b; }
a:hover { color: #0000ff; }

/* ── Layout shell ── */
#page-wrapper {
  width: 780px;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid #000080;
  min-height: 100vh;
}

/* ── Header ── */
#site-header {
  background: #000080;
  color: #ffffff;
  padding: 8px 12px;
}
#site-header a { color: #ffffff; text-decoration: none; }
#site-title { font-size: 24px; font-weight: bold; }
#site-tagline { font-size: 12px; }
#cart-link {
  color: #ffff00 !important;
  font-size: 12px;
  border: 1px solid #ffff00;
  padding: 2px 6px;
  white-space: nowrap;
}

/* ── Nav bar ── */
#site-nav {
  background: #000080;
  padding: 4px 0;
  border-bottom: 2px solid #000000;
}
#site-nav a {
  background: #c0c0c0;
  color: #000000;
  text-decoration: none;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
  border: 2px outset #ffffff;
  margin: 0 2px;
}
#site-nav a:hover { background: #d4d4d4; }

/* ── Two-column body ── */
#content-wrapper {
  display: table;
  width: 100%;
}
#sidebar {
  display: table-cell;
  width: 160px;
  padding: 8px;
  border-right: 1px solid #808080;
  background: #f0f0f0;
  vertical-align: top;
}
#main-content {
  display: table-cell;
  padding: 12px;
  vertical-align: top;
}

/* ── Sidebar widgets ── */
.widget-title {
  background: #000080;
  color: #ffffff;
  padding: 4px 6px;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 4px;
  border: 2px outset #ffffff;
}
.widget-body {
  border: 1px inset #808080;
  background: #ffffff;
  padding: 4px;
  margin-bottom: 8px;
}
.widget-body a {
  display: block;
  color: #000080;
  text-decoration: none;
  font-size: 12px;
  margin-bottom: 2px;
}
.widget-body a:before { content: "» "; }
.widget-body a:hover { text-decoration: underline; }

/* Search form */
.sidebar-search input[type="text"] {
  width: 100%;
  font-size: 11px;
  border: 1px inset #808080;
  margin-bottom: 4px;
  padding: 1px 2px;
}
.sidebar-search input[type="submit"] {
  font-size: 11px;
  border: 2px outset #ffffff;
  background: #c0c0c0;
  cursor: pointer;
  padding: 1px 6px;
}

/* ── Section headers ── */
.section-header {
  background: #000080;
  color: #ffffff;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: bold;
  border: 2px outset #ffffff;
  margin-bottom: 8px;
}

/* ── Notice banner ── */
.notice-banner {
  background: #ffffcc;
  border: 1px solid #808080;
  padding: 6px 10px;
  font-size: 12px;
  margin-bottom: 12px;
}

/* ── Product grid ── */
.products-grid {
  width: 100%;
  border-collapse: collapse;
}
.products-grid td {
  width: 50%;
  padding: 8px;
  border: 1px solid #808080;
  background: #ffffff;
  vertical-align: top;
}
.product-card-title {
  font-weight: bold;
  font-size: 13px;
  color: #000080;
  margin-bottom: 4px;
}
.product-card-price {
  color: #008000;
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 6px;
}
.product-card-price del { color: #808080; }
.product-card img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  border: 1px inset #808080;
  margin-bottom: 6px;
  display: block;
}
.btn-view {
  background: #000080;
  color: #ffffff !important;
  text-decoration: none;
  padding: 3px 10px;
  font-size: 12px;
  border: 2px outset #ffffff;
  display: inline-block;
}
.btn-view:hover { background: #0000cc; }
.btn-atc {
  background: #008000;
  color: #ffffff !important;
  text-decoration: none;
  padding: 3px 8px;
  font-size: 11px;
  border: 2px outset #ffffff;
  display: inline-block;
  margin-left: 4px;
  cursor: pointer;
}
.btn-atc:hover { background: #006600; }

/* ── Single product ── */
.product-single-image {
  border: 1px inset #808080;
  max-width: 240px;
  float: right;
  margin: 0 0 12px 12px;
}
.product-single-image img { width: 100%; display: block; }
.product-meta-table { border-collapse: collapse; margin-bottom: 12px; }
.product-meta-table td { padding: 3px 8px; border: 1px solid #c0c0c0; font-size: 12px; }
.product-meta-table td:first-child { background: #f0f0f0; font-weight: bold; white-space: nowrap; }

/* ── Cart / checkout ── */
.woocommerce-cart table.cart td,
.woocommerce-cart table.cart th,
.woocommerce-checkout table th,
.woocommerce-checkout table td {
  border: 1px solid #808080;
  padding: 4px 6px;
  font-size: 12px;
}
.woocommerce-cart table.cart th,
.woocommerce-checkout table th { background: #000080; color: #ffffff; }
.checkout-btn {
  background: #000080;
  color: #ffffff;
  border: 2px outset #ffffff;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}

/* WooCommerce reset overrides */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: #000080 !important;
  color: #ffffff !important;
  border: 2px outset #ffffff !important;
  border-radius: 0 !important;
  font-size: 12px !important;
  padding: 3px 10px !important;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: #0000cc !important;
}
.woocommerce ul.products li.product {
  text-align: left;
}
.woocommerce-message,
.woocommerce-info {
  background: #ffffcc;
  border: 1px solid #808080;
  border-top: 4px solid #000080;
  padding: 6px 10px;
  font-size: 12px;
  margin-bottom: 12px;
}
.woocommerce-error {
  background: #ffcccc;
  border: 1px solid #cc0000;
  border-top: 4px solid #cc0000;
  padding: 6px 10px;
  font-size: 12px;
  margin-bottom: 12px;
  list-style: none;
}

/* ── Footer ── */
#site-footer {
  background: #000080;
  color: #c0c0c0;
  padding: 4px 8px;
  font-size: 11px;
  text-align: center;
  border-top: 2px solid #000000;
}

/* ── Pagination ── */
.pagination { font-size: 12px; }
.pagination a, .pagination span {
  border: 1px solid #808080;
  padding: 2px 6px;
  margin: 0 1px;
  display: inline-block;
}
.pagination .current { background: #000080; color: #ffffff; }
