/* Add custom CSS styles below */
/* =========================================================
   Modern Year | Final Salla Homepage Custom CSS
   Refined from current live CSS
   ========================================================= */

:root {
  --my-primary: #1A2740;         /* Elegant Midnight Blue */
  --my-primary-2: #243552;
  --my-gold: #C8A96A;            /* Luxury Gold */
  --my-gold-hover: #D6B97B;
  --my-text: #1F2937;
  --my-text-light: #6B7280;
  --my-bg: #F6F3EE;              /* Warm light background */
  --my-card: #FFFFFF;
  --my-border: #E8E0D5;
  --my-muted: #F8F6F2;
  --my-white: #FFFFFF;
  --my-shadow: 0 12px 30px rgba(26, 39, 64, 0.06);
  --my-shadow-hover: 0 18px 40px rgba(26, 39, 64, 0.11);
  --my-radius-sm: 10px;
  --my-radius-md: 16px;
  --my-radius-lg: 24px;
  --my-radius-pill: 999px;
  --my-transition: all .25s ease;
}

/* ========= Base ========= */
body,
body#app {
  background: var(--my-bg);
  color: var(--my-text);
  line-height: 1.8;
}

.container {
  position: relative;
}

a {
  transition: var(--my-transition);
}

a:hover {
  text-decoration: none;
}

/* ========= Header ========= */
.store-header {
  position: relative;
  z-index: 30;
}

.store-header .top-navbar {
  background: var(--my-primary-2);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 10px 0;
}

.store-header .top-navbar a,
.store-header .top-navbar .s-contacts-topnav-link {
  color: rgba(255,255,255,.88);
  font-size: 13px;
}

.store-header .top-navbar a:hover,
.store-header .top-navbar .s-contacts-topnav-link:hover {
  color: var(--my-gold);
}

.store-header .header-search .s-search-input {
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: var(--my-white) !important;
  backdrop-filter: blur(8px);
}

.store-header .header-search .s-search-input::placeholder {
  color: rgba(255,255,255,.72);
}

.store-header .header-search .s-search-icon,
.store-header .header-search .s-search-icon svg {
  color: rgba(255,255,255,.78);
  fill: rgba(255,255,255,.78);
}

#mainnav.main-nav-container {
  background: rgba(255,255,255,.94) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26,39,64,.06);
  box-shadow: 0 6px 24px rgba(26, 39, 64, 0.05);
  height: 84px;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand img {
  max-height: 64px;
  width: auto !important;
  object-fit: contain;
}

.header-btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(26,39,64,.08);
  background: var(--my-white);
  color: var(--my-primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--my-transition);
}

.header-btn:hover {
  background: var(--my-primary);
  color: var(--my-white);
  border-color: var(--my-primary);
}

.header-btn__icon {
  font-size: 1.2rem;
}

.s-cart-summary-wrapper {
  min-height: 42px;
  padding: 8px 14px;
  background: var(--my-white);
  border: 1px solid rgba(26,39,64,.08);
  border-radius: var(--my-radius-pill);
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(26, 39, 64, 0.04);
  transition: var(--my-transition);
}

.s-cart-summary-wrapper:hover {
  border-color: var(--my-gold);
  box-shadow: 0 12px 26px rgba(26, 39, 64, 0.08);
}

.s-cart-summary-wrapper .header-btn__icon,
.s-cart-summary-wrapper .icon {
  color: var(--my-primary);
}

.s-cart-summary-count {
  min-width: 20px;
  height: 20px;
  background: var(--my-gold);
  color: var(--my-white);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.s-cart-summary-total {
  color: var(--my-primary);
  font-weight: 800;
}

/* ========= Sections ========= */
.s-block {
  margin-top: 32px;
  margin-bottom: 32px;
}

.s-block.s-block--best-offers {
  padding-top: 8px;
}

.s-slider-block__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.s-slider-block__title-right h2,
.s-reviews-header {
  color: var(--my-primary);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  letter-spacing: 0;
}

.s-slider-block__title-right h2::after,
.s-reviews-header::after {
  content: "";
  display: block;
  width: 62px;
  height: 3px;
  border-radius: 99px;
  background: var(--my-gold);
  margin-top: 10px;
}

.s-slider-block__display-all {
  color: var(--my-primary);
  font-weight: 700;
  font-size: 14px;
}

.s-slider-block__display-all:hover {
  color: var(--my-gold);
}

.s-slider-block__title-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
}

