* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  color: #111827;
  background: #f5f7fb;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

/* ===================== */
/* HEADER */
/* ===================== */

.site-header {
  background: #111827;
  color: #fff;
  padding: 16px 0;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-weight: 700;
  font-size: 24px;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.main-nav a {
  color: #fff;
  opacity: 0.96;
  transition: opacity 0.2s ease;
}

.main-nav a:hover {
  opacity: 1;
}

.header-search-form,
.search-form-page {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.header-search-form input,
.search-form-page input {
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  font: inherit;
  outline: none;
}

.header-search-form button,
.search-form-page button {
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  background: #2563eb;
  color: #fff;
}

/* ===================== */
/* FOOTER */
/* ===================== */

.site-footer {
  margin-top: 50px;
  background: #111827;
  color: #fff;
  padding: 20px 0;
}

/* ===================== */
/* COMMON */
/* ===================== */

.hero,
.section,
.product-page,
.not-found-page {
  margin-top: 28px;
}

.hero {
  text-align: center;
  padding: 10px 0 4px;
}

.hero h1,
.section h1,
.section h2 {
  text-align: center;
}

.hero p {
  max-width: 760px;
  margin: 10px auto 0;
  color: #4b5563;
}

.grid {
  display: grid;
  gap: 18px;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  text-align: center;
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

.btn-danger {
  background: #dc2626;
}

/* ===================== */
/* BREADCRUMBS */
/* ===================== */

.breadcrumbs {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #555;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ===================== */
/* PRODUCTS GRID */
/* ===================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}

.product-card > a:first-child {
  display: block;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  margin: 0 auto 12px;
}

.product-image-wrap {
  position: relative;
  width: 100%;
  margin: 0 auto 12px;
}

.product-image-wrap img {
  display: block;
  margin: 0 !important;
}

.product-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
  max-width: calc(100% - 16px);
}

.product-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .01em;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .18);
  white-space: nowrap;
}

.product-badge.badge-discount { background: #dc2626; }
.product-badge.badge-new { background: #2563eb; }
.product-badge.badge-hot-discount { background: #ea580c; }
.product-badge.badge-hit-sale { background: #16a34a; }
.product-badge.badge-promo { background: #7c3aed; }
.product-badge.badge-top-price { background: #0f766e; }
.product-badge.badge-clearance { background: #be123c; }
.product-badge.badge-recommended { background: #111827; }
.product-badge.badge-limited { background: #92400e; }

.product-card h3 {
  font-size: 16px;
  margin: 12px 0 8px;
  line-height: 1.35;
  min-height: 44px;
}

.price {
  font-size: 18px;
  font-weight: 700;
  margin: 8px 0 12px;
}

.product-card-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  margin: 8px 0 14px;
}

.old-price {
  color: #8b8b8b;
  text-decoration: line-through;
  font-size: 16px;
  line-height: 1.2;
}

.current-price {
  color: #c62828;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.add-cart-btn {
  margin-top: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* ===================== */
/* CATEGORY NAV */
/* ===================== */

.subcategory-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.subcategory-btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #222;
  transition: all 0.2s ease;
}

.subcategory-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.subcategory-btn.active {
  font-weight: 700;
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

/* ===================== */
/* PAGINATION */
/* ===================== */

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #222;
  transition: all 0.2s ease;
}

.pagination-link:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.pagination-link.active {
  font-weight: 700;
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

/* ===================== */
/* PRODUCT PAGE */
/* ===================== */

.product-layout {
  display: grid;
  grid-template-columns: minmax(320px, 520px) 1fr;
  gap: 28px;
  align-items: start;
}

.product-image-box,
.product-info {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.product-image {
  width: 100%;
  object-fit: contain;
}

.product-gallery {
  display: grid;
  gap: 14px;
}

.product-gallery-main {
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-gallery-main img {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}

.product-gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 6px;
}

.product-thumb-btn {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
  cursor: pointer;
  flex: 0 0 auto;
}

.product-thumb-btn img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.product-info h1 {
  margin-top: 0;
}

.product-price-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}

.product-price {
  font-weight: 700;
  font-size: 28px;
  margin: 0;
}

.product-add-btn {
  width: auto;
  max-width: 220px;
}

/* ===================== */
/* SPECS */
/* ===================== */

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th,
.specs-table td {
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

/* ===================== */
/* CATEGORIES */
/* ===================== */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.category-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.category-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.category-card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.category-card-content {
  padding: 14px;
  text-align: center;
}

.category-card-content h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.category-card-content span {
  font-size: 14px;
  color: #666;
}

/* ===================== */
/* CART */
/* ===================== */

.cart-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.cart-item-image img {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
}

.cart-item-info h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 22px;
}

.cart-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.cart-summary {
  margin-top: 24px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.cart-actions-top {
  margin-top: 18px;
}

/* ===================== */
/* CHECKOUT */
/* ===================== */

.checkout-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 24px;
  margin-top: 20px;
}

.checkout-form-box,
.checkout-summary-box {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.checkout-form {
  display: grid;
  gap: 16px;
}

.checkout-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font: inherit;
  outline: none;
}

.checkout-alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.manager-alert {
  background: #fff7ed;
  color: #9a3412;
}

.auto-alert {
  background: #ecfdf5;
  color: #166534;
}

.checkout-item-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.checkout-total {
  font-size: 22px;
}

.checkout-note {
  color: #4b5563;
}

.checkout-submit {
  width: 100%;
  min-height: 46px;
}

.form-error-box,
.field-error {
  color: #b91c1c;
}

.form-error-box {
  background: #fef2f2;
  border-radius: 10px;
  padding: 12px 14px;
}

.field-error {
  font-size: 14px;
}

/* ===================== */
/* SEARCH / EMPTY / 404 */
/* ===================== */

.not-found-page,
.seo-text-block {
  text-align: center;
}

.seo-text-block p {
  max-width: 900px;
  margin: 0 auto 14px;
  color: #4b5563;
}

/* ===================== */
/* RESPONSIVE */
/* ===================== */

@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .product-add-btn {
    width: 100%;
    max-width: 100%;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100%, calc(100% - 20px));
  }

  .header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .logo {
    text-align: center;
  }

  .main-nav {
    justify-content: center;
  }

  .header-search-form,
  .search-form-page {
    flex-direction: column;
    width: 100%;
  }

  .header-search-form input,
  .search-form-page input,
  .header-search-form button,
  .search-form-page button {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card {
    padding: 12px;
  }

  .product-card h3 {
    font-size: 14px;
    min-height: 40px;
  }

  .current-price {
    font-size: 20px;
  }

  .old-price {
    font-size: 14px;
  }

  .add-cart-btn,
  .product-add-btn {
    width: 100%;
    max-width: 100%;
  }

  .product-layout,
  .cart-item {
    grid-template-columns: 1fr;
  }

  .product-info,
  .product-image-box,
  .checkout-form-box,
  .checkout-summary-box,
  .cart-summary {
    padding: 16px;
  }

  .category-card-image img {
    height: 140px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card img,
  .product-gallery-main img {
    aspect-ratio: 1 / 1;
  }

  .product-badges {
    top: 6px;
    left: 6px;
    gap: 4px;
  }

  .product-badge {
    padding: 5px 7px;
    font-size: 10px;
  }

  .btn {
    min-height: 42px;
  }

  .cart-item-info h2 {
    font-size: 18px;
  }

  .product-price,
  .current-price {
    font-size: 18px;
  }
}

.product-stock-badge {
  display: inline-block;
  margin: 8px 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.product-stock-badge.in-stock {
  background: #ecfdf5;
  color: #166534;
}

.product-stock-badge.out-of-stock {
  background: #fef2f2;
  color: #b91c1c;
}

.disabled-btn {
  pointer-events: none;
  opacity: 0.7;
  background: #9ca3af !important;
  cursor: not-allowed;
  display: inline-block;
  text-align: center;
}

.contact-cards{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:24px;
}

.contact-card{
  display:block;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:20px;
  padding:22px;
  box-shadow:0 10px 30px rgba(0,0,0,.05);
  transition:transform .2s ease, box-shadow .2s ease;
}

.contact-card:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 36px rgba(0,0,0,.08);
}

.contact-card-title{
  font-size:20px;
  font-weight:800;
  margin-bottom:8px;
  color:#111827;
}

.contact-card-text{
  color:#6b7280;
  line-height:1.5;
}

.contact-note{
  margin-top:24px;
  padding:18px 20px;
  border-radius:18px;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  color:#374151;
  font-weight:600;
}

@media (max-width: 768px){
  .contact-cards{
    grid-template-columns:1fr;
    gap:14px;
  }

  .contact-card{
    padding:18px;
  }

  .contact-card-title{
    font-size:18px;
  }
}

body.modal-open {
  overflow: hidden;
}

.cart-modal-overlay[hidden] {
  display: none !important;
}

.cart-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.cart-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 18px;
  padding: 28px 22px 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  text-align: center;
  animation: cartModalShow 0.2s ease;
}

@keyframes cartModalShow {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cart-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #111827;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.cart-modal-close:hover {
  background: #e5e7eb;
}

.cart-modal-icon {
  font-size: 42px;
  margin-bottom: 10px;
}

.cart-modal h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.cart-modal p {
  margin: 0 0 20px;
  color: #4b5563;
}

.cart-modal-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.cart-modal-actions .btn {
  width: 100%;
}

.cart-modal-continue {
  background: #111827;
}

@media (min-width: 480px) {
  .cart-modal-actions {
    grid-template-columns: 1fr 1fr;
  }
}

/* PRODUCT LEFT COLUMN */
.product-left-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* RELATED PRODUCTS */
.related-products {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.related-products h2 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.25;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.related-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}

.related-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  margin: 0 auto 10px;
}

.related-card h3 {
  font-size: 14px;
  line-height: 1.35;
  margin: 8px 0;
  min-height: 38px;
}

.related-card .product-card-price {
  margin: 8px 0 12px;
}

.related-card .btn,
.related-card .disabled-btn {
  margin-top: auto;
  width: 100%;
}

.disabled-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  background: #9ca3af;
  color: #fff;
  font-weight: 700;
  text-align: center;
  border: 0;
  cursor: default;
}

/* DESKTOP / MOBILE SWITCH */
.related-products-mobile {
  display: none;
}

.related-products-desktop {
  display: block;
}

@media (max-width: 899px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .related-products-desktop {
    display: none;
  }

  .related-products-mobile {
    display: block;
    margin-top: 24px;
  }
}

@media (max-width: 640px) {
  .related-products {
    padding: 16px;
  }

  .related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .related-card {
    padding: 10px;
  }

  .related-card h3 {
    font-size: 13px;
    min-height: 34px;
  }
}  

.header-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-topline-right {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-logo-image {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 4px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 700;
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-links span {
  color: #fff;
  opacity: 0.92;
}

.footer-links a:hover {
  opacity: 1;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-topline {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .header-topline-right {
    gap: 10px;
  }
}

.top-bar-ad-wrap,
.after-header-ad-wrap,
.before-footer-ad-wrap {
  margin-top: 18px;
}

.site-ad {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
  border: 1px solid #e5e7eb;
  max-width: 100%;
}

.site-ad-media-link {
  display: block;
}

.site-ad-media {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #fff;
}

.site-ad-content {
  padding: 18px;
  text-align: center;
}

.site-ad-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.site-ad-text {
  color: #4b5563;
  line-height: 1.6;
}

.site-ad-button {
  margin-top: 14px;
}

.before-footer-ad-wrap .site-ad-content {
  text-align: center;
}

.before-footer-ad-wrap .site-ad-button {
  margin-left: auto;
  margin-right: auto;
}

.popup-ad-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9998;
}

.popup-ad-wrap {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 760px);
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  z-index: 9999;
  padding: 16px;
}

.popup-ad-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.admin-ad-box {
  padding: 20px 0;
  border-top: 1px solid #e5e7eb;
}

.admin-ad-box:first-child {
  border-top: 0;
  padding-top: 0;
}

.admin-ad-preview {
  margin-top: 14px;
}

.admin-ad-preview-label {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

.admin-ad-preview img {
  width: 240px;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
  .site-ad-media {
    max-height: 220px;
  }

  .site-ad-title {
    font-size: 20px;
  }

  .site-ad-content {
    padding: 14px;
  }

  .site-ad-button {
    width: 100%;
  }
}

.static-page-content {
  line-height: 1.7;
}

.static-page-content h2,
.static-page-content h3 {
  margin-top: 24px;
}

.static-page-content p:first-child {
  margin-top: 0;
}

.static-page-content {
  line-height: 1.7;
}

.static-page-content h2,
.static-page-content h3 {
  margin-top: 24px;
}

.static-page-content p:first-child {
  margin-top: 0;
}

.lighting-hero {
  margin-top: 28px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.14);
}

.lighting-hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 24px;
  padding: 34px;
}

.lighting-hero-text h1 {
  margin: 10px 0 14px;
  font-size: 38px;
  line-height: 1.15;
  text-align: left;
}

.lighting-hero-text p {
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: 16px;
  line-height: 1.7;
}

.lighting-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  font-size: 13px;
  font-weight: 700;
}

