/* Brand-specific storefront finishing for Hacı GO and Reidan. */
body[data-brand="hacigo"],
body[data-brand="reidan"] {
  --ty-orange: var(--brand-color);
  --ty-orange-hover: color-mix(in srgb, var(--brand-color) 82%, #111 18%);
  --ty-orange-light: var(--brand-soft);
  --brand-color-hover: color-mix(in srgb, var(--brand-color) 82%, #111 18%);
  --brand-color-light: var(--brand-soft);
  --bs-warning: var(--brand-color);
  --bs-warning-rgb: 155, 119, 72;
  --bs-link-color: var(--brand-dark);
  --bs-link-hover-color: var(--brand-color);
}

body[data-brand="reidan"] { --bs-warning-rgb: 167, 123, 75; }

body[data-brand] .story-bubble-link .bubble-circle-wrap {
  border-color: var(--brand-color) !important;
  box-shadow: 0 2px 9px color-mix(in srgb, var(--brand-dark) 10%, transparent) !important;
}

body[data-brand] .story-bubble-link .bubble-circle-wrap > div[style*="background"] {
  background: var(--brand-soft) !important;
}

body[data-brand] .story-bubble-link .bubble-circle-wrap i[style*="color"] {
  color: var(--brand-color) !important;
}

body[data-brand] .text-orange,
body[data-brand] .hover-orange:hover,
body[data-brand] .ty-nav-link-item:hover,
body[data-brand] .ty-nav-link-item.active,
body[data-brand] .ty-footer-link:hover,
body[data-brand] .ty-mega-cat-header,
body[data-brand] .ty-mega-sub-link:hover {
  color: var(--brand-color) !important;
}

body[data-brand] .ty-btn-cart-orange,
body[data-brand] .bg-orange,
body[data-brand] .btn-warning,
body[data-brand] .btn-orange,
body[data-brand] .add-to-cart-btn,
body[data-brand] .ty-search-submit,
body[data-brand] .story-arrow-btn:hover {
  color: #fff !important;
  background-color: var(--brand-color) !important;
  border-color: var(--brand-color) !important;
}

body[data-brand] .ty-btn-cart-orange,
body[data-brand] .bg-orange,
body[data-brand] .btn-warning,
body[data-brand] .btn-orange,
body[data-brand] .add-to-cart-btn,
body[data-brand] .ty-search-submit,
body[data-brand] .story-arrow-btn:hover {
  background: var(--brand-accent, var(--brand-color)) !important;
}

body[data-brand] .ty-btn-cart-orange:hover,
body[data-brand] .btn-warning:hover,
body[data-brand] .btn-orange:hover,
body[data-brand] .add-to-cart-btn:hover {
  color: var(--brand-dark) !important;
  background-color: var(--brand-soft) !important;
  border-color: var(--brand-color) !important;
}

body[data-brand] .ty-mega-left-item:hover,
body[data-brand] .ty-nav-item-wrap:hover .ty-nav-item-link,
body[data-brand] .story-bubble-link:hover .bubble-circle-wrap {
  background-color: var(--brand-soft) !important;
  border-color: var(--brand-color) !important;
}

body[data-brand] .ty-nav-item-wrap:hover .ty-nav-item-link,
body[data-brand] .ty-nav-link-item:hover,
body[data-brand] .ty-nav-link-item.active {
  border-bottom-color: var(--brand-color) !important;
}

body[data-brand] .product-card-hover:hover {
  border-color: color-mix(in srgb, var(--brand-color) 62%, #fff 38%) !important;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--brand-dark) 11%, transparent) !important;
}

body[data-brand] [style*="color:#f27a1a"],
body[data-brand] [style*="color: #f27a1a"],
body[data-brand] [style*="color:#e8620c"],
body[data-brand] [style*="color: #e8620c"] {
  color: var(--brand-color) !important;
}

body[data-brand] [style*="background:#f27a1a"],
body[data-brand] [style*="background: #f27a1a"],
body[data-brand] [style*="background-color:#f27a1a"],
body[data-brand] [style*="background-color: #f27a1a"],
body[data-brand] [style*="background:#e8620c"],
body[data-brand] [style*="background: #e8620c"] {
  background-color: var(--brand-color) !important;
}

body[data-brand] [style*="border-color:#f27a1a"],
body[data-brand] [style*="border-color: #f27a1a"] {
  border-color: var(--brand-color) !important;
}

body[data-brand="hacigo"] .ty-1to1-header,
body[data-brand="reidan"] .ty-1to1-header {
  box-shadow: 0 5px 22px color-mix(in srgb, var(--brand-dark) 7%, transparent);
}

body[data-brand] .ty-search-box:focus-within {
  border-color: var(--brand-color) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-color) 14%, transparent);
}

body[data-brand] .ty-badge-new-oval {
  background: var(--brand-dark) !important;
}

@media (prefers-reduced-motion: reduce) {
  body[data-brand] *, body[data-brand] *::before, body[data-brand] *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Brand-adjacent mobile category drawer */
.store-brand-group { display:flex; align-items:center; gap:8px; min-width:0; }
.store-mobile-menu-toggle { display:none; }
.store-mobile-menu-backdrop[hidden], .store-mobile-category-menu[hidden] { display:none!important; }
.store-mobile-menu-backdrop { position:fixed; inset:0; z-index:12000; background:rgba(9,19,39,.58); backdrop-filter:blur(3px); }
.store-mobile-category-menu { position:fixed; inset:0 auto 0 0; z-index:12001; width:min(88vw,360px); overflow-y:auto; padding:20px 16px max(24px,env(safe-area-inset-bottom)); color:var(--store-text); background:var(--store-surface); border-right:1px solid var(--store-border); box-shadow:18px 0 48px rgba(8,16,34,.28); }
.store-mobile-menu-heading { display:flex; align-items:center; justify-content:space-between; padding:4px 2px 16px; margin-bottom:14px; border-bottom:1px solid var(--store-border); font-size:1.1rem; }
.store-mobile-menu-heading button { display:grid; place-items:center; width:38px; height:38px; color:var(--store-text); background:var(--store-raised); border:1px solid var(--store-border); border-radius:12px; }
.store-mobile-menu-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.store-mobile-menu-grid a { display:flex; align-items:center; gap:9px; min-height:58px; padding:10px; color:var(--store-text); text-decoration:none; background:var(--store-raised); border:1px solid var(--store-border); border-radius:13px; font-size:.84rem; font-weight:700; line-height:1.3; }
.store-mobile-menu-grid a:hover, .store-mobile-menu-grid a:focus-visible { color:var(--store-text); background:color-mix(in srgb,var(--brand-color) 12%,var(--store-raised)); border-color:var(--brand-color); }
.store-mobile-menu-grid a i { flex:0 0 auto; color:var(--brand-color); font-size:1.05rem; }
body.store-mobile-menu-open { overflow:hidden; }
@media (min-width:768px) { .store-mobile-menu-backdrop, .store-mobile-category-menu { display:none!important; } }
@media (max-width:767.98px) {
  .store-brand-group { gap:6px; }
  .store-mobile-menu-toggle { display:inline-grid; place-items:center; flex:0 0 36px; width:36px; height:36px; padding:0; color:var(--store-text); background:var(--store-raised); border:1px solid var(--store-border); border-radius:12px; font-size:1.35rem; }
  .store-mobile-menu-toggle:focus-visible { outline:2px solid var(--brand-color); outline-offset:2px; }
  .store-brand-logo { min-height:38px!important; padding:3px 5px!important; }
  .store-brand-logo img { max-width:min(27vw,108px)!important; max-height:30px!important; }
}

/* Mobile checkout and header refinements */
@media (max-width:767.98px) {
  .ty-1to1-header > .container { padding-left:14px!important; padding-right:14px!important; }
  .ty-1to1-header > .container.py-3 { padding-top:10px!important; padding-bottom:10px!important; }
  .ty-1to1-header > .container > .row { --bs-gutter-x:.5rem; --bs-gutter-y:.65rem; align-items:center!important; }
  .ty-header-actions-group { display:flex!important; width:100%; justify-content:flex-end!important; gap:clamp(5px,1.8vw,9px)!important; height:auto!important; }
  .ty-header-user-action { flex:0 1 38px; min-width:30px; height:40px!important; font-size:0!important; gap:0!important; justify-content:center; }
  .ty-header-user-action > span:not(.badge) { display:none!important; }
  .ty-header-user-action i { font-size:20px!important; }
  .store-theme-toggle { flex:0 0 34px; min-width:34px!important; width:34px; height:34px!important; padding:0!important; }
  .store-brand-logo { min-height:40px!important; padding:4px 7px!important; max-width:100%; width:max-content; }
  .store-brand-logo img { display:block; width:auto; max-width:min(31vw,126px)!important; max-height:30px!important; }
  body[data-brand] > div[role="status"] { font-size:11px!important; line-height:1.4; padding:7px 14px!important; }
  .ty-1to1-header .ty-search-box { min-height:44px; }
  .store-cart-page { margin-top:16px!important; margin-bottom:24px!important; }
  .store-cart-page > h3 { font-size:1.3rem; margin-bottom:16px!important; }
  #freeShippingBanner { padding:14px!important; margin-bottom:16px!important; }
  #freeShippingBanner .badge { white-space:normal; line-height:1.35; }
  .store-cart-columns { --bs-gutter-x:12px; --bs-gutter-y:14px; }
  #cartItemsList, .store-cart-summary { padding:16px!important; border-radius:16px!important; }
  #cartItemsList .store-cart-empty { min-height:210px; display:flex; flex-direction:column; justify-content:center; padding:24px 8px!important; }
  #cartItemsList .store-cart-empty .display-1 { font-size:2.5rem; }
  #cartItemsList .store-cart-empty h4 { max-width:18em; margin-inline:auto; font-size:1.1rem; line-height:1.4; }
  #cartItemsList .store-cart-empty p { max-width:25em; margin-inline:auto; line-height:1.5; }
  .store-cart-page .sticky-top { position:static!important; top:auto!important; }
}

/* User-selectable store themes: muted, readable surfaces instead of stark white. */
html[data-theme="light"] { color-scheme: light; --store-bg:#e9edf3; --store-surface:#f3f5f8; --store-raised:#e1e7ef; --store-text:#243249; --store-muted:#52627a; --store-border:#cbd5e1; }
html[data-theme="dark"] { color-scheme: dark; --store-bg:#10182b; --store-surface:#19243b; --store-raised:#222f49; --store-text:#e8edf6; --store-muted:#bbc7da; --store-border:#34435f; }
html[data-theme] body { background:var(--store-bg)!important; color:var(--store-text)!important; }
html[data-theme] .ty-1to1-header, html[data-theme] .ty-top-links, html[data-theme] .ty-nav-bar-container,
html[data-theme] .ty-fixed-cat-btn, html[data-theme] .ty-search-box, html[data-theme] .ty-mega-dropdown-menu,
html[data-theme] .bg-white, html[data-theme] .bg-light, html[data-theme] .card, html[data-theme] footer { background:var(--store-surface)!important; color:var(--store-text)!important; border-color:var(--store-border)!important; }
html[data-theme] .ty-top-links a, html[data-theme] .ty-header-user-action, html[data-theme] .ty-nav-link-item,
html[data-theme] .ty-fixed-cat-btn strong, html[data-theme] .text-dark, html[data-theme] .text-secondary,
html[data-theme] .text-muted, html[data-theme] .form-label, html[data-theme] .form-check-label, html[data-theme] .ty-footer-link { color:var(--store-text)!important; }
html[data-theme] .ty-search-input, html[data-theme] .form-control, html[data-theme] .form-select,
html[data-theme] textarea { background:var(--store-raised)!important; color:var(--store-text)!important; border-color:var(--store-border)!important; }
html[data-theme] .ty-mega-dropdown-menu a { color:var(--store-text)!important; border-color:var(--store-border)!important; }
html[data-theme] .ty-mega-dropdown-menu a:hover { background:var(--store-raised)!important; }
.store-theme-toggle { border:1px solid var(--store-border); border-radius:999px; background:var(--store-raised); color:var(--store-text); min-width:38px; height:36px; padding:0 10px; display:inline-flex; align-items:center; justify-content:center; gap:6px; font-weight:700; }
.store-brand-logo { padding:6px 12px; min-height:48px; border-radius:12px; background:linear-gradient(145deg,var(--brand-dark),color-mix(in srgb,var(--brand-dark) 76%,var(--brand-color))); box-shadow:0 5px 16px rgba(15,23,42,.18); }
.store-brand-logo img { max-width:min(165px,40vw); object-fit:contain; }
.store-cookie-card { position:fixed; z-index:11000; left:20px; bottom:20px; width:min(510px,calc(100vw - 32px)); padding:20px; border:1px solid var(--store-border); border-radius:18px; color:var(--store-text); background:var(--store-surface); box-shadow:0 18px 56px rgba(8,16,34,.24); }
.store-cookie-card h2 { font-size:1.05rem; font-weight:800; margin:0 0 8px; }
.store-cookie-card p { color:var(--store-muted); font-size:.88rem; margin:0 0 14px; line-height:1.55; }
.store-cookie-card a { color:var(--brand-color)!important; font-weight:650; }
.store-cookie-card #storeCookieAccept { background:var(--brand-color)!important; border-color:var(--brand-color)!important; color:#fff!important; }
.store-cookie-card #storeCookieReject { background:var(--store-raised)!important; border-color:var(--store-border)!important; color:var(--store-text)!important; }
body[data-brand] #freeShippingBanner .progress { background-color:var(--store-raised)!important; }
body[data-brand] #freeShippingBanner .progress-bar:not(.bg-success) { background-color:var(--brand-color)!important; }
@media(max-width:767.98px) {
 .ty-top-links { display:none!important; }
 .ty-header-actions-group { gap:clamp(7px,2vw,13px)!important; height:auto!important; }
 .ty-header-user-action { font-size:11px!important; gap:3px!important; flex-direction:column; justify-content:center; line-height:1.15; }
 .ty-header-user-action i { font-size:19px!important; }
 .store-theme-toggle { min-width:34px; height:34px; padding:0 8px; }
 .store-brand-logo { min-height:42px; padding:4px 7px; max-width:100%; }
 .store-brand-logo img { max-width:37vw; max-height:33px!important; }
 #freeShippingBanner .d-flex.justify-content-between { align-items:flex-start!important; flex-direction:column; gap:8px; }
 #cartItemsList .cart-line { align-items:flex-start!important; flex-wrap:wrap; gap:12px!important; }
 #cartItemsList .cart-line-main { min-width:0; flex:1 1 100%; }
 #cartItemsList .cart-line-controls { width:100%; justify-content:space-between!important; gap:10px!important; }
 #cartItemsList img { flex:0 0 60px; }
 .store-cookie-card { left:12px; bottom:12px; width:calc(100vw - 24px); padding:13px; max-height:48dvh; overflow:auto; }
 .store-cookie-card p { font-size:.78rem; line-height:1.4; margin-bottom:9px; }
 .store-cookie-card > div:last-child { display:grid!important; grid-template-columns:1fr 1fr; gap:7px!important; }
 .store-cookie-card > div:last-child a { grid-column:1/-1; margin:0!important; }
 .store-cookie-card > div:last-child button { width:100%; font-size:.75rem; }
}

/* Ensure mobile refinements win over legacy store rules above. */
@media (max-width:767.98px) {
  .ty-1to1-header > .container { padding-left:14px!important; padding-right:14px!important; }
  .ty-1to1-header > .container.py-3 { padding-top:10px!important; padding-bottom:10px!important; }
  .ty-1to1-header > .container > .row { --bs-gutter-x:.5rem; --bs-gutter-y:.65rem; align-items:center!important; }
  .ty-header-actions-group { display:flex!important; width:100%; justify-content:flex-end!important; gap:clamp(5px,1.8vw,9px)!important; height:auto!important; }
  .ty-header-user-action { flex:0 1 38px; min-width:30px; height:40px!important; font-size:0!important; gap:0!important; justify-content:center; }
  .ty-header-user-action > span:not(.badge) { display:none!important; }
  .ty-header-user-action i { font-size:20px!important; }
  .store-theme-toggle { flex:0 0 34px; min-width:34px!important; width:34px; height:34px!important; padding:0!important; }
  .store-brand-logo { min-height:40px!important; padding:4px 7px!important; max-width:100%; width:max-content; }
  .store-brand-logo img { display:block; width:auto; max-width:min(31vw,126px)!important; max-height:30px!important; }
  body[data-brand] > div[role="status"] { font-size:11px!important; line-height:1.4; padding:7px 14px!important; }
  .ty-1to1-header .ty-search-box { min-height:44px; }
  .store-cart-page { margin-top:16px!important; margin-bottom:24px!important; }
  .store-cart-page > h3 { font-size:1.3rem; margin-bottom:16px!important; }
  #freeShippingBanner { padding:14px!important; margin-bottom:16px!important; }
  #freeShippingBanner .badge { white-space:normal; line-height:1.35; }
  .store-cart-columns { --bs-gutter-x:12px; --bs-gutter-y:14px; }
  #cartItemsList, .store-cart-summary { padding:16px!important; border-radius:16px!important; }
  #cartItemsList .store-cart-empty { min-height:210px; display:flex; flex-direction:column; justify-content:center; padding:24px 8px!important; }
  #cartItemsList .store-cart-empty .display-1 { font-size:2.5rem; }
  #cartItemsList .store-cart-empty h4 { max-width:18em; margin-inline:auto; font-size:1.1rem; line-height:1.4; }
  #cartItemsList .store-cart-empty p { max-width:25em; margin-inline:auto; line-height:1.5; }
  .store-cart-page .sticky-top { position:static!important; top:auto!important; }
  .store-cookie-card { max-height:48dvh; overflow:auto; padding:13px; }
  .store-cookie-card p { font-size:.78rem; line-height:1.4; margin-bottom:9px; }
  .store-cookie-card > div:last-child { display:grid!important; grid-template-columns:1fr 1fr; gap:7px!important; }
  .store-cookie-card > div:last-child a { grid-column:1/-1; margin:0!important; }
  .store-cookie-card > div:last-child button { width:100%; font-size:.75rem; }
}
/* 2026-10-11 header, theme and category menu corrections */
@media (min-width: 768px) {
  .store-header-main-row { display:grid!important; grid-template-columns:minmax(145px,205px) minmax(250px,1fr) max-content; align-items:center!important; gap:clamp(12px,1.5vw,24px); margin:0!important; width:100%; }
  .store-header-main-row > .store-header-logo-col,.store-header-main-row > .store-header-search-col,.store-header-main-row > .store-header-actions-col { width:auto!important; max-width:none!important; padding-left:0!important; padding-right:0!important; }
  .store-header-main-row > .store-header-logo-col,.store-header-main-row > .store-header-search-col,.store-header-main-row > .store-header-actions-col { order:0!important; }
}
.store-header-search-form,.store-header-search-form .ty-search-box { width:100%; min-width:0; }
.store-header-search-form .ty-search-input { min-width:0; }
.ty-header-actions-group { gap:clamp(8px,1.1vw,16px)!important; }
.store-theme-toggle { flex:0 0 42px; width:42px; min-width:42px!important; height:42px!important; padding:0!important; border:1px solid color-mix(in srgb,var(--brand-color) 56%,var(--store-border))!important; border-radius:50%!important; background:linear-gradient(145deg,var(--store-raised),var(--store-surface))!important; color:var(--store-accent)!important; box-shadow:0 3px 10px rgba(3,10,24,.18); transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.store-theme-toggle:hover { transform:translateY(-1px); box-shadow:0 6px 15px rgba(3,10,24,.25); border-color:var(--store-accent)!important; }
.store-theme-toggle i { font-size:1.05rem; line-height:1; }
.store-theme-toggle span { display:none!important; }
.store-theme-toggle:focus-visible { outline:2px solid var(--store-accent); outline-offset:3px; }
.ty-fixed-cat-btn { background:var(--store-surface)!important; border-radius:12px 12px 0 0; }
.ty-fixed-cat-btn > button { color:var(--store-text)!important; min-height:42px; padding:0 12px!important; border-radius:10px; }
.ty-fixed-cat-btn:hover .ty-mega-dropdown-menu,.ty-fixed-cat-btn.active .ty-mega-dropdown-menu { display:block!important; }
.ty-mega-dropdown-menu { position:absolute!important; top:calc(100% + 8px)!important; left:0!important; width:min(960px,calc(100vw - 40px))!important; max-height:min(70vh,520px); overflow:auto; padding:16px!important; border:1px solid var(--store-border)!important; border-radius:16px!important; background:var(--store-surface)!important; box-shadow:0 20px 52px rgba(2,8,23,.32)!important; z-index:1100!important; }
.ty-mega-category-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.ty-mega-category-link { display:flex!important; align-items:center; gap:10px!important; min-width:0; min-height:58px; padding:10px 12px!important; color:var(--store-text)!important; text-decoration:none!important; border:1px solid var(--store-border)!important; border-radius:12px!important; background:var(--store-raised)!important; font-size:.9rem; font-weight:650; line-height:1.35; overflow-wrap:anywhere; transition:background-color .16s ease,border-color .16s ease,transform .16s ease; }
.ty-mega-category-link i { flex:0 0 22px; display:grid; place-items:center; width:22px; color:var(--store-accent)!important; font-size:1.05rem; }
.ty-mega-category-link span { min-width:0; }
.ty-mega-category-link:hover,.ty-mega-category-link:focus-visible { color:var(--store-text)!important; background:color-mix(in srgb,var(--store-accent) 13%,var(--store-raised))!important; border-color:var(--store-accent)!important; transform:translateY(-1px); }
html[data-theme="light"] { color-scheme:light; --store-bg:#e9edf3; --store-surface:#f3f5f8; --store-raised:#e1e7ef; --store-text:#243249; --store-muted:#52627a; --store-border:#cbd5e1; --store-accent:#77552c; }
html[data-theme="dark"] { color-scheme:dark; --store-bg:#151d31; --store-surface:#1d2941; --store-raised:#293853; --store-text:#f0f3fa; --store-muted:#c2ccdc; --store-border:#43516b; --store-accent:#e3bd78; }
html[data-theme="dark"] body[data-brand="reidan"] { --store-accent:#dfb77d; }
html[data-theme] .ty-mega-dropdown-menu,html[data-theme] .ty-mega-category-link { color:var(--store-text)!important; border-color:var(--store-border)!important; }
html[data-theme] .ty-mega-dropdown-menu { background:var(--store-surface)!important; }
html[data-theme] .ty-mega-category-link { background:var(--store-raised)!important; }
html[data-theme] .ty-mega-category-link:hover { background:color-mix(in srgb,var(--store-accent) 13%,var(--store-raised))!important; }
html[data-theme="dark"] .ty-nav-link-item:hover,html[data-theme="dark"] .ty-nav-link-item.active,html[data-theme="dark"] .text-orange { color:var(--store-accent)!important; }
@media (max-width:1300px) and (min-width:768px) { .ty-header-user-action > span:not(.badge) { display:none!important; } .ty-header-actions-group { gap:12px!important; } }
@media (max-width:1050px) and (min-width:768px) { .store-header-main-row { grid-template-columns:minmax(125px,170px) minmax(210px,1fr) max-content; gap:10px; } .ty-header-actions-group { gap:8px!important; } .ty-header-user-action i { font-size:19px!important; } .ty-mega-category-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:767.98px) { .store-theme-toggle { flex:0 0 38px!important; width:38px!important; min-width:38px!important; height:38px!important; } .ty-mega-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:420px) { .ty-mega-category-grid { grid-template-columns:1fr; } }
