:root {
  --gold: #b38e38;
  --gold-light: #d4af6a;
  --gold-pale: #fcf6ba;
  --navy: #0f172a;
  --navy-soft: #1e293b;
  --navy-mid: #334155;
  --white: #ffffff;
  --off-white: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --danger: #b91c1c;
  --success: #15803d;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  color: var(--text);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-font {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: var(--navy);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.announce-bar {
  background: var(--navy);
  color: var(--gold-pale);
  text-align: center;
  font-size: 0.82rem;
  padding: 8px 12px;
  letter-spacing: 0.3px;
}

/* ---------------- Header ---------------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-mark { color: var(--gold); font-size: 1.4rem; }
.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  letter-spacing: 0.5px;
}

/* Logo image styles */
.logo-image {
  max-height: 50px;
  width: auto;
  display: block;
}

.search-form {
  flex: 1;
  display: flex;
  max-width: 460px;
  border: 1.5px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  background: var(--off-white);
}
.search-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 18px;
  font-size: 0.92rem;
  outline: none;
  font-family: inherit;
}
.search-form button {
  border: none;
  background: transparent;
  padding: 0 16px;
  color: var(--navy);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.72rem;
  color: var(--navy-mid);
  position: relative;
  font-weight: 600;
}
.icon-link:hover { color: var(--gold); }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 50%;
  min-width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--navy);
}
.site-nav {
  display: flex;
  gap: 28px;
  justify-content: center;
  padding: 10px 24px 14px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--navy-mid);
  flex-wrap: wrap;
}
.site-nav a:hover { color: var(--gold); }

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
  padding: 70px 24px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(179,142,56,0.18), transparent 55%);
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 0 0 18px;
  max-width: 700px;
  line-height: 1.15;
}
.hero p {
  color: #cbd5e1;
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  transition: all 0.15s ease;
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: #9c7a2f; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold-light);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-soft); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------------- Sections / grid ---------------- */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-head h2 { font-size: 2rem; margin: 0; }
.section-head p.section-sub { color: var(--text-muted); margin: 6px 0 0; font-family: 'Nunito', sans-serif; }
.link-more { color: var(--gold); font-weight: 700; font-size: 0.9rem; }

.category-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 10px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 16px;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  transition: all 0.15s;
}
.category-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.category-card .cat-icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-thumb {
  aspect-ratio: 1/1;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { color: var(--gold); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.product-name { font-weight: 700; font-size: 1rem; color: var(--navy); line-height: 1.3; min-height: 2.6em; }
.product-price { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.4rem; color: var(--navy); margin-top: auto; }
.stock-badge { font-size: 0.72rem; font-weight: 700; }
.stock-in { color: var(--success); }
.stock-out { color: var(--danger); }
.product-actions { padding: 0 16px 16px; }

.badge-sale {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--danger);
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* ---------------- Filters/shop layout ---------------- */
.shop-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
}
.filter-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  align-self: start;
  position: sticky;
  top: 100px;
}
.filter-box h4 { margin: 0 0 12px; font-size: 1rem; }
.filter-box a {
  display: block;
  padding: 7px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--off-white);
}
.filter-box a.active, .filter-box a:hover { color: var(--gold); font-weight: 700; }

/* ---------------- Product detail ---------------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
}
.pd-image {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-image img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: 2rem; margin: 4px 0 12px; }
.pd-price { font-size: 2rem; color: var(--navy); font-family: 'Cormorant Garamond', serif; font-weight: 700; margin: 10px 0 18px; }
.pd-meta { display: flex; gap: 24px; margin: 18px 0; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.qty-selector { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 8px; width: fit-content; }
.qty-selector button { width: 38px; height: 42px; background: none; border: none; font-size: 1.1rem; color: var(--navy); }
.qty-selector input { width: 50px; text-align: center; border: none; font-size: 1rem; font-weight: 700; }

/* ---------------- Cart / checkout ---------------- */
.cart-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cart-table th { text-align: left; background: var(--navy); color: var(--white); padding: 12px 16px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.4px; }
.cart-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-item-row { display: flex; align-items: center; gap: 12px; }
.cart-item-row img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; background: var(--off-white); }
.cart-item-name { font-weight: 700; color: var(--navy); }
.remove-link { color: var(--danger); font-size: 0.8rem; font-weight: 700; }

