/* ============================================
   Ben's Barketplace Auburn — Design System
   Logo-derived palette: Red / Gold / Blue
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Brand (from logo) */
  --brand-red: #B3202C;
  --brand-red-dark: #8A1820;
  --brand-red-light: #F5E0E2;
  --brand-gold: #F2B825;
  --brand-gold-dark: #D4A017;
  --brand-gold-light: #FFF8E1;
  --brand-blue: #2B5BA8;
  --brand-blue-dark: #1E4080;
  --brand-blue-light: #E3ECF7;
  --brand-black: #1A1A1A;
  --brand-white: #FFFFFF;

  /* Neutrals */
  --neutral-warm: #FAF7F2;
  --neutral-cream: #F0EBE3;
  --neutral-gray: #6B6560;
  --neutral-gray-light: #9E9893;
  --neutral-light: #E5E0D8;
  --neutral-border: #DDD8D0;

  /* Semantic */
  --success: #2E7D32;
  --success-light: #E8F5E9;
  --warning: #E65100;
  --warning-light: #FFF3E0;
  --error: #C62828;
  --error-light: #FFEBEE;

  /* Typography */
  --font-heading: 'Poppins', Arial, sans-serif;
  --font-body: 'Open Sans', Helvetica, sans-serif;

  /* Spacing (8px base) */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;
  --sp-3xl: 96px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.16);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Layout */
  --container-max: 1280px;
  --header-height: 64px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--neutral-gray);
  background: var(--neutral-warm);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-blue); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--brand-blue-dark); }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--brand-black);
  line-height: 1.3;
}
h1 { font-size: 32px; font-weight: 700; }
h2 { font-size: 24px; font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

/* --- Utility Bar --- */
.utility-bar {
  background: var(--brand-red);
  color: var(--brand-white);
  font-size: 13px;
  padding: 6px 0;
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-md);
}
.utility-bar a { color: var(--brand-gold); font-weight: 600; }
.utility-bar a:hover { color: var(--brand-white); }
.utility-bar__left, .utility-bar__right { display: flex; align-items: center; gap: var(--sp-md); }
.utility-bar__right { gap: var(--sp-sm); }

@media (max-width: 767px) {
  .utility-bar__address { display: none; }
}

/* --- Header --- */
.header {
  background: var(--brand-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--sp-lg);
}
.header__logo img { height: 48px; width: auto; }
.header__search {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.header__search input {
  width: 100%;
  padding: 10px 16px 10px 44px;
  border: 2px solid var(--neutral-light);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color var(--transition-fast);
  background: var(--neutral-warm);
}
.header__search input:focus {
  outline: none;
  border-color: var(--brand-gold);
  background: var(--brand-white);
}
.header__search::before {
  content: '🔍';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.5;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}
.header__cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-black);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--neutral-cream);
  transition: all var(--transition-fast);
}
.header__cart:hover { background: var(--brand-gold-light); color: var(--brand-black); }
.header__cart-count {
  background: var(--brand-red);
  color: var(--brand-white);
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.header__cart-count.bounce {
  animation: cartBounce 400ms ease;
}
@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}
.header__account {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  color: var(--brand-black);
  display: flex;
  align-items: center;
  gap: 6px;
}
.header__account:hover { color: var(--brand-red); }

@media (max-width: 767px) {
  .header__search { display: none; }
  .header__search.mobile-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: var(--sp-md);
    background: var(--brand-white);
    box-shadow: var(--shadow-md);
    max-width: 100%;
  }
}

/* --- Navigation --- */
.nav {
  background: var(--brand-black);
  position: relative;
}
.nav .container {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav__item { position: relative; }
.nav__link {
  display: block;
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-white);
  transition: all var(--transition-fast);
  border-bottom: 3px solid transparent;
}
.nav__link:hover, .nav__link.active {
  color: var(--brand-gold);
  border-bottom-color: var(--brand-gold);
}
.nav__link--external { opacity: 0.8; }
.nav__link--external::after { content: ' ↗'; font-size: 11px; }

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--brand-white);
  font-size: 24px;
  cursor: pointer;
  padding: 14px 16px;
}

