:root{
  --text: rgba(35,22,30,.92);
  --muted: rgba(35,22,30,.70);
  --muted2: rgba(35,22,30,.56);
  --border: rgba(35,22,30,.14);
  --maxw: 1120px;
  --shadow: 0 14px 34px rgba(35,22,30,.14);
  --radius: 18px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
*{box-sizing:border-box}
html,body{
  background: url("../img/site_bg.png") center center / cover no-repeat fixed;
  padding: 0;
  margin: 0;
height:100%
}

body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  line-height:1.6;
  background: url("../img/bg.png") center top / cover no-repeat fixed;
}

/* Mobile background */
@media (max-width: 720px){
  body{ background: url("../img/bg_mobile.png") center top / cover no-repeat fixed; }
}
a{color:inherit}
img{max-width:100%;display:block}
.container{width:min(var(--maxw), calc(100% - 32px)); margin:0 auto;}
.header{
  position: sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.38);
  background-image: linear-gradient(180deg, rgba(255,255,255,.52), rgba(255,255,255,.26));
  border-bottom: 1px solid rgba(35,22,30,.10);
}
.nav{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding: 10px 0;
}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none;}
.brand img{height:46px; width:auto;}
.brand .txt{font-weight:900}
.brand small{display:block; margin-top:-2px; color:var(--muted2); font-weight:700}
.menu{display:flex; align-items:center; gap:6px; flex-wrap:wrap; justify-content:flex-end;}
.menu a{ text-decoration:none; color:var(--muted); font-weight:800; padding:8px 10px; border-radius:999px;}
.menu a:hover{background:rgba(35,22,30,.05); color:var(--text)}
.menu a.active{background:rgba(35,22,30,.08); color:var(--text)}
.badge{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:22px; height:22px; padding:0 7px; border-radius:999px;
  background: rgba(255,255,255,.85); border:1px solid rgba(35,22,30,.14);
  font-size:12px; font-weight:900;
}

.section{padding: 18px 0 26px;}
.panel{
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(35,22,30,.10);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.h1{font-size: clamp(26px, 3.4vw, 42px); line-height:1.1; margin: 10px 0;}
.lead{color:var(--muted); margin: 0 0 12px;}
.notice{
  border-radius: 16px;
  border: 1px dashed rgba(35,22,30,.18);
  background: rgba(255,255,255,.60);
  padding: 12px 14px;
  color: var(--muted);
}

/* button image */
.btn{
  position:relative;
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 18px; min-height:44px;
  border:0; background:transparent;
  color:#1f1420; font-weight:900; text-decoration:none;
  cursor:pointer; letter-spacing:.2px;
}
.btn::before{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.28));
  border: 1px solid rgba(35,22,30,.12);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  z-index:-1;
  filter: drop-shadow(0 10px 18px rgba(35,22,30,.18));
}
.btn:hover{transform: translateY(-1px);}
@media (prefers-reduced-motion: reduce){ .btn:hover{transform:none;} }

/* shop list */
.filters{display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:10px;}
.filters input, .filters select{
  padding: 10px 12px; border-radius: 14px;
  border:1px solid rgba(35,22,30,.16);
  background:rgba(255,255,255,.72);
  min-height:44px;
}
.list{margin:0; padding:0; list-style:none;}
.item{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(35,22,30,.10);
}
.item:first-child{border-top:none;}
.thumb{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,.10);
  height: 220px;
  background: transparent;
}
.thumb img.cover{
  position:absolute;
  inset: 16px;                 /* padding so image sits “inside” the card */
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  object-fit: cover;
  border-radius: 14px;
  z-index: 1;                  /* image UNDER the frame */
}

.thumb::after{
  content:"";
  position:absolute;
  inset:0;
  /* Frame image intentionally optional. If card frames are later added,
     this can be replaced with a background-image. */
  background: none;
  z-index: 2;                  /* frame ON TOP of the image */
  pointer-events:none;
}

.meta{
  color: var(--muted2);
  font-weight:900; font-size:12px;
  text-transform:uppercase; letter-spacing:.6px;
  display:flex; gap:10px; flex-wrap:wrap; margin-bottom:8px;
}
.price{font-weight:900; font-size:18px;}
.price-was{color: var(--muted2); text-decoration: line-through; font-weight:900; margin-right:6px;}
.price-now{font-weight:900;}
.actions{display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:10px;}

