/* =========================================
   Home Theme 1 - Premium Styling (Redesign)
   ========================================= */

:root {
  --h1-font-heading: "Playfair Display", serif;
  --h1-font-body: "Outfit", sans-serif;

  /* Premium Palette */
  --h1-bg-soft: #fdfbf7;
  /* Warm off-white */
  --h1-text-main: #1c1c1c;
  --h1-text-sub: #666666;
  --h1-accent: #c5a059;
  /* Soft Gold */
  --h1-action: #000000;
  --h1-sale: #d93f3f;

  --h1-radius: 4px;
  --h1-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* =========================================
   HERO SECTION
   ========================================= */
.h1-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.h1-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.h1-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Adjust if needed */
}

.h1-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.1) 100%);
}

.h1-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.h1-hero-text {
  max-width: 600px;
  margin-left: 100px;
  color: #fff;
  opacity: 0;
  transform: translateY(30px);
  animation: h1FadeUp 1s ease forwards 0.5s;
}

.h1-subtitle {
  display: inline-block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 5px;
}

.h1-title {
  font-family: var(--h1-font-heading);
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 500;
}

.h1-desc {
  font-size: 1.1rem;
  margin-bottom: 40px;
  opacity: 0.9;
  font-weight: 300;
  max-width: 90%;
}

.h1-hero-btns {
  display: flex;
  gap: 20px;
}

.h1-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 15px 35px;
  font-family: var(--h1-font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  transition: 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.h1-btn-primary {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
}

.h1-btn-primary:hover {
  background: transparent;
  color: #fff;
}

.h1-btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.h1-btn-outline:hover {
  background: #fff;
  color: #000;
}

.h1-btn-white {
  background: #fff;
  color: #000;
}

.h1-btn-white:hover {
  background: #000;
  color: #fff;
}

/* =========================================
   CATEGORY ICON ROW (NEW)
   ========================================= */
.h1-icon-row {
  padding: 40px 0 40px;
  background: #fff;
}

.h1-icon-scroller {
  display: flex;
  justify-content: center;
  gap: 40px;
  /* overflow-x: auto; */
  padding-bottom: 20px;
  /* Hide scrollbar for cleaner look if desired, but good usability to keep it standard or minimal */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE 10+ */
  -webkit-overflow-scrolling: touch;
}

.h1-icon-scroller::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.h1-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 15px;
  min-width: 100px;
  /* Ensure click area */
}

.h1-icon-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  position: relative;
}

.h1-icon-circle::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--h1-accent);
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.4s ease;
}

.h1-icon-circle img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.h1-icon-label {
  font-family: var(--h1-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--h1-text-main);
  transition: color 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.h1-label-sale {
  color: var(--h1-sale);
  font-weight: 600;
}

/* Hover Effects */
.h1-icon-item:hover .h1-icon-circle {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.h1-icon-item:hover .h1-icon-circle::after {
  opacity: 0.3;
  transform: scale(1);
}

.h1-icon-item:hover .h1-icon-circle img {
  transform: scale(1.1);
}

.h1-icon-item:hover .h1-icon-label {
  color: var(--h1-accent);
}

/* Responsive */
@media (max-width: 768px) {
  .h1-icon-scroller {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    overflow: hidden;
    padding: 0;
    justify-content: center;
  }

  .h1-icon-item {
    width: 100%;
    min-width: 0;
  }

  .h1-icon-circle {
    width: 60px;
    height: 60px;
    margin: 0 auto;
  }

  .h1-icon-circle img {
    width: 30px;
    height: 30px;
  }

  .h1-icon-label {
    font-size: 12px;
  }

  /* Mobile Limit: Show exactly 4 items (3 brands + View All) */
  /* Hide 4th item onwards (brands start at 1) but keep the last one (View All) */
  .h1-icon-scroller .h1-icon-item:nth-child(n + 4):not(:last-child) {
    display: none;
  }
}

.h1-section-header {
  margin: 0 50px 30px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.h1-section-header h2 {
  font-family: var(--h1-font-heading);
  font-size: 2.5rem;
  color: var(--h1-text-main);
  font-weight: 400;
}

/* =========================================
   PRODUCT SECTION
   ========================================= */
.h1-products {
  padding: 0 0 100px 0;
}

.h1-link-view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #000;
  color: #fff;
  padding: 12px 25px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #000;
}

.h1-link-view-all:hover {
  background: transparent;
  color: #000;
  border-color: #000;
}

.h1-link-view-all i {
  font-size: 12px;
}

.h1-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.h1-product-card {
  transition: 0.3s ease;
}

.h1-prod-img-box {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: #f9f9f9;
  border-radius: var(--h1-radius);
  margin-bottom: 15px;
}

.h1-prod-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.h1-product-card:hover .h1-prod-img {
  transform: scale(1.05);
}

.h1-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  z-index: 2;
  border-radius: 2px;
}

.h1-badge-sale {
  background: var(--h1-sale);
}

.h1-badge-sold {
  background: #999;
}

.h1-prod-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(10px);
  transition: 0.3s ease;
}