.summary-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.95rem; }
.summary-row.total { font-size: 1.2rem; font-weight: 800; color: var(--navy); border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; }

/* Offer / discounted price display (cart, checkout, order confirmation) */
.price-old { color: var(--text-muted); text-decoration: line-through; font-size: 0.9em; margin-right: 6px; }
.price-new { color: var(--danger); font-weight: 700; }
.save-tag { font-size: 0.72rem; font-weight: 800; color: var(--success); }
.summary-row.savings { color: var(--success); font-weight: 700; }

.checkout-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: flex-start; }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.payment-option {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.payment-option.active { border-color: var(--gold); background: #fffbf0; }
.payment-option input { margin-top: 3px; }
.payment-option strong { display: block; color: var(--navy); }
.payment-option small { color: var(--text-muted); }
.bank-details-box {
  background: var(--off-white);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 10px;
  font-size: 0.88rem;
  display: none;
}
.bank-details-box.show { display: block; }
.bank-details-box div { padding: 3px 0; }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 0.92rem; font-weight: 600; }
.alert-success { background: #dcfce7; color: var(--success); }
.alert-error { background: #fee2e2; color: var(--danger); }
.alert-info { background: #e0f2fe; color: #0369a1; }

.empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.empty-state h3 { color: var(--navy); margin-bottom: 8px; }

/* ---------------- Order success ---------------- */
.order-success-box { max-width: 620px; margin: 0 auto; text-align: center; background: var(--white); border-radius: var(--radius); padding: 48px 32px; box-shadow: var(--shadow); }
.order-success-box .check-circle { width: 70px; height: 70px; border-radius: 50%; background: #dcfce7; color: var(--success); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 2rem; }
.order-number-tag { display: inline-block; background: var(--navy); color: var(--gold-pale); font-weight: 800; padding: 8px 20px; border-radius: 30px; letter-spacing: 1px; margin: 14px 0; }

/* ---------------- Tables (orders/account) ---------------- */
.data-table-simple { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table-simple th { background: var(--navy); color: var(--white); padding: 12px 16px; text-align: left; font-size: 0.8rem; text-transform: uppercase; }
.data-table-simple td { padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.status-pill { padding: 4px 12px; border-radius: 20px; font-size: 0.74rem; font-weight: 800; text-transform: uppercase; display: inline-block; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #dbeafe; color: #1e40af; }
.status-processing { background: #ede9fe; color: #5b21b6; }
.status-shipped { background: #cffafe; color: #155e75; }
.status-delivered { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy); color: #cbd5e1; margin-top: 60px; }
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 24px 30px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}
.footer-logo { color: var(--white); margin-bottom: 12px; font-size: 1.3rem; }
.footer-col h4 { color: var(--gold-light); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 14px; }
.footer-col a, .footer-col p { display: block; font-size: 0.88rem; margin-bottom: 8px; color: #cbd5e1; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); text-align: center; padding: 18px; font-size: 0.8rem; color: #94a3b8; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #cbd5e1;
  margin-bottom: 0;
  transition: all 0.2s ease;
}
.footer-social a svg { width: 18px; height: 18px; fill: currentColor; }
.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

/* ---------------- Auth pages ---------------- */
.auth-box { max-width: 440px; margin: 60px auto; background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.auth-box h2 { text-align: center; margin-bottom: 6px; }
.auth-box .sub { text-align: center; color: var(--text-muted); margin-bottom: 26px; font-size: 0.9rem; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 0.9rem; color: var(--text-muted); }
.auth-switch a { color: var(--gold); font-weight: 700; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filter-box { position: static; }
  .product-detail, .checkout-layout { grid-template-columns: 1fr; }
  .search-form { display: none; }
}
@media (max-width: 700px) {
  .mobile-toggle { display: block; margin-left: auto; }
  .header-actions { margin-left: 0; gap: 14px; }
  .header-actions span { display: none; }
  .header-actions .cart-badge { display: flex; }
  .site-nav { display: none; flex-direction: column; gap: 0; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  
  /* Mobile logo size */
  .logo-image {
    max-height: 40px;
  }
}

/* ---------------- Additional responsive breakpoint for medium screens ---------------- */
@media (max-width: 768px) {
  .logo-image {
    max-height: 40px;
  }
}