:root {
  --blush: #e8e2d3;
  --mauve: #c1622d;
  --cream: #f7f4ec;
  --text-dark: #23301f;
  --border: #ddd6c4;
  --logo-bg: #f0eada;
}

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

/* Mobile bottom navigation — hidden by default, shown at ≤480px (see media query) */
.bottom-nav { display: none; }
.bn-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 11px;
  cursor: pointer;
  padding: 4px 12px;
}
.bn-item:hover, .bn-item:active { color: var(--mauve); }
.bn-badge {
  position: absolute;
  top: -2px;
  right: 4px;
  background: var(--mauve);
  color: #fff;
  border-radius: 50%;
  min-width: 16px;
  height: 16px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

body {
  font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--cream);
}

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

/* Header */
.site-header {
  background: var(--logo-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 58px; width: auto; display: block; }
.main-nav { display: flex; gap: 24px; }
.main-nav a:hover { color: var(--mauve); }
.header-actions { display: flex; align-items: center; gap: 12px; }
#search-input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  outline: none;
  text-align: right;
}
.cart-toggle {
  background: none;
  color: var(--text-dark);
  border: none;
  padding: 8px 4px;
  cursor: pointer;
  font-size: 15px;
}
.cart-toggle:hover { color: var(--mauve); }
.cart-count {
  background: var(--mauve);
  color: #fff;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 12px;
  margin-left: 4px;
}

/* Hero */
.hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("/img/pareeva.shop  hero image.webp") center/cover no-repeat;
  padding: 140px 24px;
  text-align: center;
}
.hero h1 { font-size: 42px; margin-bottom: 16px; color: #fff; }
.hero p { font-size: 18px; margin-bottom: 24px; color: rgba(255, 255, 255, 0.9); }
.btn-primary {
  display: inline-block;
  background: var(--mauve);
  color: #fff;
  padding: 12px 28px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  font-size: 15px;
}
.btn-primary:hover { opacity: 0.9; }
.btn-secondary {
  display: inline-block;
  background: #fff;
  color: var(--mauve);
  border: 1px solid var(--mauve);
  padding: 12px 28px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 15px;
  text-align: center;
}
.btn-secondary:hover { background: var(--blush); }
.full-width { width: 100%; margin-top: 12px; display: block; box-sizing: border-box; text-align: center; }

/* Shop section */
.shop-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
}
.category-filter h3 { margin-bottom: 12px; font-size: 16px; }
.category-filter ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.cat-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  text-align: left;
  padding: 6px 4px;
  cursor: pointer;
  width: 100%;
  color: var(--text-dark);
  font-size: 15px;
}
.cat-btn::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
}
.cat-btn:hover { color: var(--mauve); }
.cat-btn.active::before {
  background: var(--mauve) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.4 11.2 3.2 8l1.1-1.1 2.1 2.1 4.3-4.3L11.8 6z'/%3E%3C/svg%3E") center/12px no-repeat;
  border-color: var(--mauve);
}
.cat-btn.active { color: var(--mauve); }

.product-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  color: #888;
  font-size: 14px;
}
#sort-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text-dark);
  font-size: 13px;
}
.toolbar-actions { display: flex; align-items: center; gap: 12px; }
.filter-toggle-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text-dark);
  cursor: pointer;
  font-size: 13px;
}
.filter-toggle-btn:hover { background: var(--blush); }

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
}
.filter-panel.hidden { display: none; }
.filter-col h4 { margin-bottom: 12px; font-size: 15px; }
.filter-col label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; color: #555; cursor: pointer; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.page-btn {
  background: #fff;
  border: 1px solid var(--border);
  width: 36px; height: 36px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-dark);
}
.page-btn:hover, .page-btn.active { background: var(--mauve); color: #fff; border-color: var(--mauve); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s;
}
.product-card:hover { box-shadow: 0 4px 16px rgba(169, 124, 143, 0.15); }
.product-link { display: block; }
.product-thumb { width: 100%; height: 220px; object-fit: cover; display: block; }
.product-info { padding: 12px; }
.product-category { font-size: 11px; color: var(--mauve); text-transform: uppercase; display: inline-block; }
.product-category:hover { text-decoration: underline; }
.product-name { font-size: 15px; margin: 4px 0; }
.product-price { font-weight: 600; color: var(--text-dark); }

