/* Shared functional foundation. Visual identity lives in each theme stylesheet. */
#theme-header,.site-footer{display:none!important}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body[data-theme-folder^="premium-"]{margin:0;padding:0 0 92px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
body[data-theme-folder^="premium-"] :where(button,input,select,textarea){font:inherit}
body[data-theme-folder^="premium-"] :where(button,a){touch-action:manipulation}
body[data-theme-folder^="premium-"] :where(button,[href],input,select,textarea):focus-visible{outline:3px solid var(--focus,#1976d2);outline-offset:3px}
body[data-theme-folder^="premium-"] img{display:block;max-width:100%}
body[data-theme-folder^="premium-"] :is(h1,h2,h3){overflow-wrap:anywhere}
body[data-theme-folder^="premium-"] :is(.an-image,.ms-photo,.ch-card>button:first-child,.gl-art,.rg-card>button:first-child){overflow:hidden}
body[data-theme-folder^="premium-"] :is(.an-image,.ms-photo,.ch-card>button:first-child,.gl-art,.rg-card>button:first-child)>img{width:100%;aspect-ratio:4/5;object-fit:cover}
body[data-theme-folder^="premium-"] [hidden]{display:none!important}
body[data-theme-folder^="premium-"] .uw-product-grid{min-height:160px}
body[data-theme-folder^="premium-"] .uw-card-message{min-height:0;margin:8px 0 0;font-size:14px;font-weight:700}
body[data-theme-folder^="premium-"] #uwModelHint{min-height:24px;font-size:15px;font-weight:700}
body[data-theme-folder^="premium-"] .uw-all-size-buttons{display:flex;flex-wrap:wrap;gap:9px}
body[data-theme-folder^="premium-"] .uw-all-size-buttons button{min-width:50px;min-height:48px;padding:0 14px;cursor:pointer}
body[data-theme-folder^="premium-"] .uw-all-size-buttons button[aria-pressed="true"]{font-weight:800}
body[data-theme-folder^="premium-"] #theme-payment-form{max-width:none!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body[data-theme-folder^="premium-"] #orderForm{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.72fr);gap:18px 30px}
body[data-theme-folder^="premium-"] .form-block{padding:24px;border:1px solid var(--form-line);background:var(--form-paper);color:var(--form-ink);box-shadow:none}
body[data-theme-folder^="premium-"] .order-summary{grid-column:2;grid-row:1/8;align-self:start;position:sticky;top:88px}
body[data-theme-folder^="premium-"] .form-block-title{margin:0 0 18px;color:var(--form-ink);font-size:22px;line-height:1.25;font-weight:800}
body[data-theme-folder^="premium-"] .sub-title,body[data-theme-folder^="premium-"] .f-group label{color:var(--form-ink);font-size:14px;line-height:1.4;font-weight:750}
body[data-theme-folder^="premium-"] .f-group{margin-bottom:16px}
body[data-theme-folder^="premium-"] .f-group :is(input,select,textarea),body[data-theme-folder^="premium-"] .phone-prefix-wrap{width:100%;min-height:50px;border:1px solid var(--form-line);border-radius:var(--form-radius,0);background:var(--form-field);color:var(--form-ink);font-size:16px}
body[data-theme-folder^="premium-"] .f-group textarea{min-height:108px;line-height:1.5;resize:vertical}
body[data-theme-folder^="premium-"] .f-group :is(input,select,textarea)::placeholder{color:var(--form-muted);opacity:1}
body[data-theme-folder^="premium-"] .payment-cards{display:grid;gap:10px}
body[data-theme-folder^="premium-"] .payment-card{min-height:64px;padding:12px 14px;border:1px solid var(--form-line);border-radius:var(--form-radius,0);background:var(--form-field);color:var(--form-ink);cursor:pointer}
body[data-theme-folder^="premium-"] .payment-card:has(input:checked){border-color:var(--form-accent);box-shadow:inset 0 0 0 1px var(--form-accent)}
body[data-theme-folder^="premium-"] .btn-order{width:100%;min-height:60px;border:0;border-radius:var(--form-radius,0);background:var(--form-accent);color:var(--form-button,#fff);font-weight:850;cursor:pointer}
body[data-theme-folder^="premium-"] .btn-order:disabled{opacity:.55;cursor:not-allowed}
body[data-theme-folder^="premium-"] .checkout-primary-action{margin-top:6px;padding-top:4px}
body[data-theme-folder^="premium-"] .checkout-primary-action .btn-order{margin-top:8px;box-shadow:0 12px 28px color-mix(in srgb,var(--form-accent) 24%,transparent)}
body[data-theme-folder^="premium-"] .checkout-primary-action .btn-order:not(:disabled):hover{transform:translateY(-1px)}
body[data-theme-folder^="premium-"] .checkout-primary-action .btn-order:focus-visible{outline:3px solid color-mix(in srgb,var(--form-accent) 42%,#fff);outline-offset:3px}
body[data-theme-folder^="premium-"] .field-error{color:var(--form-error,#b42318);font-size:14px;font-weight:750}
body[data-theme-folder^="premium-"] .summary-row{color:var(--form-ink);font-size:15px}
body[data-theme-folder^="premium-"] .total-row{font-size:18px;font-weight:850}
body[data-theme-folder^="premium-"] :is(.pkg-sel-item,.sv-addon,.headphone-package-option){border-color:var(--form-line)!important;background:var(--form-field)!important;color:var(--form-ink)!important}
body[data-theme-folder^="premium-"] .pkg-sel-size{min-height:46px;font-size:16px}
body[data-theme-folder^="premium-"] .pkg-sel-remove{min-width:44px;min-height:44px}
body[data-theme-folder^="premium-"] :is(.an-dialog,.ms-dialog,.ch-dialog,.gl-dialog,.rg-dialog,.premium-dialog){width:min(720px,calc(100% - 24px));max-height:92vh;padding:0;border:0;background:#fff;box-shadow:0 28px 90px rgba(0,0,0,.34)}
body[data-theme-folder^="premium-"] :is(.an-dialog,.ms-dialog,.ch-dialog,.gl-dialog,.rg-dialog,.premium-dialog)::backdrop{background:rgba(0,0,0,.72)}
body[data-theme-folder^="premium-"] :is(.an-dialog,.ms-dialog,.ch-dialog,.gl-dialog,.rg-dialog,.premium-dialog)>img{display:block;width:100%;max-height:88vh;object-fit:contain}
body[data-theme-folder^="premium-"] :is(.an-dialog,.ms-dialog,.ch-dialog,.gl-dialog,.rg-dialog,.premium-dialog)>button{position:absolute;z-index:2;right:10px;top:10px;width:48px;height:48px;border:0;background:#111;color:#fff;font-size:28px;cursor:pointer}
body[data-theme-folder^="premium-"] :is(.an-toast,.ms-toast,.ch-toast,.gl-toast,.rg-toast,.premium-toast){position:fixed;z-index:200;left:50%;bottom:102px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);padding:13px 18px;background:#111;color:#fff;font-size:15px;font-weight:800;box-shadow:0 12px 36px rgba(0,0,0,.26)}
/* Contrast guardrails: legacy storefront rules must not repaint premium surfaces. */
body[data-theme-folder^="premium-"] .product-card{background:var(--form-paper);color:var(--form-ink);border-color:var(--form-line)}
body[data-theme-folder^="premium-"] .product-card :is(h3,p){color:inherit}
body[data-theme-folder^="premium-"] #theme-payment-form :is(.slot,.size-btn,.btn-size-finder){border-color:var(--form-line);background:var(--form-field);color:var(--form-ink)}
body[data-theme-folder^="premium-"] #theme-payment-form :is(.slot.empty,.campaign-msg,.char-note,.delivery-promise,.pay-on-delivery-note,.checkout-trust,.sozlesme-onay){color:var(--form-muted)}
body[data-theme-folder^="premium-"] #theme-payment-form :is(.slot-name,.phone-prefix-label,.pm-label,.total-val,.btn-order-price,.btn-order-label){color:inherit}
body[data-theme-folder^="premium-"] #theme-payment-form :is(.summary-row,.delivery-promise,.pay-on-delivery-note,.checkout-trust,.sozlesme-onay){border-color:var(--form-line)}
body[data-theme-folder^="premium-"] #theme-payment-form :is(.btn-go,.size-btn.active){background:var(--form-accent);color:var(--form-button,#fff);border-color:var(--form-accent)}
body[data-theme-folder^="premium-"] #theme-payment-form select:disabled{color:var(--form-muted);opacity:1}
/* Complete form contrast: dynamic rows and legacy checkout helpers. */
body[data-theme-folder^="premium-"] #theme-payment-form{color:var(--form-ink)}
body[data-theme-folder^="premium-"] #theme-payment-form :is(.pkg-sel-item,.pkg-sel-slot,.slot){border-color:var(--form-line)!important;background:var(--form-field)!important;color:var(--form-ink)!important}
body[data-theme-folder^="premium-"] #theme-payment-form :is(.pkg-sel-thumb-ph,.pkg-sel-slot-ph){background:var(--form-paper)!important;color:var(--form-muted)!important;border-color:var(--form-line)!important}
body[data-theme-folder^="premium-"] #theme-payment-form :is(.pkg-sel-name,.slot-name){color:var(--form-ink)!important}
body[data-theme-folder^="premium-"] #theme-payment-form :is(.pkg-sel-slot-text,.slot-sub,.campaign-msg,.char-note,.gray-s){color:var(--form-muted)!important}
body[data-theme-folder^="premium-"] #theme-payment-form :is(.pkg-sel-size,.phone-prefix-wrap input){background:transparent!important;color:var(--form-ink)!important;border-color:var(--form-line)!important}
body[data-theme-folder^="premium-"] #theme-payment-form :is(.pkg-sel-slot-btn,.pkg-sel-remove){border-color:var(--form-line)!important;background:var(--form-accent)!important;color:var(--form-button,#fff)!important}
body[data-theme-folder^="premium-"] #theme-payment-form :is(input,select,textarea){-webkit-text-fill-color:var(--form-ink)}
body[data-theme-folder^="premium-"] #theme-payment-form :is(input,select,textarea):disabled{-webkit-text-fill-color:var(--form-muted);color:var(--form-muted)!important;opacity:1}
body[data-theme-folder^="premium-"] #theme-payment-form option{background:var(--form-field);color:var(--form-ink)}
body[data-theme-folder^="premium-"] #theme-payment-form .phone-prefix-label{background:transparent!important;color:var(--form-muted)!important;border-color:var(--form-line)!important}
body[data-theme-folder^="premium-"] #theme-payment-form .summary-row{color:var(--form-ink)!important}
body[data-theme-folder^="premium-"] #theme-payment-form .total-row{border-top-color:var(--form-line)!important}
body[data-theme-folder^="premium-"] #theme-payment-form .total-val{color:var(--form-accent)!important}
body[data-theme-folder^="premium-"] #theme-payment-form :is(.green-text,.free-label){color:var(--form-success,#166534)!important}
body[data-theme-folder^="premium-"] #theme-payment-form .payment-card :is(.pm-label,.pm-icon){color:var(--form-ink)!important}
body[data-theme-folder^="premium-"] #theme-payment-form .payment-card:has(input:checked) .pm-icon{color:var(--form-accent)!important}
body[data-theme-folder^="premium-"] #theme-payment-form :is(.delivery-promise,.pay-on-delivery-note,.checkout-trust span){border:1px solid var(--form-line)!important;background:var(--form-field)!important;color:var(--form-ink)!important}
body[data-theme-folder^="premium-"] #theme-payment-form :is(.delivery-promise,.pay-on-delivery-note) :is(strong,small,span){color:var(--form-ink)!important}
body[data-theme-folder^="premium-"] #theme-payment-form :is(.delivery-promise-icon,.pay-on-delivery-note>i,.checkout-trust i){color:var(--form-accent)!important}
body[data-theme-folder^="premium-"] #theme-payment-form .sozlesme-onay a{color:var(--form-accent)!important}
body[data-theme-folder^="premium-"] #theme-payment-form .btn-order:disabled{opacity:.72}
body[data-theme-folder^="premium-"] .address-warning{display:flex;align-items:flex-start;gap:10px;margin:10px 0 4px;padding:12px 14px;border:1px solid #d99b2b;border-radius:var(--form-radius,8px);background:#fff4d6;color:#5f3b00;font-size:13px;line-height:1.45}
body[data-theme-folder^="premium-"] .address-warning i{margin-top:2px;color:#b66b00;font-size:16px}
body[data-theme-folder^="premium-"] .address-warning strong{display:block;color:#4e3000;font-size:14px}
body[data-theme-folder^="premium-"] .order-summary :is(.delivery-promise,.pay-on-delivery-note){display:flex;align-items:flex-start;gap:12px;margin-top:12px;padding:15px 16px;border:1px solid var(--form-line)!important;border-radius:var(--form-radius,10px);background:var(--form-field)!important;color:var(--form-ink)!important}
body[data-theme-folder^="premium-"] .order-summary :is(.delivery-promise-icon,.payment-promise-icon){display:grid;flex:0 0 38px;width:38px;height:38px;place-items:center;border:1px solid rgba(23,19,13,.28);border-radius:50%;background:linear-gradient(145deg,#f2d58e,#dba84c);color:#17130d!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 5px 14px rgba(33,25,12,.14)}
body[data-theme-folder^="premium-"] .order-summary :is(.delivery-promise-icon,.payment-promise-icon) svg{display:block;width:20px;height:20px;overflow:visible;fill:none!important;color:#17130d!important;stroke:#17130d!important;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;opacity:1!important;visibility:visible!important}
body[data-theme-folder^="premium-"] .order-summary :is(.delivery-promise,.pay-on-delivery-note) strong{display:block;margin-bottom:3px;font-size:14px;color:var(--form-ink)}
body[data-theme-folder^="premium-"] .order-summary :is(.delivery-promise,.pay-on-delivery-note) small,body[data-theme-folder^="premium-"] .order-summary .pay-on-delivery-note span{color:var(--form-muted);font-size:12px;line-height:1.5}
body[data-theme-folder^="premium-"] .order-summary .checkout-trust{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
body[data-theme-folder^="premium-"] .order-summary .checkout-trust span{display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 11px;border:1px solid var(--form-line)!important;border-radius:var(--form-radius,8px);background:var(--form-paper)!important;color:var(--form-ink)!important;font-size:12px;font-weight:700}
body[data-theme-folder^="premium-"] .order-summary .checkout-trust i{color:var(--form-accent);font-size:14px}
/* Social-proof popup follows the active premium theme instead of legacy page colors. */
body[data-theme-folder^="premium-"] .notif-popup{background:var(--form-paper)!important;color:var(--form-ink)!important;border:1px solid var(--form-line)!important;box-shadow:0 14px 38px rgba(0,0,0,.28)!important}
body[data-theme-folder^="premium-"] .notif-popup :is(.notif-body,.notif-head,.notif-customer){color:var(--form-ink)!important}
body[data-theme-folder^="premium-"] .notif-popup :is(.notif-body b,.notif-customer strong){color:var(--form-ink)!important}
body[data-theme-folder^="premium-"] .notif-popup :is(.notif-time,.notif-city){color:var(--form-muted)!important}
body[data-theme-folder^="premium-"] .notif-popup :is(.notif-cart-icon,.notif-product){color:var(--form-accent)!important}
body[data-theme-folder^="premium-"] .notif-popup{width:min(286px,calc(100vw - 32px));max-width:none!important;padding:0!important;overflow:hidden;border-radius:14px!important}
body[data-theme-folder^="premium-"] .notif-popup::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--form-accent)}
body[data-theme-folder^="premium-"] .notif-popup .notif-inner{display:flex;align-items:center;gap:10px;padding:11px 12px 11px 14px}
body[data-theme-folder^="premium-"] .notif-popup .notif-cart-icon{display:grid;flex:0 0 36px;width:36px;height:36px;place-items:center;border-radius:10px;background:var(--form-accent);color:var(--form-button,#fff)!important;font-size:15px}
body[data-theme-folder^="premium-"] .notif-popup .notif-body{min-width:0;gap:4px}
body[data-theme-folder^="premium-"] .notif-popup .notif-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
body[data-theme-folder^="premium-"] .notif-popup .notif-customer{display:flex;align-items:center;justify-content:flex-start;gap:7px}
body[data-theme-folder^="premium-"] .notif-popup .notif-city:empty{display:none}
body[data-theme-folder^="premium-"] .notif-popup .notif-body b{font-size:12px;line-height:1.35}
body[data-theme-folder^="premium-"] .notif-popup :is(.notif-time,.notif-city){font-size:11px!important;line-height:1.35}
body[data-theme-folder^="premium-"] .notif-popup .notif-customer strong{font-size:14px;line-height:1.35}
body[data-theme-folder^="premium-"] .notif-popup .notif-product{display:block;overflow:hidden;font-size:11px!important;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:820px){body[data-theme-folder^="premium-"] .notif-popup{left:0!important;right:0!important;bottom:112px!important;width:min(286px,calc(100vw - 32px));margin-inline:auto}}
@media(max-width:820px){body[data-theme-folder^="premium-"]{padding-bottom:96px;overflow-x:hidden}body[data-theme-folder^="premium-"] #orderForm{display:flex;flex-direction:column;gap:14px}body[data-theme-folder^="premium-"] .order-summary{position:static;order:8}body[data-theme-folder^="premium-"] .form-block{padding:19px 16px}body[data-theme-folder^="premium-"] .form-block-title{font-size:20px}body[data-theme-folder^="premium-"] :is(.an-mobile-bar,.ms-bar,.ch-bar,.gl-bar,.rg-bar,.premium-mobilebar)>div:first-child{min-width:0;flex:1}body[data-theme-folder^="premium-"] :is(.an-mobile-bar,.ms-bar,.ch-bar,.gl-bar,.rg-bar,.premium-mobilebar)>button{flex:0 1 auto;white-space:nowrap}}
/* Premium temalar: mobil urun seciminde tum kartlar iki sutun kalir. */
@media(max-width:820px){
body[data-theme-folder^="premium-"] #uwProductGrid.uw-product-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
body[data-theme-folder^="premium-"] #uwProductGrid>.uw-product{grid-column:auto!important;min-width:0!important;width:100%!important}
body[data-theme-folder^="premium-"] #uwProductGrid>.uw-product [data-pick]{min-height:48px!important;padding-inline:8px!important;line-height:1.15;white-space:normal}

body[data-theme-folder="premium-cobalt-grid"] #uwProductGrid{gap:10px!important;border:0!important}
body[data-theme-folder="premium-cobalt-grid"] #uwProductGrid>.cb-card{display:block!important;min-height:0!important;margin:0!important}
body[data-theme-folder="premium-cobalt-grid"] #uwProductGrid .cb-photo{display:block!important;aspect-ratio:4/5;border-right:0!important;border-bottom:2px solid #071842!important}
body[data-theme-folder="premium-cobalt-grid"] #uwProductGrid .cb-photo img{display:block;width:100%!important;height:100%!important;object-fit:cover!important}
body[data-theme-folder="premium-cobalt-grid"] #uwProductGrid .cb-card>div{padding:9px!important}
body[data-theme-folder="premium-cobalt-grid"] #uwProductGrid .cb-card h3{margin:5px 0 10px!important;font-size:18px!important;line-height:1.15!important}

body[data-theme-folder="premium-obsidian-club"] #uwProductGrid{gap:12px!important}
body[data-theme-folder="premium-obsidian-club"] #uwProductGrid>.ob-product{display:block!important;min-height:0!important}
body[data-theme-folder="premium-obsidian-club"] #uwProductGrid .ob-photo{display:block!important;aspect-ratio:4/5!important}
body[data-theme-folder="premium-obsidian-club"] #uwProductGrid .ob-photo img{display:block;width:100%!important;height:100%!important;object-fit:cover!important}
body[data-theme-folder="premium-obsidian-club"] #uwProductGrid .ob-product>div{padding:10px!important}
body[data-theme-folder="premium-obsidian-club"] #uwProductGrid .ob-product h3{margin:5px 0 10px!important;font-size:22px!important;line-height:1.05!important}
body[data-theme-folder="premium-obsidian-club"] #uwProductGrid .ob-product>div>button{width:100%!important;margin-top:8px!important}

body[data-theme-folder="premium-gallery-blanc"] #uwProductGrid{gap:24px 10px!important}
body[data-theme-folder="premium-gallery-blanc"] #uwProductGrid>.gl-object{transform:none!important}
body[data-theme-folder="premium-gallery-blanc"] #uwProductGrid .gl-plaque{display:block!important;padding:10px 0!important}
body[data-theme-folder="premium-gallery-blanc"] #uwProductGrid .gl-plaque>i{display:none!important}
body[data-theme-folder="premium-gallery-blanc"] #uwProductGrid .gl-plaque h3{margin:4px 0 10px!important;font-size:21px!important;line-height:1.1!important}
body[data-theme-folder="premium-gallery-blanc"] #uwProductGrid .gl-plaque>button{width:100%!important;margin-top:8px!important}
body[data-theme-folder="premium-gallery-blanc"] #uwProductGrid .gl-plaque .uw-card-message{display:block;margin-top:6px}
}
@media(max-width:420px){body[data-theme-folder^="premium-"] .order-summary .checkout-trust{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