.lighting-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.lighting-ghost-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
}

.lighting-hero-visual img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 18px;
}

.lighting-subcat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.lighting-subcat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
  border: 1px solid #e5e7eb;
  transition: transform .18s ease, box-shadow .18s ease;
  min-width: 0;
  height: 100%;
}

.lighting-subcat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,.10);
}

.lighting-subcat-image {
  width: 100%;
  height: 180px;
  min-height: 180px;
  max-height: 180px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lighting-subcat-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.lighting-subcat-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 12px 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.blog-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
}

.blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-card-content {
  padding: 18px;
}

.blog-card-date,
.article-meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
}

.article-page {
  max-width: 920px;
  margin: 0 auto;
}

.article-cover img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 18px;
  margin: 16px 0 20px;
}

.article-excerpt {
  font-size: 18px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 22px;
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 10px 0 14px;
  }

  .site-header .container {
    width: min(100%, calc(100% - 20px));
  }

  .header-topline {
    padding: 6px 0 10px;
    gap: 6px;
    align-items: flex-start;
    font-size: 12px;
  }

  .header-topline-left span,
  .header-topline-right a {
    font-size: 12px;
    line-height: 1.35;
  }

  .header-topline-right {
    gap: 8px;
  }

  .header-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 4px 0 0;
  }

  .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    font-size: 16px;
    line-height: 1.2;
  }

  .site-logo-image {
    width: 34px;
    height: 34px;
    padding: 3px;
  }

  .main-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .header-search-form {
    order: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    width: 100%;
    margin: 0 0 6px;
  }

  .header-search-form input[type="text"] {
    min-width: 0;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-size: 15px;
    border-radius: 14px;
  }

  .header-search-form button {
    width: 110px;
    min-width: 110px;
    height: 46px;
    padding: 0 14px;
    font-size: 15px;
    border-radius: 14px;
  }

  .main-nav > a:first-child {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    font-size: 14px;
    line-height: 1;
  }

  .main-nav > a:last-child {
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    font-size: 14px;
    line-height: 1;
  }

  .main-nav > a:not(:first-child):not(:last-child) {
    order: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    font-size: 14px;
    line-height: 1;
  }

  .main-nav {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav > a:first-child,
  .main-nav > a:last-child,
  .main-nav .header-search-form {
    flex: 0 0 auto;
  }
}

