:root {
  --nav-total-height: 92px;
  --black: #050505;
  --ink: #111111;
  --dark: #161616;
  --grey: #6f6f6f;
  --soft: #efefed;
  --line: rgba(0, 0, 0, 0.10);
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
  --max-width: 1180px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Montserrat', Arial, Helvetica, sans-serif;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-total-height);
}

body {
  font-family: var(--sans);
  background: var(--soft);
  color: var(--ink);
  line-height: 1.55;
}

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

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

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

/* NAV */

.main-nav,
.sticky-nav {
  left: 0;
  width: 100%;
  height: var(--nav-total-height);
  z-index: 1000;
}

.main-nav {
  position: absolute;
  top: 0;
}

.sticky-nav {
  position: fixed;
  top: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0);
  transition: opacity .2s ease, visibility 0s linear .2s, box-shadow .2s ease;
}

.sticky-nav.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .12);
  transition: opacity .45s ease, visibility 0s, box-shadow .45s ease;
}

.sticky-nav.compact {
  --nav-total-height: 78px;
}

.nav-flag,
.nav-main {
  background: rgba(255, 255, 255, .98);
}

.nav-stripe {
  display: none;
}

.nav-main {
  height: var(--nav-total-height);
  display: flex;
  align-items: center;
}

.main-nav .container.nav-inner,
.sticky-nav .container.nav-inner {
  width: calc(100% - 40px);
  max-width: none;
  margin-left: 20px;
  margin-right: 20px;
}

.nav-inner {
  min-height: var(--nav-total-height);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.brand-logo {
  width: 136px;
  height: auto;
  max-height: 76px;
  object-fit: contain;
  filter: none !important;
}

.sticky-nav.compact .brand-logo {
  width: 116px;
  max-height: 62px;
}

.nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.8rem, 4vw, 4rem);
  width: auto;
  white-space: nowrap;
  color: var(--ink);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  text-align: center;
}

.nav-links a {
  position: relative;
  padding: .4rem .05rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}

.nav-links a:hover::after,
.nav-links .home-link::after {
  transform: scaleX(1);
}

.menu-toggle {
  position: relative;
  z-index: 3;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 46px;
  height: 46px;
  line-height: 1;
  background: transparent;
  border: 0;
  color: var(--black);
  font-size: 2rem;
  cursor: pointer;
}

/* HERO */

.hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  background: #000;
}

.hero.dragging {
  cursor: grabbing;
}

.slides {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  gap: 0;
  background: #000;
  transition: transform .45s ease;
  will-change: transform;
  touch-action: pan-y;
}

.slide {
  position: relative;
  min-width: calc(100% + 2px);
  flex: 0 0 calc(100% + 2px);
  width: 100%;
  height: 100%;
  margin-right: -2px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.slide img {
  width: calc(100% + 4px);
  max-width: none;
  height: 100%;
  margin-left: -2px;
  object-fit: cover;
  filter: none !important;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
  pointer-events: none;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
}

.slide-overlay .container.hero-content {
  position: relative;
  width: fit-content;
  max-width: min(90vw, 620px);
  margin-left: clamp(105px, 10vw, 180px);
  margin-right: auto;
  padding: 2rem;
  /*padding-top: calc(14vh + 2rem);*/
  transform: translateY(95px);
  color: #fff;
  text-align: left;
  pointer-events: auto;
}

.slide-overlay .container.hero-content::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, .5);
  pointer-events: none;
}

.slide-overlay .container.hero-content > * {
  position: relative;
  z-index: 1;
}

.hero h1,
.hero h1 span {
  display: none;
}

.eyebrow {
  display: block;
  margin-bottom: 1rem;
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
}

.hero p {
  max-width: 38ch;
  margin-bottom: 1.6rem;
  font-size: clamp(.95rem, 1.15vw, 1.05rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, .92);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 1rem 1.5rem;
  border-radius: 0;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #fff;
  color: #111;
  border: 1px solid #fff;
}

.btn-primary:hover {
  background: transparent;
  color: #fff;
}

.btn-secondary {
  background: rgba(0, 0, 0, .18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .75);
}

