/* ==========================================================================
   HOMEPAGE CSS - Main Slider, Highlight Products, Highlight Collections
   ========================================================================== */

/* Main Slider Styles */
.main-slider-section {
  display: flex;
  width: 100%;
  align-items: center;
  gap: var(--space-spacer-1-rem, 16px);
}

.main-slider {
  display: flex;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  max-height: 712px;
  padding-bottom: var(--Space-5, 20px);
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.main-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.main-slider-dots {
  position: absolute;
  bottom: 0px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--Space-1-5, 6px);
  padding: var(--Space-15, 60px) var(--space-spacer-1-rem, 16px);
  cursor: pointer;
  z-index: 999999;
}

.main-slider-dot {
  flex-shrink: 0;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  background: #fcf7ee;
  opacity: 0.5;
}

.main-slider-dot-active {
  width: 12px;
  height: 12px;
  opacity: 1;
}

/* Highlight Products Section */
.highlight-products-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
}

.highlight-products-wrapper {
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.highlight-products-wrapper .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.highlight-products-wrapper .section-header h1 {
  color: #32393f;
  font-family: var(--Type-Font-Serif, "Plus Jakarta Sans");
  font-size: 24px;
  font-style: normal;
  font-weight: var(--Heading-Font-Weight, 700);
  line-height: 140%;
  text-transform: uppercase;
}

.highlight-products-wrapper .grid-container {
  gap: 16px;
  max-width: 100%;
  margin: 0 auto;
}

.highlight-products-wrapper .grid-item {
  display: flex;
  min-width: 190px;
  max-width: 500px;
  padding: var(--Space-3, 12px);
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-spacer-1-rem, 16px);
  flex: 1 0 0;
}

.highlight-products-wrapper .grid-item .product .present {
  height: 195.294px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: #eee !important;
  overflow: hidden;
  padding: 0.5rem !important;
}

.highlight-products-wrapper .grid-item .product .present .img img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.highlight-products-wrapper .grid-item .product .present:hover .img img {
  transform: scale(1.05);
}

.highlight-products-wrapper .grid-item .product .meta {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  padding: var(--Space-6, 24px);
  flex-direction: column;
  align-items: flex-start;
  gap: var(--Space-1-5, 6px);
  z-index: 10;
}