/* MOBILE HEADER WITH BURGER */
.mobile-logo-row,
.mobile-actions-row,
.mobile-search-row {
  display: none;
}

.desktop-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  visibility: hidden;
  transition: .2s ease;
  z-index: 9998;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #0f172a;
  color: #fff;
  z-index: 9999;
  transition: left .25s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  padding: 18px 16px;
  overflow-y: auto;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.mobile-menu-title {
  font-size: 20px;
  font-weight: 700;
}

.mobile-menu-close,
.mobile-menu-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  color: #fff;
}

body.mobile-menu-open {
  overflow: hidden;
}

body.mobile-menu-open .mobile-menu-overlay {
  opacity: 1;
  visibility: visible;
}

body.mobile-menu-open .mobile-menu-drawer {
  left: 0;
}

  /* ===================== */
/* NEW MOBILE HEADER */
/* ===================== */

  .header-topline {
    padding: 6px 0 10px;
    gap: 6px;
    align-items: flex-start;
    font-size: 12px;
  }

  .header-topline-left span,
  .header-topline-right a {
    font-size: 12px;
    line-height: 1.35;
  }

  .header-topline-right {
    gap: 8px;
  }

  .mobile-logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0 4px;
  }

  .mobile-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
    color: #fff;
  }

  .site-logo-image {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 3px;
  }

  .mobile-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
  }

  .mobile-menu-toggle,
  .mobile-cart-link {
    min-height: 46px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
  }

  .mobile-menu-toggle {
    width: 56px;
    min-width: 56px;
    font-size: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .mobile-cart-link {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 700;
  }

  .mobile-search-row {
    margin-top: 12px;
  }

  .mobile-search-row .header-search-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .mobile-search-row .header-search-form input[type="text"] {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0 14px;
    font-size: 15px;
    border-radius: 14px;
    box-sizing: border-box;
  }

  .mobile-search-row .header-search-form button {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    font-size: 15px;
    border-radius: 14px;
  }

  .mobile-catalog-row {
    margin-top: 12px;
  }

  .mobile-catalog-btn {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.06);
    color: #fff;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
  }

  .mobile-catalog-icon {
    font-size: 22px;
    line-height: 1;
  }

  .mobile-menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    opacity: 0;
    visibility: hidden;
    transition: .2s ease;
    z-index: 9998;
  }

  .mobile-menu-drawer {
    display: block;
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    max-width: 84vw;
    height: 100vh;
    background: #0f172a;
    color: #fff;
    z-index: 9999;
    transition: left .25s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    padding: 18px 16px;
    overflow-y: auto;
  }

  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
  }

  .mobile-menu-title {
    font-size: 20px;
    font-weight: 700;
  }

  .mobile-menu-close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
  }

  .mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-menu-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.05);
    color: #fff;
    font-size: 15px;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  body.mobile-menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
  }

  body.mobile-menu-open .mobile-menu-drawer {
    left: 0;
  }