.h1-product-card:hover .h1-prod-actions {
  opacity: 1;
  transform: translateX(0);
}

.h1-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: var(--h1-text-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: 0.2s ease;
}

.h1-action-btn:hover {
  background: var(--h1-text-main);
  color: #fff;
}

/* Special case for Add button to be larger or pill if desired.
   Keeping it circle for minimalistic look. */

.h1-prod-meta {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.h1-prod-title {
  font-size: 1rem;
  color: var(--h1-text-main);
  font-weight: 400;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h1-prod-price {
  font-family: var(--h1-font-body);
  font-weight: 500;
  display: flex;
  gap: 10px;
  align-items: center;
}

.h1-price-curr {
  color: var(--h1-text-main);
}

.h1-price-old {
  color: #999;
  text-decoration: line-through;
  font-size: 0.9em;
}

/* =========================================
   PROMO SECTION
   ========================================= */
.h1-promo {
  padding: 0;
  margin-bottom: 100px;
}

.h1-promo-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--h1-bg-soft);
  border-radius: var(--h1-radius);
  overflow: hidden;
}

.h1-promo-content {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.h1-promo-label {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--h1-accent);
  margin-bottom: 15px;
  font-weight: 600;
}

.h1-promo-content h2 {
  font-family: var(--h1-font-heading);
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 400;
}

.h1-promo-content p {
  color: var(--h1-text-sub);
  margin-bottom: 30px;
  max-width: 400px;
}

.h1-promo-img {
  height: 100%;
  min-height: 400px;
}

.h1-promo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
   TRUST SECTION
   ========================================= */
.h1-trust {
  padding-bottom: 100px;
}

.h1-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 40px;
  background: #fff;
  border: 1px solid #eee;
}

.h1-trust-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.h1-trust-item i {
  font-size: 24px;
  color: var(--h1-accent);
}

.h1-trust-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.h1-trust-item p {
  font-size: 13px;
  color: var(--h1-text-sub);
}

/* Animation */
@keyframes h1FadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
  .h1-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .h1-promo-box {
    grid-template-columns: 1fr;
  }

  .h1-promo-img {
    height: 300px;
    min-height: auto;
  }

  .h1-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .h1-section-header {
    margin: 0 20px 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .h1-section-header h2 {
    font-size: 1.1rem;
    /* Reduced from 1.75rem */
  }

  .h1-link-view-all {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
    gap: 5px;
  }

  .h1-hero-text {
    margin-left: 0;
  }
}

@media (max-width: 576px) {
  .h1-title {
    font-size: 2.2rem;
  }

  .h1-hero-text {
    margin-left: 0;
  }

  .h1-hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .h1-btn {
    width: 100%;
  }

  .h1-product-grid {
    grid-template-columns: repeat(2, 1fr);
    /* Keep 2 cols on mobile for fashion sites */
    gap: 10px;
  }

  .h1-trust-grid {
    grid-template-columns: 1fr;
  }

  .h1-prod-actions {
    /* Always show on mobile or use a specific mobile interaction */
    opacity: 1;
    transform: none;
    top: auto;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 5px;
  }

  .h1-action-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
    background: transparent;
    box-shadow: none;
  }
}

/* View All Item Specifics */
.h1-view-all-circle {
  border: 1px solid var(--h1-accent);
  background: var(--h1-text-main);
}

.h1-view-all-circle i {
  font-size: 20px;
  color: #fff;
  transition: transform 0.4s ease;
}

.h1-icon-item:hover .h1-view-all-circle {
  background: var(--h1-text-main);
  border-style: solid;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(197, 160, 89, 0.2);
}

.h1-icon-item:hover .h1-view-all-circle i {
  color: var(--h1-accent);
  transform: translateX(3px);
  /* Subtle nudge */
}

/* Ensure consistent sizing if not already */
.h1-view-all-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Mobile responsive tweak for View All */
@media (max-width: 768px) {
  .h1-view-all-circle {
    width: 60px;
    height: 60px;
  }

  .h1-view-all-circle i {
    font-size: 16px;
  }

  /* Disable Hover Effects on Mobile to prevent "sticking" in large state */
  .h1-icon-item:hover .h1-icon-circle,
  .h1-icon-item:hover .h1-view-all-circle,
  .h1-icon-item:hover .h1-icon-circle img {
    transform: none !important;
    box-shadow: none !important;
  }

  /* Reset label color on mobile hover/active */
  .h1-icon-item:hover .h1-icon-label {
    color: var(--h1-text-main) !important;
  }
}

/* =========================================
   PRODUCT CAROUSEL
   ========================================= */
.product-carousel-container {
  position: relative;
  width: 100%;
  padding: 0 40px;
}

.product-carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 20px 0 40px 0;
  /* Extra bottom padding for dots */
}

