/* ============================================================
   ADELAIDE SPORTS - Main Stylesheet
   Production Build
   ============================================================
   Table of Contents:
   1.  CSS Custom Properties (Design Tokens)
   2.  Reset & Global Styles
   3.  Typography
   4.  Utility Classes
   5.  Scrollbar Styling
   6.  Announcement Bar
   7.  Header & Navigation
   8.  Mobile Menu
   9.  Hero Section
   10. Category Grid
   11. Product Grid & Product Card
   12. Category Color Schemes
   13. Product Card Badges
   14. Featured Products Row
   15. Sale Banner
   16. Brands Row
   17. Trust Signals
   18. Filters Sidebar
   19. Sort Bar
   20. Pagination
   21. Product Detail Page
   22. Cart Page
   23. Footer
   24. Toast / Notification
   25. Animations & Keyframes
   26. Responsive Breakpoints
   ============================================================ */


/* ==========================================================
   1. CSS Custom Properties (Design Tokens)
   ========================================================== */

:root {
  /* Backgrounds (light theme) */
  --bg-darkest: #ffffff;
  --bg-dark: #f7f7f5;
  --bg-card: #ffffff;
  --bg-elevated: #f4f4f5;
  --bg-border: #e5e5e5;

  /* Accent */
  --gold: #ffd700;          /* bright gold for fills (buttons/badges) with dark text */
  --gold-dark: #e6ad00;     /* hover for gold fills */
  --gold-ink: #8a6a00;      /* deep gold for text/links/icons on white (AA contrast) */
  --gold-rgb: 255, 215, 0;

  /* Text (dark on light) */
  --text-primary: #18181b;
  --text-muted: #52525b;
  --text-subtle: #71717a;

  /* Status */
  --success: #2ecc71;
  --error: #e74c3c;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --container-max: 1400px;
  --header-height: 130px;
  --section-padding: 4rem 0;

  /* Borders */
  --radius-card: 8px;
  --radius-btn: 4px;


  /* Z-index */
  --z-header: 1000;
  --z-mobile-menu: 1100;
  --z-overlay: 1200;
  --z-toast: 1300;
}


/* ==========================================================
   2. Reset & Global Styles
   ========================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-darkest);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section */
section,
.section {
  padding: var(--section-padding);
}


/* ==========================================================
   3. Typography
   ========================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.section-heading,
.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-heading::after,
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}


/* ==========================================================
   4. Utility Classes
   ========================================================== */

/* Text */
.text-gold { color: var(--gold-ink) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-white { color: var(--text-primary) !important; }
.text-center { text-align: center !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-small { font-size: 0.875rem !important; }

/* Background */
.bg-gold { background-color: var(--gold) !important; }

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--gold);
  color: #000;
  font-weight: 700;
  border-radius: var(--radius-btn);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid var(--gold);
  cursor: pointer;
  text-align: center;
}

.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold);
  box-shadow: 0 4px 15px rgba(var(--gold-rgb), 0.3);
}

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: transparent;
  color: var(--gold-ink);
  font-weight: 700;
  border-radius: var(--radius-btn);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid var(--gold);
  cursor: pointer;
  text-align: center;
}

.btn-secondary:hover {
  background: var(--gold);
  color: #000;
  box-shadow: 0 4px 15px rgba(var(--gold-rgb), 0.3);
}

.btn-small {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}

/* Display */
.hidden { display: none !important; }
.visible { display: block !important; }

/* Flexbox */
.flex { display: flex !important; }
.flex-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.flex-between {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* Grid */
.grid { display: grid !important; }

/* Margins */
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }

.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }


/* ==========================================================
   5. Scrollbar Styling
   ========================================================== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) var(--bg-dark);
}


/* ==========================================================
   6. Announcement Bar
   ========================================================== */

.announcement-bar {
  width: 100%;
  background: var(--gold);
  color: #000;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  z-index: calc(var(--z-header) + 1);
}

.announcement-bar p {
  color: #000;
  margin: 0;
}

.announcement-bar .close-btn,
.announcement-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #000;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  opacity: 0.7;
}

.announcement-bar .close-btn:hover,
.announcement-close:hover {
  opacity: 1;
}

.announcement-bar .container {
  position: relative;
}


/* ==========================================================
   7. Header & Navigation
   ========================================================== */

.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-main {
  padding: 0.75rem 1.5rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-ink);
  white-space: nowrap;
  letter-spacing: 1px;
}

.logo a {
  color: var(--gold-ink);
}

.logo a:hover {
  color: var(--gold-ink);
}

/* Search Bar */
.search-bar {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.search-bar input::placeholder {
  color: var(--text-subtle);
}

.search-bar input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(var(--gold-rgb), 0.1);
}