/* FIX DESKTOP HEADER AFTER MOBILE REWORK */
.desktop-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.desktop-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 24px;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.desktop-nav a {
  color: #fff;
  opacity: 0.96;
  transition: opacity 0.2s ease;
}

.desktop-nav a:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .lighting-subcat-card {
    border-radius: 16px;
  }

  .lighting-subcat-card span {
    min-height: 52px;
    padding: 10px 12px;
    font-size: 15px;
  }
}

.lighting-subcat-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.lighting-subcat-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 14px;
  text-align: center;
  line-height: 1.25;
  font-weight: 700;
}

  .lighting-subcat-card span {
    min-height: 50px;
    padding: 10px 12px;
    font-size: 15px;
  }
  /* ===================== */
/* LIGHTING SECTION CLEAN */
/* ===================== */

.lighting-subcat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.lighting-subcat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease;
  min-width: 0;
  height: 100%;
}

.lighting-subcat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,.10);
}

.lighting-subcat-image {
  width: 100%;
  height: 180px;
  min-height: 180px;
  max-height: 180px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lighting-subcat-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.lighting-subcat-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  font-size: 15px;
  color: #111827;
}

.lighting-benefits-grid,
.lighting-use-grid,
.lighting-articles-placeholder {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.lighting-benefit-card,
.lighting-use-card,
.lighting-article-card,
.lighting-faq-item {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
  border: 1px solid #e5e7eb;
}

.lighting-benefit-card h3,
.lighting-use-card h3,
.lighting-article-card h3,
.lighting-faq-item h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
  color: #111827;
}

.lighting-benefit-card p,
.lighting-use-card p,
.lighting-article-card p,
.lighting-faq-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
}

.lighting-faq {
  display: grid;
  gap: 16px;
}

/* category chips */
.subcategory-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.subcategory-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #222;
  font-weight: 600;
  transition: all .2s ease;
}

