/* Matjar Misr Theme Unified Stylesheet */

/* --- base.css --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* متجر مصر - الهوية البصرية الرسمية */
  --brand-ruby: #9F1B29;            /* Ruby Red */
  --brand-ruby-dark: #7F141F;       /* Deep Ruby */
  --brand-ruby-light: #FDF2F3;      /* Soft Ruby Tint */
  --brand-misty: #C6CEC3;           /* Misty Gray */
  --brand-misty-light: #F4F6F3;     /* Light Misty Surface */
  --brand-dark: #111827;            /* Charcoal Black */
  --brand-gray-bg: #F8F9FA;
  --brand-border: #E5E7EB;
  --brand-border-misty: #D0D7CD;

  /* Theme Tokens */
  --sdg-yellow: var(--brand-ruby);
  --sdg-yellow-dark: var(--brand-ruby-dark);
  --sdg-blue: var(--brand-dark);
  --sdg-dark: var(--brand-dark);
  --sdg-gray-bg: var(--brand-gray-bg);
  --sdg-border: var(--brand-border);
  --sdg-border-light: #f3f4f6;
  --sdg-red: var(--brand-ruby);
  --sdg-green: #15803d;

  --font-family: 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  direction: rtl;
  text-align: right;
  background-color: #ffffff;
  color: #111827;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.section-wrapper {
  padding: 32px 0;
  border-bottom: 1px solid var(--sdg-border);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f3f4f6;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -14px;
  right: 0;
  width: 50px;
  height: 3px;
  background-color: var(--brand-ruby);
}

.section-view-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-ruby);
  padding: 6px 14px;
  border: 1px solid var(--brand-border);
  border-radius: 4px;
  background: #ffffff;
  transition: all 0.2s ease;
}

.section-view-all:hover {
  background: var(--brand-ruby);
  border-color: var(--brand-ruby);
  color: #ffffff;
}


/* --- components.css --- */
/* Clean Flat Product Cards Carousel (Sharaf DG Horizontal Shelf) */
.carousel-wrapper {
  position: relative;
  width: 100%;
}

.products-grid,
.products-carousel {
  display: flex !important;
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 14px 2px;
  scrollbar-width: none;
}

.products-grid::-webkit-scrollbar,
.products-carousel::-webkit-scrollbar {
  display: none;
}

.product-card {
  flex: 0 0 255px;
  min-width: 255px;
  max-width: 255px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid var(--sdg-border);
  border-radius: 4px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s ease;
}

.product-card:hover {
  border-color: #9ca3af;
}

@media (max-width: 768px) {
  .product-card {
    flex: 0 0 215px;
    min-width: 215px;
    max-width: 215px;
    padding: 10px;
  }
}

/* Carousel Navigation Arrows in Section Headers */
.carousel-nav-arrows {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.carousel-arrow-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--sdg-border);
  border-radius: 4px;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.carousel-arrow-btn:hover {
  background-color: var(--brand-ruby);
  border-color: var(--brand-ruby);
  color: #ffffff;
}

.product-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.badge-discount {
  background-color: var(--sdg-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 2px;
}

.badge-bundle {
  background-color: #1d4ed8;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
}

.product-image-wrap {
  width: 100%;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background-color: #ffffff;
}

.product-image-wrap img {
  max-height: 175px;
  max-width: 100%;
  object-fit: contain;
}

.product-brand {
  font-size: 11px;
  color: #6b7280;
  font-weight: 700;
  margin-bottom: 2px;
}

.product-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
  height: 38px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px;
}

.product-specs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
  min-height: 22px;
}

.spec-chip {
  background: #f3f4f6;
  color: #4b5563;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 2px;
}

.product-price-wrap {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--sdg-border-light);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.price-current {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

.price-current span {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-right: 2px;
}

.price-old {
  font-size: 12px;
  color: #9ca3af;
  text-decoration: line-through;
}

.product-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.btn-add-cart {
  flex: 1;
  background-color: var(--brand-ruby);
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  padding: 8px;
  border-radius: 4px;
  text-align: center;
  transition: background-color 0.15s ease;
}

.btn-add-cart:hover {
  background-color: var(--brand-ruby-dark);
}

.btn-quick-view {
  width: 34px;
  height: 34px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
}

.btn-quick-view:hover {
  background-color: #f3f4f6;
}

/* Toast Message */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #1f2937;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}

/* Simple Cart Drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  left: -380px;
  width: 360px;
  max-width: 90vw;
  height: 100%;
  background: #ffffff;
  z-index: 9999;
  border-right: 1px solid var(--sdg-border);
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.active {
  left: 0;
}

.cart-drawer-header {
  padding: 16px;
  border-bottom: 1px solid var(--sdg-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-empty {
  text-align: center;
  padding: 40px 10px;
  color: #6b7280;
  font-size: 13px;
}

.cart-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--sdg-border-light);
  align-items: center;
}

.cart-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border: 1px solid var(--sdg-border);
  border-radius: 4px;
  padding: 2px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
}

.cart-drawer-footer {
  padding: 16px;
  border-top: 1px solid var(--sdg-border);
  background: #f9fafb;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
}

.btn-checkout {
  width: 100%;
  background: var(--brand-ruby);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  display: block;
  transition: background-color 0.15s ease;
}

.btn-checkout:hover {
  background: var(--brand-ruby-dark);
}


/* --- top-bar.css --- */
.top-bar {
  background-color: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 11px;
}

.top-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
}