.search-bar::before {
  content: '\1F50D';
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  z-index: 1;
  pointer-events: none;
}

/* Search Button */
.search-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.3rem;
  color: var(--text-muted);
}

.search-btn:hover {
  color: var(--gold-ink);
}

/* Search Dropdown */
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-top: none;
  border-radius: 0 0 var(--radius-btn) var(--radius-btn);
  max-height: 320px;
  overflow-y: auto;
  display: none;
  z-index: 10;
}

.search-dropdown.active {
  display: block;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.search-dropdown-item:hover {
  background: rgba(var(--gold-rgb), 0.08);
}

.search-dropdown-item .search-item-brand {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.search-dropdown-item .search-item-info {
  flex: 1;
}

.search-dropdown-item .search-item-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.search-dropdown-item .search-item-price {
  font-size: 0.8rem;
  color: var(--gold-ink);
  font-weight: 600;
}

/* Mobile menu title */
.mobile-menu-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--gold-ink);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Cart Icon */
.cart-icon {
  position: relative;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0.25rem;
}

.cart-icon:hover {
  color: var(--gold-ink);
}

.cart-count,
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--error);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Category Navigation */
.category-nav {
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.category-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-nav-inner::-webkit-scrollbar {
  display: none;
}

.category-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.category-nav a:hover,
.category-nav a.active {
  color: var(--gold-ink);
  border-bottom-color: var(--gold);
}

/* Hamburger Menu Button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.25rem;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ==========================================================
   8. Mobile Menu
   ========================================================== */

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: var(--z-mobile-menu);
  opacity: 0;
  visibility: hidden;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background: var(--bg-dark);
  z-index: calc(var(--z-mobile-menu) + 1);
  transform: translateX(-100%);
  overflow-y: auto;
  padding: 2rem 1.5rem;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bg-border);
}

.mobile-menu-close {
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.mobile-menu-close:hover {
  color: var(--text-primary);
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  color: var(--text-muted);
  font-size: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--gold-ink);
}


/* ==========================================================
   9. Hero Section
   ========================================================== */

.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, var(--bg-elevated) 0%, var(--bg-dark) 50%, var(--bg-darkest) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(var(--gold-rgb), 0.03) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(var(--gold-rgb), 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--gold-ink), #18181b 55%, var(--gold-ink));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}



.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Decorative floating elements */
.hero-decoration {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.08;
  pointer-events: none;
}

.hero-decoration:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.hero-decoration:nth-child(2) { top: 25%; right: 12%; animation-delay: 1s; }
.hero-decoration:nth-child(3) { bottom: 20%; left: 15%; animation-delay: 2s; }
.hero-decoration:nth-child(4) { bottom: 30%; right: 8%; animation-delay: 3s; }




