/* ===== Shared UI layer (all pages) ===== */
:root{--jf-green:#1FA855;}
/* slimmer sticky header */
header nav{padding-top:.55rem !important;padding-bottom:.55rem !important;}
.jf-wa-pill{display:inline-flex;align-items:center;gap:.4rem;background:var(--jf-green);color:#fff !important;text-decoration:none;font-weight:600;font-size:.85rem;padding:.55rem 1rem;border-radius:6px;white-space:nowrap;margin-left:.6rem;}
.jf-wa-pill:hover{filter:brightness(1.07);}
/* dismissible banner */
.marquee-bar{position:relative;padding-right:2.4rem;}
.jf-dismiss{position:absolute;right:.4rem;top:50%;transform:translateY(-50%);background:rgba(0,0,0,.25);color:#fff;border:0;width:1.7rem;height:1.7rem;border-radius:50%;cursor:pointer;font-size:1.1rem;line-height:1;z-index:3;}
/* product cards: even photo ratio */
.product-card .product-image{width:100%;height:auto !important;aspect-ratio:4/3;object-fit:cover;}
.card-actions{display:flex;flex-direction:column;gap:.5rem;}
.btn-enq{display:block;text-align:center;border:1.5px solid var(--indigo);color:var(--indigo);background:transparent;border-radius:6px;padding:.6rem .8rem;font-weight:600;font-size:.88rem;cursor:pointer;font-family:inherit;}
.btn-enq:hover{background:var(--indigo);color:#fff;}
/* floating enquiry button + panel */
.enq-fab{position:fixed;right:1rem;bottom:1rem;z-index:900;background:var(--indigo);color:#fff;border:0;border-radius:999px;padding:.8rem 1.2rem;font-weight:600;font-size:.9rem;box-shadow:0 6px 20px rgba(0,0,0,.28);cursor:pointer;display:none;align-items:center;gap:.5rem;font-family:inherit;}
.enq-fab.show{display:inline-flex;}
.enq-fab b{background:var(--saffron);color:#1a1a1a;border-radius:999px;min-width:1.4rem;height:1.4rem;display:inline-flex;align-items:center;justify-content:center;font-size:.78rem;padding:0 .35rem;}
.enq-panel{position:fixed;inset:0;background:rgba(19,40,64,.7);z-index:1200;display:none;align-items:center;justify-content:center;padding:1rem;}
.enq-panel.open{display:flex;}
.enq-box{background:#fff;border-radius:12px;max-width:520px;width:100%;max-height:90vh;overflow:auto;padding:1.4rem;position:relative;}
.enq-box h2{margin:0 0 .3rem;font-size:1.35rem;}
.enq-box .sub{color:#6b6253;font-size:.88rem;margin-bottom:1rem;}
.enq-list{list-style:none;margin:0 0 1rem;padding:0;}
.enq-list li{display:flex;align-items:center;gap:.6rem;padding:.6rem 0;border-bottom:1px solid var(--line,#e6dfd0);font-size:.92rem;}
.enq-list .sw{width:1.1rem;height:1.1rem;border-radius:50%;border:1px solid rgba(0,0,0,.2);flex:none;}
.enq-list .t{flex:1;}
.enq-list .t small{display:block;color:#6b6253;}
.enq-list button{border:0;background:none;color:#a33;cursor:pointer;font-size:1.1rem;}
.enq-box textarea{width:100%;min-height:70px;border:1px solid var(--line,#ddd);border-radius:8px;padding:.6rem;font:inherit;margin-bottom:1rem;box-sizing:border-box;}
.enq-send{display:block;width:100%;text-align:center;background:var(--jf-green);color:#fff;border:0;border-radius:8px;padding:.85rem;font-weight:700;font-size:1rem;cursor:pointer;font-family:inherit;}
.enq-clear{background:none;border:0;color:#6b6253;text-decoration:underline;cursor:pointer;margin-top:.7rem;font-size:.85rem;font-family:inherit;}
.enq-x{position:absolute;right:.7rem;top:.5rem;background:none;border:0;font-size:1.6rem;cursor:pointer;}
.jf-toast{position:fixed;left:50%;bottom:5.2rem;transform:translateX(-50%);background:#16283F;color:#fff;padding:.65rem 1.1rem;border-radius:8px;z-index:1300;font-size:.9rem;opacity:0;pointer-events:none;transition:opacity .25s;max-width:90vw;text-align:center;}
.jf-toast.show{opacity:1;}
/* shade card extras */
.shade-search{width:100%;box-sizing:border-box;border:1px solid var(--line,#ddd);border-radius:8px;padding:.55rem .8rem;font:inherit;margin:.2rem 0 .8rem;}
.btn-shade-enq{background:var(--saffron);color:#1a1a1a;border:0;border-radius:6px;padding:.6rem 1rem;font-weight:700;cursor:pointer;font-family:inherit;}
.shade-foot{gap:.6rem;flex-wrap:wrap;}
/* mobile call / whatsapp bar */
.jf-bottom-bar{display:none;}
@media (max-width:768px){
  .jf-bottom-bar{display:grid;grid-template-columns:1fr 1fr;position:fixed;left:0;right:0;bottom:0;z-index:850;background:#fff;box-shadow:0 -4px 16px rgba(0,0,0,.15);}
  .jf-bottom-bar a{display:flex;align-items:center;justify-content:center;gap:.4rem;padding:.85rem .5rem;font-weight:700;text-decoration:none;font-size:.95rem;}
  .jf-bottom-bar .call{background:var(--indigo);color:#fff;}
  .jf-bottom-bar .wa{background:var(--jf-green);color:#fff;}
  body{padding-bottom:3.2rem;}
  .enq-fab{bottom:4.2rem;}
  .jf-toast{bottom:7rem;}
  .jf-wa-pill{display:none;}
}
/* ===== Home page sections ===== */
.brand-strip{background:#fff;border-bottom:1px solid var(--line,#e6dfd0);padding:1rem 1.2rem;}
.brand-strip .in{max-width:1100px;margin:0 auto;display:flex;align-items:center;justify-content:center;gap:1.4rem;flex-wrap:wrap;}
.brand-strip .lbl{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:#6b6253;}
.brand-strip img{height:44px;width:auto;object-fit:contain;}
.how-wrap{max-width:1180px;margin:0 auto;padding:3.2rem 1.5rem;}
.how-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-top:1.6rem;counter-reset:s;}
.how-steps div{background:#fff;border:1px solid var(--line,#e6dfd0);border-radius:12px;padding:1.2rem;}
.how-steps div::before{counter-increment:s;content:counter(s);display:inline-flex;width:2rem;height:2rem;border-radius:50%;background:var(--indigo);color:#fff;align-items:center;justify-content:center;font-weight:700;margin-bottom:.6rem;}
.how-steps h3{margin:0 0 .3rem;font-size:1.05rem;}
.how-steps p{margin:0;color:#6b6253;font-size:.9rem;}
.visit-card{margin-top:1.6rem;background:var(--indigo);color:#fff;border-radius:14px;padding:1.4rem 1.6rem;display:flex;gap:1.2rem;flex-wrap:wrap;align-items:center;justify-content:space-between;}
.visit-card h3{margin:0 0 .3rem;font-size:1.2rem;color:var(--saffron);}
.visit-card p{margin:0;opacity:.92;font-size:.93rem;max-width:560px;}
.visit-card .acts{display:flex;gap:.6rem;flex-wrap:wrap;}
.visit-card a{background:var(--saffron);color:#1a1a1a;text-decoration:none;font-weight:700;padding:.65rem 1.1rem;border-radius:8px;font-size:.9rem;}
.visit-card a.alt{background:transparent;color:#fff;border:1.5px solid #fff;}
.cat-toolbar{display:flex;gap:.7rem;flex-wrap:wrap;align-items:center;margin:0 0 1.2rem;}
.cat-toolbar input[type=search],.cat-toolbar select{border:1px solid var(--line,#d8cfbb);border-radius:8px;padding:.6rem .8rem;font:inherit;background:#fff;}
.cat-toolbar input[type=search]{flex:1;min-width:200px;}
.quick-chips{display:flex;gap:.5rem;flex-wrap:wrap;}
.quick-chips button{border:1px solid var(--line,#d8cfbb);background:#fff;border-radius:999px;padding:.45rem .9rem;font:inherit;font-size:.85rem;cursor:pointer;}
.quick-chips button.on{background:var(--maroon);border-color:var(--maroon);color:#fff;}
.no-results{grid-column:1/-1;text-align:center;padding:2rem;color:#6b6253;}
@media (max-width:900px){.how-steps{grid-template-columns:1fr 1fr;}}
@media (max-width:520px){.how-steps{grid-template-columns:1fr;}.brand-strip img{height:36px;}.quick-chips{overflow-x:auto;flex-wrap:nowrap;width:100%;padding-bottom:.2rem;}.quick-chips button{white-space:nowrap;}}
@media (max-width:520px){
  .spec-grid{grid-template-columns:1fr !important;}
  .product-card .product-desc{display:none;}
  .product-card .product-name{font-size:1rem;}
  .btn-enq{font-size:.78rem;padding:.5rem .4rem;}
}

/* ===== Pearl theme ===== */
:root{
  --ivory:#FBFAF8; --ivory-deep:#F3F1ED; --line:#E8E5DF;
  --charcoal:#1F2430; --saffron:#B8913A; --gold-light:#E3CD97; --thread:#CDB57A;
}
body{background:linear-gradient(180deg,#FFFFFF 0,#FBFAF8 420px,#FBFAF8 100%) !important;color:#1F2430;}
header{background:linear-gradient(180deg,#FFFFFF,#F8F7F4) !important;}
.product-card,.how-steps div,.shade-modal-content,.modal-content{background:#fff;}
.product-card{border-color:#ECE9E3;box-shadow:0 2px 14px rgba(31,36,48,.05);}
.how-wrap{background:transparent;}
.admin-toggle{display:none !important;}
.zari{height:8px;opacity:.7;}
.moq-line{display:none;font-size:.82rem;color:#6b6a66;margin:.15rem 0 .5rem;}
.moq-line b{color:#1F2430;}
.gst-line{max-width:1280px;margin:0 auto;padding:0 2rem 1.2rem;font-size:.78rem;opacity:.75;font-family:'Hanken Grotesk',monospace;}
.new-store-note{display:none;}
.footer-grid h3.fold-h{cursor:default;}

/* ===== Phone layout ===== */
@media (max-width:768px){
  body{font-size:16px;}
  .topbar,.marquee-bar,.zari{display:none !important;}
  /* header: logo + menu only */
  header nav{grid-template-columns:1fr auto !important;padding:.5rem 1rem !important;gap:.6rem !important;}
  header .logo-right,header .gstin{display:none !important;}
  header .logo .mark{font-size:1.05rem;}
  /* hero: headline + buttons only */
  .hero-carousel{min-height:330px !important;}
  .hero-slide p,.stat-strip,.hero-swatches,.hero-slide .eyebrow{display:none !important;}
  .hero-slide{padding:1.4rem 1rem 2.4rem !important;}
  .hero-slide-title{font-size:1.7rem !important;line-height:1.2;}
  .hero-ctas{margin-top:1rem;}
  .hero-dots span,.hero-dots button,.hero-dots .dot{width:12px !important;height:12px !important;min-height:0 !important;min-width:0 !important;padding:0 !important;}
  .new-store-note{display:block;background:#fff;border-bottom:1px solid var(--line);padding:.7rem 1rem;font-size:.88rem;text-align:center;}
  .new-store-note a{color:var(--maroon);font-weight:600;white-space:nowrap;}
  .brand-strip{padding:.8rem 1rem;}
  .brand-strip .lbl{width:100%;text-align:center;}
  .brand-strip .in{gap:1rem;}
  /* sections */
  .section{padding:2.2rem 1rem !important;}
  .section-head h2{font-size:1.5rem;}
  /* sticky search + chips */
  .cat-toolbar{position:sticky;top:56px;z-index:150;background:#FBFAF8;padding:.6rem 0;margin:0 0 .8rem;}
  .cat-toolbar input[type=search],.cat-toolbar select{min-height:44px;font-size:16px;}
  .cat-toolbar input[type=search]{min-width:0;}
  .filter-btn{min-height:40px;}
  /* simple 2-column cards */
  .product-grid{grid-template-columns:1fr 1fr !important;gap:.75rem !important;}
  .product-card .spec-grid,.product-card .product-desc,.product-card .product-type{display:none !important;}
  .moq-line{display:block;}
  .product-card .product-body{padding:.7rem .7rem .8rem;}
  .product-card .product-name{font-size:.95rem;line-height:1.3;cursor:pointer;}
  .colour-picker-row{padding:.5rem !important;}
  .btn-req{display:none !important;}
  .btn-enq{min-height:44px;font-size:.82rem;}
  /* how it works + visit */
  .how-wrap{padding:2rem 1rem;}
  .how-steps{grid-template-columns:1fr 1fr;gap:.7rem;}
  .how-steps div{padding:.9rem;}
  .visit-card{padding:1.1rem;}
  .visit-card a{flex:1;text-align:center;min-height:44px;display:flex;align-items:center;justify-content:center;}
  /* footer: collapsible */
  .footer-grid{grid-template-columns:1fr !important;gap:0 !important;padding:1.6rem 1rem 1rem !important;}
  .footer-grid > div{border-bottom:1px solid rgba(255,255,255,.12);padding:.9rem 0;}
  .footer-grid h3.fold-h{margin:0;cursor:pointer;display:flex;justify-content:space-between;align-items:center;min-height:32px;}
  .footer-grid > div.fold h3.fold-h::after,.footer-grid > div.open h3.fold-h::after{content:'+';font-size:1.3rem;}
  .footer-grid > div.open h3.fold-h::after{content:'–';}
  .footer-grid > div.fold > *:not(h3){display:none;}
  .footer-grid > div.fold.open > *:not(h3){display:block;}
  .footer-grid > div.fold.open h3.fold-h{margin-bottom:.7rem;}
  .gst-line{padding:0 1rem 1rem;}
  /* bottom bar with enquiry */
  .jf-bottom-bar{grid-template-columns:1fr 1.2fr 1fr !important;}
  .jf-bottom-bar .enq-open{display:flex;align-items:center;justify-content:center;gap:.4rem;padding:.85rem .4rem;font-weight:700;font-size:.9rem;background:var(--saffron);color:#1a1a1a;border:0;font-family:inherit;cursor:pointer;}
  .jf-bottom-bar .enq-open b{background:#1a1a1a;color:#fff;border-radius:999px;min-width:1.3rem;height:1.3rem;font-size:.75rem;display:inline-flex;align-items:center;justify-content:center;padding:0 .3rem;}
  .enq-fab,.enq-fab.show{display:none !important;}
  .jf-toast{bottom:4.6rem;}
  /* shade card: full-screen bottom sheet */
  #shadeModal{align-items:flex-end !important;padding:0 !important;}
  #shadeModal .shade-modal-content{width:100% !important;max-width:none !important;height:92vh;max-height:92vh !important;border-radius:18px 18px 0 0 !important;display:flex;flex-direction:column;padding:1rem 1rem 0 !important;overflow:hidden !important;margin:0 !important;}
  #shadeModal .shade-grid{flex:1;overflow-y:auto;grid-template-columns:repeat(auto-fill,minmax(46px,1fr)) !important;gap:.6rem !important;padding:.3rem .1rem 1rem;}
  #shadeModal .shade-chip{width:100% !important;height:auto !important;aspect-ratio:1/1;min-height:44px;}
  #shadeModal .shade-tabs{overflow-x:auto;flex-wrap:nowrap !important;white-space:nowrap;}
  #shadeModal .shade-foot{position:sticky;bottom:0;background:#fff;padding:.8rem 0 calc(.8rem + env(safe-area-inset-bottom));border-top:1px solid var(--line);margin:0;}
  #shadeModal .btn-shade-enq,#shadeModal .btn-shade-done{min-height:44px;}
  /* bigger tap targets */
  button,.btn-primary,.btn-outline{min-height:44px;}
}

/* watermark (JF monogram, bottom-right corner) on every product picture */
.product-card{position:relative;}
.product-card::after{content:"";position:absolute;left:0;top:0;width:100%;aspect-ratio:4/5;pointer-events:none;z-index:2;
  background:url(images/watermark-jf.svg) no-repeat right 10px bottom 10px/16%;opacity:.85;filter:drop-shadow(0 1px 3px rgba(0,0,0,.6));}
.wm-wrap{position:relative;display:block;margin-bottom:1.3rem;}
.wm-wrap>img{margin-bottom:0 !important;display:block;}
.wm-wrap::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:url(images/watermark-jf.svg) no-repeat right 10px bottom 10px/70px;opacity:.85;filter:drop-shadow(0 1px 3px rgba(0,0,0,.6));}

/* photo galleries (product pop-up + shade-card photos) */
.pm-gallery{position:relative;margin-bottom:1.3rem;}
.pm-gallery>img{display:block;width:100%;margin:0 !important;}
#viewBody .pm-gallery::after{content:"";position:absolute;inset:0;pointer-events:none;background:url(images/watermark-jf.svg) no-repeat right 10px bottom 10px/70px;opacity:.85;filter:drop-shadow(0 1px 3px rgba(0,0,0,.6));}
.pm-arrow{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border:0;background:rgba(255,255,255,.88);color:#1B1F27;font-size:1.7rem;line-height:1;cursor:pointer;z-index:3;box-shadow:0 1px 6px rgba(0,0,0,.25);display:flex;align-items:center;justify-content:center;padding:0 0 3px}
.pm-arrow.prev{left:8px}.pm-arrow.next{right:8px}
.pm-dots{position:absolute;left:0;right:0;bottom:8px;display:flex;justify-content:center;gap:6px;z-index:3;pointer-events:none}
.pm-dots span{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.55);box-shadow:0 0 3px rgba(0,0,0,.5);pointer-events:auto;cursor:pointer}
.pm-dots span.on{background:#fff}
#shadePhotos .pm-gallery{margin:0 0 .8rem}
#shadePhotos img{height:min(52vh,420px);object-fit:contain;background:#F1EFEB;cursor:zoom-in}
#shadeNoteBox{display:none;margin:0 0 .8rem}
#shadeNoteBox label{display:block;font-size:.78rem;letter-spacing:.04em;color:#6b6a66;margin-bottom:.3rem}
#shadeNoteBox input{width:100%;padding:.7rem .8rem;border:1px solid #DDD9D2;font:inherit}
#shadeModal.photo-mode #shadeTabs,#shadeModal.photo-mode #shadeGrid,#shadeModal.photo-mode .shade-search,#shadeModal.photo-mode #shadeSelectedLabel{display:none !important}
#shadeModal.photo-mode #shadeNoteBox{display:block}
.jf-lb{position:fixed;inset:0;background:rgba(10,14,20,.94);z-index:2000;display:flex;align-items:center;justify-content:center}
.jf-lb .pm-gallery{width:100%;height:100%;margin:0}
.jf-lb .pm-gallery>img{width:100%;height:100%;object-fit:contain;cursor:zoom-out}
.jf-lb-x{position:absolute;top:10px;right:14px;width:44px;height:44px;border:0;background:transparent;color:#fff;font-size:2.2rem;cursor:pointer;z-index:5}

/* trademark / copyright watermark across the shade card photos */
#shadePhotos.pm-gallery::after,.jf-lb .pm-gallery::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:2;background:url(images/watermark-shade.svg) center/300px 197px repeat;}

.pm-video{position:relative;width:100%;aspect-ratio:16/9;margin:12px 0;background:#000}
.pm-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

.pn-link{color:inherit;text-decoration:none}.pn-link:hover{text-decoration:underline;text-decoration-color:#C9B88F;text-underline-offset:3px}
.pm-pagelink{margin:.8rem 0 0;text-align:center}.pm-pagelink a{color:#16283F;font-weight:600;text-decoration:underline;text-decoration-color:#C9B88F;text-underline-offset:4px}