.subcategory-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.subcategory-btn.active {
  font-weight: 700;
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

/* desktop */
@media (max-width: 1100px) {
  .lighting-subcat-grid,
  .lighting-benefits-grid,
  .lighting-use-grid,
  .lighting-articles-placeholder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* mobile */
@media (max-width: 768px) {
  .lighting-hero-content {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 16px;
  }

  .lighting-hero-text h1 {
    font-size: 24px;
    line-height: 1.2;
  }

  .lighting-hero-text p {
    font-size: 14px;
    line-height: 1.6;
  }

  .lighting-hero-visual img {
    height: 210px;
  }

  .lighting-hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .lighting-hero-actions .btn {
    width: 100%;
  }

  .lighting-subcat-grid,
  .lighting-benefits-grid,
  .lighting-use-grid,
  .lighting-articles-placeholder,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .lighting-subcat-card,
  .lighting-benefit-card,
  .lighting-use-card,
  .lighting-article-card {
    border-radius: 16px;
  }

  .lighting-subcat-image {
    height: 130px;
    min-height: 130px;
    max-height: 130px;
  }

  .lighting-subcat-card span {
    min-height: 48px;
    padding: 10px 10px;
    font-size: 14px;
  }

  .lighting-benefit-card,
  .lighting-use-card,
  .lighting-article-card,
  .lighting-faq-item {
    padding: 14px;
  }

  .lighting-benefit-card h3,
  .lighting-use-card h3,
  .lighting-article-card h3,
  .lighting-faq-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .lighting-benefit-card p,
  .lighting-use-card p,
  .lighting-article-card p,
  .lighting-faq-item p {
    font-size: 14px;
    line-height: 1.6;
  }

  .subcategory-nav {
    gap: 8px;
  }

  .subcategory-btn {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* very small phones */
@media (max-width: 480px) {
  .lighting-subcat-grid,
  .lighting-benefits-grid,
  .lighting-use-grid,
  .lighting-articles-placeholder,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lighting-subcat-image {
    height: 120px;
    min-height: 120px;
    max-height: 120px;
  }

  .lighting-subcat-card span {
    font-size: 13px;
  }
}

/* very small phones */
@media (max-width: 480px) {
  .lighting-subcat-grid,
  .lighting-benefits-grid,
  .lighting-use-grid,
  .lighting-articles-placeholder,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lighting-subcat-image {
    height: 120px;
    min-height: 120px;
    max-height: 120px;
  }

  .lighting-subcat-card span {
    font-size: 13px;
  }
}

/* scroll to top */
.scroll-top-btn {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease;
  z-index: 10050;
  backdrop-filter: blur(6px);
}

.scroll-top-btn:hover {
  background: #2563eb;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .scroll-top-btn {
    right: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
  }

  .scroll-top-icon {
    width: 20px;
    height: 20px;
  }
}

/* mobile menu final fix */
.mobile-header,
.mobile-menu-overlay,
.mobile-menu-drawer {
  display: none;
}

@media (min-width: 769px) {
  .desktop-header-row {
    display: flex !important;
  }

  .mobile-header,
  .mobile-menu-overlay,
  .mobile-menu-drawer {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .desktop-header-row {
    display: none !important;
  }

  .mobile-header {
    display: block !important;
  }

  .mobile-menu-overlay,
  .mobile-menu-drawer {
    display: block !important;
  }

  .mobile-menu-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, .5) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: .2s ease !important;
    z-index: 9998 !important;
  }

  .mobile-menu-drawer {
    position: fixed !important;
    top: 0 !important;
    left: -320px !important;
    width: 300px !important;
    max-width: 84vw !important;
    height: 100vh !important;
    background: #0f172a !important;
    color: #fff !important;
    z-index: 9999 !important;
    transition: left .25s ease !important;
    box-shadow: 0 20px 60px rgba(0,0,0,.25) !important;
    padding: 18px 16px !important;
    overflow-y: auto !important;
  }

  body.mobile-menu-open {
    overflow: hidden !important;
  }

  body.mobile-menu-open .mobile-menu-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.mobile-menu-open .mobile-menu-drawer {
    left: 0 !important;
  }
}

/* mobile menu final fix */
.mobile-header,
.mobile-menu-overlay,
.mobile-menu-drawer {
  display: none;
}

@media (min-width: 769px) {
  .desktop-header-row {
    display: flex !important;
  }

  .mobile-header,
  .mobile-menu-overlay,
  .mobile-menu-drawer {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .desktop-header-row {
    display: none !important;
  }

  .mobile-header {
    display: block !important;
  }

  .mobile-menu-overlay,
  .mobile-menu-drawer {
    display: block !important;
  }

  .mobile-menu-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, .5) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: .2s ease !important;
    z-index: 9998 !important;
  }

  .mobile-menu-drawer {
    position: fixed !important;
    top: 0 !important;
    left: -320px !important;
    width: 300px !important;
    max-width: 84vw !important;
    height: 100vh !important;
    background: #0f172a !important;
    color: #fff !important;
    z-index: 9999 !important;
    transition: left .25s ease !important;
    box-shadow: 0 20px 60px rgba(0,0,0,.25) !important;
    padding: 18px 16px !important;
    overflow-y: auto !important;
  }

  body.mobile-menu-open {
    overflow: hidden !important;
  }

  body.mobile-menu-open .mobile-menu-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.mobile-menu-open .mobile-menu-drawer {
    left: 0 !important;
  }
}

.static-page-content a {
  color: #1d4ed8;
  text-decoration: underline;
  font-weight: 600;
}

.static-page-content a:hover {
  color: #2563eb;
}

/* ===================== */
/* UNIVERSAL CATEGORY LANDING */
/* ===================== */

.static-page-content a {
  color: #1d4ed8;
  text-decoration: underline;
  font-weight: 600;
}

.static-page-content a:hover {
  color: #2563eb;
}

.category-hero {
  margin-top: 28px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.category-hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 24px;
  padding: 34px;
}

.category-hero-text h1 {
  margin: 10px 0 14px;
  font-size: 38px;
  line-height: 1.15;
  text-align: left;
}

.category-hero-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.7;
}

.category-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
}

.category-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.category-ghost-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
}

.category-hero-visual img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 18px;
}

.category-subcat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-subcat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-width: 0;
  height: 100%;
}

.category-subcat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.10);
}

.category-subcat-image {
  width: 100%;
  height: 180px;
  min-height: 180px;
  max-height: 180px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-subcat-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.category-subcat-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 12px 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}