.split{display:grid; grid-template-columns: 1fr .9fr; gap:14px;}
@media (max-width: 900px){ .split{grid-template-columns: 1fr;} }

.table{width:100%; border-collapse:collapse;}
.table th, .table td{padding:12px 10px; border-top:1px solid rgba(35,22,30,.10); text-align:left;}
.table th{color:var(--muted2); font-size:12px; text-transform:uppercase; letter-spacing:.6px;}

.footer{margin-top:18px; padding:18px 0 26px; border-top:1px solid rgba(35,22,30,.10); background: rgba(255,255,255,.56);}
.footer small{color:var(--muted2);}

@media (max-width: 720px){
  .item{grid-template-columns:1fr;}
  .thumb{height: 240px;}
  .menu{gap:2px;}
  .menu a{padding:7px 9px;}
}



/* --- Social links (prevent giant icons) --- */
.footer .social-links{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:12px;
}
.footer .social-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:14px;
  border:1px solid rgba(35,22,30,.12);
  background: rgba(255,255,255,.70);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
.footer .social-links svg,
.footer .social-links img{
  width:22px !important;
  height:22px !important;
  max-width:22px !important;
  max-height:22px !important;
  fill: rgba(35,22,30,.92);
  display:block;
}
.footer svg, .footer img{ max-width:100%; height:auto; }

/* If any legacy/floating social elements exist, clamp them */
.social, .social-icons, .social-links-fixed{
  max-width: 100%;
}
.social img, .social-icons img, .social-links-fixed img,
.social svg, .social-icons svg, .social-links-fixed svg{
  width:32px !important;
  height:32px !important;
  max-width:32px !important;
  max-height:32px !important;
}




/* Forms */
.label{
  display:block;
  margin:10px 0 6px;
  font-weight:700;
  color: var(--ink);
}
.input{
  width:100%;
  box-sizing:border-box;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(35,22,30,.16);
  background:rgba(255,255,255,.72);
  min-height:44px;
  outline:none;
}
.input:focus{
  border-color: rgba(35,22,30,.35);
  box-shadow: 0 0 0 3px rgba(208,140,88,.18);
}

/* Reviews */
.review-images{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}
.review-images img{
  width:120px;
  height:120px;
  object-fit:cover;
  border-radius:16px;
  border:1px solid rgba(35,22,30,.12);
  background: rgba(255,255,255,.7);
}


/* --- Produk: wys volle beeld (geen cropping) --- */
.thumb img.detail-image{
  position:absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  object-fit: contain;          /* IMPORTANT: no cropping */
  background: rgba(255,255,255,.18);
  border-radius: 14px;
}
/* --- Image-based navbar (navbar.png + button images) --- */
.nav-img{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 0;
  min-height: 64px;
  background: url("../img/navbar.png") center / 100% 100% no-repeat;
  border-radius: 14px;
}

.nav-spacer{
  /* The left area (logo/ornament is already baked into navbar.png) */
  width: 260px;
  min-width: 200px;
  height: 1px;
}

.nav-buttons{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 10px;
  padding-right: 10px;
  flex-wrap: nowrap;
}

.nav-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  position:relative;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
}

.nav-btn-img{
  height: 46px;
  width: auto;
  filter: drop-shadow(0 6px 10px rgba(35,22,30,.18));
}

.nav-mandjie .badge-on-btn{
  position:absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 11px;
}

.nav-fb-img{
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 6px 10px rgba(35,22,30,.18));
}

