/* =====================================================
   Malaika’s Hijaabs — Front of House Stylesheet
   Luxury, restrained, mobile-first aesthetic
   ===================================================== */

:root {
  --color-deep-brown: #a65b3f;
  --color-deep-brown-dark: #8d4c34;
  --color-cream: #f5ede2;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-text: #1f1a17;
  --color-muted: #5a4f49;
  --shadow-soft: 0 18px 48px rgba(28, 20, 17, 0.12);
  --shadow-card: 0 16px 32px rgba(28, 20, 17, 0.08);
  --radius-pill: 8px;
  --transition-base: 220ms ease;
  --container-max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(17, 10, 7, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  z-index: 90;
}

body[data-nav-open='true']::before {
  opacity: 1;
  pointer-events: auto;
}

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

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

a:hover,
a:focus-visible {
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(var(--container-max), calc(100% - 2.5rem));
  margin-inline: auto;
}

section {
  margin: 0;
  padding: 0;
  width: 100%;
}

section[id] {
  scroll-margin-top: clamp(5.5rem, 11vw, 6.75rem);
}

.section {
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.section--cream {
  background: var(--color-cream);
}

.section__intro {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 6vw, 3rem);
}

.section__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-deep-brown);
  font-weight: 600;
  display: block;
  margin-bottom: 0.65rem;
}

.section__title {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2;
  margin: 0;
}

.section__subtitle {
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: 1rem;
}

/* =========================
   Buttons
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.9rem;
  min-height: 48px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform var(--transition-base), background var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}

.btn:focus-visible {
  outline: 3px solid rgba(166, 91, 63, 0.35);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--color-deep-brown);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover,
.btn--primary:active {
  background: var(--color-deep-brown-dark);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn--ghost.btn--dark {
  border-color: var(--color-deep-brown);
  color: var(--color-deep-brown);
}

.btn--ghost:hover,
.btn--ghost:active {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn--ghost.btn--dark:hover,
.btn--ghost.btn--dark:active {
  background: rgba(166, 91, 63, 0.1);
}

.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* =========================
   Header / Navigation
   ========================= */
.primary-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(166, 91, 63, 0.08);
  box-shadow: 0 10px 32px rgba(28, 20, 17, 0.05);
}

.primary-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-black);
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--color-cream);
  padding: 0.35rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
}

.primary-nav a {
  position: relative;
  font-weight: 500;
  color: var(--color-muted);
  transition: color var(--transition-base);
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.is-current {
  color: var(--color-deep-brown);
}

.primary-nav a.is-current::after,
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  inset-block-end: -0.4rem;
  height: 2px;
  background: var(--color-deep-brown);
}

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

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

.nav-toggle span:nth-child(2) {
  width: 18px;
}

.nav-toggle span:nth-child(3) {
  width: 14px;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
  transform: translateX(8px);
}

.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  width: 22px;
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================
   Hero
   ========================= */
.hero {
  position: relative;
  min-height: clamp(520px, 90vh, 720px);
  display: flex;
  align-items: center;
  color: var(--color-white);
  background: #111;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(var(--container-max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  gap: 2rem;
  padding-block: clamp(4rem, 8vw, 6rem);
}

.hero__tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  line-height: 1.1;
  margin: 0;
}

.hero__intro {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__actions .btn {
  padding-inline: 2.1rem;
}

/* =========================
   About
   ========================= */
.about {
  display: grid;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}

.about__media {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.about__content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-top: 0;
}

.about__content p {
  margin-bottom: 1.4rem;
  color: var(--color-muted);
}

/* =========================
   Product grid / cards
   ========================= */
.product-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-auto-rows: 1fr;
}

.product-card {
  background: var(--color-white);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(17, 10, 7, 0.18);
}

.product-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.product-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.product-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  min-height: 2.6rem;

  /* multi-line clamp */
  display: -webkit-box;
  line-clamp: 2;           /* standard (silences the linter; harmless where unsupported) */
  -webkit-line-clamp: 2;   /* WebKit/Chromium support */
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* text-overflow: ellipsis;  <- optional; adds … in some engines */
}

.product-card__price {
  font-weight: 600;
  color: var(--color-deep-brown);
  line-height: 1.3;
  min-height: 1.25rem;
  display: flex;
  align-items: center;
}

.product-card__stock {
  font-size: 0.9rem;
  color: var(--color-muted);
  font-weight: 600; /* <-- added */
  min-height: 1.25rem;
  display: flex;
  align-items: center;
}