@media (max-width: 1023px) {
  .nav__hamburger { display: block; }
  .nav__list {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .nav__list.open { display: flex; }
  .nav__link { border-bottom: 1px solid rgba(255,255,255,0.1); border-left: 3px solid transparent; }
  .nav__link:hover, .nav__link.active { border-left-color: var(--brand-gold); border-bottom-color: rgba(255,255,255,0.1); }
}

/* --- Mega Menu --- */
.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--brand-white);
  box-shadow: var(--shadow-lg);
  z-index: 99;
  padding: var(--sp-xl);
  border-top: 3px solid var(--brand-gold);
}
.nav:hover .mega-menu { display: block; }
.mega-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.mega-menu__tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--sp-lg);
  border-bottom: 2px solid var(--neutral-light);
}
.mega-menu__tab {
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--neutral-gray);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.mega-menu__tab:hover { color: var(--brand-black); }
.mega-menu__tab.active { color: var(--brand-red); border-bottom-color: var(--brand-red); }
.mega-menu__panel { display: none; }
.mega-menu__panel.active { display: block; }
.mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xl);
}
.mega-menu__section h4 {
  color: var(--brand-red);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--sp-sm);
  padding-bottom: var(--sp-xs);
  border-bottom: 2px solid var(--brand-gold);
  display: inline-block;
}
.mega-menu__section ul { display: flex; flex-direction: column; gap: 4px; }
.mega-menu__section a {
  font-size: 14px;
  color: var(--neutral-gray);
  padding: 4px 0;
  transition: color var(--transition-fast);
}
.mega-menu__section a:hover { color: var(--brand-red); }
.mega-menu__brands {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
  margin-top: var(--sp-sm);
}
.mega-menu__brand-logo {
  height: 36px;
  width: auto;
  border-radius: var(--radius-sm);
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}
.mega-menu__brand-logo:hover { opacity: 1; }

@media (max-width: 1023px) {
  .mega-menu { position: static; box-shadow: none; padding: var(--sp-md); }
  .mega-menu__grid { grid-template-columns: 1fr; gap: var(--sp-md); }
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: var(--brand-white);
  padding: var(--sp-3xl) 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(242, 184, 37, 0.1);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  color: var(--brand-white);
  font-size: 40px;
  margin-bottom: var(--sp-md);
}
.hero h1 span { color: var(--brand-gold); }
.hero p {
  font-size: 18px;
  max-width: 600px;
  opacity: 0.9;
  margin-bottom: var(--sp-lg);
  line-height: 1.7;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 767px) {
  .hero { padding: var(--sp-2xl) 0; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  min-height: 44px;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--brand-gold);
  color: var(--brand-black);
  border-color: var(--brand-gold);
}
.btn--primary:hover {
  background: var(--brand-gold-dark);
  border-color: var(--brand-gold-dark);
  color: var(--brand-black);
}

.btn--secondary {
  background: transparent;
  color: var(--brand-red);
  border-color: var(--brand-red);
}
.btn--secondary:hover {
  background: var(--brand-red);
  color: var(--brand-white);
}

.btn--danger {
  background: var(--brand-red);
  color: var(--brand-white);
  border-color: var(--brand-red);
}
.btn--danger:hover { background: var(--brand-red-dark); border-color: var(--brand-red-dark); }

.btn--ghost {
  background: transparent;
  color: var(--brand-blue);
  border-color: transparent;
  padding: 12px 16px;
}
.btn--ghost:hover { text-decoration: underline; color: var(--brand-blue-dark); }

.btn--sm { font-size: 13px; padding: 8px 16px; min-height: 36px; }
.btn--lg { font-size: 17px; padding: 14px 32px; }
.btn--full { width: 100%; }

/* --- Section --- */
.section {
  padding: var(--sp-2xl) 0;
}
.section--alt { background: var(--brand-white); }
.section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-lg);
}
.section__title {
  font-size: 24px;
  position: relative;
  padding-bottom: var(--sp-sm);
}
.section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--brand-gold);
  border-radius: 2px;
}
.section__link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-red);
}
.section__link:hover { color: var(--brand-red-dark); }

/* --- Product Grid --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
}
@media (max-width: 1023px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-md); } }

/* --- Product Card --- */
.product-card {
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card__image {
  aspect-ratio: 1;
  background: var(--neutral-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-md);
  overflow: hidden;
}
.product-card__image img {
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}
.product-card:hover .product-card__image img { transform: scale(1.05); }
.product-card__badge {
  position: absolute;
  top: var(--sp-sm);
  left: var(--sp-sm);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}
.product-card__badge--category { background: var(--brand-red); color: var(--brand-white); }
.product-card__badge--featured { background: var(--brand-gold); color: var(--brand-black); }
.product-card__badge--new { background: var(--brand-blue); color: var(--brand-white); }
.product-card__badge--oos { background: var(--error); color: var(--brand-white); }
.product-card__body {
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  flex: 1;
}
.product-card__category {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--brand-red);
}
.product-card__name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-black);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__name a { color: inherit; }
.product-card__name a:hover { color: var(--brand-red); }
.product-card__price {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-black);
  margin-top: auto;
}
.product-card__price small {
  font-size: 12px;
  font-weight: 400;
  color: var(--neutral-gray-light);
}
.product-card__actions { padding: 0 var(--sp-md) var(--sp-md); }
.product-card__add {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--brand-gold);
  color: var(--brand-black);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.product-card__add:hover { background: var(--brand-gold-dark); }