/* Small screens: allow horizontal scroll if needed */
@media (max-width: 720px){
  .nav-spacer{ width: 120px; min-width: 90px; }
  .nav-buttons{
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .nav-buttons::-webkit-scrollbar{ display:none; }
  .nav-btn-img{ height: 42px; }
}

/* Extra small screens: avoid cramped navbar by stacking & wrapping */
@media (max-width: 520px){
  .nav-img{
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 0 10px;
  }
  .nav-spacer{ display:none; }
  .nav-buttons{
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 6px 10px 0;
    gap: 6px;
  }
  .nav-btn-img{ height: 40px; }
  .nav-fb-img{ width: 30px; height: 30px; }
}



/* Become an Agent button in nav */
.nav-agent-btn{
  height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(35,22,30,.18);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 22px rgba(35,22,30,.12);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .2px;
  color: rgba(35,22,30,.92);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-transform: none;
  white-space: nowrap;
}

/* Agent nav images */
.nav-agent-img{
  height: 42px;
  width: auto;
  display:block;
}

.nav-agent-logout-img{
  height: 42px;
  width: auto;
  display:block;
}

/* Agent login button in nav (smaller) */
.nav-agent-login-img{
  height: 34px;
  width: auto;
  display:block;
}

@media (max-width: 720px){
  .nav-agent-login-img{ height: 30px; }
}
.nav-agent-btn:active{ transform: translateY(1px); }
@media (max-width: 720px){
  .nav-agent-btn{ height: 40px; font-size: 12px; padding: 0 10px; border-radius: 14px; }
}


/* Admin button in nav */
.nav-admin-img{
  height: 34px;
  width: auto;
  display:block;
}
@media (max-width: 720px){
  .nav-admin-img{ height: 30px; }
}



/* ===== UI polish: readability + consistent button sizing (Buddy Development Studio patch) ===== */
body{ font-size: 16px; }
.panel{
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(8px);
}
.notice{ background: rgba(255,255,255,.82); }

.btn{
  font-size: 14px;
  line-height: 1.1;
  min-height: 46px;
}
.btn:active{ transform: translateY(1px); }

.actions .btn{
  min-width: 160px;
}
@media (max-width: 720px){
  .actions{ gap:8px; }
  .actions .btn{
    width: 100%;
    min-width: 0;
  }
}

/* Make nav image-buttons have consistent hit-area */
.nav-btn{
  min-height: 46px;
  padding: 2px 2px;
}

/* Cart/table mobile friendliness */
.table-wrap{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
}
@media (max-width: 720px){
  .table th, .table td{ padding: 10px 8px; }
  .table th, .table td{ white-space: nowrap; }
}

/* Form fields */
textarea.input{ min-height: 120px; resize: vertical; padding-top: 10px; }
.qty-input{ width: 90px; }
.agent-login-btn{ display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }




/* ===== CLEAN TEXT NAVBAR ===== */

.nav-clean{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:20px 30px;
  background:rgba(255,255,255,0.95);
  border-radius:18px;
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
  flex-wrap:wrap;
}

.nav-burger{
  display:none;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  border-radius:14px;
  border:1px solid rgba(35,22,30,.15);
  background:rgba(255,255,255,0.92);
  font-weight:900;
  font-size:22px;
  cursor:pointer;
}

.nav-links{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  flex:1;
  flex-wrap:wrap;
}

.nav-clean a{
  text-decoration:none;
  font-weight:800;
  font-size:20px;
  padding:14px 22px;
  border-radius:14px;
  transition:all .2s ease;
  color:#2a1c23;
}

.nav-clean a:hover{
  background:rgba(35,22,30,0.08);
  transform:translateY(-2px);
}

@media (max-width:800px){
  .nav-clean{
    justify-content:center;
  }
  .nav-clean a{
    font-size:17px;
    padding:12px 18px;
  }
}

/* Mobile burger nav */
@media (max-width:720px){
  .nav-clean{
    padding:14px 16px;
    justify-content:space-between;
  }
  .nav-burger{ display:inline-flex; }
  .nav-links{ display:none; width:100%; flex-direction:column; align-items:stretch; }
  .nav-clean.open .nav-links{ display:flex; }
  .nav-links a{
    width:100%;
    /* Ensure even flex-links (eg. Mandjie + badge) are truly centered */
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    font-size:18px;
    padding:12px 16px;
  }
}

/* Shop page top actions (Gaan na mandjie / Word 'n Agent) */
.shop-top-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:16px;
}

@media (max-width:720px){
  .shop-top-actions{
    justify-content:space-between;
    flex-wrap:nowrap;
    width:100%;
  }
  .shop-top-actions .btn{
    flex:1;
    padding:12px 12px;
    font-size:16px;
  }
}


/* ===== GLOBAL TEXT BUTTON STYLE ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:18px;
  padding:14px 26px;
  border-radius:14px;
  background:rgba(255,255,255,0.9);
  border:1px solid rgba(35,22,30,.15);
  text-decoration:none;
  transition:all .2s ease;
}

.btn:hover{
  background:rgba(35,22,30,.08);
  transform:translateY(-2px);
}



/* Address suggestions dropdown */
.suggestions{
  position:absolute;
  left:0; right:0;
  top: calc(100% + 6px);
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(35,22,30,.12);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  overflow:hidden;
  z-index: 999;
}
.suggestion-item{
  width:100%;
  text-align:left;
  padding: 12px 12px;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(35,22,30,.08);
  cursor:pointer;
  font-weight:700;
}
.suggestion-item:first-child{ border-top: 0; }
.suggestion-item:hover{ background: rgba(35,22,30,.06); }




}


