:root {
  --burgundy: #6b1026;
  --burgundy-dark: #470a19;
  --navy: #102f55;
  --navy-dark: #081b32;
  --gold: #d6a629;
  --gold-light: #f2d37a;
  --cream: #fff8ea;
  --white: #ffffff;
  --gray: #f4f4f4;
  --text: #222222;
  --muted: #666666;
  --border: #e7e0d4;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, Helvetica, sans-serif; color: var(--text); background: var(--cream); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, select { font-family: inherit; }
button:disabled { opacity: .65; cursor: not-allowed; }
.top-bar { background: var(--navy-dark); color: var(--white); font-size: .9rem; padding: 8px 20px; text-align: center; }
.site-header { background: var(--white); border-bottom: 4px solid var(--gold); position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.header-inner { max-width: 1180px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { display: flex; align-items: center; justify-content: center; width: auto; height: auto; background: transparent; border: none; border-radius: 0; padding: 0; box-shadow: none; overflow: visible; }
.brand-logo img { display: block; height: 72px; width: auto; object-fit: contain; background: transparent; border: none; border-radius: 0; box-shadow: none; }
.brand-text h1 { color: var(--burgundy); font-size: 1.35rem; line-height: 1.2; }
.brand-text p { color: var(--navy); font-size: .9rem; font-weight: 600; }
.nav { display: flex; gap: 18px; font-weight: 700; color: var(--navy); align-items: center; }
.cart-pill { background: var(--burgundy); color: var(--white); padding: 9px 14px; border-radius: 999px; display: inline-flex; gap: 8px; }
.hero { background: linear-gradient(rgba(16,47,85,.88), rgba(71,10,25,.9)); color: var(--white); padding: 80px 20px; }
.hero-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-kicker { color: var(--gold-light); text-transform: uppercase; letter-spacing: 2px; font-weight: 800; margin-bottom: 14px; }
.hero h2 { font-size: clamp(2.3rem, 5vw, 4.5rem); line-height: 1.05; margin-bottom: 18px; }
.hero p { font-size: 1.15rem; max-width: 620px; margin-bottom: 28px; }
.btn { border: none; cursor: pointer; display: inline-block; padding: 13px 22px; border-radius: 8px; font-weight: 800; font-size: 1rem; text-align: center; }
.btn-primary { background: var(--gold); color: var(--navy-dark); }
.hero-card, .product-card, .cart-panel, .featured-product-card, .catalog-card, .product-detail-card { background: var(--white); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.hero-card { color: var(--text); padding: 28px; border-top: 8px solid var(--gold); }
.hero-card h3 { color: var(--burgundy); margin-bottom: 10px; }
.section { padding: 70px 20px; }
.section-featured { background: #fffdf6; }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section-heading { text-align: center; margin-bottom: 42px; }
.eyebrow { color: var(--burgundy); text-transform: uppercase; letter-spacing: 2px; font-weight: 800; font-size: .85rem; margin-bottom: 8px; }
.section-heading h2 { color: var(--navy); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.section-heading p { max-width: 680px; margin: 0 auto; color: var(--muted); }

.featured-product-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.featured-product-card:hover, .catalog-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,.16); }
.featured-product-image { background: linear-gradient(135deg, var(--gray), #e9e1d4); min-height: 360px; display: grid; place-items: center; }
.featured-product-image img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.featured-product-content { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.featured-product-content h3 { color: var(--burgundy); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; margin-bottom: 14px; }
.featured-product-content p { color: var(--muted); font-size: 1.05rem; margin-bottom: 22px; }
.featured-product-footer, .catalog-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.category-filter-wrap { max-width: 320px; margin: 0 auto 28px; }

/* Catalog product cards
   auto-fill keeps product cards at a normal tile size even when there is only one product.
   auto-fit would stretch a single product across the full row. */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.catalog-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .15s ease, box-shadow .15s ease;
}

.catalog-card-image {
  height: 190px;
  background: linear-gradient(135deg, var(--gray), #e9e1d4);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.catalog-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.catalog-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.catalog-card-content h3 {
  color: var(--burgundy);
  font-size: 1.12rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

.catalog-card-content p {
  color: var(--muted);
  margin-bottom: 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-category { color: var(--navy); font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 900; margin-bottom: 8px; }
.catalog-link { color: var(--burgundy); font-weight: 900; }

.products-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 26px; max-width: 760px; margin: 0 auto; }
.product-image { background: linear-gradient(135deg, var(--gray), #e9e1d4); min-height: 260px; display: grid; place-items: center; color: var(--burgundy); font-size: 4rem; font-weight: 900; }
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.product-content { padding: 22px; }
.product-content h3 { color: var(--burgundy); font-size: 1.35rem; margin-bottom: 8px; }
.product-description { margin: 18px 0; padding-top: 18px; border-top: 1px solid rgba(16, 47, 85, 0.12); color: #333; }
.product-description h4 { margin: 0 0 8px; color: var(--burgundy); font-size: 1.05rem; }
.product-description p { margin: 0 0 14px; line-height: 1.6; }
.product-description ul { margin: 0; padding-left: 20px; line-height: 1.55; }
.product-description li { margin-bottom: 4px; }
.size-guide { margin-top: 18px; border-top: 1px solid rgba(16, 47, 85, 0.12); padding-top: 14px; }
.size-guide summary { cursor: pointer; color: var(--burgundy); font-weight: 900; font-size: 1.05rem; }
.size-guide-table-wrap { margin-top: 12px; overflow-x: auto; }
.size-guide-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.size-guide-table th { background: var(--navy); color: var(--white); padding: 8px; text-align: left; }
.size-guide-table td { border-bottom: 1px solid var(--border); padding: 8px; }
.size-guide-note { margin-top: 10px; color: var(--muted); font-size: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
label { font-weight: 800; color: var(--navy); font-size: .9rem; }
select { width: 100%; margin-top: 6px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: white; }
.product-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price { color: var(--navy); font-weight: 900; font-size: 1.25rem; }
.btn-small { background: var(--navy); color: var(--white); border: none; border-radius: 8px; padding: 10px 14px; font-weight: 800; cursor: pointer; }
.btn-small:hover, .checkout-btn:hover { background: var(--burgundy-dark); }

.product-detail-card { padding: 0; overflow: hidden; }
.product-detail-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 0; }
.product-detail-image { min-height: 560px; background: linear-gradient(135deg, var(--gray), #e9e1d4); display: grid; place-items: center; color: var(--burgundy); font-size: 4rem; font-weight: 900; }
.product-detail-image img { width: 100%; height: 100%; object-fit: contain; padding: 28px; }
.product-detail-content { padding: 34px; }
.product-detail-content h2 { color: var(--burgundy); font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.1; margin: 8px 0 14px; }
.product-detail-actions { margin-top: 10px; }
.back-link { color: var(--navy); font-weight: 900; }
.product-page-message { margin-top: 14px; color: var(--burgundy); font-weight: 800; }
.product-page-message a { color: var(--navy); text-decoration: underline; }

.cart-panel { border-top: 5px solid var(--gold); padding: 28px; max-width: 820px; margin: 0 auto; }
.cart-items { margin: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cart-item { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-page-item { align-items: center; }
.cart-page-controls { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.cart-page-controls select { width: 74px; }
.remove-cart-item { border: none; background: transparent; color: var(--burgundy); font-weight: 900; cursor: pointer; text-decoration: underline; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.25rem; font-weight: 900; color: var(--navy); margin-bottom: 18px; }
.checkout-btn { width: 100%; background: var(--burgundy); color: var(--white); border: none; padding: 15px 20px; border-radius: 10px; font-size: 1rem; font-weight: 900; cursor: pointer; }
.site-footer { background: var(--navy-dark); color: var(--white); padding: 34px 20px; text-align: center; }
.site-footer strong { color: var(--gold-light); }

@media (max-width: 900px) {
  .hero-inner,
  .featured-product-card,
  .product-detail-grid { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .nav { flex-wrap: wrap; }
  .featured-product-image, .product-detail-image { min-height: 320px; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .cart-item, .cart-page-controls { align-items: flex-start; flex-direction: column; }
  .featured-product-footer, .catalog-card-footer, .product-meta { align-items: flex-start; flex-direction: column; }
}

.checkout-customer {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--cream);
}

.checkout-customer label {
  display: block;
  margin-bottom: 6px;
}

.checkout-customer input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  font-size: 1rem;
}

.checkout-customer input:focus {
  outline: 3px solid rgba(214, 166, 41, 0.35);
  border-color: var(--gold);
}

.checkout-customer p {
  margin-top: 8px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}
