:root{--feston:#793654;--feston-dark:#5f2743;--feston-light:#9b4a6b;--accent:#ffb000;--bg:#f3f4f6;--text:#111827;--muted:#6b7280}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;padding-bottom:110px;font-family:Arial,sans-serif;background:var(--bg);color:var(--text)}img{max-width:100%}button,input{font:inherit}
.feston-header{position:sticky;top:0;z-index:9999;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.15)}.feston-header-inner{display:flex;align-items:center;justify-content:space-between;padding:16px}.feston-logo{height:48px;width:auto;display:block}.feston-cart-btn{display:inline-flex;align-items:center;background:var(--feston);color:#fff;padding:10px 16px;border-radius:999px;text-decoration:none;font-weight:700;transition:.2s}.feston-cart-btn:hover{background:var(--feston-dark)}
.hero{padding:40px 16px;background:var(--feston);color:#fff;text-align:center;border-radius:0 0 24px 24px}.hero h2{margin:0 0 8px;font-size:18px}.hero p{margin:0 0 20px}.accent-btn{display:inline-block;background:var(--accent);color:#000;padding:12px 24px;border-radius:999px;text-decoration:none;font-weight:700}
.offer-wrap{padding:20px 16px}.offer-slider-wrap{position:relative;overflow:hidden;border-radius:24px;box-shadow:0 4px 14px rgba(0,0,0,.15)}.offer-slider{display:flex;transition:transform .7s ease}.offer-slide{min-width:100%;position:relative}.offer-slide img{display:block;width:100%;height:208px;object-fit:cover}.offer-overlay{position:absolute;inset:0;background:rgba(0,0,0,.4);display:flex;flex-direction:column;justify-content:center;padding:24px;color:#fff}.offer-overlay h2{font-size:30px;margin:0 0 8px}.offer-overlay p{font-size:14px;margin:0 0 16px}.offer-dots{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);display:flex;gap:8px}.dot{width:12px;height:12px;border:0;border-radius:50%;background:rgba(255,255,255,.6);padding:0}.dot.active{background:#fff}
.section{padding:24px}.section-title{font-size:20px;font-weight:700;margin:0 0 16px}.category-scroll{display:flex;gap:16px;overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none}.category-scroll::-webkit-scrollbar{display:none}.category-card{border:0;background:#fff;border-radius:16px;box-shadow:0 2px 8px rgba(0,0,0,.08);overflow:hidden;min-width:160px;padding:0;cursor:pointer}.category-card img{display:block;width:100%;height:112px;object-fit:cover}.category-card p{margin:0;padding:12px;font-size:14px;font-weight:700;text-align:center}
.search-row{display:flex;gap:8px;align-items:center;padding:0 24px 8px}.search-input{flex:1;width:100%;padding:14px 16px;border:1px solid #d1d5db;border-radius:16px;background:#fff;outline:0;box-shadow:0 1px 4px rgba(0,0,0,.08)}.search-input:focus{border-color:var(--feston);box-shadow:0 0 0 3px rgba(121,54,84,.12)}.voice-btn{width:54px;height:50px;border:0;border-radius:14px;background:var(--feston);color:#fff;cursor:pointer}.voice-btn.listening{animation:pulse 1.2s infinite}.voice-toggle{padding:0 24px 10px;display:flex;gap:8px;align-items:center;font-size:14px;color:var(--muted)}.voice-toggle input{accent-color:var(--feston)}
.product-section{margin-bottom:26px;overflow:hidden}.section-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.section-header h2{font-size:20px;margin:0}.view-more-btn{border:0;background:none;color:var(--feston);font-weight:700;cursor:pointer}.product-slider{display:flex;gap:15px;overflow-x:auto;overflow-y:hidden;padding:2px 2px 10px;scroll-behavior:smooth;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;scrollbar-width:none}.product-slider::-webkit-scrollbar{display:none}
.product-card{flex:0 0 210px;width:210px;height:350px;background:#fff;border-radius:16px;padding:12px;box-shadow:0 4px 12px rgba(0,0,0,.10);display:flex;flex-direction:column;position:relative;overflow:hidden}.product-card>img{width:100%;height:190px;object-fit:contain;background:#fff;display:block;margin:-4px auto 8px}.product-card-content{display:flex;flex-direction:column;flex:1;min-height:0}.product-name{font-size:16px;line-height:1.3;font-weight:600;margin:5px 0 8px;min-height:42px;overflow:hidden}.product-price-area{display:flex;align-items:center;gap:9px;width:max-content;min-height:34px;padding:7px 11px;background:#fff;border-radius:8px;line-height:1;white-space:nowrap;position:relative;z-index:2}.product-mrp{font-size:15px;font-weight:500;color:#777;text-decoration:line-through}.product-offer-price{font-size:19px;font-weight:700;color:var(--feston)}.product-card button{width:100%;min-height:42px;margin-top:auto;padding:10px 14px;border:0;border-radius:12px;background:linear-gradient(135deg,var(--feston),var(--feston-light));color:#fff;font-weight:700;cursor:pointer;transition:transform .18s,box-shadow .18s}.product-card button:hover{background:linear-gradient(135deg,#6a2f4a,#8c3f5e);transform:translateY(-2px)}.product-card button:active{transform:scale(.96)}
.feston-pulse{animation:festonPulse 2.8s infinite}@keyframes festonPulse{0%{box-shadow:0 0 0 0 rgba(121,54,84,.45)}70%{box-shadow:0 0 0 7px rgba(121,54,84,0)}100%{box-shadow:0 0 0 0 rgba(121,54,84,0)}}@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(121,54,84,.7)}70%{box-shadow:0 0 0 15px rgba(121,54,84,0)}100%{box-shadow:0 0 0 0 rgba(121,54,84,0)}}
.no-products{text-align:center;color:var(--feston);font-weight:600;padding:40px 20px}.hidden{display:none!important}
#cartBar{position:fixed;left:0;right:0;bottom:0;z-index:99999;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px;background:#fff;border-top:1px solid #e5e7eb;box-shadow:0 -4px 12px rgba(0,0,0,.1);transform:translateY(100%);transition:transform .35s ease-in-out}#cartBar.show{transform:translateY(0)}#cartBar p{margin:0;line-height:1.5}#cartBar .cart-items{font-size:16px;font-weight:700}#cartBar .cart-total{font-size:14px;color:#4b5563}.view-cart-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px 24px;min-height:40px;border-radius:9999px;background:linear-gradient(135deg,var(--feston),var(--feston-light));color:#fff;text-decoration:none;font-weight:700;white-space:nowrap}.view-cart-btn:hover{background:linear-gradient(135deg,#6a2f4a,#8c3f5e)}
.toast{position:fixed;left:50%;bottom:78px;z-index:10000;min-width:240px;max-width:90vw;padding:12px 22px;border-radius:999px;background:var(--feston);color:#fff;text-align:center;font-size:14px;font-weight:700;opacity:0;visibility:hidden;transform:translate(-50%,18px) scale(.96);transition:.25s}.toast.show{opacity:1;visibility:visible;transform:translate(-50%,0) scale(1)}
.category-page{max-width:1600px;margin:auto;padding:20px 20px 180px}.category-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.category-home-link{color:var(--feston);text-decoration:none;font-weight:700}.category-title{margin:0;color:var(--feston);font-size:22px}.category-search-row{max-width:600px;margin:0 auto 8px}.category-voice-toggle{max-width:600px;margin:0 auto 20px}.category-products-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;align-items:stretch;max-width:1800px;margin:0 auto}.category-products-grid .product-card{width:100%;height:360px;min-width:0;padding:10px}.category-load-more{width:100%;height:360px;margin:0;display:flex;align-items:center;justify-content:center;text-align:center;font-size:18px;line-height:1.25}.category-message{grid-column:1/-1;padding:40px 10px;text-align:center;color:var(--feston);font-weight:700}
.category-products-grid .product-card>img{height:155px;margin:-2px auto 6px}.category-products-grid .product-name{font-size:14px;line-height:1.25;min-height:36px}.category-products-grid .product-card button{min-height:40px;padding:8px 4px;font-size:13px;white-space:nowrap}.category-products-grid .product-price-area{min-height:30px;padding:6px 8px;gap:6px}.category-products-grid .product-mrp{font-size:13px}.category-products-grid .product-offer-price{font-size:17px}
@media(max-width:1400px) and (min-width:601px){.category-products-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}}
@media(max-width:900px){.category-products-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}}
@media(max-width:600px){.feston-header-inner{padding:12px}.feston-logo{height:42px}.feston-cart-btn{padding:9px 14px}.section{padding:16px 12px}.search-row{padding:0 12px 8px}.voice-toggle{padding:0 12px 10px}.product-card{flex-basis:165px;width:165px;height:290px;padding:10px}.product-card>img{height:145px;margin:-4px auto 8px}.product-name{font-size:14px;min-height:36px}.product-price-area{min-height:31px;padding:6px 9px;gap:7px}.product-mrp{font-size:13px}.product-offer-price{font-size:17px}.product-card button{min-height:38px;padding:8px 10px;font-size:13px}.category-page{padding:12px 12px 170px}.category-title{font-size:20px}.category-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.category-products-grid .product-card{width:100%;height:300px;padding:10px}.category-products-grid .product-card>img{height:145px}.category-load-more{height:300px;font-size:15px;padding:12px}.offer-overlay h2{font-size:26px}#cartBar{padding:16px 12px;gap:10px}.view-cart-btn{padding:8px 18px}.toast{bottom:72px;min-width:220px;font-size:13px}}

.search-load-more{display:block;margin:18px auto 8px;padding:10px 20px;border:0;border-radius:12px;background:linear-gradient(135deg,var(--feston),var(--feston-light));color:#fff;font-weight:700;cursor:pointer;box-shadow:0 4px 10px rgba(0,0,0,.10)}.search-load-more:active{transform:scale(.97)}

/* Index search results: use the same compact product-grid experience as the
   category page on mobile, while keeping the desktop layout spacious. */
.home-search-results-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;align-items:stretch}
.home-search-results-grid .product-card{width:100%;min-width:0;height:360px;padding:10px}
.home-search-results-grid .product-card>img{height:155px;margin:-2px auto 6px}
.home-search-results-grid .product-name{font-size:14px;line-height:1.25;min-height:36px}
.home-search-results-grid .product-card button{min-height:40px;padding:8px 4px;font-size:13px;white-space:nowrap}
.home-search-results-grid .product-price-area{min-height:30px;padding:6px 8px;gap:6px}
.home-search-results-grid .product-mrp{font-size:13px}
.home-search-results-grid .product-offer-price{font-size:17px}
.home-search-load-more{width:100%;height:360px;margin:0;display:flex;align-items:center;justify-content:center;text-align:center;font-size:18px;line-height:1.25}
.home-section-load-more{flex:0 0 210px;width:210px;height:350px;margin:0;display:flex;align-items:center;justify-content:center;text-align:center;font-size:18px;line-height:1.25;white-space:normal}
@media(max-width:600px){.home-section-load-more{flex-basis:165px;width:165px;height:290px;font-size:15px}}
@media(min-width:1401px){.home-search-results-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}}
@media(max-width:900px) and (min-width:601px){.home-search-results-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}}
@media(max-width:600px){
  .home-search-section{margin-top:4px}
  .home-search-results-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .home-search-results-grid .product-card{height:300px;padding:10px}
  .home-search-results-grid .product-card>img{height:145px}
  .home-search-results-grid .product-name{font-size:14px;min-height:36px}
  .home-search-results-grid .product-price-area{min-height:31px;padding:6px 9px;gap:7px}
  .home-search-results-grid .product-mrp{font-size:13px}
  .home-search-results-grid .product-offer-price{font-size:17px}
  .home-search-results-grid .product-card button{min-height:38px;padding:8px 10px;font-size:13px}
  .home-search-load-more{height:300px;font-size:15px;padding:12px}
}


/* ===== FESTON QUANTITY POPUP v21 ===== */
.feston-qty-modal{position:fixed;inset:0;z-index:10000;display:none;align-items:center;justify-content:center}
.feston-qty-modal.show{display:flex}
.feston-qty-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.52);backdrop-filter:blur(2px)}
.feston-qty-dialog{position:relative;width:min(380px,calc(100vw - 28px));background:#fff;border-radius:18px;padding:20px;box-shadow:0 15px 50px rgba(0,0,0,.25);text-align:center}
.feston-qty-close{position:absolute;right:12px;top:8px;width:38px;height:38px;border:0;background:transparent;font-size:28px;color:#666;cursor:pointer}
.feston-qty-title{font-size:20px;font-weight:800;color:#793654;margin:2px 35px 8px}
.feston-qty-product{font-size:15px;font-weight:600;line-height:1.35;min-height:30px;padding:0 8px}
.feston-qty-controls{display:flex;align-items:center;justify-content:center;gap:18px;margin:16px 0 8px}
.feston-qty-controls button{width:52px;height:52px;border:0;border-radius:50%;background:#793654;color:#fff;font-size:30px;font-weight:700;cursor:pointer;box-shadow:0 5px 12px rgba(121,54,84,.22);animation:festonQtyPulse 2.4s infinite}.feston-qty-controls button:active{transform:scale(.94)}
.feston-qty-controls button:disabled{opacity:1;background:#793654;color:#fff;cursor:not-allowed;box-shadow:none}
.feston-qty-value{min-width:100px;font-size:25px;font-weight:800;color:#222}
.feston-qty-hint{font-size:12px;color:#777;margin-bottom:18px}
.feston-qty-confirm{width:100%;min-height:48px;border:0;border-radius:12px;background:#793654;color:#fff;font-weight:800;font-size:16px;cursor:pointer;box-shadow:none;animation:festonQtyPulse 2.4s infinite}.feston-qty-confirm:active{transform:scale(.98)}@keyframes festonQtyPulse{0%{box-shadow:0 0 0 0 rgba(121,54,84,.48)}70%{box-shadow:0 0 0 8px rgba(121,54,84,0)}100%{box-shadow:0 0 0 0 rgba(121,54,84,0)}}
.feston-qty-open{overflow:hidden}
@media(max-width:600px){
 .feston-qty-dialog{padding:20px 16px;border-radius:18px}
 .feston-qty-controls{gap:14px;margin:18px 0 8px}
 .feston-qty-controls button{width:48px;height:48px}
}

.feston-offer-discount-badge{position:absolute;top:52px;right:8px;z-index:6;display:inline-flex;align-items:center;justify-content:center;min-width:52px;height:28px;padding:0 9px;border-radius:15px;background:#793654;color:#fff;font-size:12px;font-weight:800;line-height:1;box-shadow:0 3px 8px rgba(0,0,0,.18);pointer-events:none}@media(max-width:600px){.feston-offer-discount-badge{top:48px;right:6px;min-width:46px;height:25px;padding:0 7px;font-size:11px}}