/* ============================================
   BAGS BY PEARL - Luxurious Handbag Store
   Color Palette: Cream, Warm Brown, Gold, Black
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600&display=swap');

:root {
  --cream: #F5F0EB;
  --cream-dark: #EDE6DD;
  --brown: #7B5B3A;
  --brown-dark: #5C4A2A;
  --brown-light: #C4A265;
  --gold: #C9A96E;
  --gold-light: #D4B87A;
  --black: #1A1A1A;
  --black-soft: #2D2D2D;
  --white: #FFFFFF;
  --gray: #9B9B9B;
  --gray-light: #E8E3DD;
  --success: #4A7C59;
  --danger: #8B3A3A;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--brown-light); border-radius: 3px; }

/* ---- NAVIGATION ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: transparent;
  padding: 0 4%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(245, 240, 235, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-light);
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
  color: var(--brown-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.nav-logo span {
  display: none;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--black-soft);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links .nav-icon {
  display: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--brown);
  transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }

.nav-cart {
  position: relative;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--brown);
  color: var(--white);
  font-size: 0.6rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: var(--transition);
}

/* Mobile logo - only visible on mobile */
.mobile-logo {
  display: none;
}

@media (max-width: 768px) {
  .mobile-logo {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    font-style: italic;
    color: var(--brown-dark);
    text-align: center;
    padding: 1rem 0 0.5rem;
  }
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9989;
}

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

/* ---- HERO SECTION ---- */
.hero {
  height: 100vh;
  display: grid;
  grid-template-columns: 45% 1fr;
  align-items: stretch;
  padding: 0;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero-content {
  padding: 0 5% 0 4%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* Geometric circle accent - bottom left of text area */
.hero-content::after {
  content: '';
  position: absolute;
  left: 4%;
  bottom: 10%;
  width: 180px;
  height: 180px;
  border: 1px solid var(--gray-light);
  border-radius: 50%;
  pointer-events: none;
}

.hero-tagline {
  display: none;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 4.8vw, 4.8rem);
  font-weight: 400;
  line-height: 1.06;
  color: var(--brown-dark);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-content h1 .highlight {
  color: var(--brown-dark);
  font-style: normal;
  font-weight: 400;
}

.hero-content p {
  font-size: 0.92rem;
  color: var(--gray);
  max-width: 380px;
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.7;
}

/* "shop now" button - dark circle/pill, lowercase like reference */
.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--black-soft);
  color: var(--white);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: absolute;
  bottom: 18%;
  right: -70px;
  z-index: 5;
}

.btn-hero:hover {
  background: var(--brown-dark);
  transform: scale(1.06);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* General btn-primary for rest of site */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--brown);
  color: var(--white);
  padding: 1.1rem 2.8rem;
  border-radius: 60px;
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  width: fit-content;
}

.btn-primary:hover {
  background: var(--brown-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(92, 74, 42, 0.35);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  transition: var(--transition);
}

.btn-primary:hover svg { transform: translateX(5px); }

/* Hero image area - image + brown bar on right */
.hero-image-wrap {
  position: relative;
  display: flex;
  height: 100%;
}

.hero-image {
  position: sticky;
  top: 0;
  height: 100vh;
  flex: 1;
  overflow: hidden;
  padding-top: 55px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0 0 0 20px;
}

/* Brown accent bar on far right */
.hero-brown-bar {
  width: 60px;
  background: var(--brown);
  flex-shrink: 0;
}

.hero-accent {
  display: none;
}

.hero::before {
  display: none;
}

/* ---- SECTION STYLES ---- */
.section {
  padding: 6rem 5%;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--gray);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.section-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1rem auto;
}

/* ---- FEATURED BANNER ---- */
.featured-banner {
  background: var(--brown-dark);
  padding: 5rem 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  color: var(--white);
}

.featured-banner .fb-content h3 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 500;
}

.featured-banner .fb-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.featured-banner .fb-content p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.featured-banner .fb-price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 2rem;
  font-weight: 700;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--gold);
  color: var(--black);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.featured-banner .fb-image {
  display: flex;
  justify-content: center;
}

.featured-banner .fb-image img {
  max-height: 500px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ---- PRODUCT GRID ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-card .card-image {
  position: relative;
  padding-top: 110%;
  overflow: hidden;
  background: var(--cream-dark);
}

.product-card .card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .card-image img {
  transform: scale(1.05);
}

.product-card .card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brown);
  color: var(--white);
  font-size: 0.6rem;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  z-index: 2;
}

.product-card .quick-add {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 0.65rem 1rem;
  border-radius: 50px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  font-weight: 500;
  opacity: 0;
  transform: translateY(5px);
}

