/* ============================================================
   ivanovai.ru/shop — Custom Theme (loudsound-style)
   ============================================================ */

:root {
  /* ── Brand colours ── */
  --orange:       #F47C20;
  --orange-dark:  #D4660A;
  --orange-light: #FFF3E8;
  --nav-bg:       #1E2227;
  --nav-hover:    rgba(255,255,255,0.08);
  --white:        #FFFFFF;
  --gray-50:      #FAFAFA;
  --gray-100:     #F4F4F4;
  --gray-200:     #E8E8E8;
  --gray-400:     #AAAAAA;
  --gray-600:     #666666;
  --dark:         #1A1A1A;
  --text:         #222222;

  /* ── Bootstrap 5 variable overrides ── */
  --bs-font-sans-serif:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bs-body-font-family:     var(--bs-font-sans-serif);
  --bs-body-font-size:       0.9375rem;
  --bs-body-color:           #222222;
  --bs-body-bg:              #ffffff;

  /* primary = orange */
  --bs-primary:              #F47C20;
  --bs-primary-rgb:          244, 124, 32;

  /* links */
  --bs-link-color:           #F47C20;
  --bs-link-color-rgb:       244, 124, 32;
  --bs-link-hover-color:     #D4660A;
  --bs-link-hover-color-rgb: 212, 102, 10;

  /* focus ring */
  --bs-focus-ring-color:     rgba(244, 124, 32, 0.25);

  /* border radius */
  --bs-border-radius:        6px;
  --bs-border-radius-sm:     4px;
  --bs-border-radius-lg:     8px;
  --bs-border-radius-pill:   50px;

  /* form controls */
  --bs-border-color:         #E8E8E8;
  --bs-border-color-translucent: rgba(0,0,0,0.1);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  width: 100%;
  min-height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { color: #1a1a1a; font-weight: 700; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); text-decoration: none; }

button:focus { outline: none !important; box-shadow: none !important; }

legend {
  padding: 7px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
}
label { font-size: 12px; font-weight: 500; color: #444; }

/* ── Buttons ── */
.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  border-radius: 5px;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(244,124,32,0.3); outline: none; }

.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-primary:first-child:active, .btn-primary:not(:disabled):not(.disabled):active {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: #fff;
}

.btn-outline-primary {
  border-color: var(--orange);
  color: var(--orange);
}
.btn-outline-primary:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.btn-secondary {
  background: #444;
  border-color: #333;
  color: #fff;
}
.btn-secondary:hover { background: #333; border-color: #222; color: #fff; }

.btn-danger {
  background: #e03131;
  border-color: #c92a2a;
  color: #fff;
}
.btn-danger:hover { background: #c92a2a; border-color: #b02626; color: #fff; }

.btn-link { color: var(--orange); font-weight: 500; }
.btn-link:hover { color: var(--orange-dark); }

/* ── Form controls ── */
.form-control, .form-select {
  border-radius: 5px;
  border: 1.5px solid #E0E0E0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #222;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244,124,32,0.15);
  outline: none;
}
.form-control::placeholder { color: #aaa; }

.input-group-text {
  background: #f5f5f5;
  border: 1.5px solid #E0E0E0;
  color: #666;
  font-size: 14px;
}

/* ── Alerts ── */
.alert {
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  border-width: 1.5px;
}
.alert-success { background: #f0fdf4; border-color: #86efac; color: #166534; }
.alert-danger  { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.alert-info    { background: #f0f9ff; border-color: #7dd3fc; color: #075985; }

/* ── Badges ── */
.badge {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  border-radius: 4px;
  padding: 3px 7px;
}
.bg-primary, .badge-primary { background: var(--orange) !important; }
.bg-success, .badge-success { background: #2f9e44 !important; }
.bg-danger,  .badge-danger  { background: #e03131 !important; }

/* ── Dropdowns ── */
.dropdown-menu {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  padding: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}
.dropdown-item {
  border-radius: 5px;
  padding: 8px 12px;
  color: #333;
  font-weight: 500;
  transition: background 0.12s;
}
.dropdown-item:hover, .dropdown-item:focus {
  background: var(--orange-light);
  color: var(--orange);
}
.dropdown-item.active, .dropdown-item:active {
  background: var(--orange);
  color: #fff;
}
.dropdown-divider { margin: 4px 0; border-color: #eee; }

/* ── Pagination ── */
.pagination { gap: 4px; }
.page-item .page-link {
  border-radius: 5px !important;
  border: 1.5px solid #e8e8e8;
  color: #444;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 14px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.page-item.active .page-link {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: none;
}
.page-item .page-link:hover {
  background: var(--orange-light);
  border-color: var(--orange);
  color: var(--orange);
}
.page-item.disabled .page-link { color: #bbb; border-color: #eee; }

/* ── Tabs ── */
.nav-tabs { border-color: #e8e8e8; }
.nav-tabs .nav-link {
  color: #555;
  font-weight: 500;
  font-size: 14px;
  border-radius: 6px 6px 0 0;
  border: 1px solid transparent;
  padding: 9px 18px;
  transition: color 0.15s;
}
.nav-tabs .nav-link:hover { color: var(--orange); }
.nav-tabs .nav-link.active {
  color: var(--orange);
  border-color: #e8e8e8 #e8e8e8 #fff;
  font-weight: 600;
}

/* ── Cards (generic) ── */
.card {
  border: 1px solid #ebebeb;
  border-radius: 8px;
  box-shadow: none;
}
.card-header {
  background: #fafafa;
  border-bottom: 1px solid #ebebeb;
  font-weight: 600;
  font-size: 14px;
}

/* ── Tables ── */
.table { font-size: 14px; }
.table th { font-weight: 600; color: #444; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.table-striped > tbody > tr:nth-of-type(odd) > * { background: #fafafa; }
.table-hover > tbody > tr:hover > * { background: var(--orange-light); }

/* ── Modal ── */
.modal-content { border: none; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.modal-header { border-bottom: 1px solid #eee; padding: 18px 22px 14px; }
.modal-header .modal-title { font-weight: 700; font-size: 17px; }
.modal-footer { border-top: 1px solid #eee; padding: 14px 22px; }
.modal-backdrop { backdrop-filter: blur(2px); }

/* ============================================================
   LAYOUT
   ============================================================ */
#container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
#content, #column-left, #column-right { padding-bottom: 0; }

#alert {
  z-index: 9999;
  position: fixed;
  top: 30%;
  left: 50%;
  width: 400px;
  margin-left: -200px;
}
@media (min-width: 992px) {
  #alert { width: 600px; margin-left: -300px; }
}
#alert .alert { margin-bottom: 15px; }

/* ============================================================
   TOP BAR
   ============================================================ */
#top {
  display: none;
}

#top ul.list-inline { margin-bottom: 0; }

#top .list-inline-item > a,
#top .list-inline-item .dropdown > a {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 32px;
  padding: 4px 2px;
  transition: color 0.15s;
}
#top .list-inline-item > a:hover,
#top .list-inline-item .dropdown > a:hover { color: var(--orange); text-decoration: none; }

/* New top bar layout */
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
}
.top-left { display: flex; align-items: center; gap: 8px; color: var(--gray-600); font-size: 12px; }
.top-right { display: flex; align-items: center; gap: 12px; }
.top-sep { color: var(--gray-200); }
.top-link {
  font-size: 12px; color: var(--gray-600); text-decoration: none;
  display: flex; align-items: center; gap: 5px;
  transition: color 0.15s;
}
.top-link:hover { color: var(--orange); }
.top-item { font-size: 12px; color: var(--gray-600); }

/* ============================================================
   HEADER
   ============================================================ */
header {
  background: var(--white);
  padding: 14px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Header main row: logo | search | cart */
.header-main {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-main #logo {
  flex-shrink: 0;
  min-width: 140px;
}
.header-center {
  flex: 1;
  min-width: 0;
}
.header-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

#logo {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
}
#logo img { max-height: 55px; max-width: 220px; width: auto; }
#logo h1 { font-size: 22px; font-weight: 800; margin: 0; }
#logo h1 a { color: var(--orange); text-decoration: none; }
@media (min-width: 768px) { #logo { text-align: left; } }

#search { margin-bottom: 0; }
/* Old input-group search (fallback) */
#search .input-group {
  border-radius: 6px; overflow: hidden;
  border: 2px solid var(--gray-200); transition: border-color 0.2s;
}
#search .input-group:focus-within { border-color: var(--orange); }
#search .form-control {
  border: none; height: 44px; font-size: 14px;
  padding: 0 14px; box-shadow: none;
}
#search .form-control:focus { box-shadow: none; }
#search .btn {
  background: var(--orange); border: none; color: #fff;
  padding: 0 22px; font-size: 15px; height: 44px;
  border-radius: 0; transition: background 0.15s;
}
#search .btn:hover { background: var(--orange-dark); }

/* New custom search form */
.site-search {
  display: flex;
  height: 46px;
  border-radius: 7px;
  overflow: hidden;
  border: 2px solid #E0E0E0;
  transition: border-color 0.2s;
  background: #fff;
}
.site-search:focus-within { border-color: var(--orange); }
.site-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #222;
  background: transparent;
}
.site-search-input::placeholder { color: #aaa; }
.site-search-btn {
  width: 50px;
  border: none;
  background: var(--orange);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.site-search-btn:hover { background: var(--orange-dark); }

#cart { margin-bottom: 0; display: flex; align-items: center; justify-content: flex-end; }
#cart .btn {
  background: var(--orange); border-color: var(--orange-dark); color: #fff;
  font-size: 14px; padding: 10px 20px; border-radius: 6px;
  width: 100%; transition: background 0.15s;
}
#cart .btn:hover { background: var(--orange-dark); }
#cart .dropdown-menu { background: #f5f5f5; min-width: 320px; }
.login-btn { margin-left: 10px; }

/* ============================================================
   CATALOG BAR  (vertical dropdown + quick nav)
   ============================================================ */
#menu { display: none !important; }  /* hide old OC menu */

#catalog-bar {
  background: var(--nav-bg);
  position: relative;
  z-index: 900;
}

.catalog-bar-inner {
  display: flex;
  align-items: center;
  gap: 0;
  height: 48px;
}

/* ── Каталог button ── */
.catalog-btn-wrap {
  position: relative;
  flex-shrink: 0;
}

.catalog-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 0 20px;
  height: 48px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.catalog-btn:hover, .catalog-btn.active { background: var(--orange-dark); }
.catalog-btn .fa-bars { font-size: 15px; }
.catalog-caret {
  font-size: 10px;
  margin-left: 2px;
  transition: transform 0.2s;
}
.catalog-btn.active .catalog-caret { transform: rotate(180deg); }

/* ── Vertical dropdown panel ── */
.cat-vdrop {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-top: 3px solid var(--orange);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  z-index: 1000;
  padding: 6px 0;
}
.cat-vdrop.open { display: block; }

.cat-vlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cat-vitem { position: relative; }

.cat-vlink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  color: #222;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  gap: 8px;
}
.cat-vlink:hover { background: var(--orange-light); color: var(--orange); }
.cat-vitem.has-sub > .cat-vlink:hover { background: var(--orange-light); }

.cat-vchevron {
  font-size: 10px;
  color: #aaa;
  flex-shrink: 0;
  transition: color 0.12s;
}
.cat-vlink:hover .cat-vchevron { color: var(--orange); }

/* ── Flyout submenu ── */
.cat-vflyout {
  display: none;
  position: absolute;
  top: -3px;
  left: 100%;
  width: 240px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-top: 3px solid var(--orange);
  box-shadow: 8px 12px 40px rgba(0,0,0,0.12);
  z-index: 1001;
  padding: 10px 0;
}
.cat-vitem:hover .cat-vflyout { display: block; }

.cat-vflyout-title {
  display: block;
  padding: 4px 16px 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 4px;
}
.cat-vflyout-title:hover { color: var(--orange-dark); }

.cat-vflyout-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cat-vflyout-list li a {
  display: block;
  padding: 7px 16px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.cat-vflyout-list li a:hover { background: var(--orange-light); color: var(--orange); }
.cat-vflyout-all a {
  color: var(--orange) !important;
  font-weight: 600;
  font-size: 12px;
  border-top: 1px solid var(--gray-200);
  margin-top: 4px;
}

/* ── Quick nav links ── */
.catalog-quick-nav {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  flex: 1;
}

.cqnav-link {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 14px;
  color: #d0d0d0;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.cqnav-link:hover { color: #fff; background: var(--nav-hover); }

/* ── Mobile: hide quick nav on small screens ── */
@media (max-width: 767px) {
  .catalog-quick-nav { display: none; }
  .cat-vflyout {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-top: none;
    background: #f9f9f9;
    padding: 4px 0 4px 16px;
    width: auto;
  }
  .cat-vitem:hover .cat-vflyout { display: none; }
  .cat-vflyout.mobile-open { display: block; }
  .cat-vdrop { width: 100%; left: 0; right: 0; }
}

/* ============================================================
   HOME PAGE: loudsound/DNS style — giga-menu sidebar + hero
   ============================================================ */

#catalog-bar { display: none !important; }

#first-block {
  padding: 12px 0 16px;
}

.block-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 13px;
  align-items: start;
}

/* ── Sidebar: category list ── */
.first-aside {
  display: flex;
  position: relative;
  z-index: 200;
}

.giga-items {
  background: #fff;
  border-radius: 5px;
  padding: 6px 0;
  width: 100%;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.15);
  position: relative;
}

.giga-item {
  display: flex;
  align-items: center;
  padding: 10px 8px 10px 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.1s;
}
.giga-item:hover { background: #ebebeb; }
.giga-item--highlight { background: var(--orange-light); }
.giga-item--highlight .giga-icon i { color: var(--orange); }
.giga-item--highlight:hover { background: #ffe4c8; }

.giga-icon {
  width: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 10px;
}
.giga-icon i {
  font-size: 18px;
  color: var(--orange);
}

.giga-item-links {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.giga-link {
  font-weight: 700;
  font-size: 14px;
  color: #111;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.giga-link:hover { color: var(--orange); }

.giga-under-links {
  display: flex;
  padding-top: 3px;
  flex-wrap: nowrap;
  gap: 0;
  overflow: hidden;
}
.giga-under-link {
  margin-right: 8px;
  color: #888;
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
}
.giga-under-link:hover { color: var(--orange); }

.giga-arrow {
  font-size: 9px;
  color: #bbb;
  flex-shrink: 0;
  margin-left: 4px;
  transition: color 0.12s;
}
.giga-item:hover .giga-arrow { color: var(--orange); }

/* ── Sub-panel (flyout right) ── */
.giga-sub-panel {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  left: calc(100% + 6px);
  top: 0;
  width: 340px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 2px 2px 20px rgba(0,0,0,0.18);
  padding: 18px 20px;
  z-index: 300;
  transition: opacity 0.12s ease, visibility 0.12s ease;
  transition-delay: 0.2s;
}
.giga-item:hover .giga-sub-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.giga-sub-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--orange);
  display: block;
  margin-bottom: 12px;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 10px;
}
.giga-sub-title:hover { color: var(--orange-dark); }

.giga-sub-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.giga-sub-link {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  transition: color 0.12s;
  line-height: 1.3;
}
.giga-sub-link:hover { color: var(--orange); }

/* ── Hero area ── */
.first-info {
  display: flex;
  flex-direction: column;
}

.first-hero {
  border-radius: 5px;
  overflow: hidden;
  height: 100%;
  min-height: 380px;
}
.first-hero .carousel-inner,
.first-hero .carousel-item { height: 100%; }

/* Mobile */
@media (max-width: 991px) {
  .block-container { grid-template-columns: 240px 1fr; }
}
@media (max-width: 767px) {
  .block-container { grid-template-columns: 1fr; }
  .first-aside { display: none; }
  /* catalog-bar hidden on all pages */
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
#hero-section {
  margin-bottom: 0;
  overflow: hidden;
}

.hero-slide {
  height: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 36px 48px;
}

.hero-slide-1 {
  background: linear-gradient(120deg, #0d1117 0%, #1a1a2e 45%, #2a1800 100%);
}
.hero-slide-2 {
  background: linear-gradient(120deg, #0a0f1a 0%, #1c2a1a 50%, #0d1117 100%);
}
.hero-slide-3 {
  background: linear-gradient(120deg, #1a1010 0%, #1a0d00 45%, #0d1117 100%);
}

/* Subtle pattern overlay */
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 500px;
  color: #fff;
  animation: heroFadeIn 0.6s ease;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.hero-text h2 {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 24px;
  line-height: 1.5;
}

.btn-hero {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  border: none;
}
.btn-hero:hover {
  background: var(--orange-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* Carousel controls */
.hero-arrow {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.hero-arrow:hover { background: var(--orange); }

.carousel-control-prev, .carousel-control-next {
  width: 50px;
  opacity: 1;
}

.carousel-indicators [data-bs-target] {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; margin: 0 4px;
  transition: background 0.2s;
}
.carousel-indicators .active { background: var(--orange); }

@media (max-width: 767px) {
  .hero-slide { height: 240px; }
  .hero-text h2 { font-size: 22px; }
  .hero-sub { font-size: 13px; }
  .btn-hero { padding: 10px 20px; font-size: 13px; }
}

/* ============================================================
   CATEGORY TILES GRID
   ============================================================ */
#cat-grid-section {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0;
}

.cat-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-top: 1px solid var(--gray-200);
}
.cat-grid::-webkit-scrollbar { display: none; }

.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 88px;
  padding: 16px 12px 14px;
  text-decoration: none;
  color: var(--text);
  border-right: 1px solid var(--gray-200);
  transition: background 0.15s, color 0.15s;
  gap: 8px;
  text-align: center;
}

.cat-tile:last-child { border-right: none; }

.cat-tile:hover {
  background: var(--orange-light);
  color: var(--orange);
  text-decoration: none;
}

.cat-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--orange);
  transition: background 0.15s, transform 0.15s;
}

.cat-tile:hover .cat-tile-icon {
  background: var(--orange);
  color: #fff;
  transform: scale(1.08);
}

.cat-tile span {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  color: inherit;
  max-width: 80px;
}

/* Expand tiles on wider screens */
@media (min-width: 992px) {
  .cat-tile {
    flex: 1 1 0;
    min-width: 80px;
    max-width: 110px;
  }
}

/* ============================================================
   HOME MODULES (featured products)
   ============================================================ */
#home-modules {
  padding-top: 28px;
  padding-bottom: 10px;
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
#video-section {
  background: #15171C;
  padding: 36px 0 40px;
  margin-top: 10px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.section-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.stab {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  padding: 5px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border: 1px solid transparent;
}
.stab:hover { color: #fff; text-decoration: none; }
.stab.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange-dark);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 991px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .video-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

.video-card {
  text-decoration: none;
  color: #ccc;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s;
}
.video-card:hover { transform: translateY(-3px); color: #fff; text-decoration: none; }

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  background: #222;
}

.video-placeholder-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a2a1a 0%, #2a1a00 100%);
}
.vbg-2 { background: linear-gradient(135deg, #1a1a2a 0%, #2a0a0a 100%); }
.vbg-3 { background: linear-gradient(135deg, #0a2a2a 0%, #1a1a00 100%); }
.vbg-4 { background: linear-gradient(135deg, #2a0a1a 0%, #0a1a2a 100%); }

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background 0.2s;
}
.video-card:hover .video-play-btn { background: rgba(0,0,0,0.15); }
.video-play-btn i {
  font-size: 28px;
  color: rgba(255,255,255,0.9);
  width: 52px; height: 52px;
  background: rgba(244, 124, 32, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  padding-left: 3px;
  transition: background 0.2s, transform 0.2s;
}
.video-card:hover .video-play-btn i {
  background: var(--orange);
  transform: scale(1.08);
}

.video-duration {
  position: absolute;
  bottom: 7px; right: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 500;
}

.video-meta { padding: 8px 2px 0; }
.video-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #ddd;
  line-height: 1.35;
  margin-bottom: 4px;
}
.video-card:hover .video-title { color: #fff; }
.video-date { font-size: 11px; color: #666; }

/* ============================================================
   BRANDS SECTION
   ============================================================ */
#brands-section {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 28px 0;
  overflow: hidden;
}

.brands-title {
  color: var(--text) !important;
  font-size: 18px;
  margin-bottom: 18px;
}

.brands-track {
  overflow: hidden;
  position: relative;
}

.brands-inner {
  display: flex;
  gap: 0;
  animation: brandsScroll 22s linear infinite;
  width: max-content;
}

.brands-inner:hover { animation-play-state: paused; }

@keyframes brandsScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.brand-item {
  flex-shrink: 0;
  padding: 10px 28px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  margin-right: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, box-shadow 0.15s;
  cursor: default;
  letter-spacing: 0.02em;
}

.brands-inner:hover .brand-item:hover {
  color: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 2px 8px rgba(244,124,32,0.12);
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-thumb {
  border: 1px solid #EBEBEB;
  border-radius: 6px;
  position: relative;
  height: 100%;
  transition: box-shadow 0.2s, border-color 0.2s;
  background: #fff;
}
.product-thumb:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.09); border-color: var(--orange); }
.product-thumb .image { text-align: center; padding: 10px; }
.product-thumb .image a:hover { opacity: 0.85; }
.product-thumb .description { padding: 12px 15px; margin-bottom: 45px; }
.product-thumb .description h4 { font-weight: 600; font-size: 14px; color: var(--text); line-height: 1.35; }

.product-thumb .button {
  display: flex;
  position: absolute;
  width: 100%;
  bottom: 0;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}
.product-thumb .button button {
  width: 33.33%; border: none;
  border-top: 1px solid #eee;
  background: #fafafa; color: #888;
  line-height: 40px; text-align: center;
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.product-thumb .button button:hover { background: var(--orange); color: #fff; }
.product-thumb .button button + button { border-left: 1px solid #eee; }

.price { color: var(--text); }
.price-new { font-weight: 700; font-size: 16px; color: var(--orange); }
.price-old { color: #aaa; text-decoration: line-through; font-size: 13px; }
.price-tax { color: #aaa; font-size: 11px; display: block; }

.rating .fa-stack { width: 20px; }
.rating .fa-star { color: #FC0; font-size: 15px; }
.rating .fa-star + .fa-star { color: #E69500; }

@media (min-width: 960px) {
  .product-list .product-thumb { display: flex; }
  .product-list .product-thumb .content { flex-direction: column; flex: 75%; position: relative; }
  .product-list .product-thumb .button { border-left: 1px solid #eee; width: calc(100% - 15px); margin-left: 15px; }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  margin: 0 0 20px 0;
  padding: 8px 0;
  border: 1px solid #eee;
  border-radius: 4px;
  background: var(--gray-100);
}
.breadcrumb > li.breadcrumb-item { text-shadow: none; padding: 0 20px; position: relative; white-space: nowrap; }
.breadcrumb > li.breadcrumb-item > a { text-decoration: none; color: var(--orange); }
.breadcrumb > li.breadcrumb-item:after {
  content: ""; display: block; position: absolute;
  top: -3px; right: -5px; width: 26px; height: 26px;
  border-right: 1px solid #ddd; border-bottom: 1px solid #ddd;
  transform: rotate(-45deg);
}
.breadcrumb > li.breadcrumb-item + li:before { content: ""; padding: 0; }

/* ============================================================
   FORMS
   ============================================================ */
div.required .col-form-label:before,
div.required .form-label:before { content: "* "; color: #F00; font-weight: bold; }
.form-switch-lg { font-size: 20px; min-height: 30px; line-height: 30px; }
.nav-tabs { margin-bottom: 15px; }
.form-check .form-check-input { margin-top: 0.25rem; }
@media (min-width: 768px) { .col-form-label { text-align: right; } }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  position: absolute;
  bottom: -1px;
  width: 100%;
  padding-top: 32px;
  background: #1A1C21;
  border-top: 3px solid var(--orange);
  color: #AAA;
}
footer hr { border: none; border-bottom: 1px solid #333; }
footer a { color: #999; text-decoration: none; font-size: 13px; transition: color 0.15s; }
footer a:hover { color: var(--orange); }
footer h5 { font-size: 12px; font-weight: 700; color: #fff; margin: 10px 0 12px; text-transform: uppercase; letter-spacing: 0.06em; }
footer .list-unstyled li { margin-bottom: 6px; }
footer p { font-size: 11px; color: #555; margin: 10px 0 0; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-thumb { border: 1px solid #ddd; border-radius: 6px; margin-bottom: 15px; }
.blog-thumb h4 { font-weight: bold; }
.blog-thumb .image { text-align: center; margin-bottom: 15px; }
.blog-thumb .image a:hover { opacity: 0.8; }
.blog-thumb .description { padding: 15px; }

/* ============================================================
   COOKIE
   ============================================================ */
#cookie { display: block; width: 100%; opacity: 0.95; background: #343a40; }
#cookie div { font-size: 16px; color: #fff; }

/* ============================================================
   PRODUCT CARD  (pcard)
   ============================================================ */
.pcard {
  border: 1px solid #EBEBEB;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s, border-color 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.pcard:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
  border-color: var(--orange);
}

.pcard-img {
  position: relative;
  background: #fafafa;
  aspect-ratio: 1/1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.pcard-img img {
  max-height: 190px;
  object-fit: contain;
  transition: transform 0.25s;
}
.pcard:hover .pcard-img img { transform: scale(1.04); }

.pcard-actions {
  position: absolute;
  top: 8px; right: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.18s, transform 0.18s;
}
.pcard:hover .pcard-actions { opacity: 1; transform: translateX(0); }

.pca-btn {
  width: 34px; height: 34px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fff;
  color: #999;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  padding: 0;
}
.pca-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

.pcard-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: #e03131;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.pcard-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.pcard-name {
  font-size: 13px;
  font-weight: 500;
  color: #222;
  line-height: 1.4;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  transition: color 0.12s;
}
.pcard-name:hover { color: var(--orange); }

.pcard-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}
.pcprice-new {
  font-size: 17px;
  font-weight: 700;
  color: var(--orange);
}
.pcprice-old {
  font-size: 12px;
  color: #bbb;
  text-decoration: line-through;
}

.pcard-rating { display: flex; gap: 2px; }
.pcard-rating .fa-star { font-size: 11px; color: #FFC107; }
.pcard-rating .fa-regular.fa-star { color: #ddd; }

.btn-cart-add {
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 12px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s;
  margin-top: auto;
}
.btn-cart-add:hover { background: var(--orange-dark); }

/* ============================================================
   CART WIDGET
   ============================================================ */
.cart-widget { position: relative; }

.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 10px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  width: 100%;
}
.cart-btn:hover { background: var(--orange-dark); color: #fff; }
.cart-btn::after { display: none; } /* hide Bootstrap caret */

.cart-drop {
  min-width: 340px;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
  margin-top: 6px !important;
  overflow: hidden;
}

.cart-drop-inner { max-height: 320px; overflow-y: auto; }

.cart-drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
}
.cart-drop-item:last-child { border-bottom: none; }

.cart-drop-img {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-drop-img img { max-width: 100%; max-height: 100%; object-fit: contain; }

.cart-drop-info { flex: 1; min-width: 0; }

.cart-drop-name {
  font-size: 12.5px;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
.cart-drop-name:hover { color: var(--orange); }
.cart-drop-qty { font-size: 11px; color: #999; margin-top: 3px; }

.cart-drop-right { flex-shrink: 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-drop-price { font-size: 13px; font-weight: 700; color: var(--orange); white-space: nowrap; }
.cart-drop-remove {
  background: none; border: none; color: #ccc;
  font-size: 14px; cursor: pointer; padding: 2px 4px;
  transition: color 0.12s;
}
.cart-drop-remove:hover { color: #e03131; }

.cart-drop-totals { background: #f9f9f9; border-top: 1px solid #eee; padding: 10px 14px; }
.cart-drop-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #666;
  padding: 2px 0;
}
.cart-drop-total-grand { font-size: 14px; font-weight: 700; color: #222; margin-top: 4px; padding-top: 6px; border-top: 1px solid #e8e8e8; }

.cart-drop-footer {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border-top: 1px solid #eee;
}
.cart-drop-btn {
  flex: 1;
  text-align: center;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.cart-drop-btn-outline {
  border: 1.5px solid var(--orange);
  color: var(--orange);
}
.cart-drop-btn-outline:hover { background: var(--orange-light); }
.cart-drop-btn-primary {
  background: var(--orange);
  color: #fff;
  border: 1.5px solid var(--orange);
}
.cart-drop-btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }

.cart-drop-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 20px;
  color: #bbb;
  font-size: 13px;
}
.cart-drop-empty i { font-size: 32px; }

/* ============================================================
   HOME SECTION (featured/latest modules)
   ============================================================ */
.home-section {
  padding: 28px 0 12px;
  border-bottom: 1px solid var(--gray-200);
}
.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.home-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  position: relative;
  padding-left: 14px;
}
.home-section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 4px;
  background: var(--orange);
  border-radius: 2px;
}

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
#page-category { padding: 20px 0 40px; }

.site-breadcrumb { margin-bottom: 18px; }
.site-breadcrumb .breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  gap: 0;
  font-size: 13px;
}
.site-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #ccc; }
.site-breadcrumb .breadcrumb-item a { color: #666; }
.site-breadcrumb .breadcrumb-item a:hover { color: var(--orange); }
.site-breadcrumb .breadcrumb-item.active { color: #999; }

.cat-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 767px) {
  .cat-layout { grid-template-columns: 1fr; }
}

.cat-sidebar { position: sticky; top: 16px; }

/* Sidebar filter card */
.cat-sidebar .card {
  border: 1px solid #ebebeb;
  border-radius: 8px;
  overflow: hidden;
}
.cat-sidebar .card-header {
  background: var(--nav-bg);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 16px;
  border: none;
}
.cat-sidebar .card-header i { color: var(--orange); margin-right: 6px; }
.cat-sidebar .list-group-item {
  border: none;
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  background: #fafafa;
}
.cat-sidebar .list-group-item:first-child { background: #fff; }
.cat-sidebar .list-group-item + .list-group-item { background: #fff; }
.cat-sidebar .form-check { margin: 4px 0; }
.cat-sidebar .form-check-input:checked { background-color: var(--orange); border-color: var(--orange); }
.cat-sidebar .form-check-label { font-size: 13px; color: #444; font-weight: 400; cursor: pointer; }
.cat-sidebar .card-footer {
  background: #fafafa;
  border-top: 1px solid #eee;
  padding: 10px 14px;
}
.cat-sidebar .card-footer .btn { font-size: 13px; padding: 7px 14px; width: 100%; }

/* ── Category Tree Sidebar ── */
.cat-tree {
  background: #fff;
  border-radius: 6px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.10);
  overflow: hidden;
  margin-bottom: 16px;
}
.cat-tree-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--nav-bg);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 14px;
}
.cat-tree-header i { color: var(--orange); font-size: 14px; }
.cat-tree-items { padding: 5px 0; }
.cat-tree-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  text-decoration: none;
  color: #222;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid #f4f4f4;
  transition: background 0.1s, color 0.1s;
}
.cat-tree-item:hover { background: #fff4ec; color: var(--orange); }
.cat-tree-item:last-child { border-bottom: none; }
.cat-tree-thumb { width: 28px; height: 28px; object-fit: contain; border-radius: 3px; flex-shrink: 0; }
.cat-tree-folder { font-size: 15px; color: #ccc; flex-shrink: 0; }
.cat-tree-item:hover .cat-tree-folder { color: var(--orange); }
.cat-tree-name { flex: 1; }
.cat-tree-arrow { font-size: 9px; color: #ccc; flex-shrink: 0; }
.cat-tree-item:hover .cat-tree-arrow { color: var(--orange); }

/* ── Subcategory cards (when only subcats, no products) ── */
.cat-sub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.cat-sub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px 10px 12px;
  text-decoration: none;
  color: #222;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cat-sub-card:hover { border-color: var(--orange); box-shadow: 0 2px 8px rgba(244,124,32,0.15); color: var(--orange); }
.cat-sub-card-img { width: 60px; height: 60px; object-fit: contain; }
.cat-sub-card-icon { font-size: 32px; color: #ddd; }
.cat-sub-card:hover .cat-sub-card-icon { color: var(--orange); }
.cat-sub-card-name { line-height: 1.3; }

/* ── Full width layout (no sidebar) ── */
.cat-layout-full { grid-template-columns: 1fr !important; }

.cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.cat-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}
.cat-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cat-view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 34px; height: 34px;
  border: 1.5px solid #ddd;
  background: #fff;
  border-radius: 5px;
  color: #888;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.view-btn.active, .view-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.cat-sort select, .cat-limit select {
  font-size: 13px;
  padding: 6px 10px;
  border: 1.5px solid #e0e0e0;
  border-radius: 5px;
  height: 34px;
  min-width: 120px;
}

.cat-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.cat-sub-link {
  display: inline-block;
  padding: 6px 14px;
  border: 1.5px solid #e8e8e8;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cat-sub-link:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

.cat-intro { display: flex; gap: 20px; margin-bottom: 18px; }
.cat-intro-img { max-width: 160px; border-radius: 8px; }
.cat-intro-desc { font-size: 14px; color: #555; line-height: 1.6; }

.cat-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 10px;
}
.cat-results { font-size: 13px; color: #999; }

.cat-empty {
  text-align: center;
  padding: 60px 20px;
  color: #bbb;
}
.cat-empty i { font-size: 48px; display: block; margin-bottom: 16px; }
.cat-empty p { font-size: 16px; margin-bottom: 18px; }

/* ============================================================
   SITE FOOTER
   ============================================================ */
#site-footer {
  background: #17191E;
  border-top: 3px solid var(--orange);
  padding: 40px 0 0;
  color: #888;
  font-size: 14px;
  width: 100%;
}
footer { display: none !important; } /* hide old footer if it exists */

.footer-top {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #2a2c32;
}
@media (max-width: 767px) {
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

.footer-brand {}
.footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.footer-logo:hover { color: var(--orange); }
.footer-desc { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 18px; }
.footer-contacts { display: flex; flex-direction: column; gap: 8px; }
.footer-phone, .footer-hours {
  font-size: 13px;
  color: #888;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-phone:hover { color: var(--orange); }
.footer-phone i, .footer-hours i { color: var(--orange); width: 14px; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 991px) { .footer-links { grid-template-columns: repeat(2, 1fr); } }

.footer-col h5 {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 13px;
  color: #666;
  text-decoration: none;
  transition: color 0.12s;
}
.footer-col ul li a:hover { color: var(--orange); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 12px;
  color: #444;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-copy {}
.footer-powered { color: #333; }
.footer-powered a { color: #444; }

/* Override old footer styles */
footer#site-footer { display: block !important; }

/* ══════════════════════════════════════════
   PRODUCT PAGE
   ══════════════════════════════════════════ */

/* ── Layout: sidebar + main ── */
.prod-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 20px;
  align-items: start;
  padding: 4px 0 32px;
}
@media (max-width: 767px) {
  .prod-layout { grid-template-columns: 1fr; }
  .prod-sidebar { display: none; }
}

/* ── Category Tree Sidebar ── */
.prod-sidebar { position: sticky; top: 16px; }

.pct-nav, .prod-cat-tree {
  background: #fff;
  border-radius: 6px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.10);
  overflow: hidden;
}

.pct-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--nav-bg);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 14px;
}
.pct-header i { color: var(--orange); }

/* Each top-level category node */
.pct-node { border-bottom: 1px solid #f0f0f0; }
.pct-node:last-child { border-bottom: none; }

.pct-row {
  display: flex;
  align-items: center;
}

.pct-link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 9px 6px 9px 12px;
  text-decoration: none;
  color: #222;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.1s, background 0.1s;
  min-width: 0;
}
.pct-link:hover, .pct-link.pct-active { color: var(--orange); background: #fff4ec; font-weight: 600; }
.pct-icon { font-size: 13px; color: var(--orange); flex-shrink: 0; width: 18px; text-align: center; }

/* Toggle button */
.pct-toggle {
  background: none;
  border: none;
  padding: 9px 10px;
  cursor: pointer;
  color: #bbb;
  flex-shrink: 0;
  line-height: 1;
}
.pct-toggle i {
  font-size: 9px;
  transition: transform 0.2s;
}
.pct-node.open > .pct-row .pct-toggle i { transform: rotate(90deg); color: var(--orange); }
.pct-node.open > .pct-row .pct-link { color: var(--orange); background: #fff4ec; font-weight: 600; }

/* Children (subcategory list) */
.pct-children {
  display: none;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  padding: 4px 0;
}
.pct-node.open > .pct-children { display: block; }

.pct-child {
  display: block;
  padding: 7px 12px 7px 38px;
  font-size: 12px;
  color: #444;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
  transition: color 0.1s, background 0.1s;
}
.pct-child:last-child { border-bottom: none; }
.pct-child:hover { color: var(--orange); background: #fff4ec; }
.pct-child.active { color: var(--orange); font-weight: 600; }
.pct-child::before { content: '—'; margin-right: 6px; color: #ddd; font-size: 10px; }

/* ── Product card: photo + info ── */
.prod-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  padding: 24px;
  margin-bottom: 24px;
}
@media (max-width: 600px) { .prod-card { grid-template-columns: 1fr; } }

/* Gallery */
.prod-gallery {}
.prod-main-img { margin-bottom: 10px; border-radius: 6px; overflow: hidden; }
.prod-img { width: 100%; height: 280px; object-fit: contain; border-radius: 6px; }
.prod-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.prod-thumb-img { width: 60px; height: 60px; object-fit: contain; border-radius: 4px; border: 1px solid #eee; cursor: pointer; transition: border-color 0.15s; }
.prod-thumb-img:hover { border-color: var(--orange); }

/* Info */
.prod-title { font-size: 20px; font-weight: 700; color: #111; margin-bottom: 10px; line-height: 1.3; }

.prod-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: #777; margin-bottom: 12px; }
.prod-brand { color: var(--orange); text-decoration: none; font-weight: 600; }
.prod-stock { color: #27a050; font-weight: 600; }

.prod-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 14px; }
.prod-rating i { color: #ffc107; font-size: 14px; }
.prod-rating .fa-regular.fa-star { color: #ddd; }
.prod-rating-link { font-size: 12px; color: #999; text-decoration: none; margin-left: 6px; }
.prod-rating-link:hover { color: var(--orange); }

.prod-price-block { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.prod-price { font-size: 28px; font-weight: 800; color: var(--orange); }
.prod-price-old { font-size: 16px; color: #aaa; text-decoration: line-through; }
.prod-tax { font-size: 11px; color: #aaa; }

.prod-discounts { margin-bottom: 14px; }
.prod-discount-row { font-size: 13px; color: #555; padding: 3px 0; }

.prod-actions-form { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.prod-action-btn {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 12px;
  color: #555;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.prod-action-btn:hover { background: #fff4ec; border-color: var(--orange); color: var(--orange); }

.prod-options { margin-bottom: 16px; }

.prod-add-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.prod-qty-wrap { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; }
.prod-qty-btn { background: #f5f5f5; border: none; width: 34px; height: 42px; font-size: 18px; cursor: pointer; color: #555; transition: background 0.1s; }
.prod-qty-btn:hover { background: #ebe8e8; }
.prod-qty-input { width: 48px; text-align: center; border: none; border-left: 1px solid #ddd; border-right: 1px solid #ddd; height: 42px; font-size: 15px; font-weight: 600; }
.prod-cart-btn { flex: 1; min-width: 160px; font-size: 15px; font-weight: 600; }

.prod-bonus { display: flex; gap: 14px; font-size: 12px; color: #777; flex-wrap: wrap; }
.prod-bonus i { color: var(--orange); }

/* ── Tabs ── */
.prod-tabs { background: #fff; border-radius: 8px; box-shadow: 0 1px 6px rgba(0,0,0,0.08); padding: 20px 24px; margin-bottom: 24px; }
.prod-tab-nav { border-bottom: 2px solid #eee; margin-bottom: 18px; }
.prod-tab-nav .nav-link { color: #555; font-size: 14px; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; padding: 10px 16px; }
.prod-tab-nav .nav-link.active { color: var(--orange); border-bottom-color: var(--orange); font-weight: 600; }
.prod-tab-content { font-size: 14px; color: #444; line-height: 1.7; }

.prod-tags { margin-top: 14px; font-size: 12px; color: #777; }
.prod-tag { color: var(--orange); text-decoration: none; }

.prod-spec-table td { font-size: 13px; vertical-align: middle; }
.prod-spec-table thead td { background: #f5f5f5; font-weight: 700; }

/* ============================================================
   MOBILE MENU & HEADER
   ============================================================ */

/* Burger button — hidden on desktop */
.mob-burger {
  display: none;
  background: var(--orange);
  border: none;
  border-radius: 6px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}
.mob-burger i {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.2s;
}
.mob-burger.active i:first-child { transform: translateY(7px) rotate(45deg); }
.mob-burger.active i:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mob-burger.active i:last-child { transform: translateY(-7px) rotate(-45deg); }

/* Overlay */
.mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s;
}
.mob-overlay.open { display: block; opacity: 1; }

/* Slide panel */
.mob-panel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex-direction: column;
}
.mob-panel.open { transform: translateX(0); }

.mob-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--nav-bg);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}
.mob-panel-title { font-size: 16px; font-weight: 700; }
.mob-panel-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

/* Search inside panel */
.mob-panel-search { padding: 12px 16px; background: #f5f5f5; box-sizing: border-box; }
.mob-panel-search form { margin: 0; max-width: 100%; box-sizing: border-box; }
.mob-search-wrap {
  display: flex;
  border: 2px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  max-width: 100%;
  box-sizing: border-box;
}
.mob-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}
.mob-search-btn {
  background: var(--orange);
  border: none;
  color: #fff;
  padding: 0 14px;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Category list */
.mob-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mob-cat-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}
.mob-cat-link {
  flex: 1;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 400;
  color: #333;
  text-decoration: none;
}
.mob-cat-link:hover { color: var(--orange); }
.mob-cat-toggle {
  background: none;
  border: none;
  padding: 13px 16px;
  color: #999;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.3s;
}
.mob-cat-item.open .mob-cat-toggle i { transform: rotate(180deg); }

/* Subcategories */
.mob-sub {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: #fafafa;
}
.mob-cat-item.open .mob-sub { max-height: 800px; }
.mob-sub-link {
  display: block;
  padding: 10px 16px 10px 32px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}
.mob-sub-link:hover { color: var(--orange); background: #fff4ec; }

/* Panel footer */
.mob-panel-footer {
  margin-top: auto;
  padding: 16px;
  background: var(--nav-bg);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mob-foot-link {
  color: #ccc;
  font-size: 14px;
  text-decoration: none;
  padding: 8px 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mob-foot-link:hover { color: var(--orange); }
.mob-foot-link i { width: 16px; color: var(--orange); }

/* ── Mobile breakpoint ── */
@media (max-width: 767px) {
  /* Show burger */
  .mob-burger { display: flex; }
  .mob-panel { display: flex; }

  /* Hide desktop-only */
  .header-center { display: none; }

  /* Compact header — burger left, logo center, cart right */
  header { padding: 8px 0; }
  .header-main { gap: 0; justify-content: space-between; align-items: center; position: relative; }
  .mob-burger { flex: 0 0 auto; z-index: 2; }
  .header-main #logo { position: absolute; left: 50%; transform: translateX(-50%); min-width: auto; }
  #logo img { max-height: 36px; max-width: 140px; }
  #logo .logo-text { font-size: 16px; }
  .header-right { flex: 0 0 auto; z-index: 2; margin-left: auto; }

  /* Cart & login compact — icon only */
  #cart .btn { padding: 6px 10px; font-size: 13px; }
  .cart-btn { padding: 8px 12px !important; font-size: 16px !important; min-width: auto !important; width: auto !important; }
  .cart-btn-text { display: none; }
  .cart-btn i { margin: 0; }
  .login-btn { margin-left: 6px !important; padding: 8px 10px !important; font-size: 15px !important; }

  /* Fix page width overflow */
  html, body { overflow-x: hidden; max-width: 100vw; }
  #container, .container { overflow-x: hidden; max-width: 100%; }

  /* Header right — prevent overflow */
  .header-right { gap: 4px; flex-shrink: 0; max-width: 50%; }

  /* Product grid — tighter spacing on small screens */
  #product-list.row { margin-left: -6px; margin-right: -6px; }
  #product-list .col { padding-left: 6px; padding-right: 6px; }
  .pcard-body { padding: 8px 10px 10px; }
  .pcard-name { font-size: 12px; -webkit-line-clamp: 2; }
  .pcard-price { font-size: 14px; }
  .btn-cart-add { font-size: 12px; padding: 7px 8px; }
  .pcard-img { padding: 8px; }
  .pcard-img img { max-height: 140px; }

  /* Category page — add breathing room */
  #page-category .container { padding-left: 12px; padding-right: 12px; }
  .cat-header { flex-wrap: wrap; gap: 8px; }
  .cat-controls { width: 100%; }
  .cat-title { font-size: 20px; }

  /* Hero slider — rectangular on mobile */
  .first-hero { min-height: auto; }
  .hero-slide { min-height: 180px; height: auto; padding: 24px 20px; }
  .hero-text h2 { font-size: 18px; }
  .hero-text .hero-sub { font-size: 13px; }
  .hero-text .btn-hero { font-size: 13px; padding: 8px 16px; }

  /* Android promo banner compact */
  .android-promo-banner { padding: 12px 16px; font-size: 13px; }
  .android-promo-text strong { font-size: 13px; }
  .android-promo-text span { font-size: 11px; }

  /* Footer */
  .footer-top { padding-bottom: 20px; }
  .footer-links { gap: 16px; }
  .footer-col h5 { margin-bottom: 10px; }
}

/* ── Stock filter checkbox ──────────────────────────────────── */.filter-stock-box {  background: #fff;  border: 1px solid #e8e8e8;  border-radius: 8px;  padding: 14px 16px;  margin-bottom: 16px;}.filter-stock-check {  display: flex;  align-items: center;  gap: 8px;  cursor: pointer;  font-size: 14px;  font-weight: 500;  color: #333;}.filter-stock-check input[type=checkbox] {  width: 18px;  height: 18px;  accent-color: #f5a623;  cursor: pointer;}.filter-stock-check i {  color: #f5a623;  margin-right: 2px;}

/* ── Delivery badge on product card ──────────────────────────── */
.pcard-delivery {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
}
.pcard-delivery.pcd-instock {
  background: rgba(34,197,94,.15);
  color: #16a34a;
}
.pcard-delivery.pcd-order {
  background: rgba(245,166,35,.15);
  color: #b45309;
}

/* ============================================================
   Vehicle Selector — подбор рамки/магнитолы по авто
   ============================================================ */
#vehicle-selector-section {
  padding: 40px 0 20px;
}
.vs-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  padding: 32px;
  border: 1.5px solid var(--gray-200);
}
.vs-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.vs-header > i {
  font-size: 36px;
  color: var(--orange);
  flex-shrink: 0;
}
.vs-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--dark);
}
.vs-subtitle {
  font-size: 14px;
  color: var(--gray-600);
  margin: 4px 0 0;
}
.vs-selects {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.vs-select-group {
  flex: 1;
  min-width: 180px;
}
.vs-select-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.vs-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 15px;
  background: var(--gray-50);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.vs-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244,124,32,.15);
  outline: none;
}
.vs-select:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.vs-btn-group {
  flex: 0 0 auto;
  min-width: auto;
}
.vs-btn {
  padding: 10px 28px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s;
  white-space: nowrap;
}
.vs-btn:hover:not(:disabled) {
  background: var(--orange-dark);
  transform: translateY(-1px);
}
.vs-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.vs-btn i { margin-right: 6px; }

/* Results */
.vs-results {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1.5px solid var(--gray-200);
}
.vs-results-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--dark);
}
.vs-group {
  margin-bottom: 24px;
}
.vs-group-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-600);
  margin: 0 0 12px;
}
.vs-group-title i {
  color: var(--orange);
  margin-right: 8px;
}
.vs-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.vs-product-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  background: var(--white);
}
.vs-product-card:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 12px rgba(244,124,32,.12);
  text-decoration: none;
  color: var(--text);
}
.vs-product-img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vs-product-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.vs-product-info {
  flex: 1;
  min-width: 0;
}
.vs-product-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vs-product-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 4px;
}
.vs-stock {
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}
.vs-in-stock {
  background: rgba(34,197,94,.12);
  color: #16a34a;
}
.vs-out-stock {
  background: rgba(245,166,35,.12);
  color: #b45309;
}
.vs-product-note {
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 4px;
}
.vs-empty {
  text-align: center;
  padding: 32px 16px;
  margin-top: 20px;
  border-top: 1.5px solid var(--gray-200);
}
.vs-empty i {
  font-size: 48px;
  color: var(--gray-400);
  margin-bottom: 12px;
}
.vs-empty p {
  margin: 4px 0;
  color: var(--gray-600);
}

/* Mobile */
@media (max-width: 768px) {
  .vs-card { padding: 20px 16px; }
  .vs-header > i { font-size: 28px; }
  .vs-title { font-size: 18px; }
  .vs-selects { flex-direction: column; gap: 12px; }
  .vs-select-group { min-width: 100%; }
  .vs-btn { width: 100%; }
  .vs-products { grid-template-columns: 1fr; }
}

/* ===== ANDROID PROMO BANNER (homepage) ===== */
.android-promo-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  background: linear-gradient(135deg, var(--nav-bg) 0%, #2a3040 100%);
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  transition: box-shadow .2s, transform .15s;
}
.android-promo-banner:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.2);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}
.android-promo-banner > i:first-child {
  font-size: 28px;
  color: var(--orange);
  flex-shrink: 0;
}
.android-promo-banner > i:last-child {
  font-size: 18px;
  color: var(--orange);
  flex-shrink: 0;
  margin-left: auto;
}
.android-promo-text {
  flex: 1;
}
.android-promo-text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}
.android-promo-text span {
  font-size: 13px;
  color: rgba(255,255,255,.65);
}
@media (max-width: 768px) {
  .android-promo-banner { padding: 16px 18px; gap: 12px; }
  .android-promo-text strong { font-size: 14px; }
  .android-promo-banner > i:last-child { display: none; }
}

/* ===== ANDROID PAGE ===== */
#information-android {
  padding-bottom: 40px;
}
.android-hero {
  background: linear-gradient(135deg, var(--nav-bg) 0%, #2a3040 100%);
  border-radius: 16px;
  padding: 40px 36px;
  margin-bottom: 28px;
  color: #fff;
}
.android-hero h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 10px;
}
.android-hero h1 i {
  color: var(--orange);
  margin-right: 10px;
}
.android-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  margin: 0;
  max-width: 600px;
}
.android-selector .vs-card {
  margin-bottom: 32px;
}
.android-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 12px;
}
.android-info-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.android-info-card:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 16px rgba(244,124,32,.1);
}
.android-info-card > i {
  font-size: 32px;
  color: var(--orange);
  margin-bottom: 14px;
}
.android-info-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--dark);
}
.android-info-card p {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0 0 14px;
  line-height: 1.5;
}
.android-info-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
}
.android-info-link:hover {
  color: var(--orange-dark);
  text-decoration: underline;
}
.android-info-link i {
  margin-left: 4px;
  font-size: 12px;
}

@media (max-width: 768px) {
  .android-hero { padding: 28px 20px; }
  .android-hero h1 { font-size: 20px; }
  .android-info-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ===== ANDROID MENU HIGHLIGHT ===== */
.cqnav-android {
  color: var(--orange) !important;
  font-weight: 600;
}
.cqnav-android i {
  margin-right: 4px;
}
.cqnav-android:hover {
  color: var(--orange-dark) !important;
}
.mob-cat-android {
  color: var(--orange) !important;
  font-weight: 600;
}
.mob-cat-android i {
  margin-right: 6px;
}

/* ── Brand filter ──────────────────────────────────── */
.filter-brand-box {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 0;
  margin-bottom: 16px;
  overflow: hidden;
}
.filter-brand-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  user-select: none;
}
.filter-brand-toggle i:first-child { color: #888; font-size: 13px; }
.filter-brand-arrow {
  margin-left: auto;
  font-size: 11px;
  color: #999;
  transition: transform .2s;
}
.filter-brand-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 0 12px 10px;
  border-top: 1px solid #f0f0f0;
}
.filter-brand-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 4px;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  border-radius: 4px;
}
.filter-brand-item:hover { background: #f5f5f5; }
.filter-brand-item input[type=checkbox] {
  width: 15px;
  height: 15px;
  accent-color: #f5a623;
  cursor: pointer;
  flex-shrink: 0;
}
.filter-brand-cnt {
  margin-left: auto;
  color: #aaa;
  font-size: 11px;
}

/* ── Mobile menu: reuse sidebar tree ──────────────── */
.mob-tree-wrap {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mob-tree-wrap .pct-nav {
  border: none;
  border-radius: 0;
  background: transparent;
}
.mob-tree-wrap .pct-header {
  display: none;
}
.mob-tree-wrap .pct-node {
  border-bottom: 1px solid #f0f0f0;
}
.mob-tree-wrap .pct-link {
  padding: 12px 16px;
  font-size: 15px;
}
.mob-tree-wrap .pct-icon {
  font-size: 15px;
  width: 22px;
}
.mob-tree-wrap .pct-toggle {
  padding: 12px 16px;
}
.mob-tree-wrap .pct-children {
  background: #f8f8f8;
}
.mob-tree-wrap .pct-child {
  padding: 10px 16px 10px 54px;
  font-size: 14px;
}
.mob-tree-wrap .pct-subrow .pct-child {
  padding-left: 54px;
}
.mob-tree-wrap .pct-subtoggle {
  padding: 10px 14px;
}
.mob-tree-wrap .pct-subchildren {
  background: #f0f0f0;
}
.mob-tree-wrap .pct-grandchild {
  padding: 8px 16px 8px 70px;
  font-size: 13px;
}