.product-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 600px) {
  .product-card__actions {
    flex-direction: row;
  }
}

.product-card__actions .btn {
  flex: 1;
}

.product-card__actions .btn {
  width: 100%;
}

/* Make all stock text bold across site */
[class*="stock"],
.product-detail__stock,
.cart-table .stock {
  font-weight: 600 !important;
}

.product-card__stock[style*="bb3a2c"],
.product-card__stock:contains("Out of stock") {
  color: #bb3a2c;
  font-weight: 700;
}

/* =========================
   Lookbook
   ========================= */
.lookbook-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.lookbook-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-card);
}

.lookbook-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
  aspect-ratio: 3 / 4;
}

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

.lookbook-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 1;
}

.lookbook-card__content {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 1.5rem;
  z-index: 2;
  color: var(--color-white);
  display: grid;
  gap: 0.75rem;
  text-align: center;
}

.lookbook-card__content .btn {
  display: flex;
  width: 100%;
  justify-content: center;
  white-space: normal;
  text-align: center;
  align-items: center;
}

/* =========================
   Testimonials
   ========================= */
.testimonials {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.testimonial-card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 1rem;
}

.testimonial-card blockquote {
  margin: 0;
  font-size: 1rem;
  color: var(--color-muted);
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 600;
  color: var(--color-deep-brown);
}

/* =========================
   Contact section
   ========================= */
.contact {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact form {
  display: grid;
  gap: 1rem;
}

.input-field {
  display: grid;
  gap: 0.4rem;
}

.input-field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.input-field input,
.input-field textarea,
.newsletter-form input[type='email'] {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(166, 91, 63, 0.25);
  background: rgba(255, 255, 255, 0.95);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.input-field textarea {
  min-height: 140px;
  resize: vertical;
}

.input-field input:focus-visible,
.input-field textarea:focus-visible,
.newsletter-form input[type='email']:focus-visible {
  outline: none;
  border-color: var(--color-deep-brown);
  box-shadow: 0 0 0 4px rgba(166, 91, 63, 0.15);
}

/* =========================
   Footer
   ========================= */
.site-footer {
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.88), rgba(35, 16, 8, 0.94));
  color: var(--color-white);
  padding-block: clamp(3.5rem, 7vw, 5rem);
}

