@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --forest: #1B3022;
  --gold: #D4AF37;
  --cream: #F9F7F2;
  --charcoal: #1A1A1A;
  --teal: #4A6767;
  --sand: #efe9dc;
  --shadow: 0 18px 45px rgba(27, 48, 34, 0.14);
  --radius: 24px;
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--charcoal);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.12), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(27, 48, 34, 0.08), transparent 45%),
    repeating-linear-gradient(120deg, rgba(27, 48, 34, 0.04), rgba(27, 48, 34, 0.04) 1px, transparent 1px, transparent 12px);
  line-height: 1.6;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

/* Subtle Fine Paper Texture Background */
body::before {
  inset: 0;
  background-image:
    url('https://www.transparenttextures.com/patterns/natural-linen.png'),
    linear-gradient(to bottom, #fdfbf7, #f7f3ed);
  background-repeat: repeat, no-repeat;
  opacity: 0.6;
}

/* Drifting Floating Signature Seal (Logo) */
body::after {
  width: 400px;
  height: 400px;
  bottom: -50px;
  right: -50px;
  background: url('../img/logo 2.jpeg') no-repeat center;
  background-size: contain;
  filter: blur(2px) grayscale(1);
  opacity: 0.04;
  animation: driftSeal 40s linear infinite;
}

@keyframes driftSeal {
  0% {
    transform: rotate(0) translate(0, 0);
  }

  50% {
    transform: rotate(5deg) translate(-20px, -20px);
  }

  100% {
    transform: rotate(0) translate(0, 0);
  }
}

/* Immersive Background Canvas - Scoped to Home/Branded Pages */
body.home-page::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 130vw;
  height: 130vh;
  background: url('../img/hero_lifestyle.png') no-repeat center;
  background-size: cover;
  filter: blur(15px);
  /* Sharp & Modern */
  opacity: 0.5;
  /* High Visibility only on Branded Pages */
  z-index: -3;
  animation: fluidBackground 45s linear infinite alternate;
}

@keyframes fluidBackground {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }

  50% {
    transform: translate(-48%, -52%) scale(1.1) rotate(2deg);
  }

  100% {
    transform: translate(-52%, -48%) scale(1) rotate(-2deg);
  }
}

main {
  flex: 1;
}

/* App Core Interface */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(27, 48, 34, 0.1);
  justify-content: space-around;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  z-index: 1000;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--charcoal);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  flex: 1;
}

.mobile-nav-item.active {
  color: var(--gold);
}

.mobile-nav-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}



h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
  margin: 0 0 12px;
  color: var(--forest);
}

p {
  margin: 0 0 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 48px, var(--max-width));
  margin: 0 auto;
}

.top-bar {
  background: var(--forest);
  color: #f3efe7;
  font-size: 0.9rem;
}