.product-card:hover .quick-add {
  opacity: 1;
  transform: translateY(0);
}

.product-card .card-info {
  padding: 1.2rem 1.5rem;
}

.product-card .card-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gray);
  margin-bottom: 0.4rem;
}

.product-card .card-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.product-card .card-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brown);
}

/* ---- PRODUCT DETAIL MODAL ---- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(4px);
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--white);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  transition: var(--transition);
}

.modal-close:hover { background: var(--gray-light); }

.modal-image {
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px 0 0 16px;
}

.modal-details {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-details .detail-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.modal-details h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.modal-details .detail-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--brown);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.modal-details .detail-desc {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-weight: 300;
}

.modal-details .detail-color {
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}

.modal-details .detail-color span {
  color: var(--gray);
}

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

.quantity-selector button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gray-light);
  background: var(--white);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.quantity-selector button:hover {
  background: var(--cream);
}

.quantity-selector .qty-value {
  font-size: 1rem;
  font-weight: 500;
  min-width: 30px;
  text-align: center;
}

.btn-add-cart {
  width: 100%;
  padding: 1rem;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.btn-add-cart:hover {
  background: var(--brown-dark);
}

/* ---- CART SIDEBAR ---- */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -480px;
  width: 440px;
  max-width: 90vw;
  height: 100vh;
  background: var(--white);
  z-index: 3000;
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}

.cart-sidebar.open { right: 0; }

.cart-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 2999;
  display: none;
}

.cart-sidebar-overlay.open { display: block; }

.cart-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--gray);
  transition: var(--transition);
}

.cart-close:hover { color: var(--black); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 2rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--cream);
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.cart-item-info .item-price {
  font-size: 0.85rem;
  color: var(--brown);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cart-item-info .item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-item-info .item-qty button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--gray-light);
  background: none;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-remove {
  color: var(--danger);
  background: none;
  border: none;
  font-size: 0.7rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
  opacity: 0.6;
}

.cart-item-remove:hover { opacity: 1; }

.cart-empty {
  text-align: center;
  padding: 3rem 0;
  color: var(--gray);
}

.cart-empty svg {
  width: 60px;
  height: 60px;
  stroke: var(--gray-light);
  margin-bottom: 1rem;
}

.cart-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--gray-light);
  background: var(--cream);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cart-total span {
  font-size: 0.85rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cart-total strong {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--brown);
}

.btn-checkout {
  width: 100%;
  padding: 1rem;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.btn-checkout:hover { background: var(--brown-dark); }

/* ---- CHECKOUT MODAL ---- */
.checkout-modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 960px;
  width: 100%;
  max-height: 92vh;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.checkout-left {
  background: var(--brown-dark);
  color: var(--white);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.checkout-left h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.co-items {
  flex: 1;
}

.co-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.co-item img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255,255,255,0.1);
}

.co-item-info {
  flex: 1;
}

.co-item-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.co-item-info .co-item-qty {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.co-item-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
  align-self: center;
}

.co-divider {
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 0.5rem 0 1rem;
}

.co-totals .co-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.6);
}

.co-totals .co-row.total {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

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

/* Delivery & info badges */
.co-info-badges {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.co-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.08);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
}

.co-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.co-badge-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.co-badge-text strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1px;
}

.co-badge-text span {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
}

/* Checkout Right (form) */
.checkout-right {
  padding: 2.5rem;
  overflow-y: auto;
}

.checkout-right h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--black);
}

.checkout-right p.subtitle {
  color: var(--gray);
  font-size: 0.88rem;
  margin-bottom: 1.8rem;
  font-weight: 400;
}

.checkout-form {
  padding: 0;
}

.checkout-form h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.checkout-form p.subtitle {
  color: var(--gray);
  font-size: 0.88rem;
  margin-bottom: 1.8rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--black);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--gray-light);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
  background: var(--white);
  color: var(--black);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brown);
  box-shadow: 0 0 0 3px rgba(123, 91, 58, 0.1);
  background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #C0B8AE;
}

.form-group textarea { resize: vertical; min-height: 80px; }

/* M-Pesa styled payment section */
.mpesa-section {
  background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
  border: 1.5px solid #C8E6C9;
  border-radius: 14px;
  padding: 1.2rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mpesa-logo {
  width: 44px;
  height: 44px;
  background: #4CAF50;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mpesa-logo svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.mpesa-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2E7D32;
  margin-bottom: 2px;
}

.mpesa-info p {
  font-size: 0.78rem;
  color: #558B2F;
  line-height: 1.4;
  font-weight: 400;
}

/* Legacy .mpesa-note still used in tracker */
.mpesa-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #E8F5E9;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
}