.s-slider-nav-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(26,39,64,.08);
  background: var(--my-white);
  color: var(--my-primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--my-transition);
  box-shadow: 0 8px 18px rgba(26, 39, 64, 0.04);
}

.s-slider-nav-arrow:hover {
  background: var(--my-primary);
  color: var(--my-white);
  border-color: var(--my-primary);
}

.s-slider-nav-arrow svg {
  fill: currentColor;
}

/* ========= Product Cards ========= */
.custom-salla-product-card,
.s-product-card-entry {
  display: block;
  height: 100%;
}

.s-product-card-entry {
  background: var(--my-card);
  border: 1px solid rgba(26,39,64,.06);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--my-shadow);
  transition: var(--my-transition);
}

.s-product-card-entry:hover {
  transform: translateY(-5px);
  box-shadow: var(--my-shadow-hover);
  border-color: rgba(200,169,106,.35);
}

.s-product-card-image {
  position: relative;
  background: #fff;
  padding: 14px 14px 0;
}

.s-product-card-image > a {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.s-product-card-image-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform .45s ease;
}

.s-product-card-entry:hover .s-product-card-image-cover {
  transform: scale(1.035);
}

.s-product-card-wishlist-btn,
.s-product-card-wishlist-btn .s-button-element {
  border-radius: 50% !important;
}

.s-product-card-wishlist-btn .s-button-element {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.94) !important;
  border: 1px solid rgba(26,39,64,.08) !important;
  color: var(--my-primary) !important;
  box-shadow: 0 8px 20px rgba(26, 39, 64, 0.08);
}

.s-product-card-wishlist-btn .s-button-element:hover {
  color: var(--my-gold) !important;
  border-color: rgba(200,169,106,.40) !important;
}

.s-product-card-promotion-title {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(26,39,64,.92);
  color: var(--my-white);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--my-radius-pill);
  backdrop-filter: blur(10px);
}