.top-bar-right, .top-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-phone, .top-link {
  color: #4b5563;
}

.top-phone:hover, .top-link:hover {
  color: #000000;
}

.sep {
  color: #d1d5db;
}

.lang-btn {
  font-size: 11px;
  font-weight: 700;
  color: #111827;
}

@media (max-width: 768px) {
  .top-bar-center {
    display: none;
  }
}


/* --- header.css --- */
.main-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo img {
  height: 38px;
  width: auto;
}

/* Delivery Location */
.delivery-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  cursor: pointer;
  padding: 4px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
}

.location-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.location-label {
  color: #6b7280;
}

.location-city {
  font-weight: 700;
  color: #111827;
}

/* Search Form */
.header-search-wrap {
  flex: 1;
  max-width: 580px;
  display: flex;
  position: relative;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  overflow: visible;
}

.header-search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 12px;
  font-size: 13px;
}

.search-submit-btn {
  background: var(--brand-ruby);
  color: #ffffff;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px 0 0 4px;
  transition: background-color 0.15s ease;
}

.search-submit-btn svg path {
  fill: #ffffff;
}

.search-submit-btn:hover {
  background: var(--brand-ruby-dark);
}

.search-dropdown-results {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0 0 4px 4px;
  max-height: 320px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
}

.search-dropdown-results.active {
  display: block;
}

.search-res-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
}

.search-res-item:hover {
  background: #f9fafb;
}

.search-res-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.search-res-info h4 {
  font-size: 12px;
  font-weight: 600;
}

.search-res-info span {
  font-size: 11px;
  font-weight: 700;
  color: #111827;
}

/* Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-action-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.cart-badge-num {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--sdg-red);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.cart-label {
  font-size: 11px;
  color: #6b7280;
  font-weight: 400;
}

@media (max-width: 900px) {
  .delivery-location {
    display: none;
  }
}


/* --- navbar.css --- */
.navbar.partial {
  background-color: #ffffff;
  border-bottom: 2px solid var(--brand-ruby);
}

.navbar-container {
  display: flex;
  align-items: center;
}

.categories-dropdown-wrapper {
  position: relative;
}

.categories-btn {
  background-color: var(--brand-ruby);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.15s ease;
}

.categories-btn:hover {
  background-color: var(--brand-ruby-dark);
}

.mega-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 600px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-top: none;
  display: none;
  z-index: 1000;
}

.categories-dropdown-wrapper:hover .mega-menu,
.mega-menu.active {
  display: block;
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px;
}

.mega-col h4 {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.mega-col ul li {
  margin-bottom: 6px;
}

.mega-col ul li a {
  font-size: 12px;
  color: #4b5563;
}

.mega-col ul li a:hover {
  color: var(--brand-ruby);
  font-weight: 700;
}

.navigation-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 20px;
}

.navigation-menu li a {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  padding: 10px 4px;
  display: block;
  transition: color 0.15s ease;
}

.navigation-menu li a:hover {
  color: var(--brand-ruby);
}


/* --- hero-slider.css --- */
.banner-slider {
  padding: 16px 0;
  background-color: #f8f9fa;
}

.slider-wrapper {
  border-radius: 4px;
  overflow: hidden;
}

.slider-slides .slide img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

/* ==========================================================================
   SPECIAL PROMOTIONAL 5-BANNER GRID
   ========================================================================== */
.promo-grid-section {
  padding: 16px 0 20px 0;
  background-color: #ffffff;
}

.promo-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.promo-grid-large {
  display: flex;
}

.promo-grid-large a {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  background: #f8f9fa;
}

.promo-grid-large a:hover,
.promo-grid-quad a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