.product-carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 calc(16.666% - 17px);
  min-width: calc(16.666% - 17px);
  max-width: calc(16.666% - 17px);
}

@media (max-width: 768px) {
  .carousel-item {
    flex: 0 0 calc(50% - 10px);
    min-width: calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

/* =========================================
   CAROUSEL CARD OVERRIDES (Strict Match)
   ========================================= */
/* Target the product card inside the carousel only */
.carousel-item .product-card {
  border: none;
  background: transparent;
  box-shadow: none;
}

/* Image Wrapper: Tall Portrait Ratio (2:3 approx) */
.carousel-item .product-image-wrapper {
  aspect-ratio: 2 / 3;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #f4f4f4;
}

.carousel-item .product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.carousel-item:hover .product-image {
  transform: scale(1.08);
  /* Soft zoom */
}

/* Hide Cart/Buy Buttons as per reference strictness */
.carousel-item .cart-btn,
.carousel-item .btn-buy-now {
  display: none !important;
}

/* Wishlist Button: Top Right, Soft Circle */
.carousel-item .wishlist-btn {
  position: absolute;
  top: auto;
  right: 15px;
  left: auto;
  bottom: 15px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  opacity: 1;
  /* Always visible or hover? Ref shows generally visible */
  z-index: 5;
  transition: all 0.2s ease;
}

.carousel-item .wishlist-btn i {
  font-size: 16px;
  color: var(--h1-bg-soft);
}

.carousel-item .wishlist-btn:hover {
  background: #1c1c1c;
  transform: scale(1.1);
}

.carousel-item .wishlist-btn:hover i {
  color: #fff !important;
}

/* Sale Badge: Orange Rounded */
.carousel-item .product-badge.sale-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #ff6b00;
  /* Orange */
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 20px;
  /* Rounded pill */
  letter-spacing: 0.5px;
}

/* Card Content Styling */
.carousel-item .product-details {
  padding: 0 5px;
  text-align: left;
}

.carousel-item .product-category {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.carousel-item .product-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--h1-text-main);
  margin: 0 0 5px 0;
  font-family: var(--h1-font-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  height: 40px;
}

.carousel-item .product-title a {
  color: inherit;
  text-decoration: none;
}

.carousel-item .product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--h1-font-body);
}

.carousel-item .regular-price {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
  font-weight: 400;
}

.carousel-item .current-price {
  font-size: 15px;
  color: var(--h1-text-main);
  font-weight: 700;
}

/* Navigation Arrows */
.carousel-btn {
  position: absolute;
  top: 40%;
  /* Align with image center approx */
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--h1-text-main);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  /* Hidden by default, show on container hover */
  font-size: 18px;
}

.product-carousel-container:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: var(--h1-text-main);
  color: #fff;
  border-color: var(--h1-text-main);
}

.prev-btn {
  left: -1px;
}

.next-btn {
  right: -1px;
}

/* Pagination Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #000;
  transform: scale(1.2);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
  .carousel-item {
    flex: 0 0 calc(50% - 15px);
    min-width: calc(50% - 15px);
    max-width: calc(50% - 15px);
  }
}

@media (max-width: 576px) {
  .product-carousel-container {
    padding: 0;
  }

  /* Mobile: 2 items visible as requested */
  .carousel-item {
    flex: 0 0 calc(50% - 7.5px);
    min-width: calc(50% - 7.5px);
    max-width: calc(50% - 7.5px);
  }

  .product-carousel-track {
    gap: 15px;

    margin-left: 20px;
    margin-right: 20px;
    /* Strict 2 cards, no peek */
  }

  /* Arrows visible on mobile as requested */
  .carousel-btn {
    display: flex;
    opacity: 1;
    /* Always visible on mobile if requested, or maybe semi-transparent? */
    width: 36px;
    height: 36px;
    font-size: 14px;
    top: 35%;
    /* Adjust for image height */
  }

  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }

  /* Carousel item Image Aspect on Mobile */
  .carousel-item .product-image-wrapper {
    aspect-ratio: 2/3;
    /* Maintain tall portrait */
  }

  .carousel-item .product-title {
    font-size: 14px;
  }

  .carousel-item .current-price {
    font-size: 14px;
  }
}

/* =========================================
   UTILITY CLASSES (Added for Responsiveness)
   ========================================= */
.d-block {
  display: block !important;
}

.d-none {
  display: none !important;
}

@media (min-width: 768px) {
  .d-md-block {
    display: block !important;
  }

  .d-md-none {
    display: none !important;
  }
}

/* =========================================
   MOBILE OPTIMIZATIONS
   ========================================= */
@media (max-width: 768px) {
  .product-card .btn-add-cart {
    padding: 8px 12px;
    font-size: 12px;
    width: 100%;
    justify-content: center;
    gap: 5px;
  }

  .product-card .btn-add-cart i {
    font-size: 12px;
  }
}