/* Three-column layout for Mandjie + Checkout + Kontak */


@media (max-width: 1100px){
  
}


/* Cart layout */
.triple{
  display:grid;
  grid-template-columns: 1.4fr 1fr 0.9fr;
  gap:18px;
  align-items:start;
}
.triple .panel{width:100%;}

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


/* Cart counter badge in navbar */
.cart-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  margin-left: 8px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  background: rgba(35,22,30,0.10);
  border: 1px solid rgba(35,22,30,0.18);
}

.nav-clean a.nav-mandjie-link{ display:inline-flex; align-items:center; }


/* Collapsible panel (mobile friendly) */
.details-summary{
  cursor:pointer;
  font-weight:700;
  list-style:none;
}
.details-summary::-webkit-details-marker{display:none;}
.cart-contact[open] .details-summary{margin-bottom:10px;}

@media (max-width: 720px){
  /* Mandjie: mobile accordion layout */
  .cart-accordion{display:flex; flex-direction:column; gap:12px;}
  .cart-acc{width:100%;}
  .cart-acc .details-body{margin-top:10px;}

  /* Make accordion headers look like full-width bars + add down arrow */
  .cart-acc > .details-summary,
  .cart-contact > .details-summary{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    padding:12px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(35,22,30,0.12);
  }
  .cart-acc > .details-summary::after,
  .cart-contact > .details-summary::after{
    content:"▾";
    font-size:18px;
    line-height:1;
    opacity:0.75;
    transform: translateY(-1px);
    transition: transform .2s ease;
  }
  .cart-acc[open] > .details-summary::after,
  .cart-contact[open] > .details-summary::after{
    transform: rotate(180deg);
  }

  .actions{flex-direction:column;}
  .actions .btn{width:100%;}

  /* Cart items: stacked cards (no horizontal scroll) */
  .cart-items{display:flex; flex-direction:column; gap:10px;}
  .cart-item{
    padding:12px;
    border-radius:14px;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(35,22,30,0.12);
  }
  .cart-item__top{display:flex; align-items:flex-start; justify-content:space-between; gap:10px;}
  .cart-item__name{min-width:0;}
  .cart-item__name b{display:block; font-size:14px; line-height:1.25; word-break:break-word;}
  .cart-item__sku{margin-top:4px; font-size:12px; color: var(--muted2);}
  .cart-item__price{white-space:nowrap; font-weight:700; font-size:13px;}
  .cart-item__mid{display:flex; align-items:flex-end; justify-content:space-between; gap:10px; margin-top:10px;}
  .cart-item__qty{display:flex; flex-direction:column; gap:6px; font-size:12px; color: var(--muted);}
  .cart-item__qty .qty-input{width:90px;}
  .cart-item__line{display:flex; flex-direction:column; align-items:flex-end; gap:6px; font-size:12px; color: var(--muted);}
  .cart-item__line b{font-size:14px; color: var(--text);}
  .cart-item__actions{margin-top:10px;}
  .cart-item__actions .btn{width:100%;}

  .cart-summary{margin-top:12px;}
  .cart-summary__row{display:flex; justify-content:space-between; gap:12px; padding:10px 2px; border-top:1px solid rgba(35,22,30,0.10);}
  .cart-summary__row span{min-width:0;}
  .cart-summary__total{font-size:15px;}
}


.fx-bird{
  position:absolute;
  top: var(--bird-y, 18vh);
  left: -18vw;
  width: clamp(52px, 12vw, 110px);
  opacity:.92;
  filter: drop-shadow(0 10px 18px rgba(35,22,30,.22));
  will-change: transform;
  animation: birdFly var(--bird-dur, 14s) linear infinite;
}
@keyframes birdFly{
  0%   { transform: translate3d(-18vw, 0, 0) scaleX(1); }
  100% { transform: translate3d(118vw, 0, 0) scaleX(1); }
}





/* ===== Petal5 (Wander) ===== */
.fx-wander5{
  position:absolute;
  width: clamp(110px, 22vw, 220px); /* MUCH bigger */
  opacity:.55; /* More visible */
  filter: drop-shadow(0 10px 20px rgba(35,22,30,.25));
  will-change: transform;
}