.promo-grid-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.promo-grid-large:hover img,
.promo-grid-quad a:hover img {
  transform: scale(1.02);
}

.promo-grid-quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.promo-grid-quad a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  background: #f8f9fa;
}

.promo-grid-quad img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

@media (max-width: 820px) {
  .promo-grid-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .promo-grid-quad {
    gap: 8px;
  }
}

/* --- quick-categories.css --- */
.quick-categories-section {
  padding: 12px 0 20px 0;
  background-color: #ffffff;
}

.quick-cats-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

.cat-tile {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 6px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  min-height: 94px;
}

.cat-tile:hover {
  border-color: var(--brand-ruby);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.cat-tile .cat-thumb {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cat-tile .cat-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.cat-tile:hover .cat-thumb img {
  transform: scale(1.12);
}

.cat-label {
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
}

.promo-tile {
  background: #fffbeb;
  border-color: #fde68a;
}

.promo-tile .cat-thumb {
  background: #fef3c7;
}

.promo-tile .cat-label {
  color: #92400e;
}

@media (max-width: 900px) {
  .quick-cats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 500px) {
  .quick-cats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .cat-tile {
    padding: 8px 4px;
    min-height: 80px;
  }
  .cat-tile .cat-thumb {
    width: 38px;
    height: 38px;
  }
  .cat-label {
    font-size: 11px;
  }
}


/* --- flash-deals.css --- */
.flash-deals-section {
  background-color: #ffffff;
}

.countdown-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 4px 12px;
  border-radius: 4px;
}

.countdown-label {
  color: var(--sdg-red);
  font-weight: 700;
}

.timer-digits {
  font-weight: 900;
  color: var(--sdg-red);
  letter-spacing: 1px;
}


/* --- bundle-offers.css --- */
.bundle-offers-section {
  background-color: #f8fafc;
}

.bundle-count-pill {
  font-size: 12px;
  font-weight: 700;
  color: #1e3a8a;
  background: #dbeafe;
  padding: 4px 10px;
  border-radius: 4px;
}

.bundle-grid {
  display: flex !important;
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 14px 2px;
  scrollbar-width: none;
}

.bundle-grid::-webkit-scrollbar {
  display: none;
}

.bundle-card {
  flex: 0 0 340px;
  min-width: 340px;
  max-width: 340px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid var(--sdg-border);
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .bundle-card {
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 280px;
    padding: 12px;
  }
}

.bundle-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 10px;
}

.bundle-visual img.main-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.plus-sign {
  font-size: 20px;
  font-weight: 900;
  color: #6b7280;
}

.bundle-visual img.gift-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border: 1px dashed #9ca3af;
  border-radius: 4px;
  padding: 4px;
}

.bundle-content-box {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 11px;
  color: #166534;
  margin: 10px 0;
}

.bundle-content-box strong {
  display: block;
  margin-bottom: 4px;
  color: #14532d;
}

.btn-bundle-action {
  background: var(--brand-ruby);
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  padding: 8px;
  border-radius: 4px;
  text-align: center;
  margin-top: auto;
  transition: background-color 0.15s ease;
}

.btn-bundle-action:hover {
  background: var(--brand-ruby-dark);
}


/* --- home-appliances.css --- */
.home-appliances-section {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
}


/* --- major-cooling.css --- */
.major-cooling-section {
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border-color);
}


/* --- tech-showcase.css --- */
.tech-showcase-section {
  background-color: #ffffff;
}

.tech-tabs-nav {
  display: flex;
  gap: 6px;
}

.tech-tab-btn {
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #4b5563;
  border: 1px solid #d1d5db;
  background: #ffffff;
}

.tech-tab-btn.active {
  background: var(--brand-ruby);
  color: #ffffff;
  border-color: var(--brand-ruby);
}


/* --- brands.css --- */
.brands-section {
  background-color: #f8f9fa;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.brand-item {
  background: #ffffff;
  border: 1px solid var(--sdg-border);
  border-radius: 4px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #374151;
}

