/* =====================================
   FINAL BRAND OVERRIDES
   Append this code at the END
===================================== */

/* 1. STORE BACKGROUND */

:root {
  --bg-color: #F3EBDD !important;
  --primary-color: #3A3C3D !important;
  --secondary-color: #B49854 !important;
  --text-color: #3A3C3D !important;
}

html,
body,
#app,
.app,
main,
.store-home {
  background-color: #F3EBDD !important;
  color: #3A3C3D !important;
}

/* Main content background */

.salla-theme_6,
.salla-theme_5,
.store-content {
  background-color: #F3EBDD !important;
}

/* Remove unwanted gray backgrounds */

.bg-gray-100,
.bg-gray-50 {
  background-color: #F3EBDD !important;
}

/* 2. TRANSPARENT HEADER */

header,
.site-header,
.navbar,
.main-nav-container,
.main-nav-container.fixed-pinned,
header .container,
.navbar .container,
.site-header .container {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Header positioning */

.site-header,
header {
  position: relative;
  z-index: 100;
}

/* Navigation links */

header a,
.navbar a,
.site-header a,
.main-nav-container a {
  color: #3A3C3D !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  transition: all 0.25s ease;
}

/* Navigation hover */

header a:hover,
.navbar a:hover,
.site-header a:hover {
  color: #B49854 !important;
  background: transparent !important;
}

/* 3. HEADER SIZE */

header .container,
.site-header .container,
.navbar .container,
.main-nav-container .container {
  min-height: 85px !important;
  padding: 12px 20px !important;
  gap: 18px !important;
}

/* Logo */

.navbar-brand img,
.site-header .logo img,
header .logo img {
  max-height: 75px !important;
  width: auto !important;
}

/* Header icons */

header svg,
.navbar svg,
.site-header svg,
.main-nav-container svg {
  width: 23px;
  height: 23px;
}

/* Navigation spacing */

.main-nav-container nav,
.navbar nav {
  gap: 22px !important;
}

.main-nav-container nav a,
.navbar nav a {
  padding: 10px 8px !important;
}

/* User menu */

.s-user-menu-trigger {
  font-size: 1rem !important;
  padding: 14px 12px !important;
}

/* 4. FIXED HEADER */

.main-nav-container.fixed-pinned,
.main-nav-container.fixed-pinned .navbar {
  background: rgba(243, 235, 221, 0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 3px 15px rgba(58,60,61,0.08) !important;
}

/* Fixed header text */

.main-nav-container.fixed-pinned a {
  color: #3A3C3D !important;
}

/* Fixed header logo */

.main-nav-container.fixed-pinned .navbar-brand img {
  filter: none !important;
  max-height: 65px !important;
}

/* 5. MOBILE HEADER */

@media (max-width: 768px) {

  header .container,
  .site-header .container,
  .navbar .container,
  .main-nav-container .container {
    min-height: 68px !important;
    padding: 8px 12px !important;
    gap: 10px !important;
  }

  .navbar-brand img,
  .site-header .logo img,
  header .logo img {
    max-height: 55px !important;
  }

  header svg,
  .navbar svg,
  .site-header svg {
    width: 22px;
    height: 22px;
  }

  header a,
  .navbar a,
  .site-header a {
    font-size: 14px !important;
  }

  .main-nav-container.fixed-pinned .navbar-brand img {
    max-height: 48px !important;
  }
}
/* ==============================
   BUTTONS
============================== */

button,
.btn,
.button,
.salla-btn {
  background-color: var(--primary-color) !important;
  color: #FFFDF9 !important;
  border-radius: 999px !important;
  border: 1px solid var(--secondary-color) !important;
  padding-inline: 20px !important;
  padding-block: 10px !important;
  font-weight: 600;
  transition: all 0.25s ease;
}

button:hover,
.btn:hover,
.button:hover,
.salla-btn:hover {
  background-color: #B49854 !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(58,60,61,0.20);
  transform: translateY(-2px);
}

/* ==============================
   HERO SLIDER
============================== */

.s-block--hero-slider {
  width: 100% !important;
  margin-left: calc(-50vw + 50%) !important;
  padding: 0 !important;
  height: 100% !important;
}

.s-block--hero-slider .swiper,
.s-block--hero-slider .swiper-container {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0.5rem !important;
  border-radius: .75rem;
}

.s-block--hero-slider .swiper-wrapper {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0.3rem;
}

.min-h-\[300px\] {
  min-height: 775px;
}

.s-block--hero-slider .swiper-slide {
  width: 100%;
  height: auto;
  position: relative;
  margin: 0;
  padding: 0.3rem;
  background: transparent;
}

.s-block--hero-slider .swiper-slide img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: contain;
  object-position: center;
}

.s-block--hero-slider .swiper-slide .overlay-bg:after {
  background-color: transparent !important;
  height: 0 !important;
  position: absolute;
  margin-top: 0 !important;
  width: 100%;
  content: "";
}

/* ==============================
   PRODUCT IMAGES
============================== */

.product-images,
.product-main-image,
.product-main-image img,
.product-gallery img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
  opacity: 1 !important;
  transform: none !important;
}