.product-card__add:active { transform: scale(0.97); }
.product-card__add:disabled {
  background: var(--neutral-light);
  color: var(--neutral-gray-light);
  cursor: not-allowed;
}
.product-card--oos .product-card__image img { filter: grayscale(1); opacity: 0.6; }

/* --- Shop by Pet Cards --- */
.pet-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
}
@media (max-width: 767px) { .pet-cards { grid-template-columns: repeat(2, 1fr); } }
.pet-card {
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  text-decoration: none;
}
.pet-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.pet-card__icon { font-size: 48px; margin-bottom: var(--sp-sm); }
.pet-card__name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-black);
}
.pet-card__count {
  font-size: 13px;
  color: var(--neutral-gray-light);
  margin-top: 4px;
}

/* --- Store Info Cards --- */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}
@media (max-width: 767px) { .info-cards { grid-template-columns: 1fr; } }
.info-card {
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  box-shadow: var(--shadow-md);
}
.info-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--brand-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.info-card__title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-black);
  margin-bottom: 2px;
}
.info-card__text { font-size: 14px; color: var(--neutral-gray); line-height: 1.5; }

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: var(--sp-md) 0;
  font-size: 14px;
}
.breadcrumbs a { color: var(--brand-blue); }
.breadcrumbs a:hover { color: var(--brand-blue-dark); }
.breadcrumbs span { color: var(--neutral-gray-light); margin: 0 8px; }
.breadcrumbs strong { color: var(--neutral-gray); font-weight: 400; }

/* --- Product Detail --- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  padding: var(--sp-lg) 0 var(--sp-2xl);
}
@media (max-width: 767px) { .product-detail { grid-template-columns: 1fr; gap: var(--sp-lg); } }
.product-detail__gallery {
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}
.product-detail__gallery img { max-height: 400px; object-fit: contain; }
.product-detail__info { display: flex; flex-direction: column; gap: var(--sp-md); }
.product-detail__category {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-red);
}
.product-detail__name { font-size: 28px; line-height: 1.3; }
.product-detail__price {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-black);
}
.product-detail__stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}
.product-detail__stock--in { background: var(--success-light); color: var(--success); }
.product-detail__stock--out { background: var(--error-light); color: var(--error); }
.product-detail__desc { font-size: 15px; line-height: 1.7; }

/* Variant pills */
.variant-selector { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }
.variant-pill {
  padding: 8px 18px;
  border: 2px solid var(--neutral-light);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: var(--brand-white);
  color: var(--neutral-gray);
  transition: all var(--transition-fast);
}
.variant-pill:hover { border-color: var(--brand-gold); }
.variant-pill.active {
  border-color: var(--brand-red);
  background: var(--brand-red);
  color: var(--brand-white);
}