@media (max-width: 768px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* --- trust-features.css --- */
.trust-features-section {
  padding: 24px 0;
  background-color: #ffffff;
  border-bottom: 1px solid var(--sdg-border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-card {
  padding: 12px 14px;
  border: 1px solid var(--sdg-border);
  border-radius: 4px;
  background: #f8f9fa;
}

.trust-card h4 {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 2px;
}

.trust-card p {
  font-size: 11px;
  color: #6b7280;
}

@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* --- footer.css --- */
.site-footer {
  background-color: #1f2937;
  color: #9ca3af;
  font-size: 12px;
}

/* ==========================================================================
   BRANDS SHOWCASE SECTION
   ========================================================================== */
.brands-section {
  background-color: #f9fafb;
  padding: 32px 0;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.brand-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.brand-item:hover {
  border-color: var(--brand-ruby);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.brand-item img {
  max-height: 42px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-item:hover img {
  transform: scale(1.08);
}

@media (max-width: 900px) {
  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .brand-item {
    height: 58px;
    padding: 6px 10px;
  }
  .brand-item img {
    max-height: 32px;
  }
}

/* ==========================================================================
   TRUST FEATURES SECTION
   ========================================================================== */
.trust-features-section {
  padding: 24px 0;
  background-color: #ffffff;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-card {
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fcfdfd;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.trust-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.trust-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fef2f2;
  color: var(--brand-ruby);
}

.trust-content h4 {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 2px 0;
}

.trust-content p {
  font-size: 11px;
  color: #6b7280;
  margin: 0;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.footer-help-bar {
  background-color: #111827;
  border-bottom: 1px solid #374151;
  padding: 16px 0;
  color: #ffffff;
}

.footer-help-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-help-container h4 {
  font-size: 14px;
  font-weight: 700;
}

.btn-hotline {
  background: var(--brand-ruby);
  color: #ffffff;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 12px;
  transition: background-color 0.15s ease;
}

.btn-hotline:hover {
  background: var(--brand-ruby-dark);
}

.footer-main-links {
  padding: 32px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 24px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col ul li a {
  color: #9ca3af;
  transition: color 0.15s ease;
}

.footer-col ul li a:hover {
  color: var(--brand-ruby);
}

.footer-about-text {
  line-height: 1.6;
  margin-top: 10px;
}

.payment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pay-tag {
  background: #374151;
  color: #ffffff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
}

.footer-bottom {
  background: #0f172a;
  padding: 12px 0;
  border-top: 1px solid #374151;
  text-align: center;
  font-size: 11px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-help-container {
    flex-direction: column;
    gap: 10px;
  }
}

/* ==========================================================================
   WOOCOMMERCE CATALOG & SHOP STYLING (BRAND ALIGNED)
   ========================================================================== */
.woocommerce .woocommerce-breadcrumb {
  font-size: 13px;
  color: #6b7280;
  margin: 16px 0;
  padding: 0;
}
.woocommerce .woocommerce-breadcrumb a {
  color: #374151;
  text-decoration: none;
}
.woocommerce .woocommerce-breadcrumb a:hover {
  color: var(--brand-ruby);
}

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  margin: 24px 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

.woocommerce ul.products li.product {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 16px !important;
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
  position: relative !important;
  box-sizing: border-box !important;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
  border-color: #d1d5db !important;
}

.woocommerce ul.products li.product a.woocommerce-loop-product__link {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-decoration: none !important;
  color: inherit !important;
  flex: 1 !important;
}

.woocommerce ul.products li.product a img {
  max-height: 200px !important;
  height: 200px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  margin: 0 auto 14px auto !important;
  display: block !important;
  transition: transform 0.25s ease !important;
}

.woocommerce ul.products li.product:hover a img {
  transform: scale(1.03) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  line-height: 1.4 !important;
  margin: 8px 0 !important;
  text-align: right !important;
  width: 100% !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 40px !important;
}

.woocommerce ul.products li.product .price {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: var(--brand-ruby) !important;
  margin: 8px 0 12px 0 !important;
  width: 100% !important;
  text-align: right !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
}

.woocommerce ul.products li.product .price del {
  color: #9ca3af !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.woocommerce ul.products li.product .price ins {
  text-decoration: none !important;
  color: var(--brand-ruby) !important;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
  background: var(--brand-ruby) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 10px 14px !important;
  border-radius: 6px !important;
  text-align: center !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
  margin-top: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
  background: var(--brand-ruby-dark) !important;
}

.woocommerce ul.products li.product .onsale {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  background: var(--brand-ruby) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  line-height: 1 !important;
  min-height: auto !important;
  min-width: auto !important;
  margin: 0 !important;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination {
  margin: 36px 0 !important;
  text-align: center !important;
}

.woocommerce nav.woocommerce-pagination ul {
  display: inline-flex !important;
  gap: 6px !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: none !important;
  float: none !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 10px !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
  color: #374151 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--brand-ruby) !important;
  border-color: var(--brand-ruby) !important;
  color: #ffffff !important;
}

@media (max-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .woocommerce ul.products li.product {
    padding: 10px !important;
  }
  .woocommerce ul.products li.product a img {
    height: 140px !important;
    max-height: 140px !important;
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
}