.mpesa-note img {
  width: 32px;
  height: 32px;
}

.btn-pay {
  width: 100%;
  padding: 1.05rem;
  background: var(--brown);
  color: var(--white);
  border: none;
  border-radius: 60px;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  margin-top: 0.5rem;
}

.btn-pay:hover {
  background: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(92, 74, 42, 0.3);
}

.btn-pay:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.secure-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.secure-note svg {
  width: 13px;
  height: 13px;
  stroke: var(--gray);
  fill: none;
  stroke-width: 2;
}

/* Checkout summary (legacy, used for simple fallback) */
.checkout-summary {
  background: var(--cream);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.checkout-summary .cs-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.checkout-summary .cs-total {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--gray-light);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  font-weight: 600;
}

/* Checkout responsive */
@media (max-width: 768px) {
  .checkout-modal-inner {
    grid-template-columns: 1fr;
    max-height: 95vh;
    max-height: 95dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .checkout-left {
    padding: 1.5rem;
    max-height: none;
  }
  .checkout-right {
    padding: 1.5rem;
  }
  .co-info-badges {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .co-badge {
    flex: 1;
    min-width: 140px;
  }
}

/* ---- ABOUT / STORY SECTION ---- */
.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 5%;
  background: var(--white);
}

.story-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.story-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.story-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

.story-content p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.9;
  font-weight: 400;
  margin-bottom: 1rem;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 4rem 5% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  line-height: 1.8;
  font-weight: 400;
}

.footer h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  color: var(--gold);
}

.footer ul {
  list-style: none;
}

.footer ul li { margin-bottom: 0.5rem; }

.footer ul a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 300;
  transition: var(--transition);
}

.footer ul a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

.footer-admin {
  color: rgba(255,255,255,0.08);
  text-decoration: none;
  font-size: 0.6rem;
  transition: var(--transition);
}

.footer-admin:hover { color: rgba(255,255,255,0.3); }

/* ---- TOAST NOTIFICATION ---- */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--black);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 0.85rem;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ---- LOADING ---- */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s ease infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }
  .hero-content {
    padding: 60px 6% 2rem;
    text-align: center;
  }
  .hero-content::after { display: none; }
  .hero-content p { margin: 0 auto 2.5rem; }
  .btn-hero {
    position: relative;
    bottom: auto;
    right: auto;
    width: auto;
    height: auto;
    border-radius: 60px;
    padding: 1rem 2.5rem;
    margin: 0 auto;
  }
  .hero-image-wrap { display: block; }
  .hero-image { position: relative; height: 60vh; padding-top: 0; }
  .hero-image img { border-radius: 0; }
  .hero-brown-bar { display: none; }
  .featured-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .featured-banner .fb-image img { max-height: 350px; }
  .story-section { grid-template-columns: 1fr; }
  .story-image img { height: 350px; }
  .modal { grid-template-columns: 1fr; }
  .modal-image { min-height: 280px; }
  .modal-image img { border-radius: 16px 16px 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Hide navbar and hamburger completely on mobile */
  .navbar { display: none; }
  .hamburger { display: none; }
  .nav-links { display: none; }
  .menu-overlay { display: none !important; }
  .hamburger { display: flex; }
  .hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .hero-image { position: relative; height: 50vh; padding-top: 0; }
  .hero-image img { border-radius: 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .product-card .card-info { padding: 0.8rem 1rem; }
  .product-card .card-name { font-size: 0.95rem; }
  .product-card .card-price { font-size: 0.85rem; }
  .product-card .quick-add {
    opacity: 1;
    transform: translateY(0);
    padding: 0.5rem 0.8rem;
    font-size: 0.6rem;
  }
  .section { padding: 4rem 5%; }
  .cart-sidebar {
    width: 100%;
    right: -100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  .cart-items {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 2.2rem; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .product-card .card-info { padding: 0.6rem 0.8rem; }
  .product-card .card-name { font-size: 0.85rem; }
  .product-card .card-category { font-size: 0.55rem; }
}

/* ---- FLOATING CART BUTTON (mobile only) ---- */
.fab-cart {
  display: none;
}

@media (max-width: 768px) {
  .fab-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 28px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brown-dark);
    color: var(--white);
    border: none;
    cursor: pointer;
    z-index: 8000;
    box-shadow: 0 4px 20px rgba(92, 74, 42, 0.4);
    transition: var(--transition);
  }

  .fab-cart:active {
    transform: scale(0.93);
  }

  .fab-cart svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .fab-cart .fab-count {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #E74C3C;
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
  }

  .fab-cart .fab-count:empty {
    display: none;
  }
}

/* ---- ANIMATIONS ---- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
