/* Shared palette; loaded after all page-specific styles. */
:root{color-scheme:light;--surface:#fff;--surface-soft:#f5f7fa;--ink:#202534;--muted:#626d7e;--line:#e0e5ec;--action:#2455c7;--positive:#137347;--yellow:#feee00}
html[data-theme="dark"]{color-scheme:dark;--surface:#1b2230;--surface-soft:#242e3e;--ink:#f1f5fa;--muted:#b8c3d2;--line:#3b475a;--action:#8bb5ff;--positive:#80e4b0;--blue:#8bb5ff}
.account-content,.account-nav,.cart-row,.cart-summary,.checkout-form,.checkout-summary{background:var(--surface)!important;color:var(--ink)!important;border:1px solid var(--line)!important;border-radius:14px;box-shadow:0 4px 18px #12213b05}
.account-content{padding:26px;min-width:0}.account-layout{align-items:start}.account-nav{padding:12px}.account-nav a{border-radius:8px;padding:12px}.account-nav a[aria-current=page]{background:var(--surface-soft);color:var(--action);font-weight:bold}
.account-welcome{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:24px}.account-welcome h2,.account-welcome p{margin:0}.account-welcome p{font-size:13px;overflow-wrap:anywhere;color:var(--muted)}.account-avatar{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;background:#feee00;color:#202534;font-size:25px;font-weight:bold}.account-welcome>.outline-link{margin-inline-start:auto}
.account-stats>div,.address-card{background:var(--surface-soft)!important;border:1px solid var(--line);color:var(--ink)!important;border-radius:12px;padding:20px}.order-list-row{border:1px solid var(--line);border-radius:10px;margin:10px 0;padding:16px;gap:12px;flex-wrap:wrap;background:var(--surface);color:var(--ink)}.order-list-row:hover{border-color:var(--action)}
.profile-form .form-grid{gap:18px}.profile-form label{display:grid;gap:7px;font-size:14px}.profile-form input{width:100%;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink)}.profile-save{border:0;border-radius:8px;padding:12px 24px;margin-top:18px;background:#2455c7;color:#fff;font-weight:bold}
.cart-layout,.checkout-layout{align-items:start}.cart-row{padding:20px;gap:16px;margin-bottom:14px}.cart-info h3{font-size:16px;line-height:1.6}.cart-info small{color:var(--muted)}.cart-thumb{border-radius:10px;background:#fff;overflow:hidden}.cart-thumb img{object-fit:contain}.cart-summary,.checkout-summary{position:sticky;top:110px;padding:24px}.cart-summary h3,.checkout-summary h3{padding-bottom:14px;border-bottom:1px solid var(--line)}.qty-form{gap:6px}.qty-form input{width:65px;min-height:40px;border:1px solid var(--line);border-radius:7px;text-align:center}.qty-form button{background:var(--surface-soft);color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:8px}.remove-btn{color:#b42332;background:transparent;border:0}.checkout-btn,.place-order-btn{background:#2455c7!important;color:#fff!important;border-radius:9px}.checkout-form{padding:24px}.saved-address:has(input:checked){border-color:var(--action);background:var(--surface-soft)}
.order-head{border-bottom:1px solid var(--line);padding-bottom:18px;gap:12px}.order-head small,.order-head b{display:block}.order-head b{font-size:20px}.order-head small{color:var(--muted)}.order-status{background:var(--surface-soft);color:var(--action);border-radius:30px;padding:8px 14px;font-size:13px;font-weight:bold}.order-progress{list-style:none;display:flex;padding:24px 0;margin:0;gap:8px}.order-progress li{flex:1;text-align:center;font-size:12px;color:var(--muted);border-top:3px solid var(--line);padding-top:12px}.order-progress span{display:grid;place-items:center;width:26px;height:26px;margin:0 auto 8px;border-radius:50%;background:var(--surface-soft)}.order-progress li.done{border-color:var(--positive);color:var(--positive)}.order-progress .done span{background:var(--positive);color:var(--surface)}
.order-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:12px 0 28px}.order-info-grid>div{display:grid;align-content:start;gap:6px;padding:16px;background:var(--surface-soft);border-radius:10px;overflow-wrap:anywhere}.order-info-grid small{color:var(--muted)}.order-info-grid span{font-size:14px}.order-product{display:grid;grid-template-columns:84px 1fr auto;align-items:start;gap:16px;padding:20px 0;border-bottom:1px solid var(--line)}.order-product-image{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;color:#202534}.order-product-image img{width:84px;height:95px;object-fit:contain}.order-product-copy{min-width:0}.order-product h3{font-size:15px;margin:0 0 6px}.order-product small{color:var(--muted)}.order-tags{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.order-tags span{font-size:12px;padding:4px 8px;background:var(--surface-soft);border-radius:5px}.order-print{font-size:13px;margin:10px 0}.order-print a{color:var(--action);text-decoration:underline;overflow-wrap:anywhere}.order-print p{margin:8px 0}.order-costs{max-width:380px;margin:24px 0 24px auto;background:var(--surface-soft);padding:18px;border-radius:12px}.order-costs>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0}.order-grand{border-top:1px solid var(--line);margin-top:8px;font-size:19px}.order-actions{display:flex;gap:10px;flex-wrap:wrap}.order-note{margin-top:18px;padding:16px;background:var(--surface-soft);border-radius:10px;white-space:pre-wrap}
/* Dark surfaces and their text are paired to avoid white-on-white or black-on-black. */
html[data-theme="dark"] :is(.product-summary,.product-info,.product-detail-info,.product-buy-form-pro,.product-reviews-panel,.reviews-score,.notifications-shell,.notification-item,.product-tabs,.variant-box,.delivery-benefits,.product-service-box,.address-card,.saved-address,.payment-option,.order-info-grid>div,.order-list-row,.popular-searches,.brands-section,.brand-section){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] :is(.product-body,.product-summary,.product-info,.product-detail-info,.product-buy-form-pro,.product-reviews-panel,.account-content,.cart-summary,.checkout-summary,.checkout-form,.notifications-shell) :is(p,label,legend,summary,strong,b){color:var(--ink)}
html[data-theme="dark"] :is(.product-price,.product-price strong,.product-pricing strong,.product-title,.product-card-title,.current-price,.price-current,.product-body h3 a,.product-body .price,.product-body .price strong,.product-body .price b,.notification-item-title,.notifications-read-all){color:var(--ink)!important}
html[data-theme="dark"] :is(.product-body,.product-summary,.product-info,.account-content,.notifications-shell) :is(small,del){color:var(--muted)!important}
html[data-theme="dark"] :is(.rating-pill,.product-rating,.product-rating-pill,.shipping-text,.shipping-message-rotator,.product-save-badge,.discount-inline,.price-discount){background:#18392f!important;color:#94edc2!important}
html[data-theme="dark"] :is(.rating-pill,.product-rating,.product-rating-pill) :is(strong,b,span){color:inherit!important}
html[data-theme="dark"] :is(.product-tabs details,.product-meta,.product-description,.product-description p,.product-description li,.notification-item-body p){color:var(--muted)!important}
html[data-theme="dark"] :is(.variant-choice,.ts-size-option,.ts-color-option,.ts-size-btn,.ts-color-btn,.delivery-benefits>div,.order-tags span,.account-stats>div,.order-costs){background:var(--surface-soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] :is(.product-media,.main-image,.product-main-image,.product-gallery-main,.thumb,.strong-brand-grid a){background:#fff!important;color:#202534!important}html[data-theme="dark"] .product-media img{mix-blend-mode:normal!important}
html[data-theme="dark"] :is(.popular-searches a,.popular-search-tags a,.notification-item.is-unread,.order-progress span){background:var(--surface-soft)!important;color:var(--ink)!important}
html[data-theme="dark"] :is(.success-box,.alert.success){background:#173b2f!important;color:#a8f0ce!important}html[data-theme="dark"] .form-errors{background:#47232c!important;color:#ffc1cc!important}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:#adb9ca!important;opacity:1}
html[data-theme="dark"] :is(.hero-slide,.offer-strip,.business-banner,.flash-sale-section){background:var(--surface-soft)!important;color:var(--ink)!important}
@media(max-width:800px){.account-content{padding:16px}.account-nav{display:flex;overflow:auto;gap:4px}.account-nav>a{white-space:nowrap;padding:10px}.account-nav form{flex-shrink:0}.account-welcome{gap:10px}.account-welcome h2{font-size:20px}.cart-row{display:grid;grid-template-columns:76px minmax(0,1fr);padding:14px;gap:12px}.cart-thumb{width:76px;grid-row:span 2}.cart-info{min-width:0}.cart-info h3{font-size:14px}.qty-form{grid-column:2;display:flex}.cart-row .line-total{grid-column:2;font-size:14px}.cart-summary,.checkout-summary{position:static;padding:18px}.order-info-grid{grid-template-columns:1fr}.order-product{grid-template-columns:64px minmax(0,1fr);gap:12px}.order-product>strong{grid-column:2}.order-product-image img{width:64px;height:80px}.order-progress{gap:4px}.order-progress li{font-size:10px}.order-head b{font-size:17px}.order-costs{max-width:none;margin-inline:0}.checkout-form{padding:18px}}

html[data-theme="dark"] #main-content .product-page-noon{background:#111419!important;color:var(--ink)!important}
html[data-theme="dark"] #main-content .product-page-noon :is(.breadcrumbs,.breadcrumbs a,.product-summary,.product-meta-pro,.quantity-box-pro,.variant-head-pro small){color:var(--muted)!important}
html[data-theme="dark"] #main-content .product-page-noon :is(.product-price-pro strong,.ts-variant-label,.product-tabs,.ts-logo-hand-size b,.ts-logo-position-help b){color:var(--ink)!important}
html[data-theme="dark"] #main-content .product-page-noon :is(.product-service-grid,.product-service-grid>div,.product-category-chip,.ts-logo-hand-size,.ts-logo-position-help){background:var(--surface-soft)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-theme="dark"] #main-content .product-page-noon .product-service-grid :is(b,span){color:var(--ink)!important}
html[data-theme="dark"] #main-content .product-page-noon :is(.ts-size-option,.ts-color-option).is-active{border-color:#8bb5ff!important;box-shadow:0 0 0 2px #8bb5ff!important}
html[data-theme="dark"] #main-content .product-page-noon .detail-rating{color:var(--muted)!important}
html[data-theme="dark"] #main-content .noon-product-card :is(.price strong,.product-price strong,.price-current,.product-card-title,.product-title){color:var(--ink)!important}
html[data-theme="dark"] #main-content .noon-product-card .shipping-text{background:#23372f!important;color:#b8e9ce!important}
html[data-theme="dark"] #main-content .noon-product-card .product-rating-pill{background:#23372f!important;color:#d6f3e4!important}
html[data-theme="dark"] #main-content .product-page-noon :is(.product-tabs summary,.wishlist-product-form button,.detail-login-wish,.simple-rating-panel){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] #main-content .product-page-noon :is(.product-tabs details>div,.send-stars-box>p,.simple-rating-reviews){color:var(--muted)!important}
html[data-theme="dark"] #main-content .simple-rating-home-style{background:var(--surface-soft)!important;color:var(--ink)!important}
html[data-theme="dark"] #main-content .simple-rating-home-style b{color:var(--ink)!important}
html[data-theme="dark"] #main-content .send-stars-box{border-color:var(--line)!important}
html[data-theme="dark"] #main-content .send-rating-btn{background:#2455c7!important;color:#fff!important}
html[data-theme="dark"] #main-content .simple-rating-panel{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] #main-content :is(.send-stars-box>p,.simple-rating-reviews){color:var(--muted)!important}

.address-edit{margin:14px 0}.address-edit summary{cursor:pointer;color:var(--action);font-weight:bold}.address-edit form{display:grid;gap:10px;margin-top:12px}.address-edit textarea{width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;min-height:90px}.address-card>span{display:block}.address-card{overflow-wrap:anywhere}
html[data-theme="dark"] #main-content .noon-product-card .product-price-line :is(b,strong,small){color:var(--ink)!important}
html[data-theme="dark"] #main-content .noon-product-card .card-review-pill{background:#23372f!important}
html[data-theme="dark"] #main-content .noon-product-card .card-review-pill b{color:#e0f5e9!important}
html[data-theme="dark"] #main-content .noon-product-card .card-review-pill .rating-star{color:#70e49a!important}
html[data-theme="dark"] #main-content .noon-product-card .card-review-count{color:#b8d3c5!important}
html[data-theme="dark"] #main-content .compact-rating-count{background:var(--surface-soft)!important;color:var(--ink)!important}
html[data-theme="dark"] #main-content .compact-rating-count b{color:var(--ink)!important}
html[data-theme="dark"] #main-content .product-page-noon .purchase-row-pro button small{color:#fff!important}
html[data-theme="dark"] #main-content .noon-product-card .product-price-line>span:not(.card-inline-discount){color:var(--muted)!important}
html[data-theme="dark"] #main-content .home-reels-section{background:var(--surface)!important;color:var(--ink)!important}
html[data-theme="dark"] #main-content .offer-strip a{color:var(--action)!important}
html[data-theme="dark"] .account-nav form button,html[data-theme="dark"] .remove-btn{color:#ffb2ba!important}
