* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; color: var(--theme-text-color, #1f2937); background: #fff; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.ad-slot { margin: 18px 0; padding: 14px 16px; border: 1px solid #dbe7f3; border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.98)); }
.ad-slot-image, .ad-slot-image-link { display: block; }
.ad-slot-image { max-width: 100%; height: auto; border-radius: 14px; }
.ad-slot-fallback { font-weight: 700; color: #0f172a; }
.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.searchbar, .searchbar form, .product-grid, .category-grid, .blog-grid, .info-grid, .footer-grid, .catalog-layout, .detail-layout, .split-grid, .form-grid { min-width: 0; }
.topbar { background: #1C81C5; color: #fff; font-size: 14px; }
.topbar .container, .hero-strip, .nav-row, .product-grid, .category-grid, .info-grid, .blog-grid, .footer-grid, .split-grid, .admin-stats, .admin-grid { display: grid; gap: 20px; }
.topbar .container { grid-template-columns: 1fr auto; padding: 10px 0; }
.header { background: #fff; box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08); position: sticky; top: 0; z-index: 40; overflow: visible; border-bottom: 1px solid #e5e7eb; }
.header-main { display:grid; grid-template-columns: 220px minmax(0,1fr) auto; align-items: center; gap: 28px; padding: 16px 0; }
.brand { font-size: 28px; font-weight: 800; color: #1C81C5; letter-spacing: 0.02em; }
.searchbar form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  background: #fff;
  border: 1px solid #d5deea;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}
.searchbar input, .input, .textarea, .select { width: 100%; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; }
.searchbar input {
  border: 0;
  border-radius: 0;
  padding: 13px 16px;
  font-size: 14px;
  color: #0f172a;
}
.searchbar input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(28, 129, 197, .16);
}
.search-submit {
  min-width: 56px;
  height: 50px;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid #d5deea;
  border-radius: 0;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: #1C81C5;
  gap: 8px;
}
.search-submit:hover {
  background: #f0f8ff;
}
.search-submit-icon { width: 18px; height: 18px; display: inline-flex; }
.search-submit-icon svg { width: 18px; height: 18px; display: block; }
.search-submit-text { font-size: 13px; font-weight: 700; }
.quantity-input {
  color: #111827;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  appearance: textfield;
  -moz-appearance: textfield;
  padding-left: 8px;
  padding-right: 8px;
}
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.select2-container { width:100% !important; }
.select2-container--default .select2-selection--single {
  display:flex;
  align-items:center;
  height:48px;
  border:1px solid #d1d5db;
  border-radius:10px;
  background:#fff;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  width:100%;
  line-height:46px;
  padding-left:14px;
  padding-right:38px;
  color:#111827;
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height:46px; right:10px; }
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color:#1C81C5;
  box-shadow:0 0 0 3px rgba(193, 18, 31, 0.08);
}
.select2-container--default .select2-selection--single .select2-selection__clear {
  color:#9ca3af;
  margin-right:8px;
}
.select2-dropdown {
  border:1px solid #d1d5db;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 18px 45px rgba(15, 23, 42, .12);
}
.select2-container--open { z-index: 9999; }
.select2-search--dropdown { padding:10px; }
.select2-search--dropdown .select2-search__field { border:1px solid #d1d5db; border-radius:10px; padding:10px 12px; }
.select2-results__option { padding:10px 12px; }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background:#1C81C5; }
.select2-container--default .select2-selection--single .select2-selection__placeholder { color:#6b7280; }
.textarea { min-height: 140px; resize: vertical; }
.button, button { display:inline-flex; align-items:center; justify-content:center; background: transparent; color: var(--theme-button-text-color, #111827); border: 1px solid var(--theme-button-border-color, #d1d5db); border-radius: 10px; padding: 11px 16px; cursor: pointer; font-size: 14px; font-weight: 600; line-height:1.2; text-align:center; vertical-align:middle; text-decoration:none; letter-spacing: -0.01em; }
.button:hover, button:hover { background: var(--theme-button-hover-background, rgba(15, 23, 42, 0.03)); }
.button.secondary { background: transparent; color: var(--theme-button-secondary-text-color, #1C81C5); border: 1px solid var(--theme-button-secondary-border-color, #1C81C5); }
.button.secondary:hover { background: var(--theme-button-secondary-hover-background, rgba(28, 129, 197, 0.06)); }
.button.light { background: transparent; color: #111827; border: 1px solid #d1d5db; }
.actions { display: flex; align-items: center; gap: 12px; }
.cart-preview { position: relative; }
.cart-chip { display:flex; align-items:center; gap:10px; padding:10px 16px; border:1px solid #e5e7eb; border-radius:999px; font-size:14px; font-weight:600; white-space:nowrap; }
.cart-chip strong { display:grid; place-items:center; width:28px; height:28px; border-radius:999px; background:#1C81C5; color:#fff; font-size:13px; }
.cart-chip-icon { position:relative; width:54px; min-width:54px; height:54px; padding:0; justify-content:center; border-color:#cfd8e3; box-shadow:0 10px 24px rgba(15, 23, 42, .08); }
.cart-chip-glyph { width:22px; height:22px; color:#1C81C5; display:inline-flex; }
.cart-chip-glyph svg { width:22px; height:22px; display:block; }
.cart-chip-icon strong { position:absolute; top:-6px; right:-6px; width:24px; height:24px; font-size:12px; box-shadow:0 6px 14px rgba(28, 129, 197, .26); }
.cart-chip-icon:hover { border-color:#1C81C5; background:#f8fbff; }
.cart-preview-dropdown { position:absolute; top:calc(100% + 14px); right:0; width:min(420px, 88vw); background:#fff; border:1px solid #e5e7eb; border-radius:20px; box-shadow:0 20px 50px rgba(15, 23, 42, .14); opacity:0; visibility:hidden; pointer-events:none; transform:translateY(6px); transition:opacity .18s ease, visibility .18s ease, transform .18s ease; z-index:85; }
.cart-preview::after { content:""; position:absolute; top:100%; right:0; width:100%; height:18px; }
.cart-preview:hover .cart-preview-dropdown,
.cart-preview:focus-within .cart-preview-dropdown { opacity:1; visibility:visible; pointer-events:auto; transform:translateY(0); }
.cart-preview-list { max-height:420px; overflow-y:auto; padding:18px; display:grid; gap:0; }
.cart-preview-item { display:grid; grid-template-columns:72px 1fr auto; gap:14px; align-items:start; padding:14px 0; border-bottom:1px solid #eef2f7; }
.cart-preview-item:last-child { border-bottom:0; }
.cart-preview-image { width:72px; height:72px; border-radius:14px; object-fit:cover; background:#fff; }
.cart-preview-content { min-width:0; }
.cart-preview-name { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; text-overflow:ellipsis; font-size:15px; line-height:1.4; font-weight:600; color:#1f2937; }
.cart-preview-meta { margin-top:6px; font-size:14px; color:#6b7280; }
.cart-preview-remove-form { align-self:start; }
.cart-preview-remove { width:auto; height:auto; padding:0; background:transparent; border:0; color:#9ca3af; font-size:30px; line-height:1; }
.cart-preview-footer { padding:16px 18px 18px; border-top:1px solid #e5e7eb; background:#fff; border-radius:0 0 20px 20px; }
.cart-preview-subtotal { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:16px; font-weight:700; color:#1f2937; margin-bottom:14px; }
.cart-preview-subtotal strong { font-size:18px; }
.cart-preview-actions { display:grid; gap:10px; }
.cart-preview-button { display:inline-flex; align-items:center; justify-content:center; min-height:48px; border-radius:14px; font-size:14px; font-weight:600; text-align:center; }
.cart-preview-button.view-cart { border:1px solid #d1d5db; color:#111827; background:transparent; }
.cart-preview-button.checkout { background:transparent; color:#111f4d; border:1px solid #111f4d; }
.mobile-menu-toggle {
  display:none;
  width:54px;
  min-width:54px;
  height:54px;
  padding:0;
  border-radius:999px;
  background:#fff;
  border:1px solid #cfd8e3;
  box-shadow:0 10px 24px rgba(15, 23, 42, .08);
  color:#1C81C5;
}
.mobile-menu-toggle-icon { width:22px; height:22px; display:inline-flex; }
.mobile-menu-toggle-icon svg { width:22px; height:22px; display:block; }
.nav-row { display:flex; flex-wrap:wrap; gap:10px 14px; padding:0 0 18px; font-weight:800; color:#374151; align-items:center; justify-content:center; position:relative; overflow:visible; }
.nav-link { display:inline-flex; align-items:center; padding:10px 13px; border-radius:12px; position:relative; transition:color .2s ease, background-color .2s ease; white-space:nowrap; font-size:15px; letter-spacing:-0.02em; }
.nav-link:hover { color:#1C81C5; background:rgba(28, 129, 197, 0.08); }
.nav-link.active { color:#1C81C5; background:rgba(28, 129, 197, 0.08); }
.nav-link::before { content:""; position:absolute; left:14px; right:14px; bottom:2px; height:3px; border-radius:999px; background:#1C81C5; transform:scaleX(0); transform-origin:left; transition:transform .2s ease; }
.nav-link:hover::before,
.nav-link.active::before,
.nav-item:hover > .nav-link::before,
.nav-item.open > .nav-link::before { transform:scaleX(1); }
.nav-item { position:relative; padding:4px 0 18px; margin-bottom:-18px; }
.nav-item::after { content:""; position:absolute; left:0; right:0; top:100%; height:18px; }
.dropdown-trigger { display:inline-flex; align-items:center; gap:8px; }
.dropdown-trigger::after { content:""; width:8px; height:8px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg) translateY(-2px); }
.dropdown-menu { position:absolute; top:100%; left:0; min-width:320px; background:#fff; border:1px solid #e5e7eb; border-radius:16px; box-shadow:0 18px 45px rgba(15, 23, 42, .12); padding:14px; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .16s ease, visibility .16s ease; z-index:80; }
.dropdown-link { display:block; padding:10px 14px; border-radius:12px; font-weight:500; color:#6b7280; white-space:nowrap; font-size:15px; line-height:1.45; }
.dropdown-parent-link { color:#111827; font-weight:800; font-size:16px; }
.dropdown-parent-link.active { color:#1C81C5; background:rgba(28, 129, 197, 0.08); }
.dropdown-child-link { color:#111827; font-weight:700; padding-bottom:8px; }
.dropdown-submenu { display:grid; gap:2px; padding:0 0 8px 14px; }
.dropdown-sub-link { font-weight:600; color:#6b7280; padding:10px 14px; white-space:normal; }
.dropdown-group + .dropdown-group { margin-top:4px; }
.dropdown-link:hover { background:#f3f4f6; color:#111827; }
.dropdown:hover > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu,
.dropdown.open > .dropdown-menu { opacity:1; visibility:visible; pointer-events:auto; }
.mega-menu { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:8px; min-width:420px; }
.mega-column { padding:4px; }
.mobile-menu-overlay { display:none; }
.mobile-menu-drawer { display:none; }
.mobile-cart-overlay { display:none; }
.mobile-cart-drawer { display:none; }
.cookie-banner { position:fixed; left:24px; right:24px; bottom:24px; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px 28px; background:rgba(10, 10, 10, 0.94); color:#fff; border-radius:20px; box-shadow:0 18px 45px rgba(15, 23, 42, .32); z-index:85; }
.cookie-banner[hidden] { display:none; }
.cookie-banner__text { max-width:720px; font-size:16px; line-height:1.7; }
.cookie-banner__actions { display:flex; align-items:center; gap:14px; flex:0 0 auto; }
.cookie-button { width:auto; min-width:140px; padding:12px 18px; border-radius:12px; font-size:14px; font-weight:600; }
.cookie-button--accept { background:transparent; color:#16a34a; border:1px solid #16a34a; }
.cookie-button--deny { background:transparent; color:#6b7280; border:1px solid #9ca3af; }
.hero { background: var(--theme-banner-background, linear-gradient(135deg, #0f5f95 0%, #176fae 18%, #1C81C5 48%, #8fd1f6 76%, #eef8ff 100%)); color: var(--theme-banner-text-color, #0f172a); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; padding: 56px 0; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1; margin: 0 0 16px; }
.hero p { color: rgba(15, 23, 42, .9); font-size: 17px; margin-bottom: 24px; }
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.pill { background: rgba(255,255,255,.46); color:#1C81C5; padding: 8px 12px; border-radius: 999px; font-size: 13px; border:1px solid rgba(28, 129, 197, .18); }
.hero-primary-action {
  background: var(--theme-button-secondary-border-color, #0f5f95);
  color: #ffffff !important;
  border-color: var(--theme-button-secondary-border-color, #0f5f95) !important;
  box-shadow: 0 16px 34px rgba(15, 95, 149, .26);
}
.hero-primary-action:hover {
  background: var(--theme-button-secondary-text-color, #0b4e7a);
  color: #ffffff !important;
  border-color: var(--theme-button-secondary-text-color, #0b4e7a) !important;
  box-shadow: 0 18px 36px rgba(11, 78, 122, .3);
}
.hero-card { background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.7)); border: 1px solid rgba(28, 129, 197, .12); border-radius: 24px; padding: 24px; backdrop-filter: blur(12px); }
.hero-card .panel-title { color: #0f172a; }
.hero-card .compact-product-title { color: #111827; font-weight: 700; }
.hero-card .muted { color: #4b5563; }
main { background: #fff; position: relative; }
main::before { content: ""; display: block; height: 0; background: transparent; border-top: 0; }
.home-section { position: relative; }
.home-section + .home-section { margin-top: 10px; padding-top: 54px; }
.home-section + .home-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px));
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0), rgba(203, 213, 225, 0.9) 18%, rgba(203, 213, 225, 0.9) 82%, rgba(148, 163, 184, 0));
}
.home-section + .home-section::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(28, 129, 197, 0.12), rgba(28, 129, 197, 0.85), rgba(28, 129, 197, 0.12));
}
.home-popular-categories .section-title,
.home-featured-products .section-title,
.home-latest-articles .section-title {
  margin-bottom: 14px;
}
.home-popular-categories .section-title h2,
.home-featured-products .section-title h2,
.home-latest-articles .section-title h2 {
  font-size: 24px;
}
.home-popular-categories .section-title p,
.home-featured-products .section-title p,
.home-latest-articles .section-title p {
  font-size: 13px;
}
.home-popular-categories .category-grid,
.home-featured-products .product-grid,
.home-latest-articles .blog-grid {
  gap: 14px;
}
.home-latest-articles .blog-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  grid-template-columns: none;
}
.home-latest-articles .blog-grid > * {
  flex: 0 0 calc((100% - 42px) / 4);
  min-width: 240px;
}
.home-popular-categories .category-card {
  width: 100%;
  height: 200px;
  min-height: 200px;
  border-radius: 14px;
}
.home-popular-categories .home-category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.home-popular-categories .category-card .content {
  inset: auto 12px 12px;
}
.home-popular-categories .category-card .content h3 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.2;
}
.home-popular-categories .category-card .content p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}
.home-featured-products .product-body {
  padding: 12px;
  gap: 6px;
}
.home-featured-products .home-featured-media {
  width: 100%;
  height: 180px;
  aspect-ratio: auto;
}
.home-featured-products .home-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.home-featured-products .product-title {
  font-size: 13px;
  line-height: 1.35;
}
.home-latest-articles .home-article-image {
  display: block;
  width: 100%;
  height: 170px;
  max-height: 170px;
  object-fit: cover;
  object-position: center;
}
.blog-article-image {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
}
.blog-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.home-latest-articles .product-body {
  padding: 12px 0 0;
  gap: 6px;
}
.blog-card-link .product-body {
  padding: 12px 0 0;
}
.home-latest-articles h3 {
  font-size: 16px;
  line-height: 1.3;
}
.home-latest-articles .muted {
  font-size: 12px;
  line-height: 1.4;
}
.post-excerpt-html {
  margin-top: 2px;
}
.post-excerpt-html p {
  margin: 0;
}
.post-excerpt-html ul,
.post-excerpt-html ol {
  margin: 0;
  padding-left: 18px;
}
.post-excerpt-html li + li {
  margin-top: 2px;
}
.section { padding: 36px 0 54px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-title h2, .section-title h1 { margin: 0; font-size: 32px; }
.section-heading { margin: 0; font-size: 32px; line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; color: #1f2937; }
.section-title p { margin: 6px 0 0; color: #6b7280; max-width: 720px; }
.card { background: transparent; border-radius: 18px; box-shadow: none; overflow: hidden; }
.product-grid { grid-template-columns: repeat(var(--theme-product-columns, 4), minmax(0, 1fr)); }
.product-card { display: flex; flex-direction: column; height: 100%; }
.product-card[data-card-link] { cursor:pointer; }
.product-card .media { position: relative; background: transparent; aspect-ratio: 1; overflow: hidden; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .media img { transform: scale(1.04); }
.badge { position: absolute; left: 14px; top: 14px; background: #1C81C5; color: #fff; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.product-body { padding: 18px; display: grid; gap: 10px; flex: 1; }
.category-grid, .info-grid, .admin-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.blog-grid { grid-template-columns: repeat(var(--theme-blog-columns, 4), minmax(0, 1fr)); }
.category-card { position: relative; min-height: 260px; color: #fff; border-radius: 20px; overflow: hidden; }
.category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,24,39,.1), rgba(17,24,39,.75)); }
.category-card img { width: 100%; height: 100%; object-fit: cover; }
.category-card .content { position: absolute; inset: auto 20px 20px; z-index: 1; }
.price-row { display: flex; gap: 10px; align-items: center; }
.price { font-size: 20px; font-weight: 800; color: #1C81C5; }
.price-old { color: #9ca3af; text-decoration: line-through; }
.muted { color: #6b7280; }
.split-grid { grid-template-columns: 2fr 1fr; align-items: start; }
.blog-detail-layout {
  grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
  gap: 18px;
}
.catalog-layout { display:grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 3fr); gap:24px; align-items:start; }
.catalog-grid { grid-template-columns: repeat(var(--theme-product-columns, 4), minmax(0, 1fr)); gap: 16px; }
.catalog-grid .product-body { padding: 14px; gap: 8px; }
.catalog-grid .muted { font-size: 12px; line-height: 1.45; }
.catalog-grid .price { font-size: 16px; line-height: 1.2; }
.catalog-grid .price-old { font-size: 13px; }
.product-title { margin: 0; font-size: 14px; line-height: 1.45; font-weight: 600; color: #1f2937; }
.product-title a { color: inherit; }
.catalog-grid .product-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; min-height: 2.9em; }
.catalog-grid .product-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.catalog-grid .badge { font-size: 11px; padding: 5px 9px; }
.catalog-grid .button { padding: 10px 14px; }
.catalog-toolbar { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.catalog-sidebar { display:grid; gap:4px; align-self:start; }
.catalog-mobile-controls { display:none; }
.catalog-mobile-trigger { display:inline-flex; align-items:center; gap:8px; min-height:42px; padding:0 12px; border-radius:999px; border:1px solid #d1d5db; background:#fff; color:#111827; font-size:13px; font-weight:700; letter-spacing:-0.01em; }
.catalog-mobile-trigger.icon-only {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  justify-content: center;
  border-color: #cfd8e3;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
}
.catalog-mobile-trigger.icon-only:hover {
  border-color: #1C81C5;
  color: #1C81C5;
  background: #f8fbff;
}
.catalog-mobile-icon { width:16px; height:16px; display:inline-flex; align-items:center; justify-content:center; color:#1C81C5; }
.catalog-mobile-icon svg { width:16px; height:16px; display:block; }
.catalog-mobile-overlay { display:none; }
.catalog-mobile-sheet-head { display:none; }
.catalog-mobile-close { width:auto; height:auto; padding:0; border:0; background:transparent; color:#6b7280; font-size:32px; line-height:1; }
.catalog-mobile-sheet { display:none; }
.catalog-mobile-sheet-body { padding:16px 18px 18px; }
.panel.sidebar-section { padding:0 !important; }
.sidebar-section { padding:0; margin:0; overflow:hidden; }
.catalog-sidebar .sidebar-section + .sidebar-section { margin-top: 0; }
.sidebar-title { margin:0; padding:12px 12px 0; font-size:16px; font-weight:700; letter-spacing:-0.01em; color:#1f2937; }
.sidebar-title::after { content:""; display:block; width:52px; height:4px; background:#f59e0b; border-radius:999px; margin-top:8px; }
.sidebar-section form,
.sidebar-products { padding:10px 12px 12px; }
.sidebar-section form { gap: 6px !important; }
.sidebar-section .input,
.sidebar-section .select {
  min-height: 40px;
  height: 40px;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 8px;
}
.sidebar-section .select {
  padding-right: 34px;
}
.sidebar-section .select2-container--default .select2-selection--single {
  min-height: 40px;
  height: 40px;
  border-radius: 8px;
}
.sidebar-section .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 40px;
  padding-left: 12px;
  padding-right: 34px;
  font-size: 13px;
}
.sidebar-section .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px;
}
.sidebar-products { display:grid; gap:10px; }
.sidebar-product { display:grid; grid-template-columns:72px 1fr; gap:10px; align-items:start; padding-bottom:10px; border-bottom:1px solid #e5e7eb; }
.sidebar-product:last-child { border-bottom:none; padding-bottom:0; }
.sidebar-product img { width:72px; height:72px; object-fit:cover; border-radius:12px; }
.sidebar-product-name { font-size:12px; font-weight:600; line-height:1.4; margin-bottom:4px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; text-overflow:ellipsis; }
.sidebar-products .price { font-size: 15px; line-height: 1.2; }
.table-card, .panel { background: transparent; border-radius: 18px; padding: 22px; box-shadow: none; }
.table-card { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 14px 12px; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: top; }
.table th { font-size: 13px; text-transform: uppercase; color: #6b7280; }
.table-card h1,
.table-card h2,
.panel h1,
.panel h2,
.panel h3 { letter-spacing: -0.02em; }
.table-card .section-title h1 { font-size: 26px; }
.table-card .section-heading { font-size: 26px; }
.table-card .table th { font-size: 12px; }
.table-card .table td { font-size: 13px; }
.cart-product-name { font-size: 14px; line-height: 1.45; font-weight: 600; color: #1f2937; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; text-overflow:ellipsis; }
.cart-mobile-list { display:none; }
.cart-qty-form { display:flex; gap:8px; align-items:center; }
.cart-row-actions { display:flex; align-items:center; justify-content:flex-end; gap:18px; }
.cart-row-action-update { display:flex; align-items:center; }
.cart-icon-button { width:auto; height:auto; padding:0; background:transparent; border:0; border-radius:0; box-shadow:none; font-size:28px; font-weight:700; line-height:1; flex:0 0 auto; min-width:0; }
.cart-update-button { color:#16a34a; order:0; }
.cart-remove-button { color:#1C81C5; }
.cart-icon-button:hover { background:transparent; border:0; box-shadow:none; opacity:.82; }
.cart-icon-button:focus-visible { outline: none; box-shadow: none; }
.cart-icon-button.is-hidden { display:none; }
.table-card .table .muted { font-size: 12px; line-height: 1.4; }
.panel-title { font-size: 18px; line-height: 1.35; font-weight: 700; color: #1f2937; letter-spacing: -0.01em; }
.product-detail-title { margin: 6px 0 0; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; color: #1f2937; }
.loyalty-note { margin-top: 14px; font-size: 18px; line-height: 1.3; font-weight: 700; color: #f59e0b; }
.detail-price-row { margin: 6px 0 16px; }
.detail-price-row .price { font-size: 24px; }
.product-highlight-list { --collapsed-height: calc(1.8em * 10); margin-top: 6px; font-size: 15px; line-height: 1.8; position: relative; overflow: hidden; }
.product-highlight-list p { margin: 0 0 8px; }
.product-highlight-list.is-collapsed {
  max-height: var(--collapsed-height);
}
.product-highlight-list.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #ffffff 88%);
  pointer-events: none;
}
.stock-note { margin: 18px 0 10px; font-size: 15px; font-weight: 700; }
.stock-note.in-stock { color: #5f7f2f; }
.stock-note.out-of-stock { color: #c1121f; }
.detail-meta-line { margin-bottom: 18px; }
.detail-purchase-form { display: grid; grid-template-columns: 164px minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: center; margin: 22px 0; }
.detail-quantity-control { display: grid; grid-template-columns: 48px 1fr 48px; align-items: stretch; border: 1px solid #d1d5db; border-radius: 14px; overflow: hidden; background: #fff; }
.detail-qty-button { width: 48px; height: 56px; padding: 0; background: transparent; color: #1f2937; border: 0; font-size: 28px; font-weight: 400; }
.detail-qty-input { width: 100%; min-width: 0; border: 0; border-left: 1px solid #e5e7eb; border-right: 1px solid #e5e7eb; text-align: center; font-size: 18px; font-weight: 700; color: #1f2937; background: #fff; appearance: textfield; -moz-appearance: textfield; }
.detail-qty-input::-webkit-outer-spin-button,
.detail-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.detail-action-button { width: 100%; min-height: 52px; border-radius: 14px; font-size: 14px; font-weight: 600; }
.detail-action-button.add-to-cart { background: transparent; color: #f59e0b; border: 1px solid #f59e0b; }
.detail-action-button.buy-now { background: transparent; color: #111f4d; border: 1px solid #111f4d; }
.detail-action-button:hover { opacity: .92; background: rgba(15, 23, 42, 0.02); }
.detail-action-icon { display: none; width: 18px; height: 18px; }
.detail-action-icon svg { width: 18px; height: 18px; display: block; }
.detail-action-label { display: inline; }
.split-grid > .panel .muted { font-size: 14px; }
.split-grid > .panel .price { font-size: 18px; }
.compact-product-title { font-size: 14px; line-height: 1.45; font-weight: 600; color: #111827; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; text-overflow:ellipsis; }
.footer { background: #111827; color: #d1d5db; padding: 48px 0; margin-top: 48px; }
.footer-grid { grid-template-columns: 1.2fr .8fr .8fr .8fr; }
.footer h4 { color: #fff; margin-top: 0; }
.toast-stack { position: fixed; top: 110px; right: 20px; z-index: 120; display: grid; gap: 12px; width: min(420px, calc(100vw - 32px)); }
.flash { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; }
.flash.success { background: #dcfce7; color: #166534; }
.flash.error { background: #fee2e2; color: #991b1b; }
.toast-popup { position: relative; margin: 0; padding: 16px 46px 16px 16px; box-shadow: 0 18px 45px rgba(15, 23, 42, .16); border: 1px solid rgba(15, 23, 42, .06); transition: opacity .22s ease, transform .22s ease; }
.toast-popup.is-hidden { opacity: 0; transform: translateY(-8px); }
.toast-close { position: absolute; top: 8px; right: 10px; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: currentColor; font-size: 22px; line-height: 1; cursor: pointer; }
.breadcrumbs { color: #6b7280; font-size: 14px; margin-bottom: 16px; }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.gallery { display: grid; gap: 14px; align-self: start; }
.gallery-slider-box {
  position: relative;
  border: 1px solid #dbe5f0;
  border-radius: 26px;
  padding: 18px;
  background: #fff;
  overflow: hidden;
}
.gallery-main {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  overflow: hidden;
  cursor: zoom-in;
  align-self: start;
}
.gallery-main-image { width: 100%; height: 520px; object-fit: contain; border-radius: 16px; background: transparent; }
.gallery-main-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #1f2937;
  font-size: 34px;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
}
.gallery-main-prev { left: 14px; }
.gallery-main-next { right: 14px; }
.gallery-main-counter {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}
.gallery-strip-wrap {
  border: 1px solid #dbe5f0;
  border-radius: 20px;
  padding: 12px;
  background: #fff;
  overflow: hidden;
}
.gallery-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 92px;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  padding-bottom: 2px;
}
.gallery-thumb {
  padding: 0;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.gallery-thumb img { display:block; height: 92px; width: 100%; object-fit: cover; border-radius: 14px; }
.gallery-thumb.is-active { border-color: #1C81C5; box-shadow: 0 10px 20px rgba(28, 129, 197, .12); }
.gallery-thumb:hover { transform: translateY(-1px); box-shadow: 0 10px 18px rgba(15, 23, 42, .08); }
.lightbox-open { overflow: hidden; }
.lightbox-overlay { position: fixed; inset: 0; z-index: 140; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .82); backdrop-filter: blur(6px); }
.lightbox-dialog { position: relative; z-index: 1; display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; gap: 18px; align-items: center; width: min(1280px, calc(100vw - 48px)); height: min(92vh, 900px); margin: 4vh auto; padding: 28px 24px 76px; }
.lightbox-stage { display: grid; place-items: center; height: 100%; overflow: auto; }
.lightbox-image { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center center; transition: transform .18s ease; }
.lightbox-close { position: absolute; top: 8px; right: 8px; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-size: 34px; line-height: 1; }
.lightbox-nav { width: 56px; height: 56px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-size: 42px; line-height: 1; }
.lightbox-toolbar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 999px; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.lightbox-tool { width: auto; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: transparent; color: #fff; font-size: 14px; font-weight: 600; }
.lightbox-counter { min-width: 62px; text-align: center; color: #fff; font-size: 13px; font-weight: 600; }
.content-block { line-height: 1.75; }
.content-block ul { padding-left: 18px; }
.specifications-content { --collapsed-height: calc(1.75em * 10); position: relative; margin-top: 12px; color: #4b5563; line-height: 1.75; overflow: hidden; }
.specifications-content.is-collapsed { max-height: var(--collapsed-height); }
.specifications-content.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #ffffff 88%);
  pointer-events: none;
}
.specifications-content p { margin: 0 0 10px; }
.specifications-content ul,
.specifications-content ol { padding-left: 20px; margin: 0 0 10px; }
.specifications-toggle {
  width: auto;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1C81C5;
  font-size: 13px;
  font-weight: 600;
}
.specifications-toggle:hover { background: transparent; color: #0f5f95; }
.product-description-section {
  position: relative;
  margin-top: 26px;
  padding-top: 36px;
  border-top: 1px solid #e5e7eb;
}
.product-description-tab {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 20px;
  background: #fff;
  color: #1f2937;
  font-size: 15px;
  font-weight: 500;
}
.product-description-tab::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  border-radius: 999px;
  background: #111f4d;
}
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: #111827; color: #d1d5db; padding: 28px 22px; }
.sidebar nav { display: grid; gap: 8px; margin-top: 20px; }
.sidebar nav a { padding: 12px 14px; border-radius: 12px; }
.sidebar nav a:hover, .sidebar nav a.active { background: rgba(255,255,255,.09); color: #fff; }
.admin-main { padding: 28px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 16px; }
.admin-action-bar { display:flex; align-items:center; justify-content:flex-end; gap:12px; flex-wrap:wrap; }
.stat-card { background: linear-gradient(135deg, #fff, #f8fafc); border-radius: 18px; padding: 22px; box-shadow: 0 18px 45px rgba(15, 23, 42, .07); }
.stat-card strong { display: block; font-size: 34px; margin-top: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.admin-filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.label { display: block; font-weight: 700; margin-bottom: 8px; }
.status { display: inline-flex; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status.green { background: #dcfce7; color: #166534; }
.status.yellow { background: #fef3c7; color: #92400e; }
.status.gray { background: #e5e7eb; color: #374151; }
.inline-form { display: inline; }
.empty-state { padding: 30px; text-align: center; color: #6b7280; }
.pagination-wrap { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin-top:24px; }
.pagination-summary { color:#6b7280; font-size:14px; }
.pagination-links { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.pagination-link { display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:40px; padding:0 12px; border:1px solid #d1d5db; border-radius:10px; background:#fff; color:#111827; font-size:14px; font-weight:600; }
.pagination-link.active { background:#1C81C5; border-color:#1C81C5; color:#fff; }
.pagination-link.disabled { color:#9ca3af; background:#f9fafb; }

.admin-login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(28, 129, 197, 0.14), transparent 34%),
    linear-gradient(135deg, #f7fbff 0%, #eef6fd 42%, #ffffff 100%);
}
.admin-login-shell {
  min-height: 100vh;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr minmax(380px, 460px);
  gap: 40px;
  align-items: center;
  padding: 48px 0;
}
.admin-login-hero {
  padding: 48px 18px 48px 6px;
}
.admin-login-brand {
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1C81C5;
  margin-bottom: 28px;
}
.admin-login-copy {
  max-width: 620px;
}
.admin-login-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(28, 129, 197, 0.08);
  color: #1C81C5;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}
.admin-login-title {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f172a;
  max-width: 680px;
}
.admin-login-text {
  margin-top: 18px;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.6;
  color: #64748b;
}
.admin-login-card-wrap {
  display: flex;
  justify-content: flex-end;
}
.admin-login-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(10px);
}
.admin-login-card-title {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}
.admin-login-card-text {
  margin-top: 10px;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.6;
  color: #64748b;
}
.admin-login-form {
  display: grid;
  gap: 16px;
}
.admin-login-form .input {
  min-height: 50px;
  border-radius: 14px;
}
.admin-login-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #475569;
}
.admin-login-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
}
@media (max-width: 1024px) {
  .container { width: min(100%, calc(100% - 24px)); }
  .topbar .container { grid-template-columns: 1fr; gap: 6px; text-align: center; }
  .header-main, .hero .container, .split-grid, .detail-layout, .admin-shell { grid-template-columns: 1fr; }
  .header-main { gap: 14px; padding: 14px 0; }
  .brand { font-size: 24px; }
  .searchbar { order: 3; }
  .actions { justify-content: flex-end; }
  .catalog-layout { grid-template-columns: 1fr; }
  .product-grid, .category-grid, .blog-grid, .info-grid, .admin-stats, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 30px 0 42px; }
  .section-title { flex-direction: column; align-items: flex-start; }
  .section-title h1, .section-title h2, .section-heading { font-size: 28px; }
  .nav-row { gap:8px; padding-bottom: 14px; }
  .nav-item::after { display:none; }
  .nav-link { padding: 9px 11px; font-size: 14px; }
  .dropdown-menu { position:static; min-width:100%; margin-top:8px; opacity:1; visibility:visible; pointer-events:auto; transform:none; display:none; }
  .dropdown.open .dropdown-menu { display:grid; }
  .mega-menu { min-width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar-title { font-size: 18px; }
  .table { min-width: 760px; }
  .table td, .table th { white-space: nowrap; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-action-bar { justify-content:flex-start; width:100%; }
  .admin-login-shell { grid-template-columns: 1fr; gap: 24px; padding: 30px 0 40px; }
  .admin-login-hero { padding: 12px 0 0; }
  .admin-login-card-wrap { justify-content: stretch; }
}
@media (max-width: 768px) {
  body { font-size: 14px; }
  .button, button { font-size: 12px; padding: 8px 10px; }
  .muted { font-size: 12px; }
  .section-title p { font-size: 12px; }
  .product-title,
  .cart-product-name,
  .sidebar-product-name { font-size: 11px; }
  body.catalog-sheet-open { overflow:hidden; }
  .catalog-mobile-trigger.icon-only {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    border-radius: 999px;
  }
  .catalog-mobile-icon { width: 15px; height: 15px; }
  .catalog-mobile-icon svg { width: 15px; height: 15px; }
  .hero .container { padding: 40px 0; }
  .hero h1 { font-size: clamp(28px, 10vw, 42px); }
  .hero-card { padding: 20px; border-radius: 18px; }
  .product-grid, .category-grid, .blog-grid, .info-grid, .admin-stats, .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .catalog-toolbar { width: 100%; }
  .catalog-sort-form-desktop { display:none; }
  .catalog-mobile-controls { display:flex; align-items:center; justify-content:flex-end; gap:7px; margin-bottom:10px; width:100%; }
  .catalog-sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 112;
    max-height: 82vh;
    overflow-y: auto;
    padding: 12px 12px 20px;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -18px 40px rgba(15, 23, 42, .18);
    transform: translateY(110%);
    transition: transform .22s ease;
  }
  .catalog-sidebar.is-open { transform: translateY(0); }
  .catalog-mobile-sheet-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:10px 10px 12px;
    border-bottom:1px solid #e5e7eb;
    margin-bottom:6px;
  }
  .catalog-mobile-sheet-head strong { font-size:15px; font-weight:800; color:#111827; }
  .catalog-mobile-overlay {
    display:block;
    position:fixed;
    inset:0;
    background:rgba(15, 23, 42, 0.4);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .2s ease, visibility .2s ease;
    z-index:111;
  }
  body.catalog-sheet-open .catalog-mobile-overlay { opacity:1; visibility:visible; pointer-events:auto; }
  .catalog-mobile-sheet {
    display:block;
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:113;
    background:#fff;
    border-radius:20px 20px 0 0;
    box-shadow: 0 -18px 40px rgba(15, 23, 42, .18);
    transform: translateY(110%);
    transition: transform .22s ease;
  }
  .catalog-mobile-sheet.is-open { transform: translateY(0); }
  .sidebar-products { gap: 10px; }
  .sidebar-product { grid-template-columns: 64px 1fr; gap: 10px; }
  .sidebar-product img { width: 64px; height: 64px; }
  .gallery-slider-box { padding: 14px; border-radius: 22px; }
  .gallery-main-image { height: 360px; }
  .gallery-main-nav { width: 40px; height: 40px; font-size: 30px; }
  .gallery-main-prev { left: 10px; }
  .gallery-main-next { right: 10px; }
  .gallery-main-counter { right: 12px; bottom: 12px; font-size: 12px; padding: 6px 10px; }
  .gallery-strip-wrap { padding: 10px; border-radius: 18px; }
  .gallery-strip { grid-auto-columns: 78px; gap: 10px; }
  .gallery-thumb img { height: 78px; }
  .detail-layout { gap: 22px; }
  .detail-purchase-form { grid-template-columns: 140px 1fr 1fr; }
  .lightbox-dialog { width: min(100vw - 24px, 980px); padding: 24px 18px 76px; }
  .split-grid > .table-card,
  .split-grid > .panel { padding: 18px; }
  .cookie-banner { left:18px; right:18px; bottom:18px; padding:20px; flex-direction:column; align-items:flex-start; }
  .cookie-banner__text { max-width:none; font-size:15px; }
  .cookie-banner__actions { width:100%; }
  .cookie-button { flex:1 1 0; min-width:0; }
}
@media (max-width: 640px) {
  .home-popular-categories,
  .home-featured-products { display: block; }
  .toast-stack { top: 84px; left: 12px; right: 12px; width: auto; }
  body { font-size: 13px; }
  body.mobile-menu-open { overflow:hidden; }
  body.mobile-cart-open { overflow:hidden; }
  .container { width: min(100%, calc(100% - 18px)); }
  .admin-filter-grid { grid-template-columns: 1fr; }
  .admin-login-shell { width: min(100%, calc(100% - 20px)); gap: 18px; }
  .admin-login-hero { padding: 8px 0 0; }
  .admin-login-brand { font-size: 28px; margin-bottom: 18px; }
  .admin-login-title { font-size: 34px; }
  .admin-login-text { font-size: 15px; }
  .admin-login-card { padding: 22px 18px; border-radius: 22px; }
  .topbar { font-size: 12px; background:#111f4d; }
  .topbar .container { padding: 6px 0; }
  .header { position: sticky; top: 0; z-index: 120; }
  .header-main { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding: 9px 0 7px; }
  .brand { font-size: 18px; }
  .searchbar { order: 4; grid-column: 1 / -1; }
  .searchbar form { grid-template-columns: 1fr auto; gap: 0; border-radius:12px; }
  .searchbar input, .input, .textarea, .select { padding: 8px 9px; font-size: 12px; }
  .searchbar input { padding: 9px 10px; }
  .search-submit { width: 40px; min-width: 40px; height: 38px; padding: 0; border-left: 1px solid #e2e8f0; }
  .search-submit-icon { width: 14px; height: 14px; }
  .search-submit-icon svg { width: 14px; height: 14px; }
  .search-submit-text { display: none; }
  .button, button { width: 100%; padding: 7px 10px; font-size: 11px; }
  .actions { justify-content: flex-end; flex-wrap: nowrap; }
  .cart-chip { width: auto; justify-content: center; padding: 7px 9px; min-width: 72px; font-size: 11px; }
  .cart-chip-icon { width:38px; min-width:38px; height:38px; padding:0; }
  .cart-chip-glyph { width:16px; height:16px; }
  .cart-chip-glyph svg { width:16px; height:16px; }
  .cart-chip-icon strong { top:-3px; right:-3px; width:17px; height:17px; font-size:9px; }
  .cart-preview-dropdown { display:none; }
  .mobile-menu-toggle { display:grid; place-items:center; flex:0 0 auto; width:38px; min-width:38px; height:38px; }
  .mobile-menu-toggle-icon { width:16px; height:16px; }
  .mobile-menu-toggle-icon svg { width:16px; height:16px; }
  .nav-row { display:none; }
  .nav-item { padding: 0 0 2px; margin-bottom: 0; }
  .nav-link { padding: 10px 12px; font-size: 14px; background: #f8fafc; border: 1px solid #e5e7eb; }
  .nav-link::before { display: none; }
  .dropdown-trigger::after { width: 7px; height: 7px; }
  .dropdown-menu { min-width: 220px; padding: 10px; border-radius: 14px; }
  .mega-menu { min-width: 220px; grid-template-columns: 1fr; }
  .dropdown-link { padding: 10px 12px; white-space: normal; }
  .dropdown-submenu { padding-left: 8px; }
  .mobile-menu-overlay { display:block; position:fixed; inset:0; background:rgba(15, 23, 42, 0.38); opacity:0; visibility:hidden; pointer-events:none; transition:opacity .2s ease, visibility .2s ease; z-index:90; }
  .mobile-menu-drawer { display:flex; flex-direction:column; position:fixed; top:0; right:0; width:min(88vw, 360px); height:100vh; height:100dvh; max-height:100dvh; background:#fff; box-shadow:-18px 0 45px rgba(15, 23, 42, .16); transform:translateX(100%); transition:transform .22s ease; z-index:95; overflow:hidden; overscroll-behavior:contain; }
  body.mobile-menu-open .mobile-menu-overlay { opacity:1; visibility:visible; pointer-events:auto; }
  body.mobile-menu-open .mobile-menu-drawer { transform:translateX(0); }
  .mobile-cart-overlay { display:block; position:fixed; inset:0; background:rgba(15, 23, 42, 0.38); opacity:0; visibility:hidden; pointer-events:none; transition:opacity .2s ease, visibility .2s ease; z-index:96; }
  .mobile-cart-drawer { display:flex; flex-direction:column; position:fixed; top:0; right:0; width:min(86vw, 420px); max-width:420px; height:100vh; height:100dvh; max-height:100dvh; background:#fff; box-shadow:-18px 0 45px rgba(15, 23, 42, .18); transform:translateX(100%); transition:transform .22s ease; z-index:97; overscroll-behavior:contain; }
  body.mobile-cart-open .mobile-cart-overlay { opacity:1; visibility:visible; pointer-events:auto; }
  body.mobile-cart-open .mobile-cart-drawer { transform:translateX(0); }
  .mobile-cart-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 14px 10px; border-bottom:1px solid #e5e7eb; }
  .mobile-cart-title { font-size:16px; font-weight:800; letter-spacing:-0.02em; text-transform:uppercase; }
  .mobile-cart-close { width:auto; height:auto; padding:0; background:transparent; border:0; color:#6b7280; font-size:30px; line-height:1; }
  .mobile-cart-body { flex:1; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; padding:8px 14px; }
  .mobile-cart-list { display:grid; gap:0; }
  .mobile-cart-item { display:grid; grid-template-columns:72px 1fr auto; gap:14px; align-items:start; padding:14px 0; border-bottom:1px solid #eef2f7; }
  .mobile-cart-item-image { width:72px; height:72px; border-radius:14px; object-fit:cover; background:#fff; }
  .mobile-cart-item-content { min-width:0; }
  .mobile-cart-item-name { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; text-overflow:ellipsis; font-size:15px; line-height:1.35; font-weight:600; color:#1f2937; }
  .mobile-cart-item-meta { margin-top:6px; font-size:14px; color:#6b7280; }
  .mobile-cart-remove-form { align-self:start; }
  .mobile-cart-remove { width:auto; height:auto; padding:0; background:transparent; border:0; color:#9ca3af; font-size:28px; line-height:1; }
  .mobile-cart-footer { position:sticky; bottom:0; padding:12px 14px calc(14px + env(safe-area-inset-bottom)); border-top:1px solid #e5e7eb; background:#fff; }
  .mobile-cart-subtotal { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:16px; font-weight:700; color:#1f2937; margin-bottom:14px; }
  .mobile-cart-subtotal strong { font-size:18px; }
  .mobile-cart-actions { display:grid; gap:10px; }
  .mobile-cart-button { display:inline-flex; align-items:center; justify-content:center; min-height:42px; border-radius:12px; font-size:13px; font-weight:600; text-align:center; }
  .mobile-cart-button.view-cart { border:1px solid #d1d5db; color:#111827; background:transparent; }
  .mobile-cart-button.checkout { background:transparent; color:#111f4d; border:1px solid #111f4d; }
  .mobile-menu-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 14px 12px; border-bottom:1px solid #e5e7eb; position:sticky; top:0; z-index:1; background:#fff; }
  .mobile-menu-head strong { font-size:18px; }
  .mobile-menu-close { width:38px; height:38px; padding:0; border-radius:999px; background:#f8fafc; color:#111827; border:1px solid #e5e7eb; font-size:24px; line-height:1; }
  .mobile-menu-body { flex:1; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; padding:6px 0 calc(16px + env(safe-area-inset-bottom)); }
  .mobile-menu-link,
  .mobile-menu-group-trigger { display:flex; width:100%; align-items:center; justify-content:space-between; gap:10px; padding:12px 14px; background:#fff; color:#111827; border:0; border-bottom:1px solid #f1f5f9; font-size:14px; font-weight:600; text-align:left; letter-spacing:-0.01em; }
  .mobile-menu-link.active,
  .mobile-menu-group.open .mobile-menu-group-trigger,
  .mobile-menu-group-trigger.active { background:#f8fafc; color:#1C81C5; }
  .mobile-menu-chevron { width:12px; height:12px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); transition:transform .18s ease; }
  .mobile-menu-group.open .mobile-menu-chevron { transform:rotate(-135deg) translateY(-2px); }
  .mobile-submenu { display:none; padding:8px 14px 12px; background:#fff; }
  .mobile-menu-group.open .mobile-submenu { display:block; }
  .mobile-submenu-section + .mobile-submenu-section { margin-top:14px; padding-top:14px; border-top:1px solid #f1f5f9; }
  .mobile-submenu-root { display:block; padding-left:14px; font-size:15px; font-weight:600; margin-bottom:8px; color:#6b7280; line-height:1.45; }
  .mobile-submenu-root.active { color:#1C81C5; font-weight:800; }
  .mobile-submenu-child { display:block; padding-left:24px; font-size:14px; font-weight:600; margin:10px 0 6px; color:#4b5563; }
  .mobile-submenu-grandchildren { display:grid; gap:2px; padding-left:34px; }
  .mobile-submenu-leaf { display:block; padding:7px 0; color:#6b7280; font-size:14px; line-height:1.45; }
  .cookie-banner { left:12px; right:12px; bottom:12px; gap:16px; padding:18px; border-radius:18px; }
  .cookie-banner__text { font-size:14px; line-height:1.65; }
  .cookie-banner__actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .cookie-button { padding:12px 14px; font-size:13px; }
  .section { padding: 16px 0 24px; }
  .home-section + .home-section { margin-top: 0; padding-top: 26px; }
  .home-section + .home-section::before { width: calc(100% - 18px); }
  .home-section + .home-section::after { width: 64px; }
  .section-title { gap: 8px; margin-bottom: 12px; }
  .section-title h1, .section-title h2, .section-heading { font-size: 18px; line-height: 1.12; }
  .section-title p { font-size: 11px; }
  .breadcrumbs { font-size: 10px; line-height: 1.4; margin-bottom: 8px; }
  .product-grid, .category-grid, .blog-grid, .info-grid, .admin-stats, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .home-popular-categories .category-grid,
  .home-featured-products .product-grid,
  .home-latest-articles .blog-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    grid-template-columns: none;
    padding-bottom: 4px;
  }
  .home-popular-categories .category-grid > *,
  .home-featured-products .product-grid > *,
  .home-latest-articles .blog-grid > * {
    flex: 0 0 82%;
    min-width: 220px;
  }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-body { padding: 11px; gap: 7px; }
  .price { font-size: 16px; }
  .catalog-layout { gap: 12px; }
  .catalog-sidebar { gap: 2px; }
  .catalog-sidebar .sidebar-section:last-child { display: none; }
  .panel, .table-card { padding: 12px; border-radius: 14px; }
  .sidebar-title { padding: 8px 8px 0; }
  .sidebar-title::after { margin-top: 6px; }
  .sidebar-section form,
  .sidebar-products { padding: 6px 8px 8px; }
  .sidebar-section .input,
  .sidebar-section .select {
    min-height: 36px;
    height: 36px;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 8px;
  }
  .sidebar-section .select2-container--default .select2-selection--single {
    min-height: 36px;
    height: 36px;
    border-radius: 8px;
  }
  .sidebar-section .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 10px;
    padding-right: 30px;
    font-size: 12px;
  }
  .sidebar-section .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    right: 8px;
  }
  .sidebar-product { grid-template-columns: 56px 1fr; gap: 8px; padding-bottom: 8px; }
  .sidebar-product img { width: 56px; height: 56px; border-radius: 10px; }
  .detail-purchase-form { grid-template-columns: minmax(132px, 1fr) 44px 44px; gap: 10px; align-items: center; }
  .detail-quantity-control { max-width: none; width: 100%; }
  .detail-action-button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    font-size: 0;
  }
  .detail-action-icon { display: inline-flex; width: 18px; height: 18px; }
  .detail-action-label { display: none; }
  .detail-layout .price-row { flex-wrap: wrap; }
  .gallery-slider-box { padding: 10px; border-radius: 18px; }
  .gallery-main { border-radius: 14px; }
  .gallery-main-image { height: 280px; border-radius: 12px; }
  .gallery-main-nav { width: 38px; height: 38px; font-size: 26px; background: rgba(255,255,255,.96); }
  .gallery-main-prev { left: 8px; }
  .gallery-main-next { right: 8px; }
  .gallery-main-counter { right: 10px; bottom: 10px; font-size: 12px; padding: 6px 9px; }
  .gallery-strip-wrap { padding: 8px; border-radius: 16px; }
  .gallery-strip { grid-auto-columns: 68px; gap: 8px; overflow-x: auto; }
  .gallery-thumb { border-radius: 12px; }
  .gallery-thumb img { height: 68px; border-radius: 12px; }
  .product-description-section { margin-top: 22px; padding-top: 28px; }
  .product-description-tab::before { width: 84px; top: -14px; }
  .lightbox-dialog { grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 10px; width: calc(100vw - 16px); height: min(94vh, 760px); margin: 2vh auto; padding: 18px 8px 74px; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 30px; }
  .lightbox-close { top: 6px; right: 6px; width: 40px; height: 40px; font-size: 30px; }
  .lightbox-toolbar { gap: 8px; padding: 8px 10px; width: calc(100% - 24px); justify-content: center; }
  .lightbox-tool { min-width: 38px; height: 38px; padding: 0 10px; font-size: 13px; }
  .split-grid { gap: 18px; }
  .cart-mobile-list { display:grid; gap:14px; }
  .cart-mobile-card { padding:16px 0; border-bottom:1px solid #e5e7eb; }
  .cart-mobile-card:first-child { padding-top:4px; }
  .cart-mobile-top { display:grid; grid-template-columns:72px minmax(0, 1fr); gap:12px; align-items:start; }
  .cart-mobile-image { width:72px; height:72px; border-radius:14px; object-fit:cover; }
  .cart-mobile-main { min-width:0; display:grid; gap:6px; }
  .cart-mobile-price-row { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:14px; }
  .cart-mobile-price-row strong { font-size:15px; font-weight:700; color:#1f2937; }
  .cart-mobile-actions-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; }
  .cart-mobile-qty-form { flex:1 1 auto; }
  .cart-mobile-qty-form .quantity-input { max-width:82px !important; }
  .cart-desktop-table { display:none; }
  .admin-main { padding: 18px; }
  .admin-top { align-items: flex-start; flex-direction: column; }
  .pagination-wrap { align-items: flex-start; }
  .pagination-links { gap: 6px; }
  .pagination-link { min-width: 36px; height: 36px; padding: 0 10px; font-size: 13px; }
  .admin-main { padding: 18px; }
}