.site-footer__inner {
  width: min(var(--container-max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  gap: 2.5rem;
}

.site-footer__top {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-column {
  display: grid;
  gap: 1rem;
}

.footer-column p {
  margin: 0;
}

.newsletter-form {
  display: grid;
  gap: 1rem;
}

.newsletter-form button {
  justify-self: flex-start;
}

.footer-links {
  display: grid;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

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

.site-footer .newsletter-form input[type='email'] {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--color-white);
}

.site-footer .newsletter-form input[type='email']::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.social-links {
  display: flex;
  gap: 0.9rem;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  transition: background var(--transition-base), transform var(--transition-base);
}

.social-links a:hover {
  background: var(--color-deep-brown);
  transform: translateY(-3px);
}

/* =========================
   Utility & Animations
   ========================= */
.fade-in {
  opacity: 1;
  transform: none;
  animation: fadeInUp 700ms var(--transition-base) forwards;
}

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

.text-center {
  text-align: center;
}

.badge {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(166, 91, 63, 0.12);
  color: var(--color-deep-brown);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(166, 91, 63, 0.12);
  color: var(--color-deep-brown);
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-base);
}

.icon-btn:hover {
  background: var(--color-deep-brown);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* =========================
   Secondary pages
   ========================= */
.page-hero {
  padding-block: clamp(5rem, 10vw, 6.5rem);
  text-align: center;
  background: var(--color-cream);
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
}

.page-hero p {
  margin: 0;
  color: var(--color-muted);
}

.catalogue {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.catalogue .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.product-detail {
  padding-block: clamp(4rem, 8vw, 6rem);
}

.product-detail__layout {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.product-detail__gallery img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.product-detail__info h1 {
  font-family: 'Playfair Display', serif;
  margin-top: 0;
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.product-detail__price {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-deep-brown);
  margin-block: 1rem;
}

.product-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.product-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.5rem;
  color: var(--color-muted);
}

.cart {
  padding-block: clamp(4rem, 8vw, 6rem);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cart-table th,
.cart-table td {
  padding: 1.2rem;
  text-align: left;
  border-bottom: 1px solid rgba(166, 91, 63, 0.12);
}

.cart-table th {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.cart-table td img {
  width: 70px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(166, 91, 63, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}

.quantity-control button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(166, 91, 63, 0.08);
  color: var(--color-deep-brown);
  cursor: pointer;
  transition: background var(--transition-base);
}

.quantity-control button:hover {
  background: rgba(166, 91, 63, 0.18);
}

.cart-summary {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 360px;
  padding: 2rem;
  border-radius: 22px;
  background: var(--color-cream);
  box-shadow: var(--shadow-card);
}

.checkout {
  padding-block: clamp(4rem, 8vw, 6rem);
}

.checkout form {
  display: grid;
  gap: 1.2rem;
  max-width: 540px;
}

.checkout .input-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.empty-state {
  text-align: center;
  padding: 3rem;
  background: var(--color-cream);
  border-radius: 24px;
  color: var(--color-muted);
  box-shadow: var(--shadow-card);
}

/* =========================
   Floating WhatsApp button
   ========================= */
.whatsapp-btn {
  position: fixed;
  inset-block-end: 1.5rem;
  inset-inline-end: 1.5rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.whatsapp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.45);
}

.whatsapp-btn span {
  position: absolute;
  inset-block-end: -1.8rem;
  font-size: 0.75rem;
  background: var(--color-black);
  color: var(--color-white);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition: var(--transition-base);
}

.whatsapp-btn:hover span {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Responsive adjustments
   ========================= */
@media (max-width: 900px) {
  .primary-header__inner {
    position: relative;
  }

  .primary-nav {
    position: absolute;
    inset-block-start: calc(100% + 0.75rem);
    inset-inline-end: 0;
    display: grid;
    gap: 0.75rem;
    padding: 1.25rem 1.4rem;
    min-width: 220px;
    width: min(280px, calc(100vw - 2rem));
    justify-items: start;
    text-align: left;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(166, 91, 63, 0.18);
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(28, 20, 17, 0.15);
    isolation: isolate;
    transform: translateY(-8px) scale(0.96);
    transform-origin: top right;
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-base), opacity var(--transition-base);
    z-index: 130;
    backdrop-filter: blur(18px);
  }

  .primary-nav a {
    color: var(--color-text);
    font-size: 1.05rem;
    padding-block: 0.15rem;
    width: 100%;
  }

  .primary-nav[data-open='true'] {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .primary-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(166, 91, 63, 0.18), rgba(255, 255, 255, 0.08));
    z-index: -1;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(166, 91, 63, 0.12);
    border: 1px solid rgba(166, 91, 63, 0.2);
    transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  }

  .nav-toggle:hover {
    box-shadow: 0 10px 24px rgba(166, 91, 63, 0.25);
  }

  .nav-toggle span {
    background: var(--color-deep-brown);
  }

  .nav-toggle[aria-expanded='true'] {
    background: var(--color-deep-brown);
    border-color: var(--color-deep-brown);
    box-shadow: 0 12px 26px rgba(166, 91, 63, 0.4);
  }

  .nav-toggle[aria-expanded='true'] span {
    background: var(--color-white);
  }

  body[data-nav-open='true'] {
    overflow: hidden;
  }
}

@media (min-width: 900px) {
  .hero__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: flex-end;
  }

  .hero__intro {
    font-size: 1.05rem;
  }

  .about {
    grid-template-columns: 1.05fr 1fr;
  }

  .product-detail__layout {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (max-width: 768px) {
  .lookbook-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
  }

  .lookbook-card {
    border-radius: 20px;
  }

  .lookbook-card__content {
    padding: 1.1rem;
  }
}

@media (max-width: 600px) {
  .section {
    padding-block: clamp(3rem, 12vw, 4.25rem);
  }

  .hero {
    min-height: 460px;
  }

  .hero__content {
    text-align: center;
    justify-items: center;
    gap: 1.6rem;
    padding-block: clamp(3rem, 12vw, 4.5rem);
  }

  .hero__intro {
    font-size: 0.95rem;
    margin-inline: auto;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: min(340px, 100%);
    margin-inline: auto;
  }

  .hero__actions .btn {
    width: 100%;
  }

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

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

  .testimonials {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .site-footer__inner {
    text-align: center;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-column {
    justify-items: center;
    text-align: center;
  }

  .footer-column--brand {
    order: 1;
  }

  .footer-column--links {
    order: 2;
  }

  .footer-column--newsletter {
    order: 3;
    width: 100%;
  }

  .footer-column--brand .social-links {
    justify-content: center;
  }

  .footer-links {
    justify-items: center;
  }

  .newsletter-form {
    width: min(320px, 100%);
    justify-items: stretch;
  }

  .newsletter-form button {
    width: 100%;
    justify-self: stretch;
  }

  .footer-meta {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }

  .cart-table {
    display: block;
    overflow-x: auto;
  }

  .whatsapp-btn {
    inset-inline-end: 1rem;
    inset-block-end: 1rem;
  }
}

/* ==== Floating Cart Button ==== */
.cart-float-btn {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-deep-brown);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 10px 24px rgba(166, 91, 63, 0.35);
  z-index: 90;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.cart-float-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(166, 91, 63, 0.4);
}

/* ==== Floating Quantity Control ==== */
.float-quantity {
  position: fixed;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--color-cream);
  border: 1px solid rgba(166, 91, 63, 0.25);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  box-shadow: var(--shadow-card);
  z-index: 100;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.float-quantity button {
  background: var(--color-deep-brown);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
}
.float-quantity span {
  font-weight: 600;
  font-size: 1rem;
}

/* ==== Floating Cart Button ==== */
.cart-float-btn {
  position: fixed;
  bottom: 5.5rem;   /* lifts cart higher so it clears WhatsApp */
  right: 1.5rem;    /* keep horizontal spacing same */
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-deep-brown);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 10px 24px rgba(166, 91, 63, 0.35);
  z-index: 90;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.cart-float-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(166, 91, 63, 0.4);
}

/* ==== Floating Quantity Control ==== */
.float-quantity {
  position: fixed;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--color-cream);
  border: 1px solid rgba(166, 91, 63, 0.25);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  box-shadow: var(--shadow-card);
  z-index: 100;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.float-quantity button {
  background: var(--color-deep-brown);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
}
.float-quantity span {
  font-weight: 600;
  font-size: 1rem;
}

/* Force 2 products per row on mobile */
@media (max-width: 600px) {
  .catalogue .product-grid,
  #shopProducts.product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }

  .product-card {
    width: 100%;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .catalogue .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 0.9rem;
  }
}

/* ==== Shop Filters ==== */
.filters {
  background: var(--color-cream);
  padding-block: 1.5rem;
  border-bottom: 1px solid rgba(166, 91, 63, 0.15);
}

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

.filter {
  display: grid;
  gap: 0.4rem;
}

.filter label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-deep-brown);
}

.filter select {
  padding: 0.65rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(166, 91, 63, 0.3);
  background: #fff;
  font-size: 0.95rem;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter select:focus {
  outline: none;
  border-color: var(--color-deep-brown);
  box-shadow: 0 0 0 4px rgba(166, 91, 63, 0.15);
}

@media (max-width: 600px) {
  .filters__grid {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==== Featured Section Layout Fix ==== */
#featuredProducts.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

/* Buttons uniform & aligned */
#featuredProducts .product-card__actions {
  display: flex;
  flex-direction: row;
  gap: 0.6rem;
  margin-top: auto;
}

#featuredProducts .product-card__actions .btn {
  flex: 1;
  text-align: center;
  min-height: 44px;
}

/* 2 per row on mobile */
@media (max-width: 600px) {
  #featuredProducts.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  #featuredProducts .product-card__actions {
    flex-direction: column;
  }

  #featuredProducts .product-card__actions .btn {
    width: 100%;
  }
}

/* ==== Featured Section Grid Fix ==== */

/* Default: 5 per row on desktop */
#featuredProducts.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
}