.product-images img,
.product-main-image img {
  transform-origin: center center !important;
}

.is-variant-active img,
.is-active-variant img {
  width: 100% !important;
  height: auto !important;
  opacity: 1 !important;
}

.product-images,
.product-images .swiper,
.product-images .swiper-wrapper,
.product-images .swiper-slide {
  width: 100% !important;
  height: auto !important;
}

.product-images img,
.product-images .swiper-slide img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  display: block !important;
  opacity: 1 !important;
  transform: none !important;
}

.product-images .swiper-slide-active img {
  transform: none !important;
}

/* ==============================
   PRODUCT CARDS
============================== */

.s-product-card-image {
  flex-shrink: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
  width: 100%;
  background-color: #FFFDF9 !important;
}

.s-product-card-image img {
  height: auto;
  opacity: 1;
  transition: opacity .5s ease;
  width: 100%;
}

.product-card,
.product-item,
.product-box {
  position: relative;
  background-color: var(--surface-color);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 22px rgba(58,60,61,0.05);
  padding-bottom: 10px;
  transition: transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.product-card:hover,
.product-item:hover,
.product-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(58,60,61,0.15);
  border-color: var(--secondary-color);
}

.product-card .product-image,
.product-item .product-image,
.product-box .product-image {
  position: relative;
  overflow: hidden;
}

.product-card img,
.product-item img,
.product-box img {
  width: 100%;
  display: block;
  transform-origin: center center;
  transition: transform 0.35s ease,
    filter 0.35s ease;
}

.product-card:hover img,
.product-item:hover img,
.product-box:hover img {
  transform: scale(1.06);
  filter: contrast(1.05) saturate(1.08);
}

.product-card .product-title,
.product-item .product-title,
.product-box .product-title {
  margin: 10px 12px 4px;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.95rem;
  min-height: 40px;
}

.product-card .price-wrapper,
.product-item .price-wrapper,
.product-box .price-wrapper {
  margin: 0 12px 4px;
}

.product-card .price,
.product-item .price,
.product-box .price {
  color: #A48743;
  font-size: 1.05rem;
  font-weight: 800;
}

.product-card .old-price,
.product-item .old-price,
.product-box .old-price {
  color: #A99F90;
  text-decoration: line-through;
  font-size: 0.85rem;
}

.product-card .discount,
.product-item .discount,
.product-box .discount {
  color: #A45B45;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Add to Cart */

.product-card .add-to-cart,
.product-item .add-to-cart,
.product-box .add-to-cart {
  display: block;
  width: 100%;
  border-radius: 0 0 14px 14px;
  background-color: #F0E5D4;
  color: var(--primary-color);
  text-align: center;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.product-card .add-to-cart:hover,
.product-item .add-to-cart:hover,
.product-box .add-to-cart:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* ==============================
   CATEGORY & BRAND
============================== */

.brand-item {
  flex: 0 0 auto !important;
  width: 190px !important;
  height: 190px !important;
  border-radius: 100px !important;
  overflow: hidden !important;
  position: relative !important;
  box-shadow: 0 4px 15px rgba(58,60,61,0.10) !important;
  transition: all 0.3s ease !important;
  background-color: var(--warm-sand);
  padding: 0 !important;
}

@media (min-width: 480px) {
  .index .brand-item img {
    max-width: 100%;
  }
}

.brand-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* ==============================
   CATEGORY PAGES
============================== */

.category-page,
.collection-page,
.products-page-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
}

.sidebar,
.filters-sidebar {
  background-color: var(--surface-color);
  border-radius: 18px;
  padding: 18px 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(58,60,61,0.04);
}

.sidebar h3,
.filters-sidebar h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.sidebar label,
.filters-sidebar label,
.sidebar .filter-item,
.filters-sidebar .filter-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-color);
}

.sidebar input[type="checkbox"],
.sidebar input[type="radio"],
.filters-sidebar input[type="checkbox"],
.filters-sidebar input[type="radio"] {
  accent-color: var(--secondary-color);
}

.category-header,
.collection-header,
.page-title {
  text-align: center;
  margin-bottom: 18px;
}

.category-header h1,
.collection-header h1,
.page-title h1 {
  font-size: 1.6rem;
  color: var(--primary-color);
  font-weight: 800;
}

.category-header .description,
.collection-header .description {
  color: var(--muted-color);
  font-size: 0.95rem;
}

/* ==============================
   FILTERS & SORTING
============================== */

.filters-bar,
.sort-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 12px;
  background-color: #EAE0D0;
  border: 1px solid var(--border-color);
  border-radius: 14px;
}

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

.products-grid,
.products-list,
.products-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

