/* Public catalog / details / contact / ads — extends shared style.css */
:root{--shop-ink:#102b3d;--shop-gold:#c58f56;--shop-muted:#627883;--shop-line:#dfe7e6}
body{background:#fbfaf7}
.public-nav{display:flex;align-items:center;gap:28px;font-size:13px;font-weight:800;color:#455f6e}
.public-nav a:hover,.public-nav a[aria-current=page]{color:#b48653}
.site-actions{display:flex;align-items:center;gap:9px}
.counter{background:#c58f56;color:#102b3d;border-radius:22px;display:inline-grid;place-items:center;min-width:24px;height:24px;font-weight:900}
.mobile-menu{display:none;width:42px;height:42px;background:white;color:#102b3d;border:1px solid var(--shop-line);border-radius:7px;font-size:20px}
.subhero{padding:72px 0 83px;background:radial-gradient(circle at 85% 30%,#e5d8c3,transparent 39%),linear-gradient(130deg,#f2f4ee,#f6f3ec)}
.subhero .container{position:relative}
.subhero h1{font-size:clamp(38px,5vw,65px);line-height:1.4;letter-spacing:-2px;color:#102b3d;max-width:800px;margin:0 0 13px;font-weight:900}
.subhero h1 em{font-style:normal;color:#ad804b}
.subhero p{font-size:14px;line-height:2.2;color:#5e7581;max-width:710px}
.crumb{font-size:11px;color:#7c929a;margin-bottom:25px}
.crumb a{color:#a47f54}
.collection-section{padding:70px 0 95px;min-height:40vh}
.catalog-tools{display:flex;align-items:end;gap:13px;margin-bottom:20px;background:#fff;padding:17px;border:1px solid var(--shop-line);border-radius:11px;flex-wrap:wrap}
.catalog-tools label{font-size:11px;font-weight:800;color:#4f6978;display:flex;flex-direction:column;gap:7px;min-width:160px}
.catalog-tools .search-input{flex:1}
.catalog-tools .catalog-search{position:relative;z-index:4;display:flex;flex-direction:column;gap:7px;flex:2 1 300px;min-width:240px;font-size:11px;font-weight:800;color:#4f6978}
.catalog-search-control{position:relative;width:100%}
.catalog-search-control input{padding-inline-end:42px}
.catalog-search-control input::-webkit-search-cancel-button{-webkit-appearance:none;display:none}
.catalog-search-control input[aria-expanded="true"]{border-color:#c58f56;border-radius:8px 8px 0 0}
.catalog-search-control input:focus{outline:2px solid #c58f56;outline-offset:2px}
.catalog-search-control button{position:absolute;inset-inline-end:10px;top:50%;transform:translateY(-50%);width:28px;height:28px;border:0;border-radius:50%;background:#f1f4f3;color:#526b78;font-size:19px;line-height:1;cursor:pointer}
.catalog-search-control button[hidden]{display:none}
.catalog-search-suggestions{position:absolute;z-index:50;top:calc(100% + 7px);inset-inline:0;max-height:min(70vh,390px);overflow:auto;padding:6px;background:#fff;border:1px solid #dfe7e6;border-radius:10px;box-shadow:0 16px 38px #102b3d22}
.catalog-search-suggestions[hidden]{display:none}
.catalog-search-option{display:flex;align-items:center;gap:10px;width:100%;padding:9px;border:0;border-radius:7px;background:#fff;color:#15394a;text-align:start;cursor:pointer}
.catalog-search-option:hover,.catalog-search-option[aria-selected="true"]{background:#f4f1ea}
.catalog-search-thumb{flex:0 0 42px;width:42px;height:42px;overflow:hidden;border:1px solid #e5ebea;border-radius:6px;background:#f5f3ed}
.catalog-search-thumb img{width:100%;height:100%;object-fit:cover}
.catalog-search-details{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.catalog-search-details strong{overflow:hidden;color:#15394a;font-size:11px;font-weight:900;text-overflow:ellipsis;white-space:nowrap}
.catalog-search-details small{overflow:hidden;color:#7b8d91;font-size:9px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.catalog-search-category{max-width:32%;overflow:hidden;padding:4px 7px;border-radius:15px;background:#f7f4ed;color:#9a7650;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.catalog-search-status{padding:13px 10px;color:#6b8088;font-size:11px;font-weight:600}
.catalog-search-footer{padding:9px 10px 4px;border-top:1px solid #edf0ef;color:#7d9098;font-size:9px;font-weight:600}
.catalog-tools input,.catalog-tools select,.stack-form input,.stack-form textarea,.quote-shell input,.quote-shell textarea{width:100%;border:1px solid #d8e2e2;background:#fff;padding:11px 13px;border-radius:7px;color:#173c4e;font-size:12px;min-height:46px}
.catalog-tools input:focus,.catalog-tools select:focus,.stack-form input:focus,.stack-form textarea:focus,.quote-shell input:focus{outline:2px solid #c58f56;outline-offset:2px}
.muted{color:#7d9098;font-size:12px}
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}
.shop-card{background:#fff;border:1px solid var(--shop-line);border-radius:12px;display:flex;flex-direction:column;overflow:hidden;transition:box-shadow .25s,transform .25s}
.shop-card:hover{transform:translateY(-4px);box-shadow:0 17px 40px #102b3d18}
.shop-card-media{height:185px;display:grid;place-items:center;background:linear-gradient(140deg,#e8eeee,#f6f2e9);position:relative;overflow:hidden}
.shop-card-media img{width:100%;height:100%;object-fit:contain;display:block;transition:transform .25s}
.shop-card:hover img{transform:scale(1.045)}
.shop-card-media .placeholder{font-size:78px;font-weight:900;color:#b1c3c6}
.shop-card-media small{position:absolute;bottom:11px;right:12px;background:#fffffff0;padding:4px 8px;font-size:9px;border-radius:4px;color:#67808e}
.shop-card-media .section-chip{position:absolute;right:11px;top:11px;bottom:auto;width:max-content;max-width:calc(100% - 22px);height:auto;display:inline-block;padding:4px 9px;background:#fff;border-radius:15px;color:#a88155;font-size:10px;font-weight:900;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shop-card-content{padding:15px;display:flex;flex-direction:column;flex:1}
.shop-card-content .brandline{color:#9b7b56;font-size:10px;font-weight:800}
.shop-card h3{font-size:14px;color:#113246;margin:5px 0 8px;font-weight:900;line-height:1.7}
.shop-card p{font-size:11px;color:#68808c;line-height:1.8;margin:0 0 15px}
.price-line{color:#164a61;font-weight:900;font-size:12px;margin-top:auto;margin-bottom:12px}
.price-line .old-price{color:#9da8ac;font-size:10px;text-decoration:line-through;margin-left:9px}
.price-line .muted-price{color:#74858a}
.shop-card-actions{display:flex;gap:8px;margin-top:auto}
.shop-card-actions .button{flex:1;min-height:42px;padding-inline:8px;font-size:11px;white-space:normal}
.shop-card-actions .details-link{border:1px solid #d6e0e1;border-radius:7px;padding:9px 11px;color:#3f6070;font-size:10px;font-weight:900}
.pagination{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:27px;flex-wrap:wrap}
.pagination button{border:1px solid #cddcdd;color:#245469;background:white;border-radius:6px;min-width:34px;height:35px}
.pagination button[aria-current=page]{background:#102b3d;color:white}
.category-directory{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.directory-card{border:1px solid #dfe8e8;background:white;border-radius:14px;overflow:hidden;padding:28px 23px;transition:transform .25s}
.directory-card:hover{transform:translateY(-4px)}
.directory-icon{height:105px;display:grid;place-items:center;font-size:75px;color:#bb9365;background:#f6f2eb;border-radius:10px;margin-bottom:20px}
.directory-card h2{font-size:19px;margin:0 0 8px}
.directory-card p{font-size:12px;color:#72858e}
.directory-count{display:inline-flex;align-self:flex-start;margin:-4px 0 9px;padding:4px 10px;border-radius:20px;background:#f2f5f2;color:#56716f;font-size:10px;font-weight:900}
.directory-main-link{display:inline-flex;margin:7px 0 14px;padding:9px 12px;border-radius:6px;background:#102b3d;color:#fff;font-size:11px;font-weight:900}
.directory-subgroups{display:grid;gap:7px;border-top:1px solid #e5eceb;padding-top:12px}
.directory-subgroup{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;border:1px solid #e7eeec;border-radius:7px;color:#345260;background:#fbfcfa;font-size:10px}
.directory-subgroup:hover{border-color:#bd9b71;background:#f7f3ed}
.directory-subgroup span{color:#8e7658;font-size:9px;white-space:nowrap}
.directory-card{display:flex;flex-direction:column;align-items:stretch}
.catalog-tools label{flex:1 1 155px}
.catalog-tools .search-input{flex:2 1 260px}
.catalog-tools select{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.directory-card a{display:inline-block;font-size:12px;color:#a77a48;font-weight:900}
.product-details{display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:start;margin-bottom:80px}
.product-photo{border:1px solid #dbe5e6;min-height:390px;border-radius:13px;background:linear-gradient(145deg,#e8f0ed,#f8f7f2);display:grid;place-items:center;overflow:hidden}
.product-photo img{width:100%;max-height:450px;object-fit:contain}
.product-photo .placeholder{font-size:130px;color:#a4b9be}
.thumb-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.thumb-row button{width:64px;height:64px;border:1px solid #dce5e5;border-radius:8px;background:#fff;overflow:hidden}
.thumb-row button.active{outline:2px solid #bd8d57}
.thumb-row img{width:100%;height:100%;object-fit:contain}
.product-info h1{font-size:clamp(29px,3vw,46px);line-height:1.4;color:#102b3d}
.product-info .sku{font-size:11px;color:#7d929b}
.product-info .description{color:#5e7580;line-height:2.3;font-size:14px}
.product-info dl{background:#fff;border:1px solid #e1e8e7;border-radius:10px;padding:20px;display:grid;grid-template-columns:repeat(2,1fr);gap:15px}
.product-info dt{font-size:10px;color:#72858d}
.product-info dd{margin:0;color:#163749;font-size:12px;font-weight:900}
.product-info .quantity-label{font-weight:800;font-size:12px;display:block;margin:20px 0 7px}
.product-info input[type=number]{border:1px solid #d0dbdc;border-radius:7px;width:90px;padding:10px;font-size:13px}
.product-info .action-row{display:flex;flex-wrap:wrap;gap:11px;margin-top:18px}
.product-info .notice{font-size:11px;color:#896e46;background:#f9f1e2;border-radius:7px;padding:11px;margin-top:18px}
.panel{border:1px solid #e0e7e7;background:#fff;border-radius:13px;padding:30px}
.stack-form{display:grid;gap:15px}
.stack-form label,.quote-shell label{display:flex;flex-direction:column;gap:7px;color:#254858;font-size:12px;font-weight:900}
.stack-form textarea{resize:vertical}
.form-feedback{font-size:12px;color:#2b7869;line-height:1.9;margin:5px 0}
.contact-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:25px;align-items:start}
.contact-aside{display:flex;flex-direction:column;gap:16px}
.contact-aside h2{margin:0}
.contact-aside .info-row{padding:13px 0;border-bottom:1px solid #e7eeee}
.contact-aside .info-row strong{font-size:11px;display:block;color:#a27f56}
.contact-aside .info-row span{font-size:13px;color:#34576a}
.tracker{max-width:650px;margin:auto}
.track-result{margin-top:25px;font-size:13px}
.track-item{border-bottom:1px solid #e2e9e8;padding:9px 0}
.track-status{background:#e5f0ed;border-radius:25px;display:inline-block;padding:6px 12px;font-size:12px;color:#286b58;font-weight:900}
.about-layout{display:grid;grid-template-columns:.82fr 1.18fr;gap:70px;align-items:center}
.about-layout h2{font-size:34px}
.about-layout p,.prose p{font-size:14px;line-height:2.5;color:#58707e}
.about-emblem{height:400px;background:linear-gradient(145deg,#173e50,#0d2838);color:#d8b78a;font-size:280px;display:grid;place-items:center;border-radius:14px}
.prose{max-width:900px}
.prose h2{font-size:22px}
.notfound{min-height:58vh}
.quote-dialog{padding:0;width:min(520px,calc(100vw - 26px));max-height:90vh;border:0;border-radius:13px;box-shadow:0 22px 70px #0004}
.quote-dialog::backdrop{background:#031924ac}
.quote-shell{padding:24px;max-height:88vh;overflow:auto}
.quote-heading{display:flex;align-items:start;justify-content:space-between;gap:18px}
.quote-heading h2{font-size:24px;margin:0}
.quote-heading button{width:37px;height:37px;border:1px solid #d5dfe0;background:white;border-radius:50%;font-size:22px}
.quote-shell>p{font-size:11px;color:#667d87}
.quote-shell form{display:grid;gap:11px}
.quote-cart-line{display:grid;grid-template-columns:1fr auto;gap:9px;padding:12px 0;border-bottom:1px solid #e8eded;font-size:12px}
.quote-cart-line .qty{display:flex;align-items:center;gap:6px}
.quote-cart-line .qty input{min-height:33px;width:57px;padding:4px;text-align:center}
.quote-cart-line .qty button{border:1px solid #d1dddd;background:white;border-radius:5px;width:25px;height:25px}
.quote-cart-line .remove{background:transparent;border:0;color:#b06456;font-size:10px;grid-column:2}
.cart-total{padding:14px 0;font-size:12px;font-weight:900}
.floating-ads{pointer-events:none;position:fixed;inset:0;z-index:199}
.floating-ad{pointer-events:auto;position:absolute;max-width:min(325px,calc(100vw - 30px));border-radius:12px;background:#fff;color:#163a4b;box-shadow:0 16px 48px #00192334;border-top:4px solid #c58f56;padding:17px 18px;display:grid;grid-template-columns:1fr auto;gap:9px}
.floating-ad.pos-bottom_left{bottom:22px;left:22px}
.floating-ad.pos-bottom_right{bottom:22px;right:22px}
.floating-ad.pos-top{top:95px;left:50%;transform:translateX(-50%);max-width:400px}
.floating-ad.color-navy{background:#133b4d;color:#fff;border-color:#315f76}
.floating-ad.color-light{background:#e8f1ef;border-color:#68a59b}
.floating-ad h3{font-size:14px;margin:0 0 5px}
.floating-ad p{font-size:11px;margin:0;line-height:1.7}
.floating-ad a{font-size:11px;font-weight:900;color:#ab7d47;display:inline-block;margin-top:9px}
.floating-ad button{width:27px;height:27px;border:1px solid #a3b4b4;border-radius:50%;background:transparent;color:inherit;font-size:17px}
.floating-ad img{width:100%;max-height:90px;object-fit:contain;grid-column:1/-1}
.floating-ad.ad-bar{top:0;right:0;left:0;max-width:none;width:100%;border-radius:0;grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:12px clamp(14px,5vw,70px);border-top:0;border-bottom:3px solid #c58f56}
.floating-ad.ad-bar p{display:inline;margin-inline-start:8px}
.floating-ad.ad-inline{position:relative;inset:auto;transform:none;width:100%;max-width:none;margin:16px 0;border-radius:12px}
.floating-ad.ad-inline img{max-height:140px}
.floating-ad.ad-welcome{max-width:min(380px,calc(100vw - 30px))}
.inline-ad-slot{padding-top:8px;padding-bottom:8px}
.ui-toast{pointer-events:none;position:fixed;bottom:18px;left:50%;transform:translateX(-50%) translateY(15px);background:#102b3d;color:#fff;border-radius:7px;padding:10px 17px;z-index:500;box-shadow:0 10px 20px #0003;font-size:12px;opacity:0;transition:.2s}
.ui-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.home-products,.home-reviews{padding:75px 0}
.home-reviews{background:#f3f6f4}
.review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.review-card{background:#fff;border:1px solid #dfe7e7;border-radius:12px;padding:23px;font-size:12px;line-height:2;color:#506876}
.review-card strong{display:block;color:#16404f;margin-top:10px}
@media(max-width:1100px){.product-grid{grid-template-columns:repeat(3,1fr)}.category-directory{grid-template-columns:repeat(3,1fr)}.public-nav{gap:16px}}
@media(max-width:900px){.public-nav{position:absolute;left:0;right:0;top:100%;background:#fff;border-top:1px solid #e0e7e7;box-shadow:0 20px 30px #0001;display:none;flex-direction:column;align-items:stretch;padding:12px 25px;gap:0}.public-nav.open{display:flex}.public-nav a{padding:9px 0;border-bottom:1px solid #e5ebeb}.mobile-menu{display:block}.product-grid{grid-template-columns:repeat(2,1fr)}.category-directory{grid-template-columns:repeat(2,1fr)}.product-details,.about-layout,.contact-layout{grid-template-columns:1fr;gap:25px}}
@media(max-width:600px){.site-actions .button{font-size:10px;min-height:42px;padding:8px}.subhero{padding:50px 0}.subhero h1{font-size:38px}.collection-section{padding:47px 0}.catalog-tools{display:grid;grid-template-columns:1fr 1fr;gap:10px}.catalog-tools .search-input,.catalog-tools .catalog-search{grid-column:1/-1}.catalog-tools label{min-width:0}.product-grid,.category-directory{gap:11px}.shop-card-media{height:132px}.shop-card-media .placeholder{font-size:53px}.shop-card-content{padding:11px}.shop-card h3{font-size:12px}.shop-card p{font-size:10px}.shop-card-actions{flex-direction:column}.shop-card-actions .button{min-height:35px;font-size:10px}.shop-card-actions .details-link{text-align:center}.product-photo{min-height:250px}.product-info dl{grid-template-columns:1fr}.about-emblem{height:230px;font-size:170px}.panel{padding:19px}.review-grid{grid-template-columns:1fr}.floating-ad.pos-top{top:70px}.floating-ad.pos-bottom_left{bottom:16px;left:14px}.floating-ad.pos-bottom_right{bottom:16px;right:14px}}
@media(max-width:900px){.public-nav a[data-desktop-only="true"]{display:none}}
@media(max-width:900px){.category-directory{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-tools label,.catalog-tools .search-input,.catalog-tools .catalog-search{flex:1 1 calc(50% - 13px)}}
@media(max-width:560px){.category-directory{grid-template-columns:1fr}.catalog-tools label,.catalog-tools .search-input,.catalog-tools .catalog-search{flex:1 1 100%}.directory-card{padding:20px 17px}}
@media(min-width:901px){.public-nav a[data-mobile-only="true"]{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

/* Inquiry document exports — CSP compliant */
.quote-files{margin:18px 0;padding:16px;border:1px solid #d8e4df;border-radius:12px}
.quote-files h3{margin:0 0 8px}
.quote-files-help,#files-status{font-size:12px}
.quote-files-actions{display:flex;flex-wrap:wrap;gap:8px}
.quote-files-actions button{max-width:100%}
@media(max-width:600px){.header-inner{gap:8px}.brand{gap:6px;min-width:0}.brand-mark{flex:0 0 36px;width:36px;height:36px;font-size:23px}.brand-text{min-width:0}.brand-text strong{font-size:13px;letter-spacing:-.5px;white-space:nowrap}.brand-text small{display:none}.site-actions{gap:5px;flex:0 0 auto}.site-actions .button{font-size:9px;min-height:36px;padding:5px 7px;gap:5px;white-space:nowrap}.site-actions .counter{min-width:20px;height:20px;font-size:9px}.mobile-menu{flex:0 0 36px;width:36px;height:36px}}

.has-placeholder-photo{position:relative;background:#f9f7f2}
.has-placeholder-photo>.product-placeholder-art{display:block;width:100%;height:100%;max-height:none!important;object-fit:contain;background:#f9f7f2;transform:none!important}
.shop-card:hover .product-placeholder-art{transform:none!important}
.has-placeholder-photo>.product-placeholder-label{position:absolute;inset-inline-start:12px;bottom:10px;padding:3px 9px;border:1px solid #dce4e4;border-radius:18px;background:#ffffffed;color:#607783;font-size:10px;font-weight:800;line-height:1.6;pointer-events:none}
.product-photo.has-placeholder-photo{min-height:230px}
.product-thumbnail.has-placeholder-photo{min-height:72px}


/* BIN OBAID Premium — catalog, pages, detail, ads, cart.
   Scoped to the new opt-in theme, appended after old declarations. */
body.theme-dark:not([data-page=home]){background:var(--bo-bg)}
body.theme-dark .public-nav{color:var(--bo-muted);gap:clamp(12px,2vw,24px)}
body.theme-dark .public-nav a{color:var(--bo-muted);font-weight:800}
body.theme-dark .public-nav a:hover,body.theme-dark .public-nav a[aria-current=page],body.theme-dark .public-nav a.active{color:var(--gold-light)}
body.theme-dark .site-actions,body.theme-dark .header-actions{display:flex;align-items:center;gap:10px}
body.theme-dark .counter{background:#d4af37;color:#111827}
body.theme-dark .mobile-menu{background:var(--bo-panel);border-color:var(--bo-gold-border);color:var(--gold-light)}
body.theme-dark .subhero{padding:clamp(58px,8vw,96px) 0;background:radial-gradient(ellipse at 82% 16%,rgba(212,175,55,.13),transparent 48%),linear-gradient(125deg,var(--bo-panel),var(--bo-bg));border-bottom:1px solid var(--bo-border)}
body.theme-dark .subhero h1{color:var(--bo-text);font-size:clamp(29px,4.2vw,54px);letter-spacing:-.8px}
body.theme-dark .subhero h1 em{color:var(--gold-light)}
body.theme-dark .subhero p{color:var(--bo-muted)}
body.theme-dark .crumb{color:var(--bo-muted)}
body.theme-dark .crumb a{color:var(--gold-light)}
body.theme-dark .collection-section{background:var(--bo-bg);padding-block:clamp(48px,6vw,85px)}
body.theme-dark .catalog-tools{background:var(--bo-panel);border:1px solid var(--bo-border);border-radius:18px;padding:18px;gap:14px;box-shadow:var(--bo-shadow)}
body.theme-dark .catalog-tools label,body.theme-dark .catalog-tools .catalog-search{color:var(--bo-text);font-weight:800}
body.theme-dark .catalog-tools :is(input,select){background:var(--bo-bg);border:1px solid var(--bo-border);border-radius:10px;color:var(--bo-text);min-height:46px}
body.theme-dark .catalog-tools :is(input,select):focus{outline:2px solid rgba(212,175,55,.35);outline-offset:1px;border-color:var(--gold)}
body.theme-dark .catalog-search-control button{background:var(--bo-panel);color:var(--gold-light)}
body.theme-dark .catalog-search-suggestions{background:var(--bo-panel);border:1px solid var(--bo-gold-border);color:var(--bo-text);box-shadow:var(--bo-shadow);border-radius:12px}
body.theme-dark .catalog-search-option{background:transparent;color:var(--bo-text)}
body.theme-dark .catalog-search-option:hover,body.theme-dark .catalog-search-option[aria-selected=true]{background:var(--pale);color:var(--gold-light)}
body.theme-dark .catalog-search-details strong{color:var(--bo-text)}
body.theme-dark .catalog-search-details small,body.theme-dark .catalog-search-category{color:var(--bo-muted)}
body.theme-dark .result-count-bar,body.theme-dark .muted{color:var(--bo-muted)}
body.theme-dark .shop-card{background:var(--bo-panel);border:1px solid var(--bo-border);border-radius:16px;box-shadow:0 8px 26px rgba(0,0,0,.09);transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}
body.theme-dark .shop-card:hover{transform:translateY(-5px);border-color:var(--gold);box-shadow:var(--bo-shadow)}
body.theme-dark .shop-card-media{background:#f6f7f8;overflow:hidden}
body.theme-dark .shop-card-media img{object-fit:contain}
body.theme-dark .shop-card-media .section-chip{background:#f8fafc;color:#80601d}
body.theme-dark .shop-card-media small{background:#f6f8faf0;color:#4a5e70}
body.theme-dark .shop-card-content{color:var(--bo-text)}
body.theme-dark .shop-card h3{color:var(--bo-text)}
body.theme-dark .shop-card p{color:var(--bo-muted)}
body.theme-dark .shop-card-content .brandline,body.theme-dark .brandline{color:var(--gold-light)}
body.theme-dark .price-line{color:var(--gold-light)}
body.theme-dark .details-link{border-color:var(--bo-gold-border);color:var(--gold-light);border-radius:10px}
body.theme-dark .details-link:hover{background:var(--pale);border-color:var(--gold)}
body.theme-dark .pagination button{background:var(--bo-panel);border:1px solid var(--bo-border);color:var(--bo-text);border-radius:9px}
body.theme-dark .pagination button:hover,body.theme-dark .pagination button[aria-current=page]{background:var(--gold);border-color:var(--gold);color:#111827}
body.theme-dark .category-directory .directory-card{background:var(--bo-panel);border:1px solid var(--bo-border);border-radius:17px;color:var(--bo-text);transition:transform .2s ease,border-color .2s ease}
body.theme-dark .category-directory .directory-card:hover{transform:translateY(-4px);border-color:var(--gold)}
body.theme-dark .category-directory .directory-card h2{color:var(--bo-text)}
body.theme-dark .category-directory .directory-card p{color:var(--bo-muted)}
body.theme-dark .category-directory .directory-icon{background:rgba(212,175,55,.11);border:1px solid var(--bo-gold-border);color:var(--gold-light)}
body.theme-dark .category-directory .directory-count{background:rgba(212,175,55,.14);color:var(--gold-light)}
body.theme-dark .category-directory .directory-main-link{color:var(--gold-light);border-color:var(--bo-border)}
body.theme-dark .category-directory .directory-subgroups{border-color:var(--bo-border)}
body.theme-dark .category-directory .directory-subgroup{background:var(--bo-bg);color:var(--bo-text);border-color:var(--bo-border)}
body.theme-dark .category-directory .directory-subgroup:hover{border-color:var(--gold)}
body.theme-dark .product-info h1{color:var(--bo-text)}
body.theme-dark .product-info .description,body.theme-dark .product-info .sku{color:var(--bo-muted)}
body.theme-dark .product-info dl{background:var(--bo-panel);border:1px solid var(--bo-border);border-radius:15px}
body.theme-dark .product-info dt{color:var(--gold-light)}
body.theme-dark .product-info dd{color:var(--bo-text)}
body.theme-dark .product-info .notice{background:rgba(212,175,55,.1);border:1px solid var(--bo-gold-border);color:var(--bo-text)}
body.theme-dark .product-photo,body.theme-dark .product-thumbnail{background:#f6f8fa}
body.theme-dark .product-photo img{object-fit:contain}
body.theme-dark .panel,body.theme-dark .tracker,body.theme-dark .contact-aside{background:var(--bo-panel);color:var(--bo-text);border:1px solid var(--bo-border);border-radius:17px;padding:clamp(20px,3vw,32px)}
body.theme-dark .panel h2,body.theme-dark .panel h3,body.theme-dark .contact-aside h2{color:var(--bo-text)}
body.theme-dark .panel p,body.theme-dark .panel li,body.theme-dark .contact-aside p,body.theme-dark .tracker p{color:var(--bo-muted)}
body.theme-dark .prose h2{border-color:var(--bo-border)}
body.theme-dark .prose a{color:var(--gold-light)}
body.theme-dark .stack-form label,body.theme-dark .quote-shell label{color:var(--bo-text)}
body.theme-dark .stack-form :is(input,textarea,select),body.theme-dark .quote-shell :is(input,textarea,select){background:var(--bo-bg);color:var(--bo-text);border:1px solid var(--bo-border);border-radius:10px}
body.theme-dark .stack-form :is(input,textarea,select):focus,body.theme-dark .quote-shell :is(input,textarea,select):focus{outline:2px solid rgba(212,175,55,.34);border-color:var(--gold)}
body.theme-dark .quote-dialog{background:var(--bo-panel);color:var(--bo-text);border:1px solid var(--bo-gold-border);border-radius:18px;box-shadow:var(--bo-shadow);max-height:90dvh}
body.theme-dark .quote-dialog::backdrop{background:rgba(0,4,14,.78)}
body.theme-dark .quote-heading h2,body.theme-dark .quote-files h3{color:var(--bo-text)}
body.theme-dark .quote-heading button{background:var(--bo-bg);color:var(--gold-light);border-color:var(--bo-border)}
body.theme-dark .quote-shell>p,body.theme-dark .quote-files-help,body.theme-dark #files-status{color:var(--bo-muted)}
body.theme-dark .quote-cart-line{border-color:var(--bo-border);color:var(--bo-text)}
body.theme-dark .quote-cart-line .qty button{background:var(--bo-bg);color:var(--gold-light);border-color:var(--bo-border)}
body.theme-dark .quote-files{background:var(--bo-bg);border:1px dashed var(--bo-gold-border);border-radius:14px}
body.theme-dark .cart-total{color:var(--gold-light);border-color:var(--bo-border)}
body.theme-dark .form-feedback{color:#5fdab7}
body.theme-dark .track-result,body.theme-dark .track-item{color:var(--bo-text)}
body.theme-dark .review-card{background:var(--bo-panel);border-color:var(--bo-border)}
body.theme-dark .floating-ad{background:var(--bo-panel);color:var(--bo-text);border:1px solid var(--bo-gold-border);border-radius:16px;box-shadow:var(--bo-shadow);padding:17px;max-width:min(350px,calc(100vw - 24px))}
@supports(backdrop-filter:blur(14px)){body.theme-dark .floating-ad{background:rgba(22,35,58,.88);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}}
body.theme-dark .floating-ad h3{color:inherit}
body.theme-dark .floating-ad p{color:inherit;opacity:.88}
body.theme-dark .floating-ad a{color:var(--gold-light)}
body.theme-dark .floating-ad button[aria-label="إغلاق الإعلان"]{border-radius:50%;border:1px solid var(--bo-gold-border);background:var(--bo-bg);color:var(--bo-text);width:30px;height:30px}
body.theme-dark .floating-ad.color-light{background:#f7f9fb;color:#15273c}
body.theme-dark .floating-ad.color-light a{color:#8c641a}
body.theme-dark .floating-ad.ad-bar{border-radius:0;padding:12px clamp(14px,5vw,60px);border-bottom:3px solid #d4af37}
body.theme-dark .floating-ad.ad-inline{background:var(--bo-panel);max-width:none;width:100%}
body.theme-dark .ui-toast{z-index:500;position:fixed;left:50%;bottom:26px;transform:translate(-50%,25px);border-radius:13px;background:var(--bo-panel);color:var(--bo-text);border:1px solid var(--bo-gold-border);box-shadow:var(--bo-shadow)}
body.theme-dark .ui-toast.show{transform:translate(-50%,0)}
@media(max-width:900px){
 body.theme-dark .public-nav{position:absolute;top:100%;right:0;left:0;display:none;flex-direction:column;align-items:stretch;gap:0;background:var(--bo-panel);border-bottom:1px solid var(--bo-gold-border);padding:12px 22px;box-shadow:var(--bo-shadow)}
 body.theme-dark .public-nav.open{display:flex}
 body.theme-dark .public-nav a{padding:13px 8px;border-bottom:1px solid var(--bo-border)}
 body.theme-dark .mobile-menu{display:inline-flex;align-items:center;justify-content:center}
 body.theme-dark .category-directory{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 body.theme-dark .catalog-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:13px}
 body.theme-dark .catalog-tools .catalog-search{grid-column:1/-1;min-width:0}
 body.theme-dark .catalog-tools label{min-width:0}
 body.theme-dark .catalog-tools label:last-child{grid-column:1/-1}
 body.theme-dark .catalog-search-suggestions{max-height:55dvh}
 body.theme-dark .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 body.theme-dark .shop-card-media{height:145px}
 body.theme-dark .shop-card-content{padding:11px}
 body.theme-dark .shop-card h3{font-size:12px}
 body.theme-dark .shop-card-actions{flex-direction:column;gap:7px}
 body.theme-dark .shop-card-actions .button,body.theme-dark .shop-card-actions .details-link{width:100%;font-size:11px;padding:7px;min-height:38px}
 body.theme-dark .category-directory{grid-template-columns:1fr}
 body.theme-dark .quote-files-actions{display:flex;flex-direction:column}
 body.theme-dark .quote-files-actions .button{width:100%}
 body.theme-dark .floating-ad{max-width:calc(100vw - 24px);left:12px;right:12px}
}
@media(max-width:360px){body.theme-dark .product-grid{grid-template-columns:1fr}}
@media print{body.theme-dark .catalog-tools,body.theme-dark .pagination,body.theme-dark .floating-ads{display:none!important}body.theme-dark .shop-card{break-inside:avoid;background:#fff;color:#000;border:1px solid #ddd}}

/* Compact accessible cart button for narrow phones */
body.theme-dark #cart-open{gap:7px}
@media(max-width:600px){
 body.theme-dark .cart-action-label{display:none}
 body.theme-dark #cart-open{min-width:42px;min-height:42px;padding:6px 9px}
 body.theme-dark .site-actions{gap:5px}
 body.theme-dark .brand{gap:6px;min-width:0}
 body.theme-dark .header-inner{gap:8px}
 body.theme-dark .brand-text strong{font-size:13px}
 body.theme-dark .brand-mark{width:38px;height:38px;font-size:24px;flex:0 0 38px}
 body.theme-dark .theme-toggle,body.theme-dark .mobile-menu{min-width:39px;width:39px;height:40px;padding:5px}
}