.btn-secondary:hover {
  background: #fff;
  color: #111;
}

.slide-nav {
  position: absolute;
  top: 54%;
  transform: translateY(-54%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  background: rgba(0, 0, 0, .16);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .25s ease, transform .25s ease;
}

.slide-nav:hover {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-54%) scale(1.04);
}

.slide-nav-prev {
  left: 1.25rem;
}

.slide-nav-next {
  right: 1.25rem;
}

.slider-controls {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
}

.slider-dots {
  display: flex;
  gap: .75rem;
}

.dot {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}

.dot.active {
  background: #fff;
  transform: scale(1.25);
}

.mouse-scroll-down {
  cursor: pointer;
  opacity: .9;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 24px;
  position: relative;
}

.scroll-wheel {
  display: block;
  width: 4px;
  height: 8px;
  border-radius: 8px;
  background: #fff;
  margin: 7px auto;
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(9px);
  }
}

/* SECTIONS */

section {
  padding: 5rem 0;
}

.section-eyebrow {
  display: block;
  text-align: center;
  margin-bottom: .75rem;
  font-size: .78rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 600;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4.6vw, 4.1rem);
  line-height: 1.05;
  margin-bottom: .8rem;
  text-align: center;
  font-weight: 500;
  letter-spacing: -.035em;
  text-transform: none;
  color: var(--ink);
}

.section-title span {
  color: inherit;
}

.section-lead {
  max-width: 58ch;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: #343434;
  font-size: 1rem;
}

/* CHI SIAMO */

#chi-siamo {
  background: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card,
.service-card {
  background: #fff;
  box-shadow: none;
  border-radius: 0;
}

.service-card {
  min-height: 235px;
  padding: 2rem;
  text-align: center;
  display: grid;
  align-content: start;
  justify-items: center;
}

.service-icon {
  color: var(--black);
  margin-bottom: 1rem;
}

.service-icon .material-symbols-outlined {
  font-size: 3.1rem;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48;
}

.service-card h3 {
  margin-bottom: .7rem;
  font-size: .86rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
}

.service-card p {
  color: var(--grey);
  font-size: .94rem;
}

/* COLLEZIONI */

.collections {
  background: linear-gradient(180deg, #f6f6f4 0%, #ededeb 100%);
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 2rem;
}

.collection-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}

.collection-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none !important;
  background: #ddd;
  transition: transform .6s ease;
}

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

.collection-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  min-height: auto;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, .05) 0%,
    rgba(0, 0, 0, .35) 55%,
    rgba(0, 0, 0, .85) 100%
  );
}

.collection-content h3 {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: .75rem;
  color: #fff;
}

.collection-content h3::after {
  display: none;
}

.collection-content p {
  max-width: 34ch;
  color: rgba(255, 255, 255, .9);
  font-size: .94rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.text-link {
  display: none;
}

.highlight-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 180px;
  padding: 1rem 1.5rem;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .75rem;
  font-weight: 600;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}

.highlight-btn:hover {
  background: #fff;
  color: #000;
  border-color: #000;
  transform: translateY(-2px);
}

/* NUMBERS / CONTATTI */

.numbers {
  background: #080808;
  color: #fff;
  text-align: center;
}

.numbers .section-title,
.numbers .section-lead {
  color: #fff;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 2rem;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .16);
}

.number-card {
  background: #080808;
  padding: 2rem;
}

.number-card strong {
  display: block;
  margin-bottom: .35rem;
  color: #fff;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 500;
}

.number-card span {
  color: rgba(255, 255, 255, .72);
}

/* FOOTER */