.s-product-card-content {
  padding: 18px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.s-product-card-content-main {
  min-height: 58px;
}

.s-product-card-content-title {
  margin: 0;
  line-height: 1.65;
}

.s-product-card-content-title a {
  color: var(--my-text) !important;
  font-size: 18px;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.s-product-card-content-title a:hover {
  color: var(--my-gold) !important;
}

.s-product-card-content-sub {
  min-height: 36px;
}

.s-product-card-price,
.s-product-card-sale-price h4 {
  color: var(--my-gold) !important;
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.s-product-card-sale-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.s-product-card-sale-price span {
  color: var(--my-text-light);
  font-size: 14px;
  text-decoration: line-through;
  font-weight: 500;
}

.s-product-card-content-footer {
  margin-top: auto;
}

.s-product-card-content-footer .s-button-element,
.s-product-card-content-footer .s-button-btn {
  min-height: 48px;
  border-radius: var(--my-radius-pill) !important;
  border: 1.5px solid var(--my-primary) !important;
  background: transparent !important;
  color: var(--my-primary) !important;
  font-weight: 800;
  transition: var(--my-transition);
}

.s-product-card-content-footer .s-button-element:hover,
.s-product-card-content-footer .s-button-btn:hover {
  background: var(--my-primary) !important;
  color: var(--my-white) !important;
  border-color: var(--my-primary) !important;
}

.s-product-card-content-footer .s-button-text {
  gap: 8px;
}

.s-product-card-content-footer .sicon-shopping-bag {
  font-size: 15px;
}

/* ========= Products List ========= */
.s-products-list-wrapper.s-products-list-vertical-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

/* ========= Fixed Banner ========= */
.s-block--fixed-banner .banner--fixed {
  display: block;
  border-radius: 26px;
  overflow: hidden;
  background: var(--my-white);
  box-shadow: 0 16px 40px rgba(26, 39, 64, 0.08);
  border: 1px solid rgba(26,39,64,.04);
}

.s-block--fixed-banner .banner--fixed img {
  display: block;
  width: 100%;
  border-radius: 26px;
}

/* ========= Features ========= */
.s-block--features {
  padding-top: 10px;
}

.s-block--features__item {
  background: linear-gradient(180deg, #ffffff 0%, #fcfbf8 100%);
  border: 1px solid rgba(26,39,64,.06);
  border-radius: 24px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--my-shadow);
  transition: var(--my-transition);
  height: 100%;
}

.s-block--features__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--my-shadow-hover);
  border-color: rgba(200,169,106,.30);
}

.s-block--features__item .feature-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(200,169,106,.12);
  color: var(--my-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.s-block--features__item h2 {
  color: var(--my-primary);
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
}

.s-block--features__item p {
  color: var(--my-text-light);
  font-size: 14px;
  margin: 0;
}

/* ========= Testimonials ========= */
.s-block--custom-testimonials {
  padding-top: 12px;
}

.s-reviews-container {
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
  border: 1px solid rgba(26,39,64,.06);
  border-radius: 28px;
  padding: 34px 24px;
  box-shadow: 0 18px 42px rgba(26, 39, 64, 0.06);
}

.s-reviews-header-wrapper {
  margin-bottom: 18px;
}

/* ========= Search Modal ========= */
.s-search-modal .s-search-container,
#salla-modal .s-modal-body {
  border-radius: 22px;
}

#salla-modal .s-modal-body {
  border: 1px solid rgba(26,39,64,.08);
  box-shadow: 0 24px 60px rgba(26, 39, 64, 0.15);
}

#salla-modal .s-search-input {
  border-radius: 16px !important;
  border: 1px solid rgba(26,39,64,.10) !important;
  background: #fff !important;
  color: var(--my-text) !important;
}

/* ========= Utility polish ========= */
.s-button-element,
.s-button-btn,
button,
input,
a,
img {
  transition: var(--my-transition);
}

.s-search-input:focus,
button:focus,
a:focus {
  outline: none;
}

/* ========= Mobile ========= */
@media (max-width: 1199px) {
  .s-products-list-wrapper.s-products-list-vertical-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .s-slider-block__title-right h2,
  .s-reviews-header {
    font-size: 24px;
  }

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

  .s-block--features__item {
    padding: 22px 18px;
  }

  #mainnav.main-nav-container {
    height: 74px !important;
  }

  .navbar-brand img {
    max-height: 54px;
  }

  .s-product-card-content-title a {
    font-size: 16px;
  }

  .s-product-card-price,
  .s-product-card-sale-price h4 {
    font-size: 21px;
  }
}

@media (max-width: 767px) {
  .store-header .top-navbar {
    padding: 8px 0;
  }

  .store-header .top-navbar .container {
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .store-header .header-search {
    width: 100%;
  }

  .s-slider-block__title {
    align-items: flex-start;
    flex-direction: column;
  }

  .s-slider-block__title-left {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .s-slider-block__title-nav {
    margin-right: 0;
  }

  .s-product-card-content {
    padding: 14px;
  }

  .s-product-card-content-title a {
    font-size: 15px;
  }

  .s-product-card-price,
  .s-product-card-sale-price h4 {
    font-size: 19px;
  }

  .s-products-list-wrapper.s-products-list-vertical-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .s-reviews-container {
    padding: 24px 16px;
    border-radius: 22px;
  }

  .s-block--fixed-banner .banner--fixed,
  .s-block--fixed-banner .banner--fixed img {
    border-radius: 18px;
  }
}