/* =====================================================================
   AUTORING 3D KR — Premium design layer for OpenCart 3 / theme "trend"
   Loaded last. Light & dark themes via html[data-theme].
   Removing this file (or disabling the modification) restores the old look.
   ===================================================================== */

:root,
html[data-theme="dark"] {
  --ar-bg: #06102A;
  --ar-bg2: #081633;
  --ar-surface: #0B1A3A;
  --ar-surface2: #102450;
  --ar-line: rgba(127, 227, 245, .14);
  --ar-line2: rgba(127, 227, 245, .26);
  --ar-text: #EAF2FB;
  --ar-head: #FFFFFF;
  --ar-muted: #9FB2CF;
  --ar-accent: #7FE3F5;
  --ar-accent-ink: #06102A;
  --ar-link: #7FE3F5;
  --ar-blue: #0A7CFF;
  --ar-logo-ink: #FFFFFF;
  --ar-input: #0A1834;
  --ar-shadow: 0 18px 40px -18px rgba(0, 0, 0, .65);
  --ar-ok: #45D49A;
  --ar-bad: #FF7A8A;
  --ar-sale: #FF5C7A;
  --ar-img: #FFFFFF;
  color-scheme: dark;
}

html[data-theme="light"] {
  --ar-bg: #F2F5FA;
  --ar-bg2: #E9EEF6;
  --ar-surface: #FFFFFF;
  --ar-surface2: #EEF3FA;
  --ar-line: rgba(11, 26, 58, .10);
  --ar-line2: rgba(11, 26, 58, .20);
  --ar-text: #1B2A44;
  --ar-head: #0B1A3A;
  --ar-muted: #5A6B86;
  --ar-accent: #0B1A3A;
  --ar-accent-ink: #FFFFFF;
  --ar-link: #1567A8;
  --ar-blue: #0A7CFF;
  --ar-logo-ink: #1E2128;
  --ar-input: #FFFFFF;
  --ar-shadow: 0 16px 36px -20px rgba(11, 26, 58, .35);
  --ar-ok: #17905E;
  --ar-bad: #C8324A;
  --ar-sale: #E0284F;
  --ar-img: #FFFFFF;
  color-scheme: light;
}

/* ---------- Base ---------- */
html[data-theme] body {
  background: var(--ar-bg) !important;
  color: var(--ar-text) !important;
  font-family: 'Manrope', 'Open Sans', system-ui, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
html[data-theme="dark"] body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(10, 124, 255, .16), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(127, 227, 245, .08), transparent 60%),
    var(--ar-bg) !important;
}
html[data-theme] h1, html[data-theme] h2, html[data-theme] h3,
html[data-theme] h4, html[data-theme] h5, html[data-theme] h6,
html[data-theme] .module-title, html[data-theme] .category-title,
html[data-theme] .page-title {
  font-family: 'Unbounded', 'Manrope', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -.01em;
}
/* heading colour: not inside the shop's own hand-made pages (about / policy / terms / delivery / contacts), they style their own heroes */
html[data-theme] :is(h1, h2, h3, h4, h5, h6):where(:not([class^="ar-about"] *, [class^="ar-policy"] *, [class^="ar-terms"] *, [class^="ar-delivery"] *, [class^="ar-contact"] *)),
html[data-theme] .module-title, html[data-theme] .category-title, html[data-theme] .page-title { color: var(--ar-head); }
html[data-theme] h1 { font-size: clamp(22px, 3vw, 32px) !important; line-height: 1.2 !important; }
html[data-theme] .module-title {
  font-size: clamp(18px, 2.2vw, 24px) !important;
  margin: 34px 0 18px !important;
  display: flex; align-items: center; gap: 12px;
}
html[data-theme] .module-title::before {
  content: ""; width: 10px; height: 10px; border-radius: 3px;
  background: var(--ar-blue); box-shadow: 0 0 0 4px rgba(10, 124, 255, .18);
  flex: none;
}
html[data-theme] a { color: var(--ar-link); }
html[data-theme] a:hover, html[data-theme] a:focus { color: var(--ar-blue); }
/* text inherits from body; no blanket colour on p/li/td/label so the shop's own light blocks keep their dark text */
html[data-theme] legend { color: var(--ar-text); }
html[data-theme] .help-block { color: var(--ar-muted); }
html[data-theme] legend { border-color: var(--ar-line) !important; font-family: 'Unbounded', sans-serif; font-size: 17px; }
html[data-theme] hr { border-color: var(--ar-line) !important; }
html[data-theme] .text-muted, html[data-theme] small { color: var(--ar-muted) !important; }
html[data-theme] ::selection { background: var(--ar-blue); color: #fff; }
html[data-theme] code, html[data-theme] .model, html[data-theme] .product-model { font-family: 'JetBrains Mono', monospace; }

/* generic surfaces trend paints white */
html[data-theme] .bg-page, html[data-theme] .bg-block, html[data-theme] .box-category,
html[data-theme] .box-category .sub-menu, html[data-theme] .box-filter, html[data-theme] .product-box,
html[data-theme] .product-tab-info, html[data-theme] .cabinet-header, html[data-theme] .mini-cart,
html[data-theme] .article-card, html[data-theme] .article-post, html[data-theme] .article-review,
html[data-theme] .rating-average-ratings, html[data-theme] .product-review-content,
html[data-theme] .category-list .category-list-item, html[data-theme] .brand-item a,
html[data-theme] .panel, html[data-theme] .panel-default > .panel-heading, html[data-theme] .well,
html[data-theme] .list-group-item, html[data-theme] .checkout-block .panel-heading,
html[data-theme] .cart-page .cart-page-module .panel-default > .panel-heading,
html[data-theme] .text-banner .banner, html[data-theme] .banner-grid .banner-title,
html[data-theme] #column-left .list-group a, html[data-theme] #column-right .list-group a,
html[data-theme] .info-block, html[data-theme] .contact-info, html[data-theme] .not-found,
html[data-theme] .page-empty-cart, html[data-theme] .wishlist-page, html[data-theme] .cart-page,
html[data-theme] .cabinet-details, html[data-theme] .cabinet-action-content {
  background: var(--ar-surface) !important;
  color: var(--ar-text) !important;
  border-color: var(--ar-line) !important;
}
html[data-theme] .panel, html[data-theme] .well, html[data-theme] .box-category,
html[data-theme] .box-filter, html[data-theme] .product-box, html[data-theme] .cabinet-header,
html[data-theme] .category-list .category-list-item, html[data-theme] .info-block {
  border: 1px solid var(--ar-line) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}
html[data-theme] .panel-heading, html[data-theme] .panel-footer { border-color: var(--ar-line) !important; }
html[data-theme] .panel-title, html[data-theme] .panel-title a { color: var(--ar-head) !important; }

/* ---------- Top bar & header ---------- */
html[data-theme] #top {
  background: var(--ar-bg2) !important;
  border-bottom: 1px solid var(--ar-line) !important;
  color: var(--ar-muted) !important;
}
html[data-theme] #top a, html[data-theme] #top .btn-link { color: var(--ar-muted) !important; }
html[data-theme] #top a:hover { color: var(--ar-accent) !important; }
html[data-theme] header {
  background: color-mix(in srgb, var(--ar-bg) 82%, transparent) !important;
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--ar-line) !important;
  box-shadow: none !important;
}
html[data-theme] header .btn-link, html[data-theme] header .btn-link svg,
html[data-theme] .header-mobile button, html[data-theme] .header-mobile svg,
html[data-theme] .mobile-search .icon-search { color: var(--ar-text) !important; fill: currentColor; }
html[data-theme] header .btn-link:hover { color: var(--ar-accent) !important; }
html[data-theme] header .wishlist-count, html[data-theme] header .compare-count,
html[data-theme] #cart .cart-total, html[data-theme] #cart-total .count, html[data-theme] header .count {
  background: var(--ar-blue) !important; color: #fff !important;
}
html[data-theme] .header-contact .btn-link span { color: var(--ar-head) !important; font-weight: 700; }