/* Product detail page */
.product-detail-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.breadcrumb { color: #888; font-size: 13px; margin-bottom: 24px; }
.breadcrumb a:hover { color: var(--mauve); }

.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.pd-main-img { width: 100%; height: 480px; object-fit: cover; border-radius: 12px; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.pd-thumb {
  width: 64px; height: 64px; object-fit: cover; border-radius: 8px;
  cursor: pointer; border: 2px solid transparent; opacity: 0.7;
}
.pd-thumb:hover, .pd-thumb.active { border-color: var(--mauve); opacity: 1; }
.pd-zoom-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  margin-left: auto;
}
.pd-zoom-btn:hover { background: var(--blush); }
.pd-info h1 { font-size: 28px; margin: 8px 0 12px; }
.pd-price { font-size: 22px; color: var(--mauve); margin-bottom: 16px; }
.pd-desc { color: #666; margin-bottom: 20px; line-height: 1.6; }
.pd-category-line { font-size: 13px; color: #888; margin-top: 8px; }
.pd-category-line a { color: var(--mauve); text-decoration: underline; }

.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  cursor: zoom-out;
}
.lightbox-overlay img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 24px; right: 32px; background: none; border: none; color: #fff; font-size: 32px; cursor: pointer; }

/* Qty stepper (matches reference site's +/- stepper, not a raw number field) */
.qty-row { display: flex; gap: 12px; margin-bottom: 16px; align-items: center; }
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.qty-stepper button {
  background: var(--cream);
  border: none;
  width: 34px;
  height: 38px;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-dark);
}
.qty-stepper button:hover { background: var(--blush); }
.qty-input {
  width: 44px;
  height: 38px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Generic page layout (Cart page, Checkout page) */
.page-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.page-section h1 { font-size: 30px; margin-bottom: 8px; }
.page-section > .breadcrumb { margin-bottom: 32px; }

/* Cart page */
.cart-page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.cart-table-wrap { overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 12px; border-bottom: 2px solid var(--border); font-size: 13px; color: #888; }
.cart-table td { padding: 16px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cp-product { display: flex; align-items: center; gap: 12px; }
.cp-product img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.cart-table .cart-item-remove { background: none; border: none; font-size: 18px; color: #999; cursor: pointer; }

.cart-totals-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.cart-totals-box h3 { margin-bottom: 16px; }

/* Checkout page */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  margin-top: 24px;
}
.billing-details h2, .order-summary h2 { font-size: 20px; margin-bottom: 16px; }
.order-summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  align-self: start;
}
.order-summary-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.order-summary-table th { text-align: left; padding-bottom: 12px; border-bottom: 2px solid var(--border); color: #888; font-weight: 500; }
.order-summary-table td { padding: 10px 0; border-bottom: 1px solid var(--border); }
.order-summary-table tfoot td { border-bottom: none; padding-top: 12px; }
.order-total-row td { font-weight: 700; font-size: 16px; }

/* About */
.about {
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image img { width: 100%; height: 420px; object-fit: cover; border-radius: 12px; display: block; }
.about-text h2 { margin-bottom: 16px; font-size: 32px; }
.about-text p { margin-bottom: 20px; color: #5a5f52; line-height: 1.7; }

.gallery { max-width: 1320px; margin: 0 auto; padding: 0 24px 80px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.site-footer {
  background: var(--logo-bg);
  padding: 48px 24px 16px;
  color: #999;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto 24px;
}
.footer-logo { display: inline-block; margin-bottom: 32px; }
.footer-logo img { height: 64px; width: auto; display: block; }
.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 48px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: var(--text-dark); margin-bottom: 14px; font-size: 16px; }
.footer-col ul + h4 { margin-top: 20px; }
.footer-col a { color: #888; font-size: 14px; }
.footer-col a:hover { color: var(--mauve); }
.footer-map { width: 100%; height: 180px; border-radius: 8px; }
.footer-copyright { text-align: center; font-size: 13px; padding-top: 12px; margin: 0 auto; border-top: 1px solid var(--border); max-width: 1320px; }

/* Category page (reuses the shop layout inside a generic page section) */
.shop-section-inline {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  margin-top: 24px;
}

/* Privacy policy page */
.policy-section { text-align: center; }
.policy-section h1 { margin-bottom: 8px; }
.policy-section > .breadcrumb { margin-bottom: 32px; }
.policy-content { max-width: 900px; margin: 24px auto 0; text-align: left; color: #555; line-height: 1.7; }
.policy-content h2 { font-size: 18px; margin: 28px 0 10px; color: var(--text-dark); }
.policy-content p { margin-bottom: 12px; }
.policy-content ul { margin: 0 0 12px 20px; }
.policy-content li { margin-bottom: 6px; }
.policy-content a { color: var(--mauve); text-decoration: underline; }

.modal-sku { font-size: 12px; color: #999; }

/* Cart drawer */
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 360px;
  background: #fff;
  box-shadow: -4px 0 16px rgba(0,0,0,0.1);
  z-index: 110;
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.cart-drawer.hidden { display: none; }
.cart-drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cart-drawer-header button { background: none; border: none; font-size: 22px; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: flex; align-items: center; gap: 12px; }
.cart-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; }
.cart-item-info { flex: 1; display: flex; flex-direction: column; font-size: 13px; }
.cart-item-remove { background: none; border: none; cursor: pointer; font-size: 16px; color: #999; }
.cart-summary { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }
.cart-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.cart-row.total { font-weight: 700; font-size: 16px; }

.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 105;
}
.drawer-overlay.hidden { display: none; }

/* Checkout */
.cod-note { background: var(--blush); padding: 10px 14px; border-radius: 8px; margin: 12px 0 20px; font-size: 14px; }
#checkout-form { display: flex; flex-direction: column; gap: 14px; }
#checkout-form.hidden { display: none; }
#checkout-form label { display: flex; flex-direction: column; font-size: 13px; gap: 4px; color: #6b5a60; }
#checkout-form input, #checkout-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.checkout-success { color: #2e7d32; margin-top: 12px; font-weight: 600; }
.checkout-error { color: #c62828; margin-top: 12px; }

/* ============ Responsive breakpoints ============
   Desktop: above 1366px (default styles above)
   Laptop:  max-width 1366px
   Tablet:  max-width 768px
   Mobile:  max-width 480px
================================================== */

/* Laptop (1366px and below) */
@media (max-width: 1366px) {
  .header-inner, .shop-section, .product-detail-section, .site-footer, .page-section {
    max-width: 100%;
    padding-left: 32px;
    padding-right: 32px;
  }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .pd-main-img { height: 420px; }
}

/* Tablet (768px and below) */
@media (max-width: 768px) {
  .header-inner { padding-left: 20px; padding-right: 20px; gap: 16px; }
  #search-input { width: 160px; }

  .hero { padding: 60px 20px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }

  .shop-section { grid-template-columns: 1fr; padding: 32px 20px; }
  .shop-section-inline { grid-template-columns: 1fr; }
  .category-filter { border-bottom: 1px solid var(--border); padding-bottom: 16px; }

  .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
  .product-thumb { height: 180px; }

  .pd-layout { grid-template-columns: 1fr; gap: 24px; }
  .pd-main-img { height: 340px; }

  .cart-drawer { width: 320px; }

  .cart-page-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .product-toolbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .filter-panel { grid-template-columns: 1fr; }

  .site-footer, .page-section { padding-left: 20px; padding-right: 20px; }
  .footer-columns { grid-template-columns: 1fr 1fr; }
  .footer-map-col { grid-column: 1 / -1; }

  .about { grid-template-columns: 1fr; gap: 32px; padding: 56px 20px; }
  .about-image img { height: 320px; }
  .gallery { padding: 0 20px 56px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid img { height: 160px; }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  .header-inner {
    display: flex;
    align-items: center;
    padding-left: 16px;
    padding-right: 16px;
    gap: 12px;
  }
  .logo { flex-shrink: 0; }
  .logo img { height: 44px; }
  .header-actions { flex: 1; }
  #search-input { width: 100%; }
  .main-nav, .header-actions .cart-toggle { display: none; }

  .hero { padding: 40px 16px; }
  .hero h1 { font-size: 26px; }

  .shop-section { padding: 24px 16px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-thumb { height: 150px; }
  .product-name { font-size: 13px; }
  .quick-view-icon { width: 28px; height: 28px; }

  .about { padding: 32px 16px 56px; }
  .about h2 { font-size: 22px; }
  .about-image img { height: 220px; }
  .gallery { padding: 0 16px 40px; }
  .gallery-grid { gap: 8px; }
  .gallery-grid img { height: 110px; }

  .pd-main-img { height: 260px; }
  .pd-info h1 { font-size: 22px; }

  .cart-drawer { width: 100%; padding: 16px; bottom: 60px; }
  .drawer-overlay { bottom: 60px; }

  .site-footer, .page-section { padding-left: 16px; padding-right: 16px; }
  .footer-columns { grid-template-columns: 1fr; gap: 24px; }

  body { padding-bottom: 68px; }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--logo-bg);
    border-top: 1px solid var(--border);
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 120;
  }
}