@media (max-width: 992px) {
  .category-page,
  .collection-page,
  .products-page-wrapper {
    grid-template-columns: 1fr;
  }

  .products-grid,
  .products-list,
  .products-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* ==============================
   BADGES & LABELS
============================== */

.badge,
.label,
.product-badge {
  background: var(--secondary-color) !important;
  color: #fff !important;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
}

/* ==============================
   ADVERTISEMENT
============================== */

.s-advertisement-content {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-bottom: 0;
  padding-top: 0;
}

/* ==============================
   BACKGROUND COVER
============================== */

.bg-cover {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  max-height: 100%;
}

/* ==============================
   ANIMATIONS
============================== */

.section-animated {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease,
    transform 0.5s ease;
}

.section-animated.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card::after,
.product-item::after,
.product-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top,
    rgba(180,152,84,0.16),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.product-card:hover::after,
.product-item:hover::after,
.product-box:hover::after {
  opacity: 1;
}

/* =========================================
   MAYAN STORE - VISUAL ENHANCEMENT
   Header + Logo + Brand Colors
========================================= */

/* 1. BRAND PALETTE */

:root {
  --primary-color: #3A3C3D !important;
  --secondary-color: #B49854 !important;
  --warm-sand: #C6A784 !important;
  --desert-beige: #D1B99A !important;

  --bg-color: #F3EBDD !important;
  --surface-color: #FFFDF8 !important;
  --border-color: rgba(180,152,84,.35) !important;

  --text-color: #3A3C3D !important;
}

/* 2. HEADER TRANSPARENCY */

header,
.site-header,
.store-header,
.s-header-wrapper,
.main-nav-container:not(.fixed-pinned),
.main-nav-container:not(.fixed-pinned) .navbar {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* 3. MOBILE HEADER OVER HERO */

@media (max-width: 768px) {

  header,
  .site-header,
  .store-header,
  .s-header-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 100 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  header .container,
  .site-header .container,
  .store-header .container,
  .s-header-wrapper .container {
    min-height: 125px !important;
    padding: 10px !important;
    background: transparent !important;
    justify-content: center !important;
  }

  /* 4. ENLARGE STORE LOGO */

  .navbar-brand img,
  header .logo img,
  .site-header .logo img,
  .store-header .logo img,
  .s-header-wrapper .logo img {
    width: 115px !important;
    max-width: 115px !important;
    height: 115px !important;
    max-height: 115px !important;
    object-fit: contain !important;
    display: block !important;
    filter: none !important;
  }

  /* Logo wrapper */

  .navbar-brand,
  header .logo,
  .site-header .logo,
  .store-header .logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
  }

  /* 5. HERO POSITION */

  .s-block--hero-slider {
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative;
    z-index: 1;
  }

  .s-block--hero-slider .swiper,
  .s-block--hero-slider .swiper-container {
    border-radius: 20px !important;
  }
}

/* 6. SCROLLED HEADER */

.main-nav-container.fixed-pinned,
.main-nav-container.fixed-pinned .navbar {
  background: rgba(243,235,221,.94) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  box-shadow: 0 4px 15px rgba(58,60,61,.10) !important;
}

/* 7. COLORFUL PRODUCT BADGES */

.s-product-card-badge,
.s-product-card-promotion-title,
.product-badge,
.product-card .badge {
  background: #B49854 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 30px !important;
  padding: 6px 14px !important;
  font-weight: 700 !important;
}

/* 8. PRODUCT PRICES */

.s-product-card-price,
.product-card .price,
.product-item .price,
.product-box .price {
  color: #A48743 !important;
  font-weight: 800 !important;
}

/* 9. PRODUCT CARDS */

.s-product-card-content,
.product-card,
.product-item,
.product-box {
  background-color: #FFFDF8 !important;
  border-color: rgba(180,152,84,.30) !important;
  border-radius: 18px !important;
}

/* 10. PRODUCT TITLES */

.s-product-card-content-title,
.product-card .product-title,
.product-item .product-title {
  color: #3A3C3D !important;
}

/* 11. CART BUTTONS */

.s-product-card-add-btn,
.s-product-card-add-btn button,
.product-card .add-to-cart {
  background: #3A3C3D !important;
  color: #FFFDF8 !important;
  border: 1px solid #B49854 !important;
  border-radius: 30px !important;
}

/* 12. FAVORITES */

.s-product-card-wishlist-btn {
  background: #3A3C3D !important;
  color: #FFFDF8 !important;
  border: 1px solid #B49854 !important;
}

/* 13. CATEGORY HIGHLIGHTS */

.section-title,
.s-block__title {
  color: #3A3C3D !important;
}

.section-title:after,
.s-block__title:after {
  background: #B49854 !important;
}

/* 14. HOVER EFFECTS */

.s-product-card-content:hover {
  border-color: #B49854 !important;
  box-shadow: 0 10px 25px rgba(180,152,84,.15) !important;
}

/* 15. MOBILE BOTTOM NAVIGATION */

.s-bottom-navigation {
  background: rgba(255,253,248,.96) !important;
  border: 1px solid rgba(180,152,84,.35) !important;
  box-shadow: 0 5px 25px rgba(58,60,61,.12) !important;
  backdrop-filter: blur(12px);
}

.s-bottom-navigation-item-active {
  background: #D1B99A !important;
  color: #3A3C3D !important;
}