/* AR logo (inline SVG mark) */
#logo .ar-logo { display: inline-flex; align-items: center; text-decoration: none; }
#logo .ar-logo svg { height: 46px; width: auto; display: block; }
.header-mobile #logo .ar-logo svg, .mobile-logo #logo .ar-logo svg { height: 34px; }
#logo .ar-logo .ar-ink { fill: var(--ar-logo-ink, #1E2128); transition: fill .25s; }
#logo .ar-logo .ar-chev { fill: var(--ar-blue, #0A7CFF); }
html[data-theme] #logo > img, html[data-theme] #logo > a:not(.ar-logo), html[data-theme] #logo > h1 { display: none !important; }

/* Theme toggle */
.ar-theme-toggle {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--ar-line2, rgba(0,0,0,.15));
  background: var(--ar-surface, #fff); color: var(--ar-text, #222);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s; margin: 0 4px; padding: 0; flex: none;
}
.ar-theme-toggle:hover { border-color: var(--ar-accent); transform: translateY(-1px); }
.ar-theme-toggle svg { width: 20px; height: 20px; }
.ar-theme-toggle .ar-sun { display: none; }
html[data-theme="dark"] .ar-theme-toggle .ar-sun { display: block; }
html[data-theme="dark"] .ar-theme-toggle .ar-moon { display: none; }
.mobile-right-block .ar-theme-toggle { width: 36px; height: 36px; border-radius: 10px; margin-right: 6px; }
.mobile-right-block { gap: 2px; }

/* ---------- Search ---------- */
html[data-theme] #search, html[data-theme] .search-input,
html[data-theme] .mobile-search .search-popup { background: transparent !important; }
html[data-theme] #search .input-group, html[data-theme] .search-input .input-group { border-radius: 14px; overflow: hidden; }
html[data-theme] header #search input, html[data-theme] #search input.form-control,
html[data-theme] input[name="search"], html[data-theme] .header-search input {
  background: var(--ar-input) !important;
  color: var(--ar-text) !important; -webkit-text-fill-color: var(--ar-text) !important;
  caret-color: var(--ar-accent) !important;
  border: 1px solid var(--ar-line2) !important;
  font-weight: 600 !important; font-size: 16px !important;
  height: 46px !important; border-radius: 14px 0 0 14px !important;
}
html[data-theme] input[name="search"]::placeholder { color: var(--ar-muted) !important; -webkit-text-fill-color: var(--ar-muted) !important; }
html[data-theme] header #search input:focus, html[data-theme] input[name="search"]:focus {
  border-color: var(--ar-accent) !important;
  box-shadow: 0 0 0 3px rgba(127, 227, 245, .18) !important;
}
html[data-theme] #search .btn, html[data-theme] .search-input .btn-primary {
  height: 46px !important; border-radius: 0 14px 14px 0 !important;
  background: var(--ar-accent) !important; border-color: var(--ar-accent) !important; color: var(--ar-accent-ink) !important;
}
html[data-theme] .mobile-search .search-popup { background: var(--ar-bg) !important; }
html[data-theme] #search .dropdown-menu, html[data-theme] .live-search, html[data-theme] .ajax-search,
html[data-theme] .search-autocomplete, html[data-theme] .autocomplete-suggestions,
html[data-theme] header .dropdown-menu, html[data-theme] .header-search .dropdown-menu, html[data-theme] #search input + ul {
  background: var(--ar-surface) !important; border: 1px solid var(--ar-line2) !important;
  border-radius: 16px !important; box-shadow: var(--ar-shadow) !important; color: var(--ar-text) !important;
}
html[data-theme] #search .dropdown-menu a, html[data-theme] .live-search a, html[data-theme] .ajax-search a { color: var(--ar-text) !important; }
html[data-theme] #search .dropdown-menu li > a:hover, html[data-theme] .live-search li:hover { background: var(--ar-surface2) !important; }
html[data-theme] #search .dropdown-menu .price, html[data-theme] header .dropdown-menu .price, html[data-theme] .dropdown-menu .price {
  color: var(--ar-accent) !important; -webkit-text-fill-color: var(--ar-accent) !important;
}
html[data-theme="light"] #search .dropdown-menu .price, html[data-theme="light"] .dropdown-menu .price { color: var(--ar-link) !important; -webkit-text-fill-color: var(--ar-link) !important; }
html[data-theme] #search .dropdown-menu img, html[data-theme] header .dropdown-menu img, html[data-theme] .live-search img { background: var(--ar-img) !important; border-radius: 10px !important; }

/* ---------- Catalog button & mega menu ---------- */
html[data-theme] header .main-menu-button {
  background: var(--ar-accent) !important; color: var(--ar-accent-ink) !important;
  border: 0 !important; border-radius: 14px !important; height: 46px; padding: 0 18px !important;
  font-weight: 800 !important; box-shadow: none !important;
}
html[data-theme] header .main-menu-button svg { fill: currentColor; color: currentColor; }
html[data-theme] .main-menu-wrap .menu-outer, html[data-theme] #main-menu .menu-level-two,
html[data-theme] #main-menu .menu-level-three {
  background: var(--ar-surface) !important; color: var(--ar-text) !important;
  border-color: var(--ar-line) !important; box-shadow: var(--ar-shadow) !important;
}
html[data-theme] .main-menu-wrap .menu-outer { border-radius: 0 0 20px 20px !important; border: 1px solid var(--ar-line) !important; }
html[data-theme] #main-menu a, html[data-theme] #main-menu .link { color: var(--ar-text) !important; }
html[data-theme] #main-menu .menu-inner-item:hover > .link, html[data-theme] #main-menu .menu-inner-item.open > .link {
  background: var(--ar-surface2) !important; color: var(--ar-accent) !important;
}
html[data-theme="light"] #main-menu .menu-inner-item:hover > .link { color: var(--ar-link) !important; }
html[data-theme] #main-menu a:hover { color: var(--ar-accent) !important; }
html[data-theme="light"] #main-menu a:hover { color: var(--ar-link) !important; }
html[data-theme] #main-menu .menu-inner-wrap::-webkit-scrollbar, html[data-theme] #main-menu .menu-inner-container::-webkit-scrollbar,
html[data-theme] #main-menu .menu-inner-wrap::-webkit-scrollbar-track, html[data-theme] #main-menu .menu-inner-container::-webkit-scrollbar-track { background: var(--ar-surface) !important; }
html[data-theme] #menu { background: var(--ar-surface) !important; border-color: var(--ar-line) !important; }
html[data-theme] #menu .nav > li > a { color: var(--ar-text) !important; }

/* Mobile drawer */
html[data-theme] .mobile-menu, html[data-theme] .mobile-menu-panel, html[data-theme] .mobile-catalog,
html[data-theme] .mobile-catalog-children, html[data-theme] .mobile-catalog-child, html[data-theme] .menu-mobile-customer,
html[data-theme] .mobile-catalog-list, html[data-theme] .mobile-catalog-item .button-arrow,
html[data-theme] .mobile-menu-language .language-select, html[data-theme] .mobile-menu-currency .currency-select {
  background: var(--ar-surface) !important; color: var(--ar-text) !important; border-color: var(--ar-line) !important;
}
html[data-theme] .mobile-menu a, html[data-theme] .mobile-menu .mobile-menu-title, html[data-theme] .mobile-menu-contact,
html[data-theme] .mobile-menu .text-contact, html[data-theme] .mobile-menu .text-language, html[data-theme] .mobile-menu .text-currency { color: var(--ar-text) !important; }
html[data-theme] .mobile-menu-close svg { fill: var(--ar-text) !important; }
html[data-theme] .mobile-catalog-item, html[data-theme] .mobile-menu li { border-color: var(--ar-line) !important; }
html[data-theme] .mobile-menu-shadow { background: rgba(3, 8, 22, .6) !important; }

