/* ============================================================
   Modern UI Override — Clean & Professional Storefront
   ============================================================ */

/* ---------- Global Typography & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: #1a1a2e;
  background: #f8f9fc;
  line-height: 1.6;
}

a { text-decoration: none; transition: color .2s; }

/* ---------- Hide Redundant Top Meta Bar ---------- */
.menu-top-area { display: none !important; }

/* ---------- Header & Topbar ---------- */
.site-header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar {
  padding: 14px 0;
  background: #fff;
  border-bottom: 1px solid #eef0f5;
}

.site-logo img {
  max-height: 44px;
  width: auto;
}

/* Search box */
.search-box-wrap .search-box {
  background: #f3f4f8;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #e8eaf0;
  transition: border-color .2s, box-shadow .2s;
}
.search-box-wrap .search-box:focus-within {
  border-color: var(--primary-color, #4f46e5);
  box-shadow: 0 0 0 3px rgba(79,70,229,.08);
}
.search-box-wrap .search-box .form-control {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 10px 14px;
  font-size: 13.5px;
}
.search-box-wrap .search-box button[type="submit"] {
  background: var(--primary-color, #4f46e5);
  color: #fff !important;
  border: none;
  padding: 0 18px;
  cursor: pointer;
  transition: background .2s;
}
.search-box-wrap .search-box button[type="submit"]:hover {
  filter: brightness(1.1);
}
.search-box .categoris {
  background: #eef0f7;
  border: none;
  border-right: 1.5px solid #dde0ea;
  padding: 0 14px;
  font-size: 13px;
  color: #555;
  border-radius: 0;
}

/* Toolbar icons */
.toolbar-item a { color: #444; }
.toolbar-item a:hover { color: var(--primary-color, #4f46e5); }
.count-label {
  background: var(--primary-color, #4f46e5);
  color: #fff !important;
  font-size: 10px;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.text-label { font-size: 12px; font-weight: 500; }

/* ---------- Main Navbar ---------- */
.navbar {
  background: var(--primary-color, #4f46e5);
  padding: 0;
}
.navbar .site-menu > ul > li > a {
  color: rgba(255,255,255,.92) !important;
  font-size: 13.5px;
  font-weight: 500;
  padding: 14px 16px;
  letter-spacing: .02em;
}
.navbar .site-menu > ul > li > a:hover,
.navbar .site-menu > ul > li.active > a {
  color: #fff !important;
  background: rgba(255,255,255,.12);
  border-radius: 6px;
}
.navbar .t-h-dropdown-menu {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  border: none;
  padding: 8px 0;
  min-width: 190px;
}
.navbar .t-h-dropdown-menu a {
  color: #333 !important;
  font-size: 13px;
  padding: 9px 18px;
  display: block;
}
.navbar .t-h-dropdown-menu a:hover { background: #f4f5ff; color: var(--primary-color, #4f46e5) !important; }

/* ---------- Section Titles ---------- */
.section-title,
.section-title2,
.section-title3 { margin-bottom: 24px; }
.section-title h2.h3,
.section-title2 h2.h3,
.section-title3 h2.h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}
.section-title h2.h3::after,
.section-title2 h2.h3::after,
.section-title3 h2.h3::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 3px;
  background: var(--primary-color, #4f46e5);
  border-radius: 2px;
}

/* ---------- Tab Filter Links ---------- */
.popular-category.theme3 .links a {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid #e0e2ef;
  color: #555;
  background: #fff;
  margin-right: 8px;
  transition: all .2s;
}
.popular-category.theme3 .links a.active,
.popular-category.theme3 .links a:hover {
  background: var(--primary-color, #4f46e5);
  border-color: var(--primary-color, #4f46e5);
  color: #fff !important;
}

/* ---------- Product Cards ---------- */
.product-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #edf0f5;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: box-shadow .25s, transform .25s;
  overflow: hidden;
}
.product-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,.10);
  transform: translateY(-3px);
}

.product-thumb { position: relative; background: #f9fafb; overflow: hidden; }
.product-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 12px;
  transition: transform .35s;
}
.product-card:hover .product-thumb img { transform: scale(1.05); }

/* Badges */
.product-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .03em;
}

/* Action buttons overlay */
.product-button-group {
  opacity: 0;
  transform: translateY(6px);
  transition: all .25s;
}
.product-card:hover .product-button-group {
  opacity: 1;
  transform: translateY(0);
}
.product-button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  color: #333;
  margin: 2px;
  transition: background .2s, color .2s;
}
.product-button:hover { background: var(--primary-color, #4f46e5); color: #fff !important; }

.product-card-body { padding: 14px 16px 16px; }
.product-category a {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary-color, #4f46e5);
  font-weight: 600;
}
.product-title {
  font-size: 14px;
  font-weight: 600;
  margin: 6px 0 6px;
  line-height: 1.4;
  color: #1a1a2e;
}
.product-title a { color: inherit; }
.product-title a:hover { color: var(--primary-color, #4f46e5); }
.product-price {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}
.product-price del {
  color: #aaa;
  font-weight: 400;
  font-size: 13px;
  margin-right: 4px;
}
.rating-stars { color: #f59e0b; font-size: 12px; margin-bottom: 4px; }

/* Add-to-cart button inside card */
.btn-cart, .btn-add-cart {
  display: block;
  width: 100%;
  background: var(--primary-color, #4f46e5);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 9px 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .2s;
  letter-spacing: .02em;
  margin-top: 12px;
}
.btn-cart:hover, .btn-add-cart:hover { filter: brightness(1.1); color: #fff !important; }

/* ---------- Hero Slider ---------- */
.hero-area4 .item {
  min-height: 460px;
  background-size: cover !important;
  background-position: center !important;
  border-radius: 0 0 20px 20px;
}
@media (max-width: 768px) { .hero-area4 .item { min-height: 240px; } }

/* ---------- Flash Deal Countdown ---------- */
.countdown .countdown-item { background: #1a1a2e; color: #fff !important; border-radius: 6px; }

/* ---------- Brand Logos ---------- */
.brand-slider .slider-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  padding: 10px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #edf0f5;
  transition: box-shadow .2s;
}
.brand-slider .slider-item a:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.brand-slider .slider-item img { max-height: 40px; object-fit: contain; filter: grayscale(40%); transition: filter .2s; }
.brand-slider .slider-item a:hover img { filter: grayscale(0); }

/* ---------- Service / Feature Boxes ---------- */
.single-service2 {
  background: #fff;
  border-radius: 14px;
  padding: 24px 16px;
  border: 1px solid #edf0f5;
  text-align: center;
  transition: box-shadow .25s;
}
.single-service2:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.single-service2 img { width: 52px; height: 52px; object-fit: contain; margin-bottom: 12px; }
.single-service2 .content h6 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.single-service2 .content p { font-size: 12.5px; color: #777; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f0f1a;
  color: #c5c7d4;
  padding: 52px 0 24px;
  margin-top: 60px;
}
.site-footer .widget-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff !important;
  margin-bottom: 18px;
  letter-spacing: .03em;
}
.site-footer p, .site-footer li { font-size: 13.5px; }
.site-footer a { color: #9ea3be; }
.site-footer a:hover { color: #fff !important; }
.site-footer .widget-links ul > li > a { color: #fff !important; }
.site-footer .widget-links ul > li > a:hover { color: #fff !important; opacity: .75; }
.site-footer .widget-links ul { list-style: none; padding: 0; margin: 0; }
.site-footer .widget-links ul li { padding: 4px 0 4px 0; }
/* Remove the original ::before feather-icon arrow that overlaps text when padding-left is reset */
.site-footer .widget-links ul > li::before { display: none !important; content: none !important; }
.site-footer .widget-links ul > li > a { padding-left: 0; }
/* Mobile slideable-menu: give the chevron icon space before the link text */
.slideable-menu li a > i:first-child,
.slideable-menu .menu li a > i:first-child { margin-right: 7px; }
.footer-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #fff !important;
  margin-right: 6px;
  margin-top: 12px;
  transition: background .2s;
}
.footer-social-links a:hover { background: var(--primary-color, #4f46e5); }
.footer-copyright {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 32px;
  padding-top: 18px;
  font-size: 13px;
  color: #666;
  text-align: center;
}
.gateway_image { max-height: 32px; opacity: .7; }

/* Newsletter input */
.subscriber-form .input-group { border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.07); }
.subscriber-form .form-control {
  background: transparent;
  border: 1px solid rgba(255,255,255,.15);
  color: #fff !important;
  border-radius: 8px 0 0 8px;
  font-size: 13px;
}
.subscriber-form .form-control::placeholder { color: #888; }
.subscriber-form .btn-primary {
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  color: #fff !important;
}

/* ---------- Back-to-top ---------- */
.scroll-to-top-btn {
  background: var(--primary-color, #4f46e5);
  color: #fff !important;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(79,70,229,.4);
}

/* ---------- Buttons (global) ---------- */
.btn-primary,
.btn-primary:visited,
.btn-primary:focus {
  background: var(--primary-color, #4f46e5);
  border-color: var(--primary-color, #4f46e5);
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: filter .2s, color .2s;
  color: #fff !important;
}
.btn-primary:hover { filter: brightness(1.1); border-color: transparent; color: #fff !important; }

/* ---------- Sections spacing ---------- */
.mt-50, .mt-60 { margin-top: 48px !important; }
.mb-30 { margin-bottom: 24px !important; }

/* ---------- Catalog / Product List Page ---------- */
.catalog-product-grid .product-card { margin-bottom: 20px; }
.catalog-sidebar { background: #fff; border-radius: 14px; padding: 20px; border: 1px solid #edf0f5; }
.price-range-wrap .range-slider { accent-color: var(--primary-color, #4f46e5); }

/* ---------- Category Mega Menu ---------- */
.category-nav-wrap { background: #fff; border-radius: 0 0 14px 14px; box-shadow: 0 12px 30px rgba(0,0,0,.10); border: 1px solid #edf0f5; }
.category-nav-wrap .category-nav a { font-size: 13px; padding: 9px 16px; color: #333; transition: color .15s, background .15s; border-radius: 6px; }
.category-nav-wrap .category-nav a:hover { background: #f4f5ff; color: var(--primary-color, #4f46e5); }

/* ---------- Cart Dropdown ---------- */
.cart-dropdown { border-radius: 14px; box-shadow: 0 12px 36px rgba(0,0,0,.12); border: none; }

/* ---------- Compact Hero Slider ---------- */
body.body_theme2 .slider-area-wrapper .hero-slider .item,
body.body_theme2 .hero-slider .item,
body .slider-area-wrapper .hero-slider .item,
.slider-area-wrapper .hero-slider .item,
.hero-slider .item {
  height: 500px !important;
  max-height: 500px !important;
}
@media (max-width: 768px) {
  body.body_theme2 .slider-area-wrapper .hero-slider .item,
  body.body_theme2 .hero-slider .item,
  body .slider-area-wrapper .hero-slider .item,
  .slider-area-wrapper .hero-slider .item,
  .hero-slider .item {
    height: 350px !important;
    max-height: 350px !important;
  }
}
.slider-area-wrapper {
  margin-top: 0 !important;
}

/* ---------- Product Grid — professional e-commerce layout ---------- */
.product-grid-responsive {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-grid-responsive .grid-product-item .product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-grid-responsive .grid-product-item .product-card .product-card-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-grid-responsive .grid-product-item .product-card .product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-grid-responsive .grid-product-item .product-card .product-price {
  margin-top: auto;
}
/* 3 columns on tablets */
@media (max-width: 1199px) and (min-width: 768px) {
  .product-grid-responsive {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
/* 2 columns + horizontal scroll on mobile */
@media (max-width: 767px) {
  .product-grid-responsive {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 12px;
  }
  .product-grid-responsive > .grid-product-item {
    flex: 0 0 46%;
    scroll-snap-align: start;
  }
  .product-grid-responsive::-webkit-scrollbar {
    height: 4px;
  }
  .product-grid-responsive::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
  }
}

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 992px) {
  .topbar { padding: 10px 0; }
  .hero-area4 .item { min-height: 280px; }
  .site-footer { padding: 36px 0 20px; }
}
@media (max-width: 576px) {
  .product-card-body { padding: 10px 12px 12px; }
  .product-title { font-size: 13px; }
}

/* ============================================================
   NEW SECTION COMPONENTS
   ============================================================ */

/* ---------- Hero (full-width, clean) ---------- */
.hero-section { line-height: 0; }
.hero-section .hero-slider-main .item,
.hero-section .hero-slide {
  min-height: 520px;
  background-size: cover !important;
  background-position: center !important;
  display: flex !important;
  align-items: center;
  position: relative;
}
.hero-section .hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.52) 0%, rgba(0,0,0,.18) 60%, transparent 100%);
}
.hero-section .hero-slide.hero-slide-rtl::before {
  background: linear-gradient(270deg, rgba(0,0,0,.52) 0%, rgba(0,0,0,.18) 60%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 40px 0;
  line-height: 1.4;
}
.hero-brand-logo { max-height: 48px; margin-bottom: 16px; display: block; }
.hero-title {
  font-size: clamp(26px, 3.5vw, 46px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.hero-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,.88);
  margin: 0 0 28px;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-color, #4f46e5);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 10px;
  letter-spacing: .03em;
  transition: filter .2s, transform .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.btn-hero:hover { filter: brightness(1.1); transform: translateY(-1px); color: #fff !important; }
@media (max-width: 768px) {
  .hero-section .hero-slide { min-height: 260px; }
  .hero-title { font-size: 22px; }
  .hero-subtitle { font-size: 13px; }
  .btn-hero { padding: 10px 20px; font-size: 13px; }
}

/* ---------- Trust / Service Strip ---------- */
.trust-section {
  background: #fff;
  border-bottom: 1px solid #eef0f5;
  padding: 0;
}
.trust-grid {
  display: flex;
  flex-wrap: wrap;
  border-left: 1px solid #eef0f5;
}
.trust-item {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-right: 1px solid #eef0f5;
  border-bottom: 1px solid #eef0f5;
}
.trust-item img { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }
.trust-item h6 { font-size: 13.5px; font-weight: 700; margin: 0 0 2px; color: #1a1a2e; }
.trust-item p  { font-size: 12px; color: #888; margin: 0; }

/* ---------- Home Sections (consistent spacing) ---------- */
.home-section { padding: 52px 0 0; }
.home-section:last-of-type { padding-bottom: 52px; }

/* ---------- Section Header (title left + link/tabs right) ---------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef0f5;
}
.section-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0;
  letter-spacing: -.01em;
}
.section-header-left {
  display: flex;
  align-items: center;
  gap: 0;
}
.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color, #4f46e5) !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: gap .2s;
}
.section-link:hover { gap: 8px; }

/* ---------- Tab Filter Pill Links ---------- */
.tab-filter-links { display: flex; flex-wrap: wrap; gap: 6px; }
.tab-filter {
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid #e4e6f0;
  color: #666;
  background: #fff;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.tab-filter.active,
.tab-filter:hover {
  background: var(--primary-color, #4f46e5);
  border-color: var(--primary-color, #4f46e5);
  color: #fff !important;
}

/* ---------- Flash Deals highlight strip ---------- */
.flash-section { background: #fff8f0; border-radius: 16px; margin: 48px 0 0; padding: 36px 0; }
.flash-section .section-header { border-bottom-color: rgba(239,68,68,.15); }
.flash-section .section-header h2 { color: #dc2626; }

/* ---------- Blog Grid Cards ---------- */
.blog-home-section {}
.blog-card {
  display: block;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #edf0f5;
  transition: box-shadow .25s, transform .25s;
  height: 100%;
  color: inherit !important;
}
.blog-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,.10); transform: translateY(-3px); }
.blog-thumb { overflow: hidden; aspect-ratio: 16/9; }
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
  display: block;
}
.blog-card:hover .blog-thumb img { transform: scale(1.04); }
.blog-body { padding: 18px 20px 20px; }
.blog-date { font-size: 11.5px; color: #aaa; display: block; margin-bottom: 8px; }
.blog-date i { margin-right: 4px; }
.blog-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px;
  line-height: 1.45;
}
.blog-excerpt { font-size: 13px; color: #777; margin: 0 0 14px; line-height: 1.6; }
.blog-read-more {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-color, #4f46e5) !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}
.blog-card:hover .blog-read-more { gap: 8px; }

/* ---------- Brands section ---------- */
.brands-section { border-top: 1px solid #eef0f5; padding-top: 40px; padding-bottom: 40px; }

/* ---------- Featured category grid tweaks ---------- */
#feature_category_view .col-gd { padding: 0 8px 16px; width: calc(100% / 6); }
@media (max-width: 1200px) { #feature_category_view .col-gd { width: calc(100% / 4); } }
@media (max-width: 768px)  { #feature_category_view .col-gd { width: calc(100% / 3); } }
@media (max-width: 480px)  { #feature_category_view .col-gd { width: 50%; } }

/* ---------- AJAX loading wrap ---------- */
.loading-wrap { text-align: center; padding: 30px; }
.loading-wrap img { width: 40px; }