.category-benefits-grid,
.category-use-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-benefit-card,
.category-use-card,
.category-faq-item {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}

.category-benefit-card h3,
.category-use-card h3,
.category-faq-item h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.category-faq {
  display: grid;
  gap: 16px;
}

@media (max-width: 1100px) {
  .category-subcat-grid,
  .category-benefits-grid,
  .category-use-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .category-hero-content {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .category-hero-text h1 {
    font-size: 28px;
  }

  .category-hero-visual img {
    height: 230px;
  }

  .category-subcat-grid,
  .category-benefits-grid,
  .category-use-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .category-hero-actions .btn {
    width: 100%;
  }

  .category-subcat-image {
    height: 130px;
    min-height: 130px;
    max-height: 130px;
  }

  .category-subcat-card span {
    min-height: 50px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .category-benefit-card,
  .category-use-card,
  .category-faq-item {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .category-subcat-grid,
  .category-benefits-grid,
  .category-use-grid,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-subcat-image {
    height: 120px;
    min-height: 120px;
    max-height: 120px;
  }

  .category-subcat-card span {
    font-size: 13px;
  }
}

/* ===================== */
/* REVIEWS */
/* ===================== */

.product-reviews-section {
  margin-top: 28px;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.reviews-head h2 {
  margin: 0;
}

.reviews-head span {
  color: #6b7280;
  font-weight: 700;
}

.reviews-list {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.review-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  background: #f8fafc;
}

.review-hidden {
  display: none;
}

.review-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.review-stars {
  color: #f59e0b;
  white-space: nowrap;
  font-weight: 700;
}

.review-card p {
  margin: 8px 0;
  color: #374151;
}

.review-card small {
  color: #6b7280;
}

.reviews-empty {
  color: #6b7280;
  margin-bottom: 18px;
}

.review-form {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.review-form h3 {
  margin: 0;
}

.review-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.review-form input,
.review-form select,
.review-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d7dbe3;
  border-radius: 12px;
  font: inherit;
  outline: none;
  background: #fff;
}

.review-note {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.review-alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-weight: 700;
}

.review-alert-success {
  background: #ecfdf5;
  color: #166534;
}

.review-alert-error {
  background: #fef2f2;
  color: #991b1b;
}

.reviews-more-btn {
  margin-bottom: 10px;
}

/* latest reviews footer block */

.latest-reviews-section {
  margin-top: 44px;
  padding: 34px 0 10px;
}

.latest-reviews-section h2 {
  text-align: center;
  margin: 0 0 20px;
}

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

.latest-review-card {
  display: block;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.latest-review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 34px rgba(0,0,0,0.10);
}

.latest-review-card b {
  display: block;
  margin: 8px 0;
}

.latest-review-card p {
  margin: 0 0 10px;
  color: #374151;
}

.latest-review-card span {
  display: block;
  color: #2563eb;
  font-size: 14px;
  font-weight: 700;
}

/* admin reviews */

.admin-reviews-list {
  display: grid;
  gap: 16px;
}

.admin-review-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  background: #f8fafc;
}

.admin-review-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-review-head span {
  display: block;
  color: #6b7280;
  font-size: 13px;
}

.admin-review-status {
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  height: fit-content;
}

.status-pending {
  background: #fffbeb;
  color: #92400e;
}

.status-published {
  background: #ecfdf5;
  color: #166534;
}

.status-hidden {
  background: #f3f4f6;
  color: #374151;
}

.admin-review-text {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
}

.admin-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 900px) {
  .latest-reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .product-reviews-section {
    padding: 16px;
  }

  .reviews-head,
  .review-top,
  .admin-review-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .latest-reviews-grid {
    grid-template-columns: 1fr;
  }

  .admin-review-actions .btn {
    width: 100%;
  }
}
/* ===================== */
/* MARKET BOX ALIGNMENT FIX */
/* ===================== */
.hero,
.section,
.not-found-page {
  text-align: center;
}

.section > p,
.hero > p,
.not-found-page > p {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.products-grid,
.categories-grid,
.category-subcat-grid,
.latest-reviews-grid {
  justify-items: stretch;
}

.product-card,
.category-card,
.category-subcat-card,
.latest-review-card {
  height: 100%;
}

.product-card .add-cart-btn,
.product-card .disabled-btn {
  margin-top: auto;
}

.product-card > a:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-card h3,
.category-card h3,
.category-subcat-card span {
  width: 100%;
  text-align: center;
}

.product-card-price {
  min-height: 58px;
}

.subcategory-nav,
.pagination,
.category-hero-actions,
.cart-actions,
.product-actions,
.search-form-page {
  justify-content: center;
}

.product-page .product-layout,
.checkout-layout,
.cart-item,
.category-hero-content {
  text-align: left;
}

.product-info .btn,
.checkout-submit,
.cart-summary .btn {
  width: 100%;
}

@media (max-width: 768px) {
  .section {
    margin-top: 22px;
  }

  .category-hero-content,
  .product-page .product-layout,
  .checkout-layout,
  .cart-item {
    text-align: center;
  }

  .category-hero-actions,
  .product-actions,
  .cart-actions {
    width: 100%;
  }

  .category-hero-actions .btn,
  .product-actions .btn,
  .cart-actions .btn {
    width: 100%;
  }
}

/* ==========================
   FINAL MEGA PACK: storefront UX
   ========================== */
.page-kicker {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #d4af37;
}

.cart-hero-v2,
.checkout-hero-v2 {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;
    margin: 18px 0 22px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, #071833, #102957);
    color: #fff;
    box-shadow: 0 14px 38px rgba(0, 0, 0, .18);
}

.cart-hero-v2 h1,
.checkout-hero-v2 h1 {
    margin: 0 0 8px;
    color: #fff;
}

.cart-hero-v2 p,
.checkout-hero-v2 p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
}

.cart-total-pill,
.checkout-safe-box {
    min-width: 180px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.16);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.cart-total-pill span,
.checkout-safe-box span {
    color: rgba(255,255,255,.72);
    font-size: 13px;
}

.cart-total-pill b,
.checkout-safe-box b {
    color: #f1d592;
    font-size: 24px;
}

.empty-state-card,
.success-card-v2,
.checkout-card-v2,
.checkout-summary-v2,
.cart-summary-v2,
.cart-item-v2 {
    border: 1px solid rgba(11, 23, 54, .09);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(11, 23, 54, .08);
}

.empty-state-card,
.success-card-v2 {
    padding: 30px;
    text-align: center;
}

.cart-layout-v2,
.checkout-layout-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: start;
}

.cart-list-v2 {
    display: grid;
    gap: 14px;
}

.cart-item-v2 {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
}

.cart-item-v2 .cart-item-image {
    width: 118px;
    height: 118px;
    border-radius: 18px;
    overflow: hidden;
    background: #f4f6fb;
}

.cart-item-v2 .cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-v2 h2 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.28;
}