/* ---------- Buttons ---------- */
html[data-theme] .btn { border-radius: 12px !important; font-weight: 700 !important; text-shadow: none !important; transition: transform .15s, background .2s, border-color .2s; }
html[data-theme] .btn-primary, html[data-theme] .btn-info, html[data-theme] .btn-success,
html[data-theme] #button-cart, html[data-theme] #button-confirm, html[data-theme] .btn-cart,
html[data-theme] .product-thumb .btn-primary {
  background: var(--ar-accent) !important; border-color: var(--ar-accent) !important;
  color: var(--ar-accent-ink) !important; background-image: none !important;
}
html[data-theme] .btn-primary:hover, html[data-theme] .btn-info:hover, html[data-theme] .btn-success:hover,
html[data-theme] #button-cart:hover, html[data-theme] .btn-primary:focus {
  background: var(--ar-blue) !important; border-color: var(--ar-blue) !important; color: #fff !important;
}
html[data-theme] .btn-primary svg, html[data-theme] .btn-primary .fa { color: currentColor !important; fill: currentColor !important; }
html[data-theme] .btn-default, html[data-theme] .btn-warning, html[data-theme] .btn-inverse {
  background: var(--ar-surface2) !important; border: 1px solid var(--ar-line2) !important;
  color: var(--ar-text) !important; background-image: none !important;
}
html[data-theme] .btn-default:hover, html[data-theme] .btn-inverse:hover { border-color: var(--ar-accent) !important; color: var(--ar-head) !important; }
html[data-theme] .btn-danger { background: var(--ar-bad) !important; border-color: var(--ar-bad) !important; color: #fff !important; }
html[data-theme] .btn-link { color: var(--ar-link); }
html[data-theme] .btn:active { transform: translateY(1px); }

/* ---------- Forms ---------- */
html[data-theme] .form-control, html[data-theme] select, html[data-theme] textarea,
html[data-theme] input[type="text"], html[data-theme] input[type="email"], html[data-theme] input[type="tel"],
html[data-theme] input[type="password"], html[data-theme] input[type="number"], html[data-theme] input[type="date"] {
  background-color: var(--ar-input) !important; color: var(--ar-text) !important;
  border: 1px solid var(--ar-line2) !important; border-radius: 12px !important; box-shadow: none !important;
}
html[data-theme] .form-control:focus, html[data-theme] select:focus, html[data-theme] textarea:focus {
  border-color: var(--ar-accent) !important; box-shadow: 0 0 0 3px rgba(127, 227, 245, .16) !important;
}
html[data-theme] .form-control::placeholder { color: var(--ar-muted) !important; }
html[data-theme] .input-group-addon { background: var(--ar-surface2) !important; border-color: var(--ar-line2) !important; color: var(--ar-text) !important; }
html[data-theme] .input-group .form-control:first-child { border-radius: 12px 0 0 12px !important; }
html[data-theme] .input-group .input-group-btn:last-child > .btn { border-radius: 0 12px 12px 0 !important; }
html[data-theme] .has-error .form-control { border-color: var(--ar-bad) !important; }
html[data-theme] .text-danger { color: var(--ar-bad) !important; }
html[data-theme] .text-success { color: var(--ar-ok) !important; }
html[data-theme] .required .control-label::before, html[data-theme] .required > label::before { color: var(--ar-bad) !important; }
html[data-theme] .agree-terms, html[data-theme] .checkbox label, html[data-theme] .radio label { color: var(--ar-text) !important; }
html[data-theme] input[type="checkbox"], html[data-theme] input[type="radio"] { accent-color: var(--ar-blue); }

/* ---------- Dropdowns / modals / alerts / tables ---------- */
html[data-theme] .dropdown-menu {
  background: var(--ar-surface) !important; border: 1px solid var(--ar-line2) !important;
  border-radius: 14px !important; box-shadow: var(--ar-shadow) !important; color: var(--ar-text) !important;
}
html[data-theme] .dropdown-menu li > a, html[data-theme] .dropdown-menu li > button, html[data-theme] .dropdown-menu li { color: var(--ar-text) !important; }
html[data-theme] .dropdown-menu li > a:hover, html[data-theme] .dropdown-menu li > button:hover { background: var(--ar-surface2) !important; color: var(--ar-head) !important; }
html[data-theme] .modal-content {
  background: var(--ar-surface) !important; color: var(--ar-text) !important;
  border: 1px solid var(--ar-line2) !important; border-radius: 20px !important; box-shadow: var(--ar-shadow) !important;
}
html[data-theme] .modal-header, html[data-theme] .modal-footer { background: transparent !important; border-color: var(--ar-line) !important; }
html[data-theme] .modal-title { color: var(--ar-head) !important; font-family: 'Unbounded', sans-serif; font-size: 18px; }
html[data-theme] .modal .close, html[data-theme] .close { color: var(--ar-text) !important; opacity: .8; text-shadow: none !important; }
html[data-theme] .modal-backdrop.in { opacity: .7; background: #020817; }
html[data-theme] .alert { border-radius: 14px !important; border: 1px solid var(--ar-line2) !important; }
html[data-theme] .alert-success { background: rgba(69, 212, 154, .12) !important; color: var(--ar-text) !important; border-color: rgba(69, 212, 154, .4) !important; }
html[data-theme] .alert-danger, html[data-theme] .alert-warning { background: rgba(255, 122, 138, .12) !important; color: var(--ar-text) !important; border-color: rgba(255, 122, 138, .4) !important; }
html[data-theme] .alert-info { background: rgba(127, 227, 245, .1) !important; color: var(--ar-text) !important; }
html[data-theme] .alert-popup .alert { background: var(--ar-surface) !important; color: var(--ar-text) !important; box-shadow: var(--ar-shadow) !important; }
html[data-theme] .alert a { color: var(--ar-link) !important; font-weight: 700; }
html[data-theme] .table, html[data-theme] .table > thead > tr > td, html[data-theme] .table > tbody > tr > td,
html[data-theme] .table > thead > tr > th, html[data-theme] .table > tfoot > tr > td, html[data-theme] .table-bordered {
  border-color: var(--ar-line) !important; color: var(--ar-text) !important; background: transparent !important;
}
html[data-theme] .table > thead, html[data-theme] .cabinet-details .table > thead, html[data-theme] .table > thead > tr > td {
  background: var(--ar-surface2) !important; color: var(--ar-head) !important; font-weight: 700;
}
html[data-theme] .table-striped > tbody > tr:nth-of-type(odd), html[data-theme] .table-hover > tbody > tr:hover { background: rgba(127, 227, 245, .04) !important; }
html[data-theme] .table-responsive { border-color: var(--ar-line) !important; border-radius: 14px; }
html[data-theme] .img-thumbnail, html[data-theme] .thumbnail { background: var(--ar-img) !important; border-color: var(--ar-line) !important; border-radius: 12px !important; }
html[data-theme] .nav-tabs { border-color: var(--ar-line) !important; }
html[data-theme] .nav-tabs > li > a { color: var(--ar-muted) !important; border-radius: 12px 12px 0 0 !important; }
html[data-theme] .nav-tabs > li.active > a, html[data-theme] .nav-tabs > li.active > a:hover {
  background: var(--ar-surface) !important; color: var(--ar-head) !important; border-color: var(--ar-line) var(--ar-line) transparent !important;
}
html[data-theme] .tooltip-inner { background: var(--ar-head); color: var(--ar-bg); }

/* ---------- Breadcrumbs / pagination ---------- */
html[data-theme] .breadcrumb { background: transparent !important; padding-left: 0 !important; }
html[data-theme] .breadcrumb > li, html[data-theme] .breadcrumb > li a { color: var(--ar-muted) !important; font-size: 13px; }
html[data-theme] .breadcrumb > li a:hover { color: var(--ar-accent) !important; }
html[data-theme] .breadcrumb > li + li::before, html[data-theme] .breadcrumb > li::after { color: var(--ar-line2) !important; }
html[data-theme] .pagination > li > a, html[data-theme] .pagination > li > span {
  background: var(--ar-surface) !important; color: var(--ar-text) !important; border: 1px solid var(--ar-line) !important;
  border-radius: 10px !important; margin: 0 3px; min-width: 40px; text-align: center;
}
html[data-theme] .pagination > .active > a, html[data-theme] .pagination > .active > span,
html[data-theme] .pagination > li > a:hover {
  background: var(--ar-accent) !important; border-color: var(--ar-accent) !important; color: var(--ar-accent-ink) !important;
}

/* ---------- Product cards ---------- */
html[data-theme] .product-thumb {
  background: var(--ar-surface) !important;
  border: 1px solid var(--ar-line) !important;
  border-radius: 20px !important;
  box-shadow: none !important;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
html[data-theme] .product-thumb:hover {
  transform: translateY(-3px);
  border-color: var(--ar-line2) !important;
  box-shadow: var(--ar-shadow) !important;
}
html[data-theme] .product-thumb .image {
  background: var(--ar-img); border-radius: 14px; overflow: hidden;
}
html[data-theme] .product-thumb .image img { transition: transform .4s ease; }
html[data-theme] .product-thumb:hover .image img { transform: scale(1.04); }
html[data-theme] .product-thumb .caption h4 a, html[data-theme] .product-thumb .caption .name a,
html[data-theme] .product-thumb .product-name a, html[data-theme] .product-thumb .name a,
html[data-theme] .product-thumb h4 a {
  color: var(--ar-head) !important; font-weight: 700 !important; font-size: 15px !important; line-height: 1.35 !important;
}
html[data-theme] .product-thumb .caption h4 a:hover, html[data-theme] .product-thumb h4 a:hover { color: var(--ar-accent) !important; }
html[data-theme="light"] .product-thumb h4 a:hover { color: var(--ar-link) !important; }
html[data-theme] .product-thumb .model, html[data-theme] .product-thumb .product-model,
html[data-theme] .product-thumb .sku, html[data-theme] .product-thumb [class*="code"] {
  color: var(--ar-muted) !important; font-family: 'JetBrains Mono', monospace !important; font-weight: 500 !important; font-size: 12px !important;
}
html[data-theme] .product-thumb .caption p, html[data-theme] .product-thumb .description { color: var(--ar-muted) !important; }
html[data-theme] .product-thumb .price, html[data-theme] .product-thumb .price-new {
  color: var(--ar-head) !important; font-family: 'Unbounded', sans-serif !important; font-weight: 600 !important; font-size: 18px !important;
}
html[data-theme] .product-thumb .price-new { color: var(--ar-sale) !important; }
html[data-theme] .product-thumb .price-old, html[data-theme] .price-old { color: var(--ar-muted) !important; text-decoration: line-through; font-size: 13px !important; }
html[data-theme] .product-thumb .price-tax { color: var(--ar-muted) !important; }
html[data-theme] .product-thumb .stock, html[data-theme] .stock { color: var(--ar-ok) !important; }
html[data-theme] .product-thumb .stock.out, html[data-theme] .product-thumb .out-of-stock, html[data-theme] .stock .text-danger { color: var(--ar-bad) !important; }
html[data-theme] .product-thumb .product-bottom .btn-default[disabled] { background: var(--ar-surface2) !important; color: var(--ar-muted) !important; }
html[data-theme] .product-thumb .image .action-button button, html[data-theme] .btn_wishlist_compare button,
html[data-theme] .product-thumb .btn-wishlist, html[data-theme] .product-thumb .btn-compare {
  background: var(--ar-surface) !important; color: var(--ar-text) !important;
  border: 1px solid var(--ar-line2) !important; border-radius: 10px !important;
}
html[data-theme] .product-thumb .image .action-button button:hover { background: var(--ar-accent) !important; color: var(--ar-accent-ink) !important; }
html[data-theme] .stickers .sticker, html[data-theme] .stickers span, html[data-theme] .sticker-special { border-radius: 8px !important; font-weight: 800 !important; }
html[data-theme] .rating .fa-star, html[data-theme] .rating .fa-stack .fa-star { color: #FFC24B !important; }
html[data-theme] .rating .fa-star-o { color: var(--ar-line2) !important; }

/* Product list toolbar / filter */
html[data-theme] .product-filter, html[data-theme] .product-sort { color: var(--ar-text) !important; }
html[data-theme] .product-filter .btn-group .btn { background: var(--ar-surface) !important; border-color: var(--ar-line2) !important; color: var(--ar-text) !important; }
html[data-theme] .product-filter .btn-group .btn.active { background: var(--ar-accent) !important; color: var(--ar-accent-ink) !important; }
html[data-theme] .box-category a, html[data-theme] .box-filter a, html[data-theme] .box-filter label { color: var(--ar-text) !important; }
html[data-theme] .box-category a:hover, html[data-theme] .box-category a.active { color: var(--ar-accent) !important; }
html[data-theme] .category-list .category-list-item a { color: var(--ar-head) !important; font-weight: 700; }
html[data-theme] .category-list .category-list-item:hover { border-color: var(--ar-accent) !important; }
html[data-theme] .category-list .category-list-item img { background: var(--ar-img); border-radius: 10px; }

/* ---------- Home modules ---------- */
html[data-theme] .slideshow, html[data-theme] .slideshow .slick-list { border-radius: 24px; overflow: hidden; }
html[data-theme] .slick-dots li button::before { color: var(--ar-muted) !important; }
html[data-theme] .slick-dots li.slick-active button::before { color: var(--ar-accent) !important; }
html[data-theme] .slick-prev, html[data-theme] .slick-next {
  background-color: var(--ar-surface) !important; border: 1px solid var(--ar-line2) !important; border-radius: 12px !important;
  background-repeat: no-repeat !important; background-position: center !important; background-size: 18px 18px !important;
}
html[data-theme="light"] .slick-prev { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23172335%22 stroke-width=%222.4%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M15 18l-6-6 6-6%22/%3E%3C/svg%3E") !important; }
html[data-theme="light"] .slick-next { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23172335%22 stroke-width=%222.4%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 6l6 6-6 6%22/%3E%3C/svg%3E") !important; }
html[data-theme="dark"] .slick-prev { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23EAF2FB%22 stroke-width=%222.4%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M15 18l-6-6 6-6%22/%3E%3C/svg%3E") !important; }
html[data-theme="dark"] .slick-next { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23EAF2FB%22 stroke-width=%222.4%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 6l6 6-6 6%22/%3E%3C/svg%3E") !important; }
html[data-theme] .slick-prev::before, html[data-theme] .slick-next::before { color: var(--ar-text) !important; }
html[data-theme] .category-wall .category-layout {
  background: var(--ar-surface) !important; border: 1px solid var(--ar-line) !important; border-radius: 20px !important;
  box-shadow: none !important; transition: border-color .2s, transform .2s;
}
html[data-theme] .category-wall .category-layout:hover { border-color: var(--ar-accent) !important; transform: translateY(-2px); }
html[data-theme] .category-wall a, html[data-theme] .category-wall .caption, html[data-theme] .category-wall h4 { color: var(--ar-head) !important; }
html[data-theme] .category-wall img { background: var(--ar-img); border-radius: 14px; }
html[data-theme] .review-wrapper .review-item {
  background: var(--ar-surface) !important; border: 1px solid var(--ar-line) !important; border-radius: 20px !important; box-shadow: none !important; color: var(--ar-text) !important;
}
html[data-theme] .review-wrapper .review-item * { color: inherit; }
html[data-theme] .review-wrapper .review-item a { color: var(--ar-link) !important; }
html[data-theme] .subscribe-container { background: var(--ar-surface) !important; border: 1px solid var(--ar-line) !important; border-radius: 20px; color: var(--ar-text) !important; }

/* ---------- Product page ---------- */
html[data-theme] .thumbnails .thumbnail, html[data-theme] .image-additional a { background: var(--ar-img) !important; border-radius: 16px !important; }
html[data-theme] .cloud-zoom-lens { background: rgba(255, 255, 255, .25) !important; }
html[data-theme] .product-tabs, html[data-theme] .product-tabs-sticky.fixed .product-tabs {
  background: var(--ar-surface) !important; border: 1px solid var(--ar-line) !important; border-radius: 16px !important; box-shadow: none !important;
}
html[data-theme] .product-tabs a, html[data-theme] .product-tab-title { color: var(--ar-text) !important; }
html[data-theme] .product-tabs a.active, html[data-theme] .product-tabs .active a, html[data-theme] .product-tabs a:hover { color: var(--ar-accent) !important; }
html[data-theme="light"] .product-tabs a.active, html[data-theme="light"] .product-tabs .active a { color: var(--ar-link) !important; }
html[data-theme] .product-tab-info { border-radius: 20px !important; border: 1px solid var(--ar-line) !important; }
html[data-theme] .attribute-item, html[data-theme] .attribute-item:nth-child(2n) { background: transparent !important; border-color: var(--ar-line) !important; color: var(--ar-text) !important; }
html[data-theme] .attribute-item:nth-child(2n) { background: rgba(127, 227, 245, .04) !important; }
html[data-theme] .product-block-info, html[data-theme] .product-additional-info, html[data-theme] .product-options { color: var(--ar-text) !important; }
html[data-theme] #product .price, html[data-theme] .product-block-info .price, html[data-theme] .product-price,
html[data-theme] .product-block-button .price, html[data-theme] #product h2 {
  color: var(--ar-head) !important; font-family: 'Unbounded', sans-serif !important; font-weight: 600 !important;
}
html[data-theme] .count-quantity, html[data-theme] .count-quantity .form-control { background: var(--ar-input) !important; border-color: var(--ar-line2) !important; color: var(--ar-text) !important; border-radius: 12px; }
html[data-theme] .count-quantity .btn-count { background: var(--ar-surface2) !important; color: var(--ar-text) !important; border-color: var(--ar-line2) !important; }
html[data-theme] .product-review-item, html[data-theme] .review-comment { border-color: var(--ar-line) !important; color: var(--ar-text) !important; }
html[data-theme] .product-review-head, html[data-theme] .product-review-date { color: var(--ar-muted) !important; }
html[data-theme] .product-answer-content, html[data-theme] .product-answer-admin { background: var(--ar-surface2) !important; color: var(--ar-text) !important; border-radius: 12px; }
html[data-theme] .rating-average-track, html[data-theme] .rating-average-rail { background: var(--ar-surface2) !important; }

/* ---------- Cart / checkout / compare / wishlist ---------- */
html[data-theme] #cart > .btn, html[data-theme] #cart.open > .btn { background: transparent !important; color: var(--ar-text) !important; border: 0 !important; }
html[data-theme] #cart .btn-cart-remove { background: var(--ar-surface2) !important; color: var(--ar-text) !important; }
html[data-theme] .cart-items-list, html[data-theme] .cart-items-list li, html[data-theme] .cart-total-list-item,
html[data-theme] .cart-items-edit { border-color: var(--ar-line) !important; color: var(--ar-text) !important; }
html[data-theme] #modalCart .modal-content a { color: var(--ar-head); }
html[data-theme] .checkout-block, html[data-theme] .checkout-block .panel { background: var(--ar-surface) !important; border-radius: 18px !important; border: 1px solid var(--ar-line) !important; }
html[data-theme] .compare-wrap, html[data-theme] .compare-wrap .compare-body { color: var(--ar-text) !important; }
html[data-theme] .compare-wrap .compare-body .content-row:nth-child(even) { background: rgba(127, 227, 245, .05) !important; }
html[data-theme] .compare-wrap .content-row, html[data-theme] .compare-wrap .compare-header { border-color: var(--ar-line) !important; }
html[data-theme] .cabinet-info-icon, html[data-theme] .personal-info-icon, html[data-theme] .personal-reward-icon { color: var(--ar-accent) !important; fill: var(--ar-accent) !important; }
html[data-theme] .list-group a.list-group-item { color: var(--ar-text) !important; }
html[data-theme] .list-group a.list-group-item.active, html[data-theme] .list-group a.list-group-item:hover { background: var(--ar-surface2) !important; color: var(--ar-accent) !important; border-color: var(--ar-line) !important; }

/* ---------- Footer ---------- */
html[data-theme] footer {
  background: var(--ar-bg2) !important; color: var(--ar-muted) !important;
  border-top: 1px solid var(--ar-line) !important; box-shadow: none !important; margin-top: 60px !important;
}
html[data-theme="dark"] footer { background: linear-gradient(180deg, #071431 0%, #040B1E 100%) !important; }
html[data-theme] footer .footer-title, html[data-theme] footer .footer-title-cont, html[data-theme] footer h5 {
  color: var(--ar-head) !important; font-family: 'Unbounded', sans-serif !important; font-size: 14px !important; font-weight: 600 !important; letter-spacing: .02em;
}
html[data-theme] footer a, html[data-theme] footer li, html[data-theme] footer .powered { color: var(--ar-muted) !important; }
html[data-theme] footer a:hover { color: var(--ar-accent) !important; }
html[data-theme="light"] footer a:hover { color: var(--ar-link) !important; }
html[data-theme] footer svg { color: var(--ar-muted); }
html[data-theme] footer svg:hover { color: var(--ar-accent); }
html[data-theme] footer hr, html[data-theme] .footer-powered { border-color: var(--ar-line) !important; }
html[data-theme] #feedback-widget .contact-lists { background: var(--ar-surface) !important; border: 1px solid var(--ar-line2); border-radius: 18px !important; }
html[data-theme] #feedback-widget .contact-lists .text, html[data-theme] #feedback-widget .contact-lists .item { color: var(--ar-text) !important; }
html[data-theme] .scroll-top, html[data-theme] #back-top { background: var(--ar-accent) !important; color: var(--ar-accent-ink) !important; border-radius: 14px !important; }

/* ---------- Home: hero / trust / custom order (added by AUTORING) ---------- */
section.ar-hero {
  position: relative; overflow: hidden; margin: 22px 0 8px; padding: clamp(26px, 4vw, 56px);
  border-radius: 28px; border: 1px solid var(--ar-line);
  background:
    radial-gradient(700px 360px at 92% 10%, rgba(10, 124, 255, .35), transparent 65%),
    radial-gradient(500px 300px at 70% 120%, rgba(127, 227, 245, .18), transparent 70%),
    linear-gradient(135deg, #0B1A3A 0%, #06102A 100%);
  color: #EAF2FB;
}
html[data-theme="light"] section.ar-hero {
  background:
    radial-gradient(700px 360px at 92% 10%, rgba(10, 124, 255, .18), transparent 65%),
    linear-gradient(135deg, #FFFFFF 0%, #E8EEF7 100%);
  color: #1B2A44;
}
.ar-hero__mark { position: absolute; right: -40px; bottom: -60px; width: min(520px, 55%); opacity: .10; pointer-events: none; }
.ar-hero__mark .ar-ink { fill: var(--ar-logo-ink); }
.ar-hero__mark .ar-chev { fill: var(--ar-blue); }
html[data-theme="light"] .ar-hero__mark { opacity: .07; }
.ar-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--ar-line2); font: 600 12px/1 'JetBrains Mono', monospace; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ar-accent);
}
html[data-theme="light"] .ar-hero__eyebrow { color: var(--ar-link); }
.ar-hero__eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--ar-ok); box-shadow: 0 0 0 4px rgba(69, 212, 154, .2); }
.ar-hero h1.ar-hero__title, html[data-theme] .ar-hero h1.ar-hero__title {
  margin: 18px 0 14px !important; max-width: 760px;
  font-size: clamp(26px, 4.4vw, 52px) !important; line-height: 1.08 !important; font-weight: 700 !important;
  color: inherit !important;
}
.ar-hero__title span { color: var(--ar-accent); }
html[data-theme="light"] .ar-hero__title span { color: var(--ar-blue); }
.ar-hero__lead { max-width: 600px; font-size: clamp(15px, 1.4vw, 17px); line-height: 1.6; opacity: .85; margin: 0 0 24px; color: inherit !important; }
.ar-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.ar-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 14px;
  font-weight: 800; font-size: 15px; text-decoration: none !important; transition: transform .15s, background .2s, color .2s; border: 1px solid transparent;
}
.ar-btn--accent { background: var(--ar-accent); color: var(--ar-accent-ink) !important; }
.ar-btn--accent:hover { background: var(--ar-blue); color: #fff !important; transform: translateY(-1px); }
.ar-btn--ghost { border-color: var(--ar-line2); color: inherit !important; background: rgba(255, 255, 255, .04); }
.ar-btn--ghost:hover { border-color: var(--ar-accent); transform: translateY(-1px); }
.ar-chips { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.ar-chip {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--ar-line2); font-size: 13px; font-weight: 700; color: inherit !important; text-decoration: none !important;
  background: rgba(255, 255, 255, .03); transition: border-color .2s, background .2s;
}
.ar-chip:hover { border-color: var(--ar-accent); background: rgba(127, 227, 245, .08); }
.ar-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0 6px; }
.ar-trust__item {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 18px;
  background: var(--ar-surface); border: 1px solid var(--ar-line); color: var(--ar-text);
}
.ar-trust__item svg { width: 26px; height: 26px; flex: none; color: var(--ar-accent); }
html[data-theme="light"] .ar-trust__item svg { color: var(--ar-blue); }
.ar-trust__item b { display: block; color: var(--ar-head); font-size: 14px; margin-bottom: 2px; }
.ar-trust__item span { font-size: 13px; color: var(--ar-muted); line-height: 1.4; }
.ar-custom {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: center; margin: 40px 0 10px;
  padding: clamp(22px, 3vw, 40px); border-radius: 26px; border: 1px solid var(--ar-line2);
  background: linear-gradient(120deg, rgba(10, 124, 255, .16), rgba(127, 227, 245, .06)), var(--ar-surface);
  color: var(--ar-text);
}
.ar-custom h2 { margin: 0 0 10px !important; font-size: clamp(20px, 2.6vw, 30px) !important; }
.ar-custom p { margin: 0; color: var(--ar-muted) !important; line-height: 1.6; }
.ar-custom__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ar-custom__steps li { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--ar-text); }
.ar-custom__steps li i {
  width: 28px; height: 28px; border-radius: 9px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--ar-accent); color: var(--ar-accent-ink); font: 700 13px/1 'JetBrains Mono', monospace;
}
.ar-custom__cta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Mobile bottom nav ---------- */
.ar-bottom-nav { display: none; }
@media (max-width: 991px) {
  .ar-bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--ar-bg, #06102A) 90%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--ar-line, rgba(127,227,245,.14));
  }
  .ar-bottom-nav a, .ar-bottom-nav button {
    display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border: 0; background: none;
    color: var(--ar-muted, #9FB2CF) !important; font: 700 10.5px/1.1 'Manrope', sans-serif; text-decoration: none !important; position: relative;
  }
  .ar-bottom-nav a.is-active, .ar-bottom-nav a:hover, .ar-bottom-nav button:hover { color: var(--ar-accent, #7FE3F5) !important; }
  html[data-theme="light"] .ar-bottom-nav a.is-active { color: var(--ar-blue) !important; }
  .ar-bottom-nav svg { width: 22px; height: 22px; }
  .ar-bottom-nav .ar-badge {
    position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
    background: var(--ar-blue, #0A7CFF); color: #fff; font-size: 10px; line-height: 17px; text-align: center;
  }
  .ar-bottom-nav .ar-badge:empty, .ar-bottom-nav .ar-badge[data-n="0"] { display: none; }
  html[data-theme] body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  html[data-theme] #back-top, html[data-theme] .scroll-top { bottom: 84px !important; }
  html[data-theme] #feedback-widget { bottom: 84px !important; }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991px) {
  .ar-trust { grid-template-columns: repeat(2, 1fr); }
  .ar-custom { grid-template-columns: 1fr; }
  html[data-theme] .header-mobile { background: transparent !important; padding: 8px 0; }
}
@media (max-width: 480px) {
  section.ar-hero { border-radius: 22px; margin-top: 12px; }
  .ar-btn { height: 46px; padding: 0 16px; font-size: 14px; flex: 1 1 auto; justify-content: center; }
  .ar-trust { grid-template-columns: 1fr; }
  html[data-theme] .product-thumb { border-radius: 16px !important; }
  html[data-theme] .module-title { margin: 26px 0 14px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme] .product-thumb, html[data-theme] .product-thumb .image img, .ar-btn, .ar-chip { transition: none !important; }
}


/* product page price block */
html[data-theme] #price .price, html[data-theme] #price .price-new {
  color: var(--ar-head) !important; font-family: 'Unbounded', sans-serif !important; font-weight: 600 !important;
}
html[data-theme] #price .price-new { color: var(--ar-sale) !important; }
html[data-theme] #price .price-old { color: var(--ar-muted) !important; }
html[data-theme] #price .price-percentage, html[data-theme] .price-percentage { background: var(--ar-sale) !important; color: #fff !important; border-radius: 8px; padding: 2px 8px; font-weight: 800; }
html[data-theme] .cart-items-list .product-price { color: var(--ar-head) !important; }
html[data-theme] .option-price { color: var(--ar-muted) !important; }

/* ---------- fixes after live check (v1.1) ---------- */
/* modal cart lives inside header: no backdrop-filter there, or fixed modals get clipped */
html[data-theme] header { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: var(--ar-bg) !important; }
html[data-theme] { overflow-x: clip; }
html[data-theme] body { overflow-x: clip; }
html[data-theme] .category-list .name, html[data-theme] .category-list-item .name { color: var(--ar-head) !important; font-weight: 700; }
@media (max-width: 767px) { .ar-chips .ar-chip:nth-child(n+7) { display: none; } }

/* site's own checkout (#checkout-checkout.ar-checkout-page) in dark theme */
html[data-theme="dark"] #checkout-checkout.ar-checkout-page {
  --ar-bg: #06102A; --ar-bg2: #081633; --ar-card: #0B1A3A; --ar-soft: #102450; --ar-text: #EAF2FB; --ar-muted: #9FB2CF;
  --ar-blue: #0A7CFF; --ar-blue2: #0A7CFF; --ar-orange: #0A7CFF; --ar-deep-blue: #0A7CFF; --ar-border: rgba(127,227,245,.14);
  --ar-shadow: 0 18px 40px -18px rgba(0,0,0,.65);
}
html[data-theme="dark"] .ar-checkout-page .ar-step-card, html[data-theme="dark"] .ar-checkout-page .ar-order-card { background: var(--ar-surface) !important; border: 1px solid var(--ar-line) !important; }
html[data-theme="dark"] .ar-checkout-page .ar-step-head { background: transparent !important; border-bottom-color: var(--ar-line) !important; }
html[data-theme="dark"] .ar-checkout-page .ar-step-title, html[data-theme="dark"] .ar-checkout-page .ar-delivery-note b { color: #FFFFFF !important; }
html[data-theme="dark"] .ar-checkout-page .ar-step-text, html[data-theme="dark"] .ar-checkout-page .ar-delivery-note span { color: var(--ar-muted) !important; }
html[data-theme="dark"] .ar-checkout-page .form-group label, html[data-theme="dark"] .ar-checkout-page .control-label { color: var(--ar-text) !important; }
html[data-theme="dark"] .ar-checkout-page input[type='text'], html[data-theme="dark"] .ar-checkout-page input[type='email'], html[data-theme="dark"] .ar-checkout-page input[type='tel'],
html[data-theme="dark"] .ar-checkout-page input[type='password'], html[data-theme="dark"] .ar-checkout-page textarea, html[data-theme="dark"] .ar-checkout-page select, html[data-theme="dark"] .ar-checkout-page .form-control {
  background: var(--ar-input) !important; border-color: var(--ar-line2) !important; color: var(--ar-text) !important;
}
html[data-theme="dark"] .ar-checkout-page .ar-contact-note, html[data-theme="dark"] .ar-checkout-page .ar-delivery-note, html[data-theme="dark"] .ar-checkout-page .ar-side-benefit, html[data-theme="dark"] .ar-checkout-page .ar-loader-line {
  background: rgba(127,227,245,.07) !important; border-color: var(--ar-line2) !important; color: var(--ar-text) !important;
}
html[data-theme="dark"] .ar-checkout-page .ar-method-placeholder { background: transparent !important; border-color: var(--ar-line2) !important; color: var(--ar-muted) !important; }
html[data-theme="dark"] .ar-checkout-page .radio label, html[data-theme="dark"] .ar-checkout-page .checkbox label, html[data-theme="dark"] .ar-requisites-payment label {
  background: var(--ar-surface2) !important; border-color: var(--ar-line2) !important; color: var(--ar-text) !important;
}
html[data-theme="dark"] .ar-checkout-page .radio label:has(input:checked), html[data-theme="dark"] .ar-checkout-page .checkbox label:has(input:checked) { background: rgba(10,124,255,.18) !important; border-color: var(--ar-blue) !important; }
html[data-theme="dark"] .ar-checkout-page .alert-warning, html[data-theme="dark"] .ar-checkout-page .alert-danger { background: rgba(255,122,138,.12) !important; color: #FFB3BD !important; }
html[data-theme="dark"] #checkout-checkout #minicart tr.ar-final-total-row td, html[data-theme="dark"] #checkout-checkout #minicart tr.ar-final-total-row th { color: #FFFFFF !important; border-top-color: var(--ar-line) !important; }
html[data-theme="dark"] .ar-checkout-page .cart-items-title, html[data-theme="dark"] .ar-checkout-page .product-qty, html[data-theme="dark"] .ar-checkout-page .mini-cart-sum-title,
html[data-theme="dark"] .ar-checkout-page .mini-cart-sum-price, html[data-theme="dark"] .ar-checkout-page .cart-items-edit { color: var(--ar-text) !important; }
html[data-theme="dark"] .ar-checkout-page .cart-items-edit { color: var(--ar-accent) !important; }

/* header: search must shrink so phone, icons, theme switch and cart fit */
@media (min-width: 992px) {
  html[data-theme] header .header-search { flex: 1 1 auto !important; min-width: 0 !important; width: auto !important; max-width: none !important; }
  html[data-theme] header .header-search #search { min-width: 0 !important; width: 100% !important; }
  html[data-theme] header .header-contact, html[data-theme] header .header-login, html[data-theme] header .header-wishlist,
  html[data-theme] header .header-compare, html[data-theme] header .header-theme, html[data-theme] header .header-cart { flex: 0 0 auto; }
  html[data-theme] header .header-theme .ar-theme-toggle { margin: 0 2px; }
}
/* quantity +/- glyphs */
html[data-theme] .count-quantity .btn-plus:before, html[data-theme] .count-quantity .btn-plus:after, html[data-theme] .count-quantity .btn-minus:after { background-color: var(--ar-text) !important; }
/* reviews, modal headings */
html[data-theme] .product-review-text, html[data-theme] .product-review-username, html[data-theme] .product-review-content { color: var(--ar-text) !important; }
html[data-theme] .modal-content .heading, html[data-theme] .modal-content p { color: var(--ar-text) !important; }

/* headings: colour without !important so inline colours inside product descriptions win;
   keep it forced only for theme chrome */
html[data-theme] .module-title, html[data-theme] .category-title, html[data-theme] #content > h1, html[data-theme] .col-sm-12 > h1,
html[data-theme] .modal-title, html[data-theme] footer .footer-title { color: var(--ar-head) !important; }

/* mobile drawer above bottom nav; contacts dropdown inside the drawer */
@media (max-width: 991px) { .ar-bottom-nav { z-index: 1010 !important; } }
html[data-theme] .mobile-menu #header-contact { position: static !important; width: auto !important; min-width: 0 !important; margin: 8px 16px !important; box-shadow: none !important; float: none !important; }

/* live search suggestions: trend paints <li> light grey */
html[data-theme] #search .dropdown-menu li, html[data-theme] header .dropdown-menu li, html[data-theme] .search-popup .dropdown-menu li {
  background: transparent !important; border-color: var(--ar-line) !important; border-radius: 12px; margin: 4px 6px;
}
html[data-theme] #search .dropdown-menu li:hover, html[data-theme] #search .dropdown-menu li.active, html[data-theme] .search-popup .dropdown-menu li:hover { background: var(--ar-surface2) !important; }
html[data-theme] #search .dropdown-menu li a { background: transparent !important; white-space: normal !important; }
html[data-theme] #search .dropdown-menu h4, html[data-theme] .search-popup .dropdown-menu h4 {
  color: var(--ar-head) !important; -webkit-text-fill-color: var(--ar-head) !important;
  font-family: 'Manrope', sans-serif !important; font-size: 14px !important; font-weight: 700 !important; line-height: 1.35 !important; letter-spacing: 0;
}

/* shop's own contact page (.ar-contact-page) in dark theme */
html[data-theme="dark"] .ar-contact-page { color: var(--ar-text) !important; }
html[data-theme="dark"] .ar-contact-card, html[data-theme="dark"] .ar-contact-panel, html[data-theme="dark"] .ar-contact-form-wrap {
  background: var(--ar-surface) !important; border: 1px solid var(--ar-line) !important; box-shadow: none !important;
}
html[data-theme="dark"] .ar-contact-card h3, html[data-theme="dark"] .ar-contact-panel h2 { color: #FFFFFF !important; }
html[data-theme="dark"] .ar-contact-card p, html[data-theme="dark"] .ar-contact-panel p { color: var(--ar-muted) !important; }
html[data-theme="dark"] .ar-contact-card a { color: var(--ar-accent) !important; }
html[data-theme="dark"] .ar-contact-list-item { background: var(--ar-surface2) !important; color: var(--ar-text) !important; border-color: var(--ar-line) !important; }
html[data-theme="dark"] .ar-contact-form label { color: var(--ar-text) !important; }
html[data-theme="dark"] .ar-contact-form .form-control { background: var(--ar-input) !important; color: var(--ar-text) !important; border-color: var(--ar-line2) !important; }
html[data-theme="dark"] .ar-contact-note { background: rgba(127,227,245,.08) !important; color: var(--ar-text) !important; }

/* checkout inputs: beat the page's own #checkout-checkout rules (typed text was dark on dark) */
html[data-theme="dark"] #checkout-checkout.ar-checkout-page input[type='text'], html[data-theme="dark"] #checkout-checkout.ar-checkout-page input[type='email'],
html[data-theme="dark"] #checkout-checkout.ar-checkout-page input[type='tel'], html[data-theme="dark"] #checkout-checkout.ar-checkout-page input[type='password'],
html[data-theme="dark"] #checkout-checkout.ar-checkout-page textarea, html[data-theme="dark"] #checkout-checkout.ar-checkout-page select,
html[data-theme="dark"] #checkout-checkout.ar-checkout-page .form-control {
  background: var(--ar-input) !important; color: var(--ar-text) !important; -webkit-text-fill-color: var(--ar-text) !important;
  caret-color: var(--ar-accent) !important; border-color: var(--ar-line2) !important;
}
html[data-theme] .form-control, html[data-theme] input, html[data-theme] textarea { -webkit-text-fill-color: currentColor; }
html[data-theme] .form-control::placeholder, html[data-theme] input::placeholder, html[data-theme] textarea::placeholder { -webkit-text-fill-color: var(--ar-muted) !important; color: var(--ar-muted) !important; opacity: 1; }
/* iPhone zooms into any field under 16px — keep fields at 16px on phones */
@media (max-width: 767px) {
  html[data-theme] input[type='text'], html[data-theme] input[type='email'], html[data-theme] input[type='tel'], html[data-theme] input[type='password'],
  html[data-theme] input[type='number'], html[data-theme] input[type='search'], html[data-theme] select, html[data-theme] textarea, html[data-theme] .form-control { font-size: 16px !important; }
}

/* product card price: keep "2 400.00грн." on one line on narrow phones */
@media (max-width: 767px) {
  html[data-theme] .product-thumb .price, html[data-theme] .product-layout .price { font-size: clamp(14px, 4.2vw, 18px) !important; white-space: nowrap; line-height: 1.25 !important; }
  html[data-theme] .product-thumb .price .price-tax, html[data-theme] .product-layout .price .price-tax { display: block; font-size: 11px !important; white-space: normal; font-weight: 500 !important; }
  html[data-theme] .product-thumb .price .price-old, html[data-theme] .product-layout .price .price-old { font-size: 12px !important; }
}

/* product card title + description: whole pixel line-heights and a box of exactly N lines,
   so no sliver of the next line ever shows (fractional em heights rounded differently on iPhone). */
html[data-theme] .product-thumb .product-name {
  display: block !important; height: auto !important; max-height: none !important;
  overflow: visible !important; margin-bottom: 8px;
}
html[data-theme] .product-thumb .product-name a {
  display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3;
  overflow: hidden; overflow-wrap: anywhere;
  font-size: 15px !important; line-height: 20px !important; height: 60px !important; min-height: 0; max-height: 60px !important;
}
html[data-theme] .product-thumb .product-description {
  display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3;
  overflow: hidden !important; line-height: 19px !important; height: 57px !important; max-height: 57px !important;
}
@media (max-width: 575px) {
  html[data-theme] .product-thumb .product-name a {
    font-size: 13.5px !important; line-height: 18px !important; -webkit-line-clamp: 6; line-clamp: 6;
    height: 108px !important; max-height: 108px !important;
  }
}

/* product code: always one line, so a long code never pushes one card's text below its neighbour's */
html[data-theme] .product-thumb .product-model {
  white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}

/* ---------- Reviews & questions (one feed; answers come from Telegram) ---------- */
html[data-theme] .ar-qa{margin-top:20px;display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;align-items:start;font-family:'Manrope',system-ui,sans-serif;color:var(--ar-text)}
html[data-theme] .ar-qa *{box-sizing:border-box}
html[data-theme] .ar-qa-main{display:flex;flex-direction:column;gap:14px;min-width:0}
html[data-theme] .ar-qa-list{display:flex;flex-direction:column;gap:14px}
html[data-theme] .ar-qa-filter{display:flex;gap:6px;flex-wrap:wrap}
html[data-theme] .ar-qa-filter button,html[data-theme] .ar-qa-switch button{height:40px;padding:0 16px;border-radius:999px;border:1px solid var(--ar-line2);background:transparent;color:var(--ar-text);font:inherit;font-size:14px;font-weight:700;cursor:pointer;line-height:1}
html[data-theme] .ar-qa-filter button span{color:var(--ar-muted);font-weight:600;margin-left:4px}
html[data-theme] .ar-qa-filter button.on,html[data-theme] .ar-qa-switch button.on{background:var(--ar-accent);border-color:var(--ar-accent);color:var(--ar-accent-ink)}
html[data-theme] .ar-qa-filter button.on span{color:inherit;opacity:.75}
html[data-theme] .ar-qa-item{padding:20px 22px;border-radius:16px;background:var(--ar-surface);border:1px solid var(--ar-line2)}
html[data-theme] .ar-qa-item.is-pending{border-style:dashed;opacity:.85}
html[data-theme] .ar-qa-h{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px}
html[data-theme] .ar-qa-h b{font-weight:800;color:var(--ar-head)}
html[data-theme] .ar-qa-date{margin-left:auto;font-size:13px;color:var(--ar-muted)}
html[data-theme] .ar-qa-tag,html[data-theme] .ar-qa-staff,html[data-theme] .ar-qa-pend{padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;line-height:1.4}
html[data-theme] .ar-qa-tag{background:var(--ar-surface2);color:var(--ar-muted)}
html[data-theme] .ar-qa-tag.q{color:var(--ar-link)}
html[data-theme] .ar-qa-staff{background:var(--ar-accent);color:var(--ar-accent-ink)}
html[data-theme] .ar-qa-pend{border:1px dashed var(--ar-line2);color:var(--ar-muted)}
html[data-theme] .ar-qa-stars{margin-top:8px;color:#FBBF4A;font-size:18px;letter-spacing:2px}
html[data-theme] .ar-qa-text{margin:10px 0 0;font-size:16px;line-height:1.6;white-space:pre-line;overflow-wrap:anywhere;color:var(--ar-text)}
html[data-theme] .ar-qa-actions{margin-top:14px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
html[data-theme] .ar-qa-btn{height:38px;padding:0 14px;border-radius:10px;border:1px solid var(--ar-line2);background:transparent;color:var(--ar-link);font:inherit;font-size:14px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:8px}
html[data-theme] .ar-qa-votes{display:inline-flex;gap:6px}
html[data-theme] .ar-qa-vote{height:38px;min-width:54px;padding:0 10px;border-radius:10px;border:1px solid var(--ar-line2);background:transparent;color:var(--ar-muted);font:inherit;font-size:14px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px}
html[data-theme] .ar-qa-vote.up.on{border-color:var(--ar-ok);color:var(--ar-ok)}
html[data-theme] .ar-qa-vote.down.on{border-color:var(--ar-bad);color:var(--ar-bad)}
html[data-theme] .ar-qa-ans{margin-top:16px;padding:2px 0 2px 18px;border-left:3px solid var(--ar-line2)}
html[data-theme] .ar-qa-ans.staff{border-left-color:var(--ar-accent)}
html[data-theme] .ar-qa-ans .ar-qa-text{font-size:15px;margin-top:6px}
html[data-theme] .ar-qa-rform{margin-top:16px;display:flex;flex-direction:column;gap:10px}
html[data-theme] .ar-qa-rbtns{display:flex;gap:8px;flex-wrap:wrap}
html[data-theme] .ar-qa-send{height:42px;padding:0 18px;border-radius:10px;border:0;background:var(--ar-accent);color:var(--ar-accent-ink);font:inherit;font-weight:700;cursor:pointer}
html[data-theme] .ar-qa-form{position:sticky;top:90px;padding:20px;border-radius:18px;background:var(--ar-surface);border:1px solid var(--ar-line2);display:flex;flex-direction:column;gap:14px}
html[data-theme] .ar-qa-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px;border-radius:999px;background:var(--ar-input)}
html[data-theme] .ar-qa-switch button{border:0;white-space:nowrap;padding:0 8px}
html[data-theme] .ar-qa-chips{display:flex;flex-wrap:wrap;gap:6px}
html[data-theme] .ar-qa-chips button{padding:7px 12px;border-radius:999px;border:1px dashed var(--ar-line2);background:transparent;color:var(--ar-text);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
html[data-theme] .ar-qa-rate{display:flex;gap:4px}
html[data-theme] .ar-qa-rate button{width:40px;height:40px;border:0;background:transparent;color:var(--ar-line2);font-size:28px;line-height:1;cursor:pointer;padding:0}
html[data-theme] .ar-qa-rate button.on{color:#FBBF4A}
html[data-theme] .ar-qa-lbl{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:700;margin:0;color:var(--ar-text)}
html[data-theme] .ar-qa input[type=text],html[data-theme] .ar-qa input[type=email],html[data-theme] .ar-qa textarea{width:100%;padding:11px 12px;border-radius:10px;background:var(--ar-input);border:1px solid var(--ar-line2);color:var(--ar-text);font:inherit;font-size:16px;font-weight:400;resize:vertical}
html[data-theme] .ar-qa input:focus,html[data-theme] .ar-qa textarea:focus{outline:2px solid var(--ar-accent);outline-offset:1px}
html[data-theme] .ar-qa-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0}
html[data-theme] .ar-qa-err{color:var(--ar-bad);font-size:14px;font-weight:600}
html[data-theme] .ar-qa-err:empty{display:none}
html[data-theme] .ar-qa-submit{height:50px;border-radius:12px;border:0;background:var(--ar-accent);color:var(--ar-accent-ink);font:inherit;font-weight:800;font-size:15px;cursor:pointer}
html[data-theme] .ar-qa-submit[disabled]{opacity:.6;cursor:wait}
html[data-theme] .ar-qa-note{margin:0;font-size:13px;line-height:1.5;color:var(--ar-muted)}
html[data-theme] .ar-qa-empty{padding:28px;border-radius:16px;border:1px dashed var(--ar-line2);display:flex;flex-direction:column;gap:6px;color:var(--ar-muted);text-align:center}
html[data-theme] .ar-qa-empty b{color:var(--ar-head)}
html[data-theme] .ar-qa-toast{position:fixed;left:50%;bottom:90px;transform:translate(-50%,20px);z-index:9999;max-width:calc(100% - 32px);padding:12px 18px;border-radius:12px;background:var(--ar-head);color:var(--ar-bg);font-weight:700;font-size:14px;box-shadow:var(--ar-shadow);opacity:0;pointer-events:none;transition:.25s}
html[data-theme] .ar-qa-toast.on{opacity:1;transform:translate(-50%,0)}
@media (max-width:991px){html[data-theme] .ar-qa{grid-template-columns:minmax(0,1fr)}html[data-theme] .ar-qa-form{position:static}}
@media (max-width:575px){html[data-theme] .ar-qa-item{padding:16px}html[data-theme] .ar-qa-date{margin-left:0;width:100%}html[data-theme] .ar-qa-ans{padding-left:14px}html[data-theme] .ar-qa-switch button{font-size:13px}}