/* ==========================================================
   10. Category Grid
   ========================================================== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.category-card {
  height: 160px;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 1rem;
}

.category-card:hover {
  border-color: rgba(var(--gold-rgb), 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 0 20px rgba(var(--gold-rgb), 0.08);
}

.category-card-label {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-heading);
  line-height: 1;
}

.category-card .name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.category-card .count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Category card gradient backgrounds */
.category-card[data-category="football"]    { background: linear-gradient(135deg, #1a237e, #283593); }
.category-card[data-category="cricket"]     { background: linear-gradient(135deg, #3e2723, #4e342e); }
.category-card[data-category="running"]     { background: linear-gradient(135deg, #e65100, #ef6c00); }
.category-card[data-category="basketball"]  { background: linear-gradient(135deg, #bf360c, #d84315); }
.category-card[data-category="tennis"]      { background: linear-gradient(135deg, #33691e, #558b2f); }
.category-card[data-category="swimming"]    { background: linear-gradient(135deg, #01579b, #0277bd); }
.category-card[data-category="gym"]         { background: linear-gradient(135deg, #212121, #424242); }
.category-card[data-category="cycling"]     { background: linear-gradient(135deg, #4a148c, #6a1b9a); }
.category-card[data-category="boxing"]      { background: linear-gradient(135deg, #b71c1c, #c62828); }
.category-card[data-category="golf"]        { background: linear-gradient(135deg, #1b5e20, #2e7d32); }
.category-card[data-category="mens"]        { background: linear-gradient(135deg, #263238, #37474f); }
.category-card[data-category="womens"]      { background: linear-gradient(135deg, #880e4f, #ad1457); }
.category-card[data-category="kids"]        { background: linear-gradient(135deg, #e65100, #f57f17); }
.category-card[data-category="footwear"]    { background: linear-gradient(135deg, #1a237e, #283593); }
.category-card[data-category="accessories"] { background: linear-gradient(135deg, #004d40, #00695c); }


/* ==========================================================
   11. Product Grid & Product Card
   ========================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 20px rgba(var(--gold-rgb), 0.08);
}

/* Product Card Image Area */
.product-card-image {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card-image .product-fallback {
  font-size: 0.85rem;
}

.product-card:hover .product-card-image .product-fallback {
}


/* ==========================================================
   12. Category Color Schemes (for product card image area)
   ========================================================== */

.product-card-image[data-color-scheme="football"],
.product-card[data-color-scheme="football"] .product-card-image    { background: linear-gradient(135deg, #1a237e, #283593); }
.product-card-image[data-color-scheme="cricket"],
.product-card[data-color-scheme="cricket"] .product-card-image     { background: linear-gradient(135deg, #3e2723, #4e342e); }
.product-card-image[data-color-scheme="running"],
.product-card[data-color-scheme="running"] .product-card-image     { background: linear-gradient(135deg, #e65100, #ef6c00); }
.product-card-image[data-color-scheme="basketball"],
.product-card[data-color-scheme="basketball"] .product-card-image  { background: linear-gradient(135deg, #bf360c, #d84315); }
.product-card-image[data-color-scheme="tennis"],
.product-card[data-color-scheme="tennis"] .product-card-image      { background: linear-gradient(135deg, #33691e, #558b2f); }
.product-card-image[data-color-scheme="swimming"],
.product-card[data-color-scheme="swimming"] .product-card-image    { background: linear-gradient(135deg, #01579b, #0277bd); }
.product-card-image[data-color-scheme="gym"],
.product-card[data-color-scheme="gym"] .product-card-image         { background: linear-gradient(135deg, #212121, #424242); }
.product-card-image[data-color-scheme="cycling"],
.product-card[data-color-scheme="cycling"] .product-card-image     { background: linear-gradient(135deg, #4a148c, #6a1b9a); }
.product-card-image[data-color-scheme="boxing"],
.product-card[data-color-scheme="boxing"] .product-card-image      { background: linear-gradient(135deg, #b71c1c, #c62828); }
.product-card-image[data-color-scheme="golf"],
.product-card[data-color-scheme="golf"] .product-card-image        { background: linear-gradient(135deg, #1b5e20, #2e7d32); }
.product-card-image[data-color-scheme="mens"],
.product-card[data-color-scheme="mens"] .product-card-image        { background: linear-gradient(135deg, #263238, #37474f); }
.product-card-image[data-color-scheme="womens"],
.product-card[data-color-scheme="womens"] .product-card-image      { background: linear-gradient(135deg, #880e4f, #ad1457); }
.product-card-image[data-color-scheme="kids"],
.product-card[data-color-scheme="kids"] .product-card-image        { background: linear-gradient(135deg, #e65100, #f57f17); }
.product-card-image[data-color-scheme="footwear"],
.product-card[data-color-scheme="footwear"] .product-card-image    { background: linear-gradient(135deg, #1a237e, #283593); }
.product-card-image[data-color-scheme="accessories"],
.product-card[data-color-scheme="accessories"] .product-card-image { background: linear-gradient(135deg, #004d40, #00695c); }


/* ==========================================================
   13. Product Card Badges
   ========================================================== */

.product-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.product-badge.sale       { background: var(--error); color: #fff; }
.product-badge.new        { background: var(--success); color: #fff; }
.product-badge.bestseller { background: var(--gold); color: #000; }
.product-badge.hot        { background: #f57c00; color: #fff; }

/* Product Card Body */
.product-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-brand {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Star Rating */
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.stars {
  color: var(--gold-ink);
  font-size: 0.85rem;
  letter-spacing: 1px;
  line-height: 1;
}

.review-count {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

/* Price Area */
.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  margin-top: auto;
}

.price-current {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-ink);
}

.price-original {
  font-size: 0.85rem;
  color: var(--text-subtle);
  text-decoration: line-through;
}

/* Add to Cart Button */
.btn-add-cart {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--gold);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-align: center;
}

.btn-add-cart:hover {
  background: var(--gold-dark);
  box-shadow: 0 4px 15px rgba(var(--gold-rgb), 0.3);
}

.btn-add-cart:active {
}


/* ── App.js class name aliases ── */
/* The app.js uses slightly different class names than the original CSS definitions.
   These aliases ensure both naming conventions work. */

.product-image-area {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-fallback {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.product-card:hover .product-fallback {
  color: rgba(255,255,255,0.9);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

.product-card:hover .product-img {
}

.product-detail-image .product-img {
  max-width: 400px;
  max-height: 400px;
  object-fit: contain;
}

.product-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.current-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-ink);
}

.original-price {
  font-size: 0.85rem;
  color: var(--text-subtle);
  text-decoration: line-through;
}

.rating-count {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.btn-add-to-cart {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--gold);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-align: center;
  margin-top: auto;
}

.btn-add-to-cart:hover {
  background: var(--gold-dark);
  box-shadow: 0 4px 15px rgba(var(--gold-rgb), 0.3);
}

.btn-add-to-cart:active {
}

/* Color scheme applied via data attribute on .product-image-area */
.product-image-area[data-color-scheme="football"]    { background: linear-gradient(135deg, #1a237e, #283593); }
.product-image-area[data-color-scheme="cricket"]     { background: linear-gradient(135deg, #3e2723, #4e342e); }
.product-image-area[data-color-scheme="running"]     { background: linear-gradient(135deg, #e65100, #ef6c00); }
.product-image-area[data-color-scheme="basketball"]  { background: linear-gradient(135deg, #bf360c, #d84315); }
.product-image-area[data-color-scheme="tennis"]      { background: linear-gradient(135deg, #33691e, #558b2f); }
.product-image-area[data-color-scheme="swimming"]    { background: linear-gradient(135deg, #01579b, #0277bd); }
.product-image-area[data-color-scheme="gym"]         { background: linear-gradient(135deg, #212121, #424242); }
.product-image-area[data-color-scheme="cycling"]     { background: linear-gradient(135deg, #4a148c, #6a1b9a); }
.product-image-area[data-color-scheme="boxing"]      { background: linear-gradient(135deg, #b71c1c, #c62828); }
.product-image-area[data-color-scheme="golf"]        { background: linear-gradient(135deg, #1b5e20, #2e7d32); }
.product-image-area[data-color-scheme="mens"]        { background: linear-gradient(135deg, #263238, #37474f); }
.product-image-area[data-color-scheme="mens-clothing"] { background: linear-gradient(135deg, #263238, #37474f); }
.product-image-area[data-color-scheme="womens"]      { background: linear-gradient(135deg, #880e4f, #ad1457); }
.product-image-area[data-color-scheme="womens-clothing"] { background: linear-gradient(135deg, #880e4f, #ad1457); }
.product-image-area[data-color-scheme="kids"]        { background: linear-gradient(135deg, #e65100, #f57f17); }
.product-image-area[data-color-scheme="footwear"]    { background: linear-gradient(135deg, #1a237e, #283593); }
.product-image-area[data-color-scheme="accessories"] { background: linear-gradient(135deg, #004d40, #00695c); }
.product-image-area[data-color-scheme="default"]     { background: linear-gradient(135deg, #1a1a1a, #2a2a2a); }

/* Product grid variant for 4 columns */
.product-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Filter list alias */
.filter-list {
  list-style: none;
}

.filter-list a,
.filter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
}

.filter-list a:hover,
.filter-list a.active,
.filter-link:hover,
.filter-link.active {
  color: var(--gold-ink);
}

.filter-count {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

/* Price filter buttons */
.price-filter-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.price-filter-btns button {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-btn);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
}

.price-filter-btns button:hover,
.price-filter-btns button.active {
  border-color: var(--gold);
  color: var(--gold-ink);
  background: rgba(var(--gold-rgb), 0.08);
}

/* Shop main content area */
.shop-main {
  flex: 1;
  min-width: 0;
}

/* Sort bar */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.sort-bar .product-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sort-bar select {
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
}

.sort-bar select:focus {
  border-color: var(--gold);
}

/* Filter toggle button (mobile) */
.filter-toggle-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
}

/* Cart page styles */
.cart-page {
  max-width: 1000px;
  margin: 0 auto;
}

.cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--bg-border);
}

.cart-item-fallback {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.cart-item-info h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.cart-item-info .brand {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cart-item-price {
  color: var(--gold-ink);
  font-weight: 600;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-controls button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-btn);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.9rem;
}

.qty-controls button:hover {
  border-color: var(--gold);
  color: var(--gold-ink);
}

.qty-controls span {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}

.cart-item-total {
  font-weight: 700;
  color: var(--text-primary);
  min-width: 70px;
  text-align: right;
}

.cart-item-remove {
  color: var(--text-subtle);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
}

.cart-item-remove:hover {
  color: var(--error);
}

.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  margin-top: 2rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  color: var(--text-muted);
}

.cart-summary-row.total {
  border-top: 1px solid var(--bg-border);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-summary-row.total span:last-child {
  color: var(--gold-ink);
}

.empty-cart {
  text-align: center;
  padding: 4rem 1rem;
}

.empty-cart h2 {
  margin-bottom: 1rem;
}

.empty-cart p {
  margin-bottom: 2rem;
}

/* Product detail page */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-detail-image {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-card);
  position: relative;
}

.product-detail-fallback {
  font-size: 1.5rem;
}

.product-detail-info h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.product-detail-info .brand {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.product-detail-info .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-ink);
  margin-bottom: 0.5rem;
}

.product-detail-info .original-price-detail {
  font-size: 1rem;
  color: var(--text-subtle);
  text-decoration: line-through;
  margin-left: 0.75rem;
}

.product-detail-info .discount-pct {
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 600;
  margin-left: 0.5rem;
}

.product-detail-info .description {
  color: var(--text-muted);
  line-height: 1.8;
  margin: 1.5rem 0;
}

.product-detail-info .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.product-detail-info .tag {
  padding: 0.3rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.qty-selector label {
  font-weight: 600;
  color: var(--text-muted);
}

.detail-add-to-cart {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--gold-ink);
}

.breadcrumb .separator {
  color: var(--text-subtle);
}

/* Trust mini signals on product detail */
.trust-mini {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bg-border);
  flex-wrap: wrap;
}

.trust-mini-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
}

.pagination button {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-btn);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
}

.pagination button:hover {
  border-color: var(--gold);
  color: var(--gold-ink);
}

.pagination button.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  font-weight: 700;
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Search results heading */
.search-results-heading {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.no-results {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

/* ==========================================================
   14. Featured Products Row
   ========================================================== */

.featured-row {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.featured-row::-webkit-scrollbar {
  display: none;
}

.featured-row .product-card {
  min-width: 260px;
  max-width: 280px;
  flex-shrink: 0;
  scroll-snap-align: start;
}


/* ==========================================================
   15. Sale Banner
   ========================================================== */

.sale-banner {
  background: linear-gradient(135deg, #5c1a1a, #7a2e00, #5c1a1a);
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sale-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(var(--gold-rgb), 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.sale-banner h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  position: relative;
}

.sale-banner .highlight {
  color: var(--gold-ink);
}

.sale-banner p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  position: relative;
}

.sale-banner .btn-primary {
  position: relative;
}


/* ==========================================================
   16. Brands Row
   ========================================================== */

.brands-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 2rem 1.5rem;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.22);
  letter-spacing: 4px;
  padding: 0.5rem 1.5rem;
  white-space: nowrap;
}

.brand-name:hover {
  color: rgba(0, 0, 0, 0.50);
}

.brand-separator {
  width: 4px;
  height: 4px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 50%;
  flex-shrink: 0;
}


/* ==========================================================
   17. Trust Signals
   ========================================================== */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-card {
  text-align: center;
  padding: 2rem 1.25rem;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-card);
  background: var(--bg-card);
}

.trust-card:hover {
  border-color: rgba(var(--gold-rgb), 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.10);
}

.trust-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.trust-card h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.trust-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.trust-icon-svg {
  stroke: var(--gold);
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.cart-svg {
  stroke: var(--text-primary);
  vertical-align: middle;
}

.cart-icon:hover .cart-svg {
  stroke: var(--gold);
}

.live-search-brand {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 50px;
  text-align: center;
}


/* ==========================================================
   18. Filters Sidebar
   ========================================================== */

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: calc(var(--z-overlay) - 1);
}

.sidebar-overlay.active {
  display: block;
}

.shop-header {
  margin-bottom: 1.5rem;
}

.shop-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.shop-page {
  padding: 2rem 0;
}

.btn-filter-toggle {
  display: none;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.85rem;
}

.sort-bar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sort-bar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-bar-right label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.sort-select {
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
}

.product-count-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.filters-sidebar,
.shop-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  max-height: calc(100vh - var(--header-height) - 2rem);
  overflow-y: auto;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bg-border);
}

.sidebar-header h3 {
  font-family: var(--font-heading);
  margin: 0;
}

.sidebar-close-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-clear-filters {
  width: 100%;
  padding: 0.6rem;
  margin-top: 1rem;
  background: transparent;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-btn);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-clear-filters:hover {
  border-color: var(--error);
  color: var(--error);
}

.filter-group {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--bg-border);
}

.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 1rem;
}

.filter-group-header h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.filter-group-header .toggle-icon {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.filter-group.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

.filter-group.collapsed .filter-group-body {
  display: none;
}

/* Category Filter Links */
.filter-links a {
  display: block;
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.filter-links a:hover,
.filter-links a.active {
  color: var(--gold-ink);
}

.filter-links a .count {
  float: right;
  color: var(--text-subtle);
  font-size: 0.8rem;
}

/* Brand Checkboxes */
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.filter-checkbox:hover {
  color: var(--text-primary);
}

.filter-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
}

/* Price Range Buttons */
.price-range-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.price-range-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-btn);
  color: var(--text-muted);
  cursor: pointer;
}

.price-range-btn:hover,
.price-range-btn.active {
  border-color: var(--gold);
  color: var(--gold-ink);
  background: rgba(var(--gold-rgb), 0.08);
}

/* Rating Filter */
.rating-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rating-filter-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-btn);
  color: var(--gold-ink);
  cursor: pointer;
}

.rating-filter-btn:hover,
.rating-filter-btn.active {
  border-color: var(--gold);
  background: rgba(var(--gold-rgb), 0.08);
}

/* Clear Filters */
.btn-clear-filters {
  width: 100%;
  padding: 0.6rem 1rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-align: center;
}

.btn-clear-filters:hover {
  color: var(--error);
  border-color: var(--error);
}

/* Mobile Filter Toggle */
.filter-toggle-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-btn);
  cursor: pointer;
}


/* ==========================================================
   19. Sort Bar
   ========================================================== */

.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 0;
}

.sort-bar .product-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sort-bar .product-count strong {
  color: var(--text-primary);
}

.sort-dropdown {
  position: relative;
}

.sort-dropdown select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.55rem 2.5rem 0.55rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
  min-width: 180px;
}

.sort-dropdown select:focus {
  border-color: var(--gold);
}

.sort-dropdown::after {
  content: '\25BC';
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  color: var(--text-muted);
  pointer-events: none;
}


/* ==========================================================
   20. Pagination
   ========================================================== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  border: 1px solid var(--bg-border);
  color: var(--text-muted);
  cursor: pointer;
}

.pagination a:hover {
  border-color: var(--gold);
  color: var(--gold-ink);
}

.pagination .active,
.pagination .current {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

.pagination .disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination .ellipsis {
  border: none;
  cursor: default;
  min-width: auto;
  padding: 0 0.25rem;
}


/* ==========================================================
   21. Product Detail Page
   ========================================================== */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--gold-ink);
}

.breadcrumb .separator {
  color: var(--text-subtle);
}

.breadcrumb .current {
  color: var(--text-primary);
}

/* Product Detail Layout */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2rem 0;
  align-items: start;
}

.product-detail-image {
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  position: relative;
}

.product-detail-image .product-fallback {
  font-size: 1.5rem;
}

.product-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.product-thumbnail {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
  background: var(--bg-card);
}

.product-thumbnail:hover {
  opacity: 0.9;
}

.product-thumbnail.active {
  border-color: var(--gold);
  opacity: 1;
}

/* Product Gallery Layout (thumbs on left, main image on right) */
.product-gallery {
  display: flex;
  gap: 12px;
}

.product-thumbs-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 80px;
  flex-shrink: 0;
}

.product-thumbs-col .product-thumbnail {
  width: 72px;
  height: 72px;
}

.product-gallery .product-detail-image {
  flex: 1;
}

/* Size Selector */
.size-selector {
  margin-bottom: 1.5rem;
}

.size-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.size-selector-header label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.size-guide-link {
  font-size: 0.85rem;
  color: var(--gold-ink);
  text-decoration: underline;
}

.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-btn {
  min-width: 60px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 2px solid var(--bg-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.size-btn:hover {
  border-color: var(--text-muted);
  background: var(--bg-card);
}

.size-btn.selected {
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold-ink);
  font-weight: 700;
}

.size-error {
  color: #ff4444;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Product Actions Row (Qty + Add to Cart side by side) */
.product-actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.product-actions-row .quantity-selector {
  margin-bottom: 0;
}

.product-actions-row .btn-add-to-cart-large {
  flex: 1;
}

/* Free Shipping Banner */
.free-shipping-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 180, 80, 0.12);
  color: #0a8a45;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.free-shipping-banner svg {
  stroke: #0a8a45;
  flex-shrink: 0;
}

/* Product Detail Divider */
.product-detail-divider {
  height: 1px;
  background: var(--bg-border);
  margin: 1rem 0 1.25rem;
}

.product-detail-info h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.product-detail-brand {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.product-detail-rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.product-detail-rating .stars {
  font-size: 1.1rem;
  color: var(--gold-ink);
}

.product-detail-rating .review-count {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.product-detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-ink);
  margin-bottom: 1.5rem;
}

.product-detail-price .original,
.product-detail-price .detail-original-price {
  font-size: 1.1rem;
  color: var(--text-subtle);
  text-decoration: line-through;
  margin-left: 0.75rem;
  font-weight: 400;
}

.product-detail-price .discount-badge {
  display: inline-block;
  background: #ff4444;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-left: 0.75rem;
  vertical-align: middle;
}

.product-detail-desc {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.product-detail-description {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Quantity Selector */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1.5rem;
}

.quantity-selector button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
}

.quantity-selector button:first-child {
  border-radius: var(--radius-btn) 0 0 var(--radius-btn);
}

.quantity-selector button:last-child {
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
}

.quantity-selector button:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

.quantity-selector input {
  width: 60px;
  height: 44px;
  text-align: center;
  background: var(--bg-elevated);
  border-top: 1px solid var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
  border-left: none;
  border-right: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  -moz-appearance: textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-add-cart-large {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--gold);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
}

.btn-add-cart-large:hover {
  background: var(--gold-dark);
  box-shadow: 0 6px 20px rgba(var(--gold-rgb), 0.35);
}

/* You May Also Like */
.related-products {
  padding: 4rem 0 2rem;
}

.related-products .product-grid {
  grid-template-columns: repeat(4, 1fr);
}


/* ==========================================================
   22. Cart Page
   ========================================================== */

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  align-items: start;
  padding: 2rem 0;
}

/* Cart Items */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-card);
}

.cart-item:hover {
  border-color: rgba(var(--gold-rgb), 0.2);
}

.cart-item-image {
  width: 100px;
  height: 80px;
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
}

.cart-item-info .name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.cart-item-info .brand {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-item .quantity-selector {
  margin-bottom: 0;
}

.cart-item-total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-ink);
  min-width: 80px;
  text-align: right;
}

.cart-item-remove {
  color: var(--text-subtle);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.cart-item-remove:hover {
  color: var(--error);
}

/* Cart Summary */
.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  position: sticky;
  top: calc(var(--header-height) + 1rem);
}

.cart-summary h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bg-border);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.cart-summary-row.total {
  padding-top: 1rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--bg-border);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-summary-row.total .amount {
  color: var(--gold-ink);
}

.btn-checkout {
  width: 100%;
  padding: 1rem;
  margin-top: 1.5rem;
  background: var(--gold);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
}

.btn-checkout:hover {
  background: var(--gold-dark);
  box-shadow: 0 6px 20px rgba(var(--gold-rgb), 0.35);
}

/* Empty Cart */
.cart-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.cart-empty .icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.4;
}

.cart-empty h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.cart-empty p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}


/* ==========================================================
   23. Footer
   ========================================================== */

.footer {
  background: var(--bg-darkest);
  border-top: 1px solid var(--bg-border);
  padding: 4rem 0 0;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-ink);
  margin-bottom: 1.25rem;
}

.footer-col p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col a {
  display: block;
  padding: 0.3rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--gold-ink);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--bg-border);
  color: var(--text-muted);
  font-size: 1rem;
}

.social-links a:hover {
  color: var(--gold-ink);
  border-color: var(--gold);
  background: rgba(var(--gold-rgb), 0.08);
}

.footer-bottom {
  border-top: 1px solid var(--bg-border);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin: 0;
}

.footer-bottom .abn {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.payment-methods {
  font-size: 0.8rem;
  color: var(--text-subtle);
  letter-spacing: 0.5px;
}


/* ==========================================================
   24. Toast / Notification
   ========================================================== */

.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--gold);
  border-radius: var(--radius-card);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  max-width: 400px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
  pointer-events: auto;
}

.toast .toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.toast .toast-message {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.toast .toast-close {
  margin-left: auto;
  color: var(--text-subtle);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  flex-shrink: 0;
}

.toast .toast-close:hover {
  color: var(--text-primary);
}






/* ==========================================================
   25. Animations & Keyframes
   ========================================================== */











/* ==========================================================
   26. Responsive Breakpoints
   ========================================================== */

/* Large desktop: 1200px */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    gap: 2rem;
  }
}

/* Desktop / small laptop: 992px */
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .shop-layout {
    grid-template-columns: 220px 1fr;
  }

  .product-detail {
    gap: 2rem;
  }

  .related-products .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 3rem;
  }

  .cart-layout {
    grid-template-columns: 1fr 300px;
  }
}

/* Tablet: 768px */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hamburger visible */
  .hamburger-btn {
    display: flex;
  }

  /* Search bar shrinks on mobile */
  .search-bar {
    max-width: 260px;
  }

  /* Shop layout: single column, sidebar becomes overlay */
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filters-sidebar,
  .shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    z-index: var(--z-overlay);
    transform: translateX(-100%);
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--bg-border);
    max-height: 100vh;
  }

  .filters-sidebar.active,
  .shop-sidebar.sidebar-open {
    transform: translateX(0);
  }

  .sidebar-close-btn {
    display: block;
  }

  .filter-toggle-btn,
  .btn-filter-toggle {
    display: inline-flex;
  }

  .filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: calc(var(--z-overlay) - 1);
    opacity: 0;
    visibility: hidden;
  }

  .filter-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Hero adjustments */
  .hero {
    min-height: auto;
    padding: 5rem 1.5rem 3rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Product detail: single column */
  .product-detail {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-detail-image {
    min-height: 280px;
  }

  .product-gallery {
    flex-direction: column;
  }

  .product-thumbs-col {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
  }

  .product-thumbs-col .product-thumbnail {
    width: 60px;
    height: 60px;
  }

  .product-actions-row {
    flex-direction: column;
  }

  .product-actions-row .btn-add-to-cart-large {
    width: 100%;
  }

  .related-products .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Cart layout: single column */
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
  }

  .cart-item-total,
  .cart-item-remove,
  .cart-item .quantity-selector {
    grid-column: 2;
  }

  /* Sale banner */
  .sale-banner h2 {
    font-size: 1.75rem;
  }

  /* Brands */
  .brand-name {
    font-size: 1rem;
    letter-spacing: 2px;
    padding: 0.4rem 1rem;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Small mobile: 480px */
@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 1rem;
  }

  .header-main {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .search-bar {
    max-width: 180px;
  }

  .search-bar input {
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    font-size: 0.8rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    max-width: 280px;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  section,
  .section {
    padding: 2.5rem 0;
  }

  .product-grid {
    gap: 0.75rem;
  }

  .product-card-image {
    height: 160px;
  }

  .product-fallback {
    font-size: 0.7rem;
  }

  .product-card-body {
    padding: 0.75rem;
  }

  .product-name {
    font-size: 0.9rem;
  }

  .price-current {
    font-size: 1.05rem;
  }

  .btn-add-cart {
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .category-card {
    height: 130px;
  }

  .category-card-label {
    font-size: 1.75rem;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .trust-card {
    padding: 1.25rem 0.75rem;
  }

  .trust-icon-svg {
    width: 24px;
    height: 24px;
  }

  .product-detail-image {
    min-height: 220px;
  }

  .product-detail-image .product-fallback {
    font-size: 1.2rem;
  }

  .product-detail-info h1 {
    font-size: 1.5rem;
  }

  .product-detail-price {
    font-size: 1.5rem;
  }

  .toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }

  .toast {
    min-width: auto;
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pagination a,
  .pagination span {
    min-width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
}


/* ==========================================================
   27. Checkout / Payment Page
   ========================================================== */

.checkout-page {
  padding: 2.5rem 0 4rem;
}

.checkout-page h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}

.checkout-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.checkout-block {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

.checkout-block h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.checkout-main input,
.checkout-main select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: #fff;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.checkout-main input::placeholder {
  color: var(--text-subtle);
}

.checkout-main input:focus,
.checkout-main select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row.form-row-3 {
  grid-template-columns: 1fr 0.7fr 0.8fr;
}

.form-row .form-group {
  margin-bottom: 1rem;
}

.payment-secure {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-ink);
  background: rgba(var(--gold-rgb), 0.10);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-btn);
  margin-bottom: 1.1rem;
}

.checkout-summary {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  position: sticky;
  top: 150px;
}

.checkout-summary h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.checkout-sum-items {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bg-border);
}

.checkout-sum-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.checkout-sum-item .cs-qty {
  color: var(--gold-ink);
  font-weight: 700;
}

.checkout-sum-item .cs-name {
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-summary .btn-checkout {
  width: 100%;
  margin-top: 1rem;
}

.checkout-summary .btn-continue {
  width: 100%;
  margin-top: 0.6rem;
}

/* Order Confirmation */
.order-confirmed {
  max-width: 520px;
  margin: 2rem auto;
  text-align: center;
}

.order-confirmed .oc-check {
  width: 64px;
  height: 64px;
  line-height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}

.order-confirmed h1 {
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
}

.order-confirmed .oc-sub {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.oc-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-card);
  padding: 1rem 1.5rem;
  margin-bottom: 1.75rem;
  text-align: left;
}

.oc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--bg-border);
}

.oc-row:last-child {
  border-bottom: none;
}

.oc-row span {
  color: var(--text-muted);
}

.oc-row strong {
  color: var(--text-primary);
}

@media (max-width: 860px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .checkout-summary {
    position: static;
  }
}

/* Shared order-summary rows (used by cart + checkout) */
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.summary-row.summary-total {
  padding-top: 1rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--bg-border);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.summary-row.summary-total span:last-child {
  color: var(--gold-ink);
}

.shipping-note {
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin: -0.1rem 0 0.4rem;
}

.free-shipping {
  color: var(--success);
  font-weight: 700;
}
