/* =============================================
   RareFitHub — Premium Fashion CSS
   ============================================= */

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

:root {
  --black: #0f0f0f;
  --white: #ffffff;
  --gray-50: #f9f9f7;
  --gray-100: #f2f2ef;
  --gray-200: #e5e5e0;
  --gray-400: #a0a09a;
  --gray-600: #5a5a55;
  --accent: #c8a96e;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.12);
  --radius: 4px;
  --radius-md: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --banner-height: 44px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 12px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
}

h2 em {
  font-style: italic;
  color: var(--gray-600);
}

/* =============================================
   COD NOTICE BANNER
   ============================================= */

#codBanner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: #1a1007;
  color: #fff;
  overflow: hidden;
}

.cod-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 48px 10px 20px;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  position: relative;
}

.cod-icon {
  font-size: 15px;
  color: var(--accent);
  flex-shrink: 0;
}

.cod-banner-inner strong {
  color: var(--accent);
}

.cod-banner-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  transition: color 0.2s;
}

.cod-banner-close:hover {
  color: #fff;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn-primary {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 36px;
  border: 1.5px solid var(--black);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background: transparent;
  color: var(--black);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--black);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 36px;
  border: 1.5px solid var(--black);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--black);
  color: var(--white);
}

.full-width {
  width: 100%;
  text-align: center;
}

/* =============================================
   NAVBAR
   ============================================= */

#navbar {
  position: fixed;
  top: var(--banner-height);
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition), top 0.36s ease;
}

#navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--black);
}

.cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--black);
  display: flex;
  align-items: center;
  transition: opacity var(--transition);
}

.cart-btn:hover {
  opacity: 0.6;
}

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

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

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: var(--transition);
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 32px 20px;
  border-top: 1px solid var(--gray-200);
  gap: 16px;
}

.nav-mobile-menu.open { display: flex; }

.nav-mobile-menu a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
}

/* =============================================
   HERO
   ============================================= */

#hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  overflow: hidden;
  /* push hero below fixed banner + navbar */
  padding-top: calc(var(--banner-height) + 64px);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  object-position: center top;
  transition: transform 8s ease;
}

#hero:hover .hero-bg img {
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 40px;
  max-width: 700px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 300;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-content h1 em {
  font-style: italic;
  font-weight: 400;
}

.hero-sub {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 380px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-scroll-hint span {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.8);
  animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
  to { left: 100%; }
}

/* =============================================
   CATEGORIES
   ============================================= */

#categories {
  padding: 100px 0;
  background: var(--gray-50);
}

.categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: block;
}

.cat-img-wrap {
  height: 480px;
  overflow: hidden;
}

.cat-img-wrap img {
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.category-card:hover .cat-img-wrap img {
  transform: scale(1.05);
}

.cat-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  color: var(--white);
}

.cat-info h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 6px;
}

.cat-info span {
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

/* =============================================
   PRODUCTS
   ============================================= */

#products {
  padding: 100px 0;
}

.products-header {
  margin-bottom: 48px;
}

.products-header h2 {
  margin-bottom: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
}

.product-card {
  cursor: pointer;
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--gray-100);
  aspect-ratio: 3/4;
  margin-bottom: 16px;
}

.product-img-wrap img {
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
  object-position: center top;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--white);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
}

.product-view-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  background: var(--white);
  border: none;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: var(--shadow-md);
}

.product-card:hover .product-view-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.product-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--black);
}

.product-price {
  font-size: 13px;
  color: var(--gray-600);
}

/* =============================================
   WHY US
   ============================================= */

#why {
  padding: 100px 0;
  background: var(--gray-50);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2px;
}

.why-card {
  background: var(--white);
  padding: 48px 36px;
  transition: var(--transition);
}

.why-card:hover {
  background: var(--black);
  color: var(--white);
}

.why-icon {
  font-size: 24px;
  margin-bottom: 24px;
  color: var(--accent);
  transition: var(--transition);
}

.why-card:hover .why-icon {
  color: var(--accent);
}

.why-card h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
}

.why-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray-600);
  transition: var(--transition);
}

.why-card:hover p {
  color: rgba(255,255,255,0.7);
}

/* =============================================
   REVIEWS
   ============================================= */