.top-bar .container {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 8px 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.top-bar span {
  flex: 0 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(249, 247, 242, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(27, 48, 34, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--forest);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 600px) {
  .logo-text {
    display: none;
    /* Keep mobile header clean with just the icon */
  }
}




.site-logo-image {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  box-shadow: 0 8px 20px rgba(27, 48, 34, 0.1);
  transition: transform 0.3s ease;
}

.logo:hover .site-logo-image {
  transform: scale(1.05);
}

.footer-logo-image {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  padding: 2px;
}

.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a {
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.site-nav a.active,
.site-nav a:hover {
  border-bottom-color: var(--gold);
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-count {
  background: var(--gold);
  color: var(--forest);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-count.pop {
  transform: scale(1.4) rotate(10deg);
  background: var(--forest);
  color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.95);
}

.ripple {
  position: absolute;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-effect 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.btn-primary {
  background: var(--forest);
  color: #fdfbf7;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--forest);
  color: var(--forest);
  background: transparent;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(27, 48, 34, 0.2);
}

.section {
  padding: 80px 0;
}

.hero {
  padding: 90px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}

.hero-visual {
  position: relative;
  height: 550px;
  overflow: hidden;
  border-radius: 44px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
}

.hero-visual:hover .hero-main-photo {
  transform: scale(1.08);
  /* Sophisticated subtle zoom */
}

.hero-decorative {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-circle {
  display: none;
}


.hero-pattern {
  display: none;
}

.hero-card {
  position: absolute;
  bottom: 32px;
  left: 32px;
  background: rgba(249, 247, 242, 0.9);
  color: var(--forest);
  padding: 16px 20px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.hero-highlights strong {
  display: block;
  font-size: 1.1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.lead {
  font-size: 1.1rem;
  color: rgba(26, 26, 26, 0.78);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  /* Symmetry for 5 items */
}

.category-grid .card-link {
  flex: 0 1 calc(33.333% - 16px);
  min-width: 280px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-grid .card-link:hover {
  transform: translateY(-10px) scale(1.02);
}

.category-grid .card {
  height: 100%;
  padding: 35px 25px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(15px);
  border: 1px solid transparent;
  transition: all 0.4s ease;
}

.category-grid .card-link:hover .card {
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(255, 255, 255, 0.75);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.08),
    0 0 15px rgba(212, 175, 55, 0.1);
}

.category-grid .card-link:active {
  transform: translateY(-2px) scale(0.98);
}

.card {
  background: rgba(255, 255, 255, 0.5);
  /* Modern Glass */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
  transform: translateY(-4px);
}

.story {
  background: var(--sand);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.story-visual {
  height: 520px;
  overflow: hidden;
  border-radius: 40px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
}

.story-main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
}

.story-visual:hover .story-main-photo {
  transform: scale(1.1);
}

.note {
  font-size: 0.95rem;
  color: rgba(26, 26, 26, 0.7);
}

.signature-grid {
  display: grid;
  gap: 24px;
}

.signature-image {
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  min-height: 200px;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.signature-card:hover .signature-image {
  transform: scale(1.05) translateY(-5px);
}

.signature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.signature-card p {
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 20px;
}

.signature-image.alt {
  background: url('../img/plateau_constantine.png') no-repeat center 45%;
  background-size: cover;
}

.text-link {
  color: var(--forest);
  font-weight: 600;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
}

.bio {
  background: transparent;
}

.bio-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(15px);
  padding: 40px;
  border-radius: 32px;
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.bio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.bio-image {
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.6), rgba(74, 103, 103, 0.85));
  border-radius: 28px;
  height: 400px;
  box-shadow: var(--shadow);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(27, 48, 34, 0.1);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: #fff;
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.contact-card {
  background: #fff;
  padding: 28px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.map-placeholder {
  min-height: 280px;
  border-radius: 28px;
  background: repeating-linear-gradient(135deg, rgba(74, 103, 103, 0.8), rgba(74, 103, 103, 0.8) 12px, rgba(212, 175, 55, 0.2) 12px, rgba(212, 175, 55, 0.2) 24px);
  display: grid;
  place-items: center;
  color: #fdfbf7;
  font-weight: 600;
  text-align: center;
}

.site-footer-minimal {
  background: var(--forest);
  color: #fff;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.footer-simple {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-simple p {
  margin: 0;
  opacity: 0.6;
  font-size: 0.85rem;
  text-align: center;
}

.footer-links-minimal {
  display: flex;
  gap: 24px;
}

.footer-links-minimal a {
  font-size: 0.85rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  font-weight: 500;
}

.footer-links-minimal a:hover,
.footer-links-minimal a.active {
  opacity: 1;
  color: var(--gold);
}

/* About Page Specifics */
.about-hero {
  padding-top: 80px;
  background: var(--sand);
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-info-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.info-block h3 {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-block p {
  font-size: 0.95rem;
  margin-bottom: 6px;
  opacity: 0.85;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 600px;
  /* Fixed high-end portrait height */
  overflow: hidden;
  border-radius: 40px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.map-link-overlay {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.about-store-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.map-link-overlay:hover .about-store-photo {
  transform: scale(1.15);
  /* More pronounced zoom for map click */
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .about-hero {
    padding-top: 40px;
  }
}

@media (max-width: 600px) {
  .footer-simple {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    font-size: 0.75rem;
    flex-wrap: wrap;
  }

  .site-footer-minimal {
    padding: 15px 0;
  }

  .footer-links-minimal {
    gap: 12px;
  }
}

.site-footer {
  display: none;
  /* Old footer no longer used in main flow, but kept just in case of class reuse/legacy */
}

.hero-mini {
  padding-top: 60px;
}

.delivery-notice {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(212, 175, 55, 0.08);
  border-left: 4px solid var(--gold);
  padding: 10px 20px;
  border-radius: 4px 16px 16px 4px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--forest);
  margin-top: 18px;
  animation: slideInLeft 0.5s ease forwards;
}

.delivery-notice strong {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.8rem;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero-mini-visual {
  height: 220px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(27, 48, 34, 0.95), rgba(212, 175, 55, 0.35));
}

.filters-row-clean {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 200px;
}

.search-box input {
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid rgba(27, 48, 34, 0.1);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.category-filter select {
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid rgba(27, 48, 34, 0.1);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.results-count {
  font-weight: 600;
  color: var(--forest);
  opacity: 0.7;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .filters-row-clean {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

.results {
  display: flex;
  align-items: flex-end;
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(27, 48, 34, 0.04);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(212, 175, 55, 0.12);
  /* Subtle Gold border */
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.12);
  border-color: var(--gold);
}

.product-image {
  height: 240px;
  position: relative;
  overflow: hidden;
  background: var(--sand);
}

.product-image-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image-media {
  transform: scale(1.08);
  /* Zoom on hover */
}

/* Floating Luxury Badge over image */
.product-badge-luxury {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--gold);
  color: #fff;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 5;
}

.product-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
  gap: 12px;
  background: linear-gradient(to bottom, #fff, #fff9f0);
  /* Elegant subtle gradient */
}

.product-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin: 0;
  line-height: 1.3;
  color: var(--forest);
  height: 2.6em;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-category-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: -5px;
}

.product-price-lux {
  font-size: 1.3rem;
  color: var(--forest);
  font-weight: 800;
  margin: 10px 0;
}

.product-body h3 {
  font-size: 1rem;
  margin: 0 0 8px 0;
  height: 1.25em;
  /* Strict 1-line height for perfect symmetry */
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.product-body p {
  display: none;
  /* Hide descriptions in grid for maximum vertical symmetry and 'short writing' */
}

.product-body strong {
  display: block;
  margin-bottom: 12px;
  color: var(--forest);
  font-size: 1.1rem;
}

.product-body .price-row {
  margin-top: auto;
  padding-top: 15px;
}

.tag {
  background: rgba(212, 175, 55, 0.2);
  color: var(--forest);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  align-items: center;
}

.product-gallery {
  display: grid;
  gap: 14px;
}

.product-gallery .gallery-main {
  height: 360px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--sand);
  box-shadow: var(--shadow);
}

.gallery-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 12px;
}

.gallery-thumb {
  height: 88px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(74, 103, 103, 0.18);
  box-shadow: inset 0 0 0 2px transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-thumb:hover {
  transform: translateY(-2px);
}

.gallery-thumb:focus-visible {
  outline: 3px solid rgba(27, 48, 34, 0.2);
  outline-offset: 3px;
}

.gallery-thumb.is-active {
  box-shadow: inset 0 0 0 3px var(--gold);
}

.gallery-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-thumb:hover .gallery-thumb-image,
.gallery-thumb.is-active .gallery-thumb-image {
  opacity: 1;
  transform: scale(1.03);
}

.price-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.price {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--forest);
}

.product-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-meta {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.accords {
  background: var(--sand);
}

.accords-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 32px;
}

.cart-items {
  display: grid;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.cart-item-image {
  height: 80px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--sand);
}

.cart-item-image-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cart-item input {
  width: 60px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(27, 48, 34, 0.2);
}

.cart-summary {
  background: #fff;
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  height: fit-content;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin: 16px 0;
}

.checkout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.order-form {
  background: #fff;
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(27, 48, 34, 0.2);
  font-family: inherit;
  font-size: 1rem;
  /* Better for mobile, prevents zoom on focus */
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.confirmation {
  text-align: center;
  background: #fff;
  padding: 60px 30px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.confirmation-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(27, 48, 34, 0.12);
  color: var(--forest);
  margin-bottom: 20px;
  font-weight: 600;
}

.order-number {
  font-size: 2rem;
  letter-spacing: 2px;
  color: var(--forest);
  margin: 16px 0 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-wrap {
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 0;
  }

  .site-nav {
    display: none;
  }

  .nav-wrap .logo {
    font-size: 1rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .signature-card {
    grid-template-columns: 1fr;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .product-gallery .gallery-main {
    height: 300px;
  }
}

@media (max-width: 600px) {
  body {
    padding-bottom: 80px;
    /* For sticky mobile nav */
  }

  .top-bar {
    font-size: 0.7rem;
    padding: 6px 0;
    letter-spacing: 0.5px;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 4px 0;
    /* Mini spacing */
    border-bottom: 1px solid rgba(27, 48, 34, 0.05);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Faster, smoother slide */
  }

  .site-header.header-hidden {
    transform: translateY(-100%);
    /* Slides completely out of view */
  }

  .nav-wrap {
    justify-content: center !important;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .logo-text {
    display: block;
    /* Restore name */
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--forest);
  }

  .site-logo-image {
    width: 36px;
    /* Ultra thin */
    height: 36px;
  }

  .logo-text {
    font-size: 0.85rem;
  }

  .nav-wrap {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 16px;
    flex-wrap: nowrap;
  }

  .site-nav {
    display: none !important;
  }

  .site-logo-image {
    width: 68px;
    height: 68px;
  }

  .nav-wrap .btn,
  .nav-wrap .cart-link {
    display: none;
  }

  /* STRICT 2-PRODUCT MATRIX - Mobile Optimized */
  .product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 4px;
  }

  .product-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    align-items: stretch;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(27, 48, 34, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  }

  .signature-card {
    grid-template-columns: 1fr !important;
    padding: 24px !important;
  }

  .signature-image {
    min-height: 240px !important;
  }

  .signature-card h3 {
    font-size: 1.5rem;
  }

  .product-body {
    padding: 8px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex: 1 !important;
  }

  .product-body h3 {
    font-size: 0.8rem !important;
    height: 1.2em !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    line-clamp: 1 !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    margin: 0 0 4px 0 !important;
  }

  .product-body {
    padding: 12px;
    gap: 8px;
    text-align: center;
  }

  .product-body h3 {
    font-size: 0.85rem;
    height: 2.6rem;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.3;
  }

  .product-body .price {
    font-size: 1rem;
    color: var(--gold);
    font-weight: 700;
  }

  .product-body .btn {
    width: 100%;
    padding: 8px 4px;
    font-size: 0.7rem;
    border-radius: 8px;
  }

  /* Compact Filters Row */
  .filters {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: transparent;
    box-shadow: none;
    margin-bottom: 15px;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filters>div {
    flex: 0 0 auto;
    min-width: 120px;
  }

  .filters label {
    font-size: 0.7rem;
    margin-bottom: 4px;
  }

  .filters select {
    padding: 8px;
    font-size: 0.85rem;
  }

  .results {
    font-size: 0.85rem;
    padding: 5px 0;
    border-bottom: 1px solid rgba(27, 48, 34, 0.1);
    margin-bottom: 15px;
  }

  .checkout-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px dashed rgba(27, 48, 34, 0.1);
  }

  .checkout-section h2 {
    font-size: 1.5rem;
    color: var(--forest);
  }

  /* Better Mobile Panier & Combined Checkout */
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cart-item {
    grid-template-columns: 80px 1fr !important;
    grid-template-areas:
      "img info"
      "img actions" !important;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(27, 48, 34, 0.05);
  }

  .cart-item-image {
    grid-area: img;
    height: 80px;
    width: 80px;
    margin: 0;
  }

  .cart-item-actions {
    grid-area: actions;
    justify-content: flex-start;
    padding-top: 5px;
  }

  .cart-summary {
    position: static;
    /* Let it flow naturally on combined page */
    margin-top: 20px;
    background: var(--sand);
    border: none;
    box-shadow: none;
    border-radius: 28px;
    padding: 30px;
  }

  .checkout-section {
    margin-top: 30px;
    padding-top: 30px;
  }

  .mobile-nav {
    display: flex;
  }

  .mobile-only-call {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--forest);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(27, 48, 34, 0.15);
    flex-shrink: 0;
    position: relative;
    /* For Sonar Waves */
  }

  .mobile-only-call::before,
  .mobile-only-call::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
    opacity: 0.6;
    animation: sonarWave 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-only-call::after {
    animation-delay: 1.5s;
  }

  .mobile-only-call svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    animation: iconShake 5s infinite;
  }

  @keyframes sonarWave {
    0% {
      transform: scale(1);
      opacity: 0.6;
    }

    100% {
      transform: scale(1.8);
      opacity: 0;
    }
  }

  @keyframes iconShake {

    0%,
    88%,
    100% {
      transform: rotate(0);
    }

    90% {
      transform: rotate(-15deg);
    }

    92% {
      transform: rotate(15deg);
    }

    94% {
      transform: rotate(-10deg);
    }

    96% {
      transform: rotate(10deg);
    }
  }

  /* App Cards Style */
  .card,
  .product-card,
  .signature-card {
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(27, 48, 34, 0.06);
    border: none;
    background: #fff;
  }

  .product-grid,
  .category-grid,
  .filters {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-gallery .gallery-main {
    height: 240px;
  }

  .gallery-thumb {
    height: 72px;
  }

  .cart-item {
    grid-template-columns: 70px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .cart-item-image {
    height: 70px;
  }

  .cart-item-actions {
    grid-column: 2 / -1;
    justify-content: space-between;
    margin-top: 4px;
  }

  /* Touch optimizations */
  .btn {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .top-bar {
    display: none;
    /* Cleaner app UI */
  }
}

.floating-item {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--gold);
  border-radius: 50%;
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  opacity: 0;
}

@keyframes flyToCart {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(var(--dx), var(--dy)) scale(0.2);
    opacity: 0;
  }
}

.mobile-only {
  display: none;
}

@media (max-width: 600px) {
  .mobile-only {
    display: block;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