.cart-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #45526c;
    font-size: 14px;
}

.cart-qty-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.btn-small {
    padding: 8px 12px;
    min-height: auto;
}

.cart-summary-v2,
.checkout-summary-v2 {
    position: sticky;
    top: 18px;
    padding: 18px;
}

.cart-summary-v2 .btn,
.checkout-main-btn {
    width: 100%;
    margin-top: 10px;
    text-align: center;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid #eef1f7;
    border-bottom: 1px solid #eef1f7;
}

.cart-summary-total b {
    font-size: 22px;
    color: #001f3f;
}

.cart-trust-list,
.checkout-trust-list,
.product-trust-v2 {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    color: #42506b;
    font-size: 14px;
}

.checkout-card-v2,
.checkout-summary-v2 {
    padding: 20px;
}

.checkout-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.checkout-form-v2 label {
    display: grid;
    gap: 7px;
    font-weight: 700;
    color: #16223a;
}

.checkout-form-v2 input,
.checkout-form-v2 select,
.checkout-form-v2 textarea {
    width: 100%;
    border: 1px solid #dfe5ef;
    border-radius: 14px;
    padding: 12px 13px;
    font: inherit;
    background: #fff;
}

.checkout-more {
    margin: 14px 0;
    padding: 14px;
    border: 1px solid #e5eaf3;
    border-radius: 18px;
    background: #f8fafd;
}

.checkout-more summary {
    cursor: pointer;
    font-weight: 800;
    color: #001f3f;
}

.checkout-privacy-note {
    margin: 12px 0 0;
    color: #69758c;
    font-size: 13px;
}

.checkout-items-mini {
    display: grid;
    gap: 10px;
}

.checkout-item-row-v2 {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.checkout-mini-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    background: #f4f6fb;
}

.checkout-mini-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.success-page-v2 {
    padding-top: 22px;
    padding-bottom: 34px;
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e8f7ee;
    color: #0a8f3f;
    font-size: 42px;
    font-weight: 900;
}

.success-lead {
    max-width: 620px;
    margin: 0 auto 20px;
    color: #4a5670;
}

.success-order-box {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 22px auto;
    max-width: 900px;
}

.success-order-box div,
.success-items div {
    padding: 14px;
    border-radius: 16px;
    background: #f6f8fc;
    text-align: left;
}

.success-order-box span,
.success-items span {
    display: block;
    color: #6b758b;
    font-size: 13px;
}

.success-items {
    max-width: 760px;
    margin: 18px auto;
    text-align: left;
}

.success-items div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.success-next-steps {
    max-width: 640px;
    margin: 20px auto;
    text-align: left;
    color: #3f4d67;
}

.success-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.product-price-wrap-v2 {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.discount-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    background: #fff2d2;
    color: #7a4d00;
    font-weight: 900;
    font-size: 13px;
}

.product-actions-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

.product-info-cards-v2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.product-info-cards-v2 div {
    padding: 14px;
    border-radius: 16px;
    background: #f7f9fd;
    border: 1px solid #edf1f7;
}

.product-info-cards-v2 b,
.product-info-cards-v2 span {
    display: block;
}

.product-info-cards-v2 span {
    margin-top: 4px;
    color: #58667f;
    font-size: 14px;
}

.mobile-sticky-buy {
    display: none;
}

@media (max-width: 840px) {
    .cart-hero-v2,
    .checkout-hero-v2,
    .cart-layout-v2,
    .checkout-layout-v2,
    .checkout-grid-2,
    .success-order-box,
    .product-info-cards-v2 {
        grid-template-columns: 1fr;
    }

    .cart-hero-v2,
    .checkout-hero-v2 {
        display: grid;
    }

    .cart-summary-v2,
    .checkout-summary-v2 {
        position: static;
    }

    .cart-item-v2 {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .cart-item-v2 .cart-item-image {
        width: 86px;
        height: 86px;
    }

    .mobile-sticky-buy {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 12px 35px rgba(0,0,0,.2);
        border: 1px solid #edf1f7;
    }

    .mobile-sticky-buy div {
        min-width: 0;
        display: grid;
    }

    .mobile-sticky-buy span {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 12px;
        color: #66728a;
    }

    body:has(.mobile-sticky-buy) {
        padding-bottom: 84px;
    }
}

/* ===================== */
/* FINAL MOBILE HEADER SEARCH FIX */
/* ===================== */

.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;
}