#reviews {
  padding: 100px 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.review-card {
  padding: 36px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: var(--transition);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.stars {
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.review-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray-600);
  font-style: italic;
  margin-bottom: 20px;
}

.reviewer {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--black);
}

/* ─── WRITE A REVIEW ─── */

.write-review-wrap {
  margin-top: 80px;
  padding-top: 64px;
  border-top: 1px solid var(--gray-200);
}

.write-review-form {
  max-width: 680px;
}

.review-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 0;
}

.write-review-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.write-review-form .form-group label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.write-review-form .form-group input,
.write-review-form .form-group textarea {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
  resize: none;
  color: var(--black);
  background: var(--white);
}

.write-review-form .form-group input:focus,
.write-review-form .form-group textarea:focus {
  border-color: var(--black);
}

.write-review-form .form-group input.input-error,
.write-review-form .form-group textarea.input-error {
  border-color: #c0392b;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-6px); }
  75%       { transform: translateX(6px); }
}

.review-char-count {
  font-size: 11px;
  color: var(--gray-400);
  text-align: right;
  margin-top: -12px;
}

/* Star picker */
.star-picker {
  display: flex;
  gap: 4px;
}

.star-pick {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--gray-200);
  line-height: 1;
  padding: 0 2px;
  transition: color 0.15s, transform 0.15s;
}

.star-pick:hover,
.star-pick.active {
  color: var(--accent);
}

.star-pick:hover {
  transform: scale(1.15);
}

.star-picker.picker-error .star-pick {
  color: #e8b4ae;
  animation: shake 0.4s ease;
}

/* Own review preview */
.my-review-preview {
  margin-top: 32px;
  max-width: 480px;
  animation: fadeInUp 0.4s ease both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.my-review-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2e7d52;
  margin-bottom: 16px;
}

.my-review-card {
  border-color: #2e7d52;
  background: #f4faf7;
}

.my-review-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--gray-400);
  line-height: 1.6;
}

/* ─── REVIEW TOAST ─── */

.review-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.review-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.review-toast.sending .review-toast-icon svg {
  animation: spin 1.2s linear infinite;
}

.review-toast.sent {
  background: #1e4d35;
}

.review-toast-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

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

/* =============================================
   INSTAGRAM
   ============================================= */

#instagram {
  padding: 100px 0;
  background: var(--gray-50);
  text-align: center;
}

#instagram h2 {
  margin-bottom: 48px;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-bottom: 48px;
}

.insta-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.insta-item img {
  transition: transform 0.5s ease;
}

.insta-item:hover img {
  transform: scale(1.08);
}

.insta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
}

.insta-item:hover .insta-overlay {
  opacity: 1;
}

/* =============================================
   FOOTER
   ============================================= */

#footer {
  background: var(--black);
  color: var(--white);
  padding: 80px 0 40px;
}

.footer-top {
  display: flex;
  gap: 80px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.footer-brand {
  flex: 0 0 280px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}

.footer-insta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
  transition: border-color var(--transition);
}

.footer-insta:hover {
  border-color: var(--white);
}

.footer-links {
  display: flex;
  gap: 64px;
  flex: 1;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h5 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

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

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

/* =============================================
   PRODUCT MODAL
   ============================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  max-width: 900px;
  width: 100%;
  max-height: 90svh;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.4,0,0.2,1);
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--gray-600);
  z-index: 10;
  transition: color var(--transition);
  line-height: 1;
}

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

.modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.modal-images {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
}

.modal-main-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--gray-100);
}

.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.modal-thumb {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  background: var(--gray-100);
}

.modal-thumb.active {
  border-color: var(--black);
}

.modal-info {
  padding: 48px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.modal-info h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0;
}

.modal-price {
  font-size: 22px;
  font-weight: 600;
  font-family: var(--font-display);
}

.modal-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--gray-600);
}

.modal-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--gray-600);
}

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

.size-btn {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--gray-200);
  background: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.size-btn:hover {
  border-color: var(--black);
}

.size-btn.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  width: fit-content;
  overflow: hidden;
}

.qty-control button {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 300;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.qty-control button:hover {
  background: var(--gray-100);
}

.qty-control span {
  width: 48px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  border-left: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

/* =============================================
   CART DRAWER
   ============================================= */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1500;
  display: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: var(--white);
  z-index: 1501;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: var(--shadow-lg);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--gray-200);
}