/* Quantity */
.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--neutral-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.qty-selector button {
  width: 40px;
  height: 44px;
  border: none;
  background: var(--neutral-cream);
  font-size: 18px;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.qty-selector button:hover { background: var(--neutral-light); }
.qty-selector input {
  width: 56px;
  height: 44px;
  border: none;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
}
.qty-selector input:focus { outline: none; }

/* Tabs */
.tabs { border-bottom: 2px solid var(--neutral-light); display: flex; gap: 0; }
.tab {
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--neutral-gray);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.tab:hover { color: var(--brand-black); }
.tab.active { color: var(--brand-red); border-bottom-color: var(--brand-red); }
.tab-content { padding: var(--sp-lg) 0; font-size: 15px; line-height: 1.7; }

/* --- Cart Page --- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--sp-xl);
  padding: var(--sp-xl) 0 var(--sp-2xl);
}
@media (max-width: 1023px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-items {
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: var(--sp-md);
  align-items: center;
  padding: var(--sp-md);
  border-bottom: 1px solid var(--neutral-light);
}
.cart-item:last-child { border-bottom: none; }
.cart-item__image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--neutral-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cart-item__image img { max-height: 100%; object-fit: contain; }
.cart-item__name { font-family: var(--font-heading); font-size: 14px; font-weight: 500; color: var(--brand-black); }
.cart-item__price { font-family: var(--font-heading); font-weight: 600; color: var(--brand-black); white-space: nowrap; }
.cart-item__remove {
  background: none;
  border: none;
  color: var(--neutral-gray-light);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  transition: color var(--transition-fast);
}
.cart-item__remove:hover { color: var(--error); }

.cart-summary {
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--sp-lg);
  height: fit-content;
  position: sticky;
  top: calc(var(--header-height) + var(--sp-md));
}
.cart-summary h3 { margin-bottom: var(--sp-md); padding-bottom: var(--sp-md); border-bottom: 1px solid var(--neutral-light); }
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--sp-sm);
  font-size: 15px;
}
.cart-summary__row--total {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-black);
  padding-top: var(--sp-md);
  border-top: 2px solid var(--neutral-light);
  margin-top: var(--sp-md);
}

/* --- Footer --- */
.footer {
  background: var(--brand-black);
  color: rgba(255,255,255,0.7);
  padding: var(--sp-2xl) 0 0;
  margin-top: var(--sp-2xl);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-xl);
  padding-bottom: var(--sp-2xl);
}
@media (max-width: 767px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__brand img { height: 48px; margin-bottom: var(--sp-md); }
.footer__brand p { font-size: 14px; line-height: 1.6; max-width: 300px; }
.footer__title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--sp-md);
}
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a { color: rgba(255,255,255,0.7); font-size: 14px; transition: color var(--transition-fast); }
.footer__links a:hover { color: var(--brand-gold); }
.footer__social { display: flex; gap: var(--sp-sm); margin-top: var(--sp-md); }
.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition-fast);
}
.footer__social a:hover { background: var(--brand-gold); color: var(--brand-black); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--sp-md) 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__bottom a { color: rgba(255,255,255,0.5); }
.footer__bottom a:hover { color: var(--brand-gold); }

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
}
.badge--success { background: var(--success-light); color: var(--success); }
.badge--error { background: var(--error-light); color: var(--error); }
.badge--warning { background: var(--warning-light); color: var(--warning); }
.badge--info { background: var(--brand-blue-light); color: var(--brand-blue); }
.badge--gold { background: var(--brand-gold-light); color: var(--brand-gold-dark); }

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) 0;
  flex-wrap: wrap;
}
.filter-bar__select {
  padding: 8px 16px;
  border: 2px solid var(--neutral-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--brand-white);
  cursor: pointer;
}
.filter-bar__select:focus { outline: none; border-color: var(--brand-gold); }
.filter-bar__count { font-size: 14px; color: var(--neutral-gray-light); margin-left: auto; }

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: var(--sp-xl) 0;
}
.pagination button {
  min-width: 40px;
  height: 40px;
  border: 2px solid var(--neutral-light);
  border-radius: var(--radius-md);
  background: var(--brand-white);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.pagination button:hover { border-color: var(--brand-red); color: var(--brand-red); }
.pagination button.active {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--brand-white);
}

/* --- Toast --- */
.toast {
  position: fixed;
  top: calc(var(--header-height) + var(--sp-md));
  right: var(--sp-md);
  background: var(--brand-black);
  color: var(--brand-white);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 200;
  transform: translateX(120%);
  transition: transform var(--transition-slow);
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show { transform: translateX(0); }
.toast--success { border-left: 4px solid var(--success); }
.toast--error { border-left: 4px solid var(--error); }

/* --- Skeleton Loading --- */
.skeleton {
  background: linear-gradient(90deg, var(--neutral-cream) 25%, var(--neutral-light) 50%, var(--neutral-cream) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton--image { aspect-ratio: 1; }
.skeleton--text { height: 16px; margin: 8px 16px; }
.skeleton--button { height: 40px; margin: 8px 16px 16px; }

/* --- Trust Bar --- */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
  padding: var(--sp-lg) 0;
}
@media (max-width: 767px) { .trust-bar { grid-template-columns: 1fr; } }
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 14px;
  color: var(--neutral-gray);
}
.trust-item__icon { font-size: 24px; }

/* --- Mobile Sticky Add to Cart --- */
.sticky-atc {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand-white);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
  padding: var(--sp-md);
  z-index: 90;
  gap: var(--sp-md);
  align-items: center;
}
@media (max-width: 767px) {
  .sticky-atc { display: flex; }
  body { padding-bottom: 80px; }
}
.sticky-atc__price {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-black);
}
.sticky-atc .btn { flex: 1; }