@keyframes fallPetal5 {
    0% {
        transform: translateY(-120px) rotate(0deg);
        left: calc(100% * var(--i));
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
    }
}


/* ===== Facebook icon under navbar (top-left) ===== */
.fb-topleft-wrap{
  position: relative;
  margin-top: 8px;
  margin-left: 10px;
  z-index: 50;
}
.fb-topleft-link{ display:inline-block; }
.fb-topleft-icon{
  width: 46px;
  height: 46px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,.20);
}
.fb-topleft-link:hover .fb-topleft-icon{
  transform: translateY(-1px);
}


/* Safety: FX layer */
#fx-layer{pointer-events:none;}

/* Ensure navbar is above FX */
.header, .nav-clean, nav, header{
  position: relative;
  z-index: 200;
}

/* Keep mobile menu above floating elements */
.nav-clean{ position: relative; z-index: 220; }
.nav-clean.open{ z-index: 250; }


/* Home infographic promo */
#home-infographic{
  position: fixed;
  right: 2%;
  top: 50%;
  bottom: auto;
  z-index: 60;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
}
#home-infographic img{
  /* 2x bigger than before */
  width: clamp(220px, 33.2vw, 480px);
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
#home-infographic:active{ transform: translate(-50%, -50%) translateY(1px); }

/* Mobile: keep infographic BELOW the menu (no overlap) and prevent side-scroll */
@media (max-width: 768px){
  #home-infographic{
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 14px auto 0;
    padding: 0 14px;
    z-index: 1; /* always under header/menu */
  }
  #home-infographic img{
    width: min(92vw, 420px);
    max-width: 92vw;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0,0,0,.14);
  }
  body{ overflow-x: hidden; }
}

@media (max-width: 480px){
  #home-infographic img{ width: clamp(180px, 56vw, 320px); }
}


/* Product modal + clickable product images */
.cover{ cursor:pointer; }
.rh-modal-backdrop{
  position:fixed; inset:0;
  background: rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:9999;
}
.rh-modal-backdrop.open{ display:flex; }
.rh-modal{
  width:min(920px, 100%);
  border-radius: 18px;
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(35,22,30,.14);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  overflow:hidden;
  backdrop-filter: blur(10px);
}
.rh-modal__inner{
  display:grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 0;
}
.rh-modal__media{
  background: rgba(255,255,255,.55);
  min-height: 320px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 14px;
}
.rh-modal__media img{
  max-width:100%;
  max-height: 460px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.rh-modal__content{
  padding: 16px 16px 18px;
}
.rh-modal__head{
  display:flex;
  gap:10px;
  align-items:flex-start;
  justify-content:space-between;
}
.rh-modal__title{ margin:0; font-size: 22px; }
.rh-modal__meta{ color: var(--muted2); font-size: 13px; margin-top: 6px; }
.rh-modal__desc{ margin: 10px 0 0; color: var(--muted); }
.rh-modal__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-top: 14px;
}
.rh-modal__qty input{
  width: 86px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(35,22,30,.16);
  background: rgba(255,255,255,.86);
  min-height: 44px;
}

.rh-qty{ display:flex; align-items:center; gap:8px; }
.rh-qty-btn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(35,22,30,.16);
  background: rgba(255,255,255,.86);
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
}
.rh-qty-btn:active{ transform: scale(.98); }
@media (max-width: 860px){
  .rh-modal__inner{ grid-template-columns: 1fr; }
  .rh-modal__media img{ max-height: 360px; }
}