.cart-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}

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

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

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 60px 0;
  text-align: center;
}

.cart-empty p {
  font-size: 14px;
  color: var(--gray-400);
}

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

.cart-item-img {
  width: 72px;
  height: 90px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-100);
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-name {
  font-size: 13px;
  font-weight: 500;
}

.cart-item-meta {
  font-size: 11px;
  color: var(--gray-400);
  letter-spacing: 0.06em;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 600;
  margin-top: auto;
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  font-size: 16px;
  padding: 4px;
  align-self: flex-start;
  transition: color var(--transition);
}

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

.cart-footer {
  padding: 24px 28px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-total-row span:first-child {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.cart-total-row span:last-child {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
}

/* =============================================
   CHECKOUT
   ============================================= */

.checkout-box {
  max-width: 540px;
}

.checkout-inner {
  padding: 48px 40px;
}

.checkout-inner h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 8px;
}

.checkout-sub {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
  resize: none;
  color: var(--black);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--black);
}

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

.checkout-order-total {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 24px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.checkout-order-total strong {
  color: var(--black);
  font-size: 18px;
}

/* =============================================
   UPI PAYMENT
   ============================================= */

.upi-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.qr-placeholder {
  background: white;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.upi-id {
  font-size: 14px;
  color: var(--gray-600);
}

.upi-amount {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}

.upi-link {
  cursor: pointer;
}

/* =============================================
   SUCCESS
   ============================================= */

.success-box {
  max-width: 420px;
  text-align: center;
  padding: 60px 48px;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 32px;
}

.success-box h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 16px;
}

.success-box p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 32px;
}

/* =============================================
   MY ORDERS MODAL
   ============================================= */

.orders-box {
  max-width: 560px;
}

.orders-inner {
  padding: 48px 40px;
}

.orders-header-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.orders-inner h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 8px;
}

.orders-error {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fde8e8;
  color: #9b1c1c;
  border-radius: var(--radius);
  font-size: 13px;
}

.orders-back-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0;
  margin-bottom: 24px;
  transition: color var(--transition);
}

.orders-back-btn:hover { color: var(--black); }

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}

/* ─── ORDER CARD ─── */

.order-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.order-card:hover {
  box-shadow: var(--shadow-md);
}

.order-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--gray-100);
}

.order-id {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--black);
  margin-bottom: 4px;
  font-family: monospace;
}

.order-date {
  font-size: 12px;
  color: var(--gray-400);
}

.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.order-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.order-items-list {
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid var(--gray-100);
}

.order-item-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--black);
}

.order-item-meta {
  color: var(--gray-400);
  font-size: 12px;
}

.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 14px 20px;
  background: var(--gray-50);
  gap: 16px;
}

.order-address-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.order-address-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.order-address {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.4;
}

.order-total {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  white-space: nowrap;
}

/* =============================================
   SCROLLBAR
   ============================================= */

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 2px; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .insta-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }

  .hero-content { padding: 0 24px; }
  .hero-scroll-hint { display: none; }

  #categories { padding: 64px 0; }
  .categories-grid { grid-template-columns: 1fr; gap: 16px; }
  .cat-img-wrap { height: 300px; }

  #products { padding: 64px 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  #why { padding: 64px 0; }
  .why-grid { grid-template-columns: 1fr 1fr; }

  #reviews { padding: 64px 0; }
  .reviews-grid { grid-template-columns: 1fr; }

  #instagram { padding: 64px 0; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }

  .modal-inner { grid-template-columns: 1fr; }
  .modal-images { padding: 16px; }
  .modal-info { padding: 24px 20px 24px; }
  .modal-info h2 { font-size: 24px; }

  .footer-top { flex-direction: column; gap: 48px; }
  .footer-brand { flex: none; }
  .footer-links { gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .checkout-inner { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }

  h2 { margin-bottom: 32px; }

  .write-review-wrap { margin-top: 48px; padding-top: 48px; }
  .review-form-row { grid-template-columns: 1fr; }

  .cod-banner-inner { font-size: 12px; padding-right: 36px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .why-grid { grid-template-columns: 1fr; }
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-thumbs { grid-template-columns: repeat(4, 1fr); }
  .cart-drawer { max-width: 100%; }

  .review-toast { white-space: normal; text-align: center; max-width: calc(100vw - 40px); }
}