.header-cart-link [data-cart-count] {
  font-weight: 800;
}

@media (min-width: 769px) {
  .desktop-header-row {
    display: flex !important;
  }

  .mobile-header,
  .mobile-menu-overlay,
  .mobile-menu-drawer {
    display: none !important;
  }

  .desktop-nav .header-search-form {
    display: flex;
    flex: 1 1 280px;
    max-width: 380px;
  }

  .desktop-nav .header-search-form input[type="search"] {
    min-width: 180px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 8px 0 10px !important;
    position: relative;
    z-index: 9000;
  }

  .site-header .container {
    width: calc(100% - 16px) !important;
  }

  .header-topline {
    display: none !important;
  }

  .desktop-header-row {
    display: none !important;
  }

  .mobile-header {
    display: block !important;
    width: 100% !important;
  }

  .mobile-main-row {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .mobile-menu-toggle {
    width: 46px !important;
    min-width: 46px !important;
    height: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.09) !important;
    color: #fff !important;
    font-size: 25px !important;
    line-height: 1 !important;
    cursor: pointer;
  }

  .mobile-logo {
    min-width: 0;
    height: 44px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px;
    padding: 0 6px;
    color: #fff;
    overflow: hidden;
    text-align: center;
  }

  .mobile-logo .site-logo-image {
    flex: 0 0 30px;
    width: 30px !important;
    height: 30px !important;
    border-radius: 9px;
    padding: 3px;
  }

  .mobile-logo-text {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    line-height: 1.15;
    font-weight: 800;
  }

  .mobile-cart-link {
    position: relative;
    width: 46px !important;
    min-width: 46px !important;
    height: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.09) !important;
    color: #fff !important;
    font-weight: 800 !important;
  }

  .mobile-cart-icon {
    font-size: 20px;
    line-height: 1;
  }

  .mobile-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    border: 2px solid #111827;
    font-size: 11px;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  }

  .mobile-cart-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .mobile-search-row {
    display: block !important;
    width: 100% !important;
    margin-top: 8px !important;
  }

  .mobile-search-row .mobile-header-search {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 78px !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
    flex-wrap: nowrap !important;
  }

  .mobile-search-row .mobile-header-search input[type="search"] {
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    padding: 0 13px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: #fff !important;
    color: #111827 !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
  }

  .mobile-search-row .mobile-header-search button {
    width: 78px !important;
    min-width: 78px !important;
    height: 42px !important;
    padding: 0 10px !important;
    border-radius: 14px !important;
    background: #2563eb !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
  }

  .mobile-menu-overlay,
  .mobile-menu-drawer {
    display: block !important;
  }

  .mobile-menu-overlay {
    pointer-events: none !important;
  }

  body.mobile-menu-open .mobile-menu-overlay {
    pointer-events: auto !important;
  }
}

@media (max-width: 380px) {
  .mobile-main-row {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 6px;
  }

  .mobile-menu-toggle,
  .mobile-cart-link {
    width: 42px !important;
    min-width: 42px !important;
  }

  .mobile-logo-text {
    font-size: 14px;
  }

  .mobile-search-row .mobile-header-search {
    grid-template-columns: minmax(0, 1fr) 68px !important;
    gap: 6px !important;
  }

  .mobile-search-row .mobile-header-search button {
    width: 68px !important;
    min-width: 68px !important;
    padding: 0 8px !important;
    font-size: 13px !important;
  }
}

/* ===================== */
/* DESKTOP HEADER CLEANUP */
/* ===================== */

@media (min-width: 769px) {
  .desktop-header-row {
    display: grid !important;
    grid-template-columns: minmax(190px, auto) minmax(320px, 560px) auto;
    align-items: center;
    gap: 18px;
    width: 100%;
  }

  .desktop-logo {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 260px;
    color: #fff;
  }

  .desktop-logo span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-header-search {
    justify-self: center;
    width: 100%;
    max-width: 560px;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 108px;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    flex-wrap: nowrap !important;
  }

  .desktop-header-search input[type="search"] {
    width: 100% !important;
    min-width: 0 !important;
    height: 46px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    background: #fff;
    color: #111827;
    font-size: 15px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
  }

  .desktop-header-search button {
    width: 108px;
    height: 46px;
    padding: 0 14px;
    border-radius: 15px;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
  }

  .desktop-cart-link {
    justify-self: end;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 15px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #fff;
    font-weight: 800;
    white-space: nowrap;
  }

  .desktop-cart-link b[data-cart-count] {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    line-height: 1;
  }

  .desktop-nav {
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .desktop-nav > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
    font-size: 14px;
    line-height: 1;
  }

  .desktop-nav > a:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .desktop-nav .header-search-form,
  .desktop-nav .desktop-cart-link {
    display: none !important;
  }
}

@media (min-width: 769px) and (max-width: 1050px) {
  .desktop-header-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .desktop-header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
  }

  .desktop-logo {
    max-width: none;
  }
}