.footer-site {
  background: #050505;
  color: rgba(255, 255, 255, .82);
  padding: 3.25rem 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo img {
  width: 240px;
  height: auto;
  filter: brightness(0) invert(1) grayscale(1) contrast(3) !important;
}

.footer-column h4 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.footer-column ul {
  list-style: none;
  display: grid;
  gap: .75rem;
}

.footer-column li,
.footer-column a {
  color: rgba(255, 255, 255, .72);
  transition: color .25s ease;
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom-bar {
  background: #000;
  margin-top: 2rem;
  padding: 1.2rem 0;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
  align-items: center;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  color: rgba(255, 255, 255, .62);
  font-size: .9rem;
}

.footer-credit {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .9rem;
  flex-wrap: wrap;
}

.footer-credit-label {
  color: rgba(255, 255, 255, .74);
  font-size: .9rem;
}

.footer-credit-badge img {
  max-height: 40px;
  width: auto;
}

.footer-links a:hover {
  color: #fff;
}

/* RESPONSIVE */

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-credit,
  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 980px) {
  .collections-grid {
    grid-template-columns: 1fr;
  }

  .collection-card {
    min-height: 460px;
  }
}

@media (max-width: 900px) {
  .services-grid,
  .numbers-grid {
    grid-template-columns: 1fr;
  }

  .slide-overlay .container.hero-content {
    width: min(420px, calc(100% - 120px));
    margin-left: clamp(90px, 9vw, 130px);
  }
}

@media (max-width: 760px) {
  :root {
    --nav-total-height: 86px;
  }

  .main-nav .container.nav-inner,
  .sticky-nav .container.nav-inner {
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
  }

  .brand-logo {
    width: 105px;
    max-height: 65px;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-total-height);
    left: -20px;
    right: -20px;
    width: calc(100% + 40px);
    transform: none;
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.25rem 20px;
    background: #fff;
    box-shadow: 0 16px 30px rgba(0, 0, 0, .12);
  }

  .nav-links.open {
    display: flex;
  }

  .slide-nav {
    width: 42px;
    height: 42px;
  }

  .slide-nav-prev {
    left: .75rem;
  }

  .slide-nav-next {
    right: .75rem;
  }

  .slide-overlay {
    align-items: flex-end;
    justify-content: center;
    padding: calc(var(--nav-total-height) + 1rem) 4.5rem 9.75rem;
  }

  .slide-overlay .container.hero-content {
    width: fit-content;
    max-width: calc(100vw - 7rem);
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem;
    transform: none;
    text-align: center;
  }

  .hero-content p {
    max-width: 34ch;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: nowrap;
    gap: .5rem;
  }

  .hero-actions .btn,
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: auto;
    min-width: 0;
    max-width: none;
    padding: .8rem .9rem;
    font-size: .65rem;
    letter-spacing: .06em;
    white-space: nowrap;
  }

  .collections-grid {
    grid-template-columns: 1fr;
  }

  .collection-card {
    min-height: 430px;
  }

  .collection-content {
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  section {
    padding: 4rem 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom,
  .footer-legal,
  .footer-credit {
    text-align: center;
    justify-content: center;
  }

  .footer-legal {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .slide-overlay {
    padding-left: 4rem;
    padding-right: 4rem;
    padding-bottom: 10rem;
  }

  .slide-overlay .container.hero-content {
    padding: 1.25rem;
    transform: none;
  }

  .hero-actions .btn,
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    max-width: none;
    padding: .72rem .72rem;
    font-size: .6rem;
  }
}
/* ===== SHOP / NAV OPTIMIZATION ===== */
.menu-toggle { display: none; }
.cart-link {
  position: relative;
  z-index: 4;
  margin-left: auto;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-link .material-symbols-outlined { font-size: 1.7rem; font-variation-settings: 'FILL' 0, 'wght' 300; }
.cart-count {
  position: absolute;
  top: 4px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  line-height: 1;
}
.cart-count.is-empty { opacity: .45; }

.shop-page { background: #f5f5f2; min-height: 100vh; }
.shop-page .main-nav { position: relative; background: #fff; }
.shop-main { padding: 4.5rem 0 6rem; }
.shop-header { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.shop-title { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 500; line-height: 1; margin-bottom: 1rem; }
.shop-copy { color: var(--grey); }
.catalog-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: .7rem; margin: 0 0 2.5rem; }
.filter-btn {
  border: 1px solid #cfcfca; background: transparent; padding: .8rem 1.2rem; cursor: pointer;
  font: 600 .72rem/1 var(--sans); text-transform: uppercase; letter-spacing: .1em;
}
.filter-btn.active, .filter-btn:hover { background: #111; color: #fff; border-color: #111; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.product-card { background: #fff; border: 1px solid rgba(0,0,0,.08); display: flex; flex-direction: column; }
.product-image-wrap { aspect-ratio: 4 / 5; overflow: hidden; background: #e9e9e5; }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover img { transform: scale(1.025); }
.product-info { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.product-category { color: var(--grey); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: .45rem; }
.product-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; margin-bottom: .4rem; }
.product-description { color: var(--grey); font-size: .88rem; margin-bottom: 1rem; }
.product-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.product-price { font-weight: 600; }
.add-cart-btn, .checkout-btn, .continue-btn {
  border: 1px solid #111; background: #111; color: #fff; padding: .85rem 1rem; cursor: pointer;
  font: 600 .68rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em;
}
.add-cart-btn:hover, .checkout-btn:hover { background: #fff; color: #111; }
.add-cart-btn.added { background: #fff; color: #111; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
.cart-items { display: grid; gap: 1px; background: rgba(0,0,0,.08); border: 1px solid rgba(0,0,0,.08); }
.cart-item { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; background: #fff; padding: 1.1rem; }
.cart-item img { width: 110px; height: 130px; object-fit: cover; background: #eee; }
.cart-item h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.cart-item-meta { color: var(--grey); font-size: .82rem; text-transform: capitalize; }
.quantity-control { display: inline-flex; align-items: center; border: 1px solid #ddd; margin-top: .7rem; }
.quantity-control button { width: 34px; height: 34px; border: 0; background: #fff; cursor: pointer; font-size: 1rem; }
.quantity-control span { min-width: 34px; text-align: center; font-size: .85rem; }
.cart-item-side { display: grid; justify-items: end; gap: .7rem; }
.remove-item { border: 0; background: transparent; color: #777; text-decoration: underline; cursor: pointer; font: inherit; font-size: .78rem; }
.cart-summary { background: #fff; padding: 1.5rem; border: 1px solid rgba(0,0,0,.08); position: sticky; top: 100px; }
.cart-summary h2 { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; margin-bottom: 1rem; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid #eee; }
.summary-total { font-weight: 700; font-size: 1.1rem; }
.checkout-btn { width: 100%; margin-top: 1.2rem; padding: 1rem; }
.checkout-note { margin-top: .8rem; color: var(--grey); font-size: .76rem; line-height: 1.5; }
.empty-cart { padding: 3rem 1.5rem; text-align: center; background: #fff; }
.empty-cart p { color: var(--grey); margin: .5rem 0 1.4rem; }
.continue-btn { display: inline-flex; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}

@media (max-width: 760px) {
  .main-nav .container.nav-inner,
  .sticky-nav .container.nav-inner {
    width: calc(100% - 24px);
    margin-left: 12px;
    margin-right: 12px;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
  }
  .menu-toggle {
    grid-column: 1;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 48px;
    height: 48px;
    margin: 0;
    font-size: 0;
  }
  .menu-toggle .material-symbols-outlined { font-size: 1.8rem; transition: transform .2s ease; }
  .menu-toggle.is-open .material-symbols-outlined { transform: rotate(90deg); }
  .brand {
    grid-column: 2;
    justify-self: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .cart-link { grid-column: 3; justify-self: end; margin: 0; }
  .nav-links {
    top: calc(var(--nav-total-height) - 1px);
    left: -12px;
    right: -12px;
    width: calc(100% + 24px);
    display: flex;
    padding: .8rem 18px 1.2rem;
    gap: 0;
    background: rgba(255,255,255,.99);
    border-top: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 18px 35px rgba(0,0,0,.13);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
  }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: .85rem .25rem; }
  .nav-links a::after { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .shop-main { padding-top: 3rem; }
  .cart-item { grid-template-columns: 82px minmax(0, 1fr); }
  .cart-item img { width: 82px; height: 100px; }
  .cart-item-side { grid-column: 2; justify-items: start; grid-template-columns: auto auto; align-items: center; }
}

/* ===== RDA PHP SHOP ===== */
.product-form { margin-top: auto; }
.product-options, .cart-variant-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: .8rem 0 1rem; }
.product-options label, .cart-variant-controls label, .checkout-form label { display: grid; gap: .4rem; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.product-options select, .cart-variant-controls select, .checkout-form input, .checkout-form textarea { width: 100%; border: 1px solid rgba(0,0,0,.16); background: #fff; color: #111; font: inherit; font-size: .9rem; letter-spacing: normal; text-transform: none; padding: .8rem .9rem; outline: none; }
.product-options select:focus, .cart-variant-controls select:focus, .checkout-form input:focus, .checkout-form textarea:focus { border-color: #000; }
.product-feedback { min-height: 1.25rem; margin-top: .65rem; color: #555; font-size: .78rem; }
.product-feedback.is-error, .checkout-message.is-error { color: #a11515; }
.add-cart-btn:disabled { opacity: .55; cursor: wait; }
.cart-item.is-loading { opacity: .5; pointer-events: none; }
.cart-item-main { min-width: 0; }
.checkout-btn { display: flex; width: 100%; }
.checkout-btn.is-disabled { opacity: .4; pointer-events: none; }
.checkout-main { min-height: 75vh; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
.checkout-panel { background: #fff; border: 1px solid rgba(0,0,0,.08); padding: clamp(1.25rem, 3vw, 2.2rem); }
.checkout-panel > h2, .payment-box h2 { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; margin-bottom: 1rem; }
.checkout-form { display: grid; gap: 1rem; }
.form-grid { display: grid; gap: 1rem; }
.form-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three-col { grid-template-columns: minmax(0, 1.4fr) minmax(90px, .5fr) minmax(110px, .6fr); }
.optional { color: var(--grey); font-weight: 400; text-transform: none; letter-spacing: normal; }
.checkout-message { min-height: 1.5rem; font-size: .9rem; }
.payment-box { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(0,0,0,.1); }
.payment-box p { color: var(--grey); margin-bottom: 1.2rem; }
.config-warning { background: #f4f4f1; padding: 1.5rem; border: 1px solid rgba(0,0,0,.1); }
.config-warning code { font-family: monospace; }
.checkout-summary { top: 100px; }
.checkout-line { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.checkout-line div { display: grid; gap: .25rem; }
.checkout-line span { color: var(--grey); font-size: .78rem; }
.success-wrap { max-width: 780px; }
.success-card { background: #fff; border: 1px solid rgba(0,0,0,.08); padding: clamp(2rem, 6vw, 4.5rem); text-align: center; }
.success-icon { font-size: 3.2rem; margin-bottom: 1rem; }
.success-card p { max-width: 58ch; margin: .8rem auto; color: #444; }
.success-actions { display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.text-action { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}

@media (max-width: 640px) {
  .product-options, .cart-variant-controls, .form-grid.two-col, .form-grid.three-col { grid-template-columns: 1fr; }
  .checkout-panel { padding: 1.15rem; }
}
.checkout-btn { align-items: center; justify-content: center; text-align: center; }

/* Cart AJAX transitions */
.cart-item {
  transition: opacity .2s ease, transform .2s ease, max-height .22s ease, padding .22s ease;
  max-height: 260px;
}
.cart-item.is-loading { opacity: .55; }
.cart-item.is-removing {
  opacity: 0;
  transform: translateX(12px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  pointer-events: none;
}
.quantity-control button:disabled,
.remove-item:disabled,
.cart-variant-controls select:disabled { cursor: wait; }

/* ===== Cart spacing / actions ===== */
.cart-items { display: block; background: transparent; border: 0; }
.cart-item { margin: 0 0 .8rem; border: 1px solid rgba(0,0,0,.08); }
.cart-item:first-child { margin-top: 0; }
.cart-item:last-child { margin-bottom: 0; }
.remove-item { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; }
.remove-item .material-symbols-outlined { font-size: 1rem; font-variation-settings: 'FILL' 0, 'wght' 300; }
.continue-shopping-btn { display: flex; width: 100%; align-items: center; justify-content: center; margin-top: .7rem; padding: 1rem; border: 1px solid #111; background: #fff; color: #111; font: 600 .68rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; transition: background .2s ease,color .2s ease; }
.continue-shopping-btn:hover { background: #111; color: #fff; }