/* Tidy button layout */
#featuredProducts .product-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

#featuredProducts .product-card__actions .btn {
  width: 100%;
  text-align: center;
  min-height: 44px;
}

/* 2 per row on mobile */
@media (max-width: 600px) {
  #featuredProducts.product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* ===== FINAL MOBILE FIX for Featured Section ===== */
@media (max-width: 600px) {
  body #featured .product-grid,
  body #featuredProducts.product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
    width: 100%;
  }

  /* keep cards tidy */
  body #featured .product-card,
  body #featuredProducts .product-card {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
}

/* ===== MOBILE BUTTON + TEXT SIZE TUNING ===== */
@media (max-width: 600px) {
  /* Reduce product name and price text */
  #featuredProducts .product-card__title {
    font-size: 0.9rem;
  }

  #featuredProducts .product-card__price {
    font-size: 0.9rem;
  }

  #featuredProducts .product-card__stock {
    font-size: 0.8rem;
  }

  /* Make top (View Product) button slightly bigger than Add to Cart */
  #featuredProducts .product-card__actions .btn:first-child {
    font-size: 0.9rem;
    padding: 0.55rem 0.8rem;
  }

  /* Make Add to Cart button smaller + subtle */
  #featuredProducts .product-card__actions .btn:last-child {
    font-size: 0.8rem;
    padding: 0.45rem 0.7rem;
    opacity: 0.9;
  }

  /* Keep spacing consistent */
  #featuredProducts .product-card__actions {
    gap: 0.4rem;
  }
}