.highlight-products-wrapper .grid-item .product .meta span {
  display: flex;
  padding: var(--Space-1-5, 6px);
  justify-content: center;
  align-items: center;
  gap: var(--Space-0-5, 2px);
  border-radius: var(--Radius-sm, 4px);
  background: var(--Background-Brand-Primary-Hover, #63160f);
  color: var(--On-background-Brand-Primary, #fefdf9);
  font-family: "Plus Jakarta Sans";
  font-size: var(--Body-Size-Small, 14px);
  font-style: normal;
  font-weight: var(--Body-Font-Weight-Strong, 600);
  line-height: 140%;
}

/* Highlight Collection Section */
.highlight-collection .present {
  position: relative;
}

.highlight-collection .meta {
  position: absolute;
  display: flex;
  padding: var(--Space-10, 40px) var(--Space-20, 80px);
  flex-direction: column;
  align-items: flex-start;
  gap: var(--Space-5, 20px);
}

.highlight-collection .meta span {
  color: var(--On-background-Brand-Primary, #fefdf9);
  font-family: var(--Type-Font-Serif, "Plus Jakarta Sans");
  font-size: var(--Heading-Size-Large, 32px);
  font-style: normal;
  font-weight: var(--Heading-Font-Weight, 700);
  line-height: 130%;
}

.highlight-collection .collection-actions {
  display: flex;
  gap: var(--Space-3, 12px);
  align-items: center;
}

.highlight-collection .collection-info-btn {
  display: flex;
  padding: var(--spacers-3, 12px) var(--space-spacer-1-rem, 16px);
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: var(--On-background-Brand-Primary, #fefdf9);
  text-align: center;
  font-family: var(--Type-Font-Serif, "Plus Jakarta Sans");
  font-size: var(--Body-Size-Medium, 16px);
  font-weight: var(--Body-Font-Weight-Regular, 400);
  border: 1px solid var(--On-background-Brand-Primary, #fefdf9);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.highlight-collection .collection-info-btn:hover {
  background: var(--On-background-Brand-Primary, #fefdf9);
  color: var(--Background-Brand-Primary, #520F09);
}

.highlight-collection .collection-info-btn i {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 16px;
  aspect-ratio: 1/1;
}

.highlight-collection .img {
  height: 440px;
  overflow: hidden;
}

.highlight-collection .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Floating Icon Button */
.highlight-collection .collection-icon-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease, opacity 0.2s ease;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-collection .collection-icon-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 0.9;
}

.highlight-collection .collection-icon-btn:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.highlight-collection .collection-icon-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Mobile Responsive - Main Slider */
@media (max-width: 575px) {
  .main-slider-section {
    display: flex;
    width: 100%;
    max-width: 728px;
    align-items: center;
    gap: var(--Space-2, 8px);
  }

  .main-slider {
    display: flex;
    width: 100%;
    max-height: 523px;
    padding-bottom: var(--Space-5, 20px);
    flex-direction: column;
    align-items: center;
    gap: var(--spacers-4, 16px);
    flex-shrink: 0;
  }

  .main-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    align-self: stretch;
    object-fit: cover;
    object-position: center;
  }

  /* Highlight Products Mobile */
  .highlight-products-wrapper {
    padding: var(--space-spacer-1-rem, 16px);
    gap: var(--space-spacer-1-rem, 16px);
  }

  .highlight-products-wrapper .section-header {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--space-spacer-1-rem, 16px);
  }

  .highlight-products-wrapper .section-header .view-all {
    background: #520f09;
    color: #fefdf9;
    padding: 12px 26px;
  }

  .highlight-products-wrapper .section-header .view-all i {
    color: #fefdf9;
  }

  /* Highlight Collection Mobile */
  .highlight-collection .meta {
    position: static;
    padding: var(--Space-5, 20px) var(--space-spacer-1-rem, 16px);
    gap: var(--space-spacer-1-rem, 16px);
    align-self: stretch;
  }

  .highlight-collection .meta span {
    font-size: var(--Heading-Size-Large, 24px);
    color: var(--On-background-Brand-Default, #231f20);
    line-height: 130%;
  }

  .highlight-collection .collection-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--Space-2-5, 10px);
  }

  .highlight-collection .collection-info-btn {
    border: 1px solid var(--Background-Brand-Primary, #520F09);
    color: var(--Background-Brand-Primary, #520F09);
    font-size: var(--Body-Size-Small, 14px);
  }

  .highlight-collection .collection-info-btn:hover {
    background: var(--Background-Brand-Primary, #520F09);
    color: var(--On-background-Brand-Primary, #fefdf9);
  }

  /* Mobile Icon Button */
  .highlight-collection .collection-icon-btn {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
  }

  .highlight-collection .collection-icon-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
  }

  .highlight-collection .collection-icon-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
  }

  .highlight-collection .collection-icon-btn img {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  }
}

/* Mobile: Default 2 columns */
.highlight-products-wrapper .grid-container {
  grid-template-columns: repeat(2, 1fr);
}

/* Tablet Responsive */
@media (min-width: 576px) and (max-width: 991px) {
  .highlight-products-section {
    padding: 0 var(--Space-6, 28px);
    gap: var(--Space-8, 32px);
    align-self: stretch;
  }

  .highlight-products-wrapper {
    gap: var(--Space-8, 32px);
  }

  .highlight-products-wrapper .grid-item .product .present {
    height: 240px;
  }

  .highlight-products-wrapper .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .highlight-collection .img {
    height: 580px;
  }

  .highlight-collection .meta span {
    font-size: var(--Heading-Size-Large, 24px);
    line-height: 130%;
  }

  /* Tablet Icon Button */
  .highlight-collection .collection-icon-btn {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
  }

  .highlight-collection .collection-icon-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
  }

  .highlight-collection .collection-icon-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
  }
}

/* Desktop Responsive */
@media (min-width: 992px) {
  .highlight-products-section {
    padding: 0 var(--Space-10, 40px);
    gap: var(--Space-8, 32px);
    align-self: stretch;
  }

  .highlight-products-wrapper {
    width: 100%;
    padding: 0 var(--Space-6, 24px);
    gap: var(--Space-8, 32px);
  }

  .highlight-products-wrapper .grid-item .product .present {
    height: 334.118px;
  }

  .highlight-products-wrapper .section-header h1 {
    font-size: var(--Heading-Size-Large, 32px);
    line-height: 140%;
  }

  .highlight-products-wrapper .grid-item .product .meta span {
    font-size: var(--Body-Size-Small, 16px);
    line-height: 140%;
  }

  .highlight-products-wrapper .grid-container {
    grid-template-columns: repeat(4, 1fr);
  }

  .highlight-collection .img {
    height: 680px;
  }
}