/* Facebook side panel */
.fb-toggle{
  position: fixed;
  left: 12px;
  bottom: 12px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.fb-toggle-icon{ width: 22px; height: 22px; display:block; }

.fb-sidepanel{
  position: fixed;
  top: 74px; /* below header */
  left: 0;
  width: 340px;
  height: calc(100vh - 74px);
  background: rgba(255,255,255,.98);
  border-right: 1px solid rgba(0,0,0,.08);
  box-shadow: 18px 0 40px rgba(0,0,0,.10);
  z-index: 9998;
  transform: translateX(-105%);
  transition: transform .22s ease;
  display: flex;
  flex-direction: column;
}

body.fb-open .fb-sidepanel{ transform: translateX(0); }

.fb-sidepanel-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.fb-close{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.fb-sidepanel-body{
  padding: 12px;
  overflow: auto;
  flex: 1;
}

/* Make the FB iframe responsive inside the panel */
.fb-sidepanel .fb-page, .fb-sidepanel .fb-page span, .fb-sidepanel .fb-page span iframe{
  max-width: 100% !important;
  width: 100% !important;
}

/* Desktop: keep it pinned open, and push page content right */
@media (min-width: 980px){
  .fb-toggle{ display:none; }
  body{ padding-left: 340px; }
  .fb-sidepanel{ transform: translateX(0); }
  .fb-close{ display:none; }
}

/* Mobile: panel overlays content */
@media (max-width: 979px){
  body{ padding-left: 0; }
}


/* Order tracker */
.order-track{display:flex;gap:10px;flex-wrap:wrap}
.order-step{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;border:1px solid var(--border);background:#fff;opacity:.55}
.order-step .dot{width:12px;height:12px;border-radius:999px;background:var(--border);box-shadow:0 0 0 4px rgba(201,123,99,.12)}
.order-step.done{opacity:1;border-color:rgba(201,123,99,.55)}
.order-step.done .dot{background:var(--primary)}
.order-step .txt{font-weight:800}


/* Floating cart button + drawer */
.floating-cart{position:fixed;right:18px;bottom:18px;z-index:9999}
.floating-cart button{border:0;border-radius:999px;width:60px;height:60px;background:var(--primary);color:#fff;font-size:24px;box-shadow:0 10px 30px rgba(0,0,0,.18);cursor:pointer}
.floating-cart .badge{position:absolute;right:-6px;top:-6px;background:#B6454A;color:#fff;border-radius:999px;min-width:22px;height:22px;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:12px;padding:0 6px;border:2px solid #fff}
.cart-drawer{position:fixed;top:0;right:-420px;width:420px;max-width:92vw;height:100vh;background:#fff;border-left:1px solid var(--border);z-index:9998;transition:right .22s ease;display:flex;flex-direction:column}
.cart-drawer.open{right:0}
.cart-drawer__head{padding:14px 14px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:10px}
.cart-drawer__body{padding:14px;overflow:auto;flex:1}
.cart-drawer__foot{padding:14px;border-top:1px solid var(--border);display:flex;gap:10px;flex-wrap:wrap}
.cart-mini-row{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid rgba(0,0,0,.06)}
.cart-mini-row b{font-weight:900}
@media(max-width:720px){.cart-drawer{width:92vw}}

/* Sticky add-to-cart bar (mobile) */
.sticky-add{position:fixed;left:0;right:0;bottom:0;z-index:9997;background:#fff;border-top:1px solid var(--border);padding:10px 12px;display:none;gap:10px;align-items:center}
.sticky-add .qty input{width:78px}
@media(max-width:720px){.sticky-add{display:flex}}
body.has-sticky-add{padding-bottom:78px}


/* === No motion / performance overrides === */
*, *::before, *::after{ animation:none !important; transition:none !important; scroll-behavior:auto !important; }


/* === Full-screen adaptive patch (no horizontal side scroll) === */
html, body{max-width:100%; overflow-x:hidden;}
*, *::before, *::after{box-sizing:border-box;}
img, svg, video, canvas, iframe{max-width:100%; height:auto;}
main, section, article, .container, .wrap, .content, .page, .main, .app, .dashboard, .agent-shell, .agent-main, .agent-content{max-width:100%; min-width:0;}
.row, .grid, .cards, .formRow, .fieldRow, .toolbar, .topbar, .top, .hero, .split, .columns{max-width:100%; min-width:0;}
.row > *, .grid > *, .cards > *, .formRow > *, .fieldRow > *, .toolbar > *, .topbar > *, .top > *, .hero > *, .split > *, .columns > *{min-width:0;}
input, select, textarea, button{max-width:100%;}
.table, table{width:100%; max-width:100%;}
.tableWrap, .table-wrap, .table-responsive{width:100%; max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch;}
.fb-sidepanel{max-width:min(340px, 100vw);}
@media (max-width: 979px){
  body{padding-left:0 !important;}
  .fb-sidepanel{width:min(340px, 100vw); height:100vh;}
}
@media (max-width: 980px){
  .container, .wrap, .content, .page, .main{width:100% !important; max-width:100% !important;}
}

/* Book page flip for shop pagination */
.book-container{perspective:2000px;position:relative}
.book-page{transition:transform .8s ease,opacity .5s ease;transform-origin:left center}
.book-page.flip{transform:rotateY(-90deg);opacity:0}
