/* HUSSAIN JEWELLERS — product / collection layout and support widget.
   Intentionally does not modify the homepage hero or slideshow. */
.product-detail-page .product-lower { display:block; margin-top:32px; }
.product-detail-page .detail-tabs { width:100%; }
.product-detail-page .related-products { width:100%; min-width:0; margin:48px 0 16px; }
.product-detail-page .related-products .product-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:26px 18px; }
.product-detail-page .related-products .image-wrap { aspect-ratio:4/5; }
.product-detail-page .related-products .title { font-size:14px; }
.product-detail-page .related-products .price-row strong { font-size:14px; }
.product-detail-page .product-main-image img { display:block; width:100%; height:auto; max-height:700px; object-fit:contain; }
.product-detail-page .button, .category-page .button, .cart-layout .button { border-radius:14px; }
.product-detail-page .quantity-control, .cart-layout .cart-qty-step { border-radius:999px; }
.product-detail-page .quantity-control button { min-height:40px; }
.product-detail-page .product-thumbnail { border-radius:12px; }
.product-detail-page .product-benefits>div { border-radius:12px; }
.catalog-category-nav { padding:14px 0 16px; border-bottom:1px solid var(--line); margin:0 0 25px; min-width:0; }
.catalog-category-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:13px; color:var(--green); font-weight:700; }
.catalog-category-heading span { display:flex; align-items:center; gap:7px; }
.catalog-category-heading svg { width:19px; height:19px; color:#94713e; }
.catalog-category-heading a { font-size:12px; text-decoration:underline; text-underline-offset:4px; }
.catalog-category-rail { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,105px); gap:14px; overflow-x:auto; overscroll-behavior-inline:contain; scroll-snap-type:x proximity; padding:4px 4px 12px; scrollbar-width:thin; scrollbar-color:var(--gold) transparent; }
.catalog-circle { display:flex; flex-direction:column; align-items:center; gap:7px; text-align:center; font-size:12px; line-height:1.3; font-weight:600; scroll-snap-align:start; min-width:0; overflow-wrap:anywhere; }
.catalog-circle-picture { width:88px; max-width:100%; aspect-ratio:1; display:grid; place-items:center; background:#f2e8d9; border:1px solid var(--gold); border-radius:50%; overflow:hidden; padding:7px; }
.catalog-circle-picture img { width:100%; height:100%; min-height:0; object-fit:contain; border-radius:50%; }
.catalog-circle.selected .catalog-circle-picture { border:2px solid var(--green); outline:1px solid var(--gold); outline-offset:2px; }
.catalog-circle.selected { color:var(--green); font-weight:800; }
.catalog-circle:focus-visible,.catalog-category-rail:focus-visible { outline:2px solid var(--green); outline-offset:2px; }
.hj-whatsapp { position:fixed; right:22px; bottom:22px; z-index:25; color:var(--ink); font-family:var(--sans); }
.hj-whatsapp summary { list-style:none; display:flex; align-items:center; justify-content:center; margin-left:auto; cursor:pointer; width:58px; height:58px; border:2px solid #fff; border-radius:50%; background:#087a43; color:#fff; box-shadow:0 5px 22px #06271e40; }
.hj-whatsapp summary::-webkit-details-marker { display:none; }
.hj-whatsapp summary svg { width:30px; height:30px; fill:currentColor; }
.hj-whatsapp .hj-wa-close { display:none; font-size:32px; line-height:1; }
.hj-whatsapp[open] summary svg { display:none; }
.hj-whatsapp[open] .hj-wa-close { display:block; }
.hj-wa-panel { position:absolute; bottom:70px; right:0; width:min(320px,calc(100vw - 32px)); overflow:hidden; background:#fffcf6; border:1px solid var(--gold); border-radius:16px; box-shadow:0 12px 40px #06271e40; }
.hj-wa-panel-header { background:var(--green); color:#fff; padding:18px; display:flex; flex-direction:column; gap:4px; }
.hj-wa-panel-header strong { font-size:16px; }
.hj-wa-panel-header small { color:#eadcc8; }
.hj-wa-panel-body { padding:16px; }
.hj-wa-panel-body p { background:#f1e9db; padding:12px; border-radius:12px; margin:0 0 14px; white-space:pre-wrap; overflow-wrap:anywhere; max-height:38vh; overflow:auto; }
.hj-wa-panel-body a { width:100%; border-radius:999px; background:#087a43; border-color:#087a43; }
.hj-whatsapp summary:focus-visible,.hj-wa-panel a:focus-visible { outline:3px solid var(--gold); outline-offset:3px; }
@media(max-width:1000px){ .product-detail-page .related-products .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:850px){ .hj-whatsapp { right:14px; bottom:calc(76px + env(safe-area-inset-bottom,0px)); } .hj-whatsapp summary { width:52px;height:52px; } .hj-wa-panel { bottom:62px; } }
@media(max-width:600px){ .catalog-category-rail { grid-auto-columns:minmax(0,calc((100% - 30px)/4));gap:10px; } .catalog-circle-picture { width:100%;max-width:75px;padding:5px; } .catalog-circle { font-size:11px; } .catalog-category-heading { font-size:13px; } .catalog-category-heading a { font-size:11px; } .product-detail-page .related-products { margin-top:30px; } .product-detail-page .related-products .product-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 10px; } .product-detail-page .related-products .title,.product-detail-page .related-products .price-row strong { font-size:13px; } .product-detail-page .product-main-image img { max-height:530px; } }

/* Editorial collection navigation: six generous circles, with an expandable list. */
.catalog-category-editorial{padding:18px 0 22px;text-align:center;margin-bottom:18px}
.catalog-category-editorial .catalog-category-heading{justify-content:center;margin-bottom:18px;font-size:15px}
.catalog-category-editorial .catalog-category-rail,.catalog-category-extra{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-flow:row;grid-auto-columns:auto;gap:18px;max-width:960px;margin:0 auto;padding:6px 8px 12px;overflow:visible;scroll-snap-type:none}
.catalog-category-editorial .catalog-circle{gap:9px;font-size:13px;overflow-wrap:normal;word-break:normal}
.catalog-category-editorial .catalog-circle-picture{width:110px;max-width:100%;padding:0;background:#f2e8d9;border:1px solid var(--gold)}
.catalog-category-editorial .catalog-circle-picture img{object-fit:contain;max-width:100%;height:100%;width:100%;border-radius:50%}
.catalog-category-editorial .catalog-circle-label{max-width:100%;overflow-wrap:break-word}
.catalog-category-editorial .catalog-circle.selected .catalog-circle-picture{border:2px solid var(--green);outline:1px solid var(--gold);outline-offset:3px}
.catalog-more summary,.catalog-all-link{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:9px 20px;min-height:38px;border:1px solid var(--gold);border-radius:999px;color:var(--green);font-size:12px;font-weight:700;cursor:pointer;list-style:none;background:var(--white);margin:8px 0 0}
.catalog-more summary::-webkit-details-marker,.catalog-filter summary::-webkit-details-marker{display:none}
.catalog-more-open,.catalog-more[open] .catalog-more-closed{display:none}
.catalog-more[open] .catalog-more-open{display:inline}
.catalog-more[open] .catalog-more-mark{transform:rotate(45deg)}
.catalog-category-extra{margin-top:16px;grid-template-columns:repeat(6,minmax(0,1fr))}
/* Compact filter and result counter. Native details works without JavaScript. */
.catalog-toolbar-compact{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 18px;min-width:0}
.catalog-result-count{margin:0;font-size:13px}
.catalog-filter{position:relative;z-index:8;flex:0 0 auto}
.catalog-filter summary{display:flex;align-items:center;gap:8px;min-height:42px;padding:8px 15px;list-style:none;border:1px solid var(--gold);border-radius:999px;color:var(--green);background:var(--white);font-size:13px;font-weight:700;cursor:pointer}
.catalog-filter-dot{width:7px;height:7px;border-radius:50%;background:#987039}
.catalog-filter[open] .catalog-filter-chevron{transform:rotate(180deg)}
.category-toolbar.catalog-filter-panel{position:absolute;top:calc(100% + 9px);right:0;width:min(340px,calc(100vw - 32px));max-width:calc(100vw - 32px);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:var(--white);border:1px solid var(--line);border-radius:14px;padding:16px;margin:0;box-shadow:0 12px 32px #06271e1a}
.catalog-filter-panel .catalog-filter-wide{grid-column:1/-1}
.catalog-filter-panel input,.catalog-filter-panel select{border-radius:8px}
.catalog-filter-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:3px}
.catalog-filter-actions a{font-size:12px;text-decoration:underline;text-underline-offset:3px}
.catalog-filter-actions .button{border-radius:999px;min-height:40px;padding:8px 18px}
.catalog-filter summary:focus-visible,.catalog-more summary:focus-visible,.best-auto-toggle:focus-visible{outline:2px solid var(--green);outline-offset:3px}
/* Keep native touch scrolling; hide scrollbar and remove manual arrow row. */
.bestsellers [data-best-auto]{scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior-inline:contain}
.bestsellers [data-best-auto]::-webkit-scrollbar{display:none}
.bestsellers .best-auto-toggle{border:0;background:transparent;color:var(--muted);padding:4px 8px;margin-left:12px;font:inherit;font-size:11px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.bestsellers .best-auto-toggle[hidden]{display:none}
@media(max-width:850px){.catalog-category-editorial .catalog-category-rail{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 42px)/4);overflow-x:auto;scroll-snap-type:x proximity;gap:14px;scrollbar-width:none;overscroll-behavior-inline:contain}.catalog-category-editorial .catalog-category-rail::-webkit-scrollbar{display:none}.catalog-category-extra{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.catalog-category-editorial .catalog-circle-picture{width:94px}}
@media(max-width:480px){.catalog-category-editorial .catalog-category-rail{grid-auto-columns:calc((100% - 24px)/3);gap:12px}.catalog-category-extra{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.catalog-category-editorial .catalog-circle-picture{width:84px}.catalog-category-editorial .catalog-circle{font-size:11px}.catalog-category-editorial{padding-top:10px}.catalog-toolbar-compact{margin-bottom:14px}.catalog-filter summary{font-size:12px;padding:8px 12px}}

/* Continuous best sellers and mobile-first product detail order. */
[data-product-category-anchor]{display:none}
.bestsellers [data-best-auto]{scroll-snap-type:none!important;scroll-behavior:auto!important;overflow-anchor:none}
.bestsellers [data-best-auto] [data-best-copy][hidden]{display:none!important}
@media(max-width:850px){.product-detail-page{display:flex;flex-direction:column;min-width:0}.product-detail-page>.product-category-position{order:20;min-width:0;margin-top:24px}.product-detail-page>.product-category-position .catalog-category-nav{margin-bottom:0}.product-detail-page>.product-detail-grid,.product-detail-page>.product-lower,.product-detail-page>.related-products{min-width:0;width:100%}}
@media(prefers-reduced-motion:reduce){.bestsellers [data-best-auto]{scroll-snap-type:x proximity!important}}