/* ===== MOBILE BUTTON WIDTH FIX ===== */
@media (max-width: 600px) {
  /* Center and reduce button width */
  #featuredProducts .product-card__actions {
    align-items: center;
  }

  #featuredProducts .product-card__actions .btn {
    width: 80%; /* reduce from 100% to 80% of card width */
    max-width: 160px; /* prevents over-expansion */
    text-align: center;
    font-size: 0.85rem;
  }

  /* make bottom (Add to Cart) button slightly smaller */
  #featuredProducts .product-card__actions .btn:last-child {
    width: 70%;
    max-width: 140px;
    font-size: 0.8rem;
  }
}

#featuredProducts .btn {
  border-radius: 8px;
}

/* ===== MOBILE BUTTON TEXT SIZE FIX ===== */
@media (max-width: 600px) {
  /* make both buttons' text smaller */
  #featuredProducts .product-card__actions .btn {
    font-size: 0.75rem !important;
    padding: 0.4rem 0.7rem !important;
    letter-spacing: 0.3px;
  }

  /* make Add to Cart slightly smaller still */
  #featuredProducts .product-card__actions .btn:last-child {
    font-size: 0.7rem !important;
    padding: 0.35rem 0.6rem !important;
  }

  /* reduce border thickness on the outline button */
  #featuredProducts .product-card__actions .btn.btn--ghost {
    border-width: 1px;
  }
}

#featuredProducts .btn {
  border-radius: 6px;
}

/* ===== SIDE-BY-SIDE BUTTONS ON MOBILE ===== */
@media (max-width: 600px) {
  #featuredProducts .product-card__actions {
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }

  #featuredProducts .product-card__actions .btn {
    width: auto !important;
    flex: 1 1 auto;
    max-width: 120px;
    font-size: 0.75rem !important;
    padding: 0.45rem 0.7rem !important;
    text-align: center;
    white-space: nowrap;
  }

  #featuredProducts .product-card__actions .btn:first-child {
    font-size: 0.78rem !important;
    max-width: 130px;
  }

  #featuredProducts .product-card__actions .btn:last-child {
    opacity: 0.95;
  }
}

#featuredProducts .product-card__actions .btn {
  border-radius: 8px;
}

/* ===== FIX BUTTONS FIT INSIDE CARD (MOBILE) ===== */
@media (max-width: 600px) {
  #featuredProducts .product-card__actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr; /* 2 equal buttons */
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    padding-inline: 0.5rem;
  }

  #featuredProducts .product-card__actions .btn {
    width: 100% !important;
    font-size: 0.75rem !important;
    padding: 0.4rem 0 !important;
    text-align: center;
    white-space: nowrap;
  }

  /* make View Product slightly more visible */
  #featuredProducts .product-card__actions .btn:first-child {
    font-size: 0.78rem !important;
    font-weight: 500;
  }

  /* make Add to Cart slightly smaller */
  #featuredProducts .product-card__actions .btn:last-child {
    opacity: 0.95;
  }
}

/* ===== Swap VIEW + ADD TO CART only inside Featured section ===== */
#featuredProducts .product-card__actions .btn:first-child {
  background: var(--color-deep-brown) !important;
  color: var(--color-white) !important;
  border: 1px solid var(--color-deep-brown) !important;
}

#featuredProducts .product-card__actions .btn:last-child {
  background: transparent !important;
  color: var(--color-deep-brown) !important;
  border: 1px solid var(--color-deep-brown) !important;
}

/* Hover effects */
#featuredProducts .product-card__actions .btn:first-child:hover {
  background: var(--color-deep-brown-dark);
  border-color: var(--color-deep-brown-dark);
}

#featuredProducts .product-card__actions .btn:last-child:hover {
  background: rgba(166, 91, 63, 0.1);
}

/* ===== FIX ADD TO CART WIDTH BALANCE ===== */
@media (max-width: 600px) {
  /* slightly reduce padding of Add to Cart */
  #featuredProducts .product-card__actions .btn:last-child {
    padding-inline: 0.55rem !important;
    font-size: 0.73rem !important;
    min-width: unset !important;
  }

  /* keep "View" as-is */
  #featuredProducts .product-card__actions .btn:first-child {
    padding-inline: 0.7rem !important;
    font-size: 0.75rem !important;
  }

  /* optional: slightly reduce the gap between them */
  #featuredProducts .product-card__actions {
    gap: 0.4rem;
  }
}

/* ===== NEWSLETTER CENTER FIX (MATCHES YOUR ACTUAL FOOTER STRUCTURE) ===== */
.site-footer__top > div:nth-child(2) {
  text-align: center;
  margin: 0 auto;
  flex: 1 1 100%;
  max-width: 420px;
}

.site-footer .newsletter-form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 auto;
}

.site-footer .newsletter-form input {
  flex: 1 1 auto;
  min-width: 180px;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border: none;
  outline: none;
}

.site-footer .newsletter-form button {
  flex: 0 0 auto;
  padding: 0.6rem 1rem;
  border-radius: 6px;
}

/* Mobile version */
@media (max-width: 600px) {
  .site-footer__top {
    flex-direction: column;
    align-items: center;
  }

  .site-footer__top > div:nth-child(2) {
    order: 2; /* keep it centered between sections */
    text-align: center;
  }

  .site-footer .newsletter-form {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
  }

  .site-footer .newsletter-form input,
  .site-footer .newsletter-form button {
    width: 100%;
  }
}

/* === Smooth reshuffle animation for Featured section === */
@keyframes fadeSwap {
  0% { opacity: 0.4; transform: scale(0.98); }
  50% { opacity: 0.8; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

#featuredProducts {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#featuredProducts.fade-swap {
  animation: fadeSwap 0.6s ease both;
}

/* === Center "Our Story" section === */
#about,              /* in case it's the about section */
.section__intro, 
.section__intro .container, 
.section__intro .section__content {
  text-align: center !important;
}

.section__intro h2,
.section__intro p {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 42rem !important;
}

.section__intro span,
.section__intro a {
  display: inline-block;
  margin: 0 .5rem;
  text-align: center !important;
}

/* Center the category row under Our Story (homepage only) */
#about .product-detail__meta {
  display: flex;               /* already flex, but safe */
  justify-content: center;     /* <-- center horizontally */
  align-items: center;         /* vertical alignment */
  text-align: center;
  width: 100%;
}

#about .product-detail__meta span,
#about .product-detail__meta a {
  display: inline-block;
  margin: 0 .5rem;
}

/* Tighter spacing on small screens */
@media (max-width: 600px) {
  #about .product-detail__meta { gap: .6rem; }
}

/* ==== Product Detail Gallery ==== */
.main-product-image {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1/1.1;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: opacity 0.3s ease;
  margin-bottom: 1rem;
}

.thumbnail-gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.thumbnail-gallery img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, border 0.2s ease;
}

.thumbnail-gallery img:hover {
  transform: scale(1.05);
  border-color: var(--color-deep-brown);
}

.thumbnail-gallery img.active {
  border-color: var(--color-deep-brown);
}

/* ==== Cart Page Mobile Fix ==== */
.table-wrapper {
  width: 100%;
  overflow-x: auto;          /* allow horizontal scroll if needed */
  -webkit-overflow-scrolling: touch;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;          /* keeps layout readable on desktop */
}

.cart-table th,
.cart-table td {
  padding: 0.75rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .cart-table th,
  .cart-table td {
    padding: 0.55rem;
    font-size: 0.85rem;
  }
  .cart-summary {
    margin-top: 2rem;
    text-align: center;
  }
}

.table-wrapper::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 30px;
  background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
  pointer-events: none;
}
.table-wrapper {
  position: relative;
}

/* === Center Footer Social Links Across All Pages === */
.site-footer__social,
.footer-social,
.footer__social,
.social-links {
  display: flex;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.75rem;
  width: 100%;
  margin-top: 1rem;
  text-align: center;
}

/* If icons are list items (ul/li), reset those too */
.site-footer__social ul,
.footer-social ul,
.social-links ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Make sure individual icons look balanced */
.site-footer__social a,
.footer-social a,
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.site-footer__social a:hover,
.footer-social a:hover,
.social-links a:hover {
  transform: scale(1.15);
  color: var(--color-deep-brown, #A65B3F);
}

/* On mobile, keep everything stacked and centered */
@media (max-width: 700px) {
  .site-footer__top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer__social,
  .footer-social,
  .social-links {
    justify-content: center;
    margin-top: 1.2rem;
  }
}