/* Import Luxury Font */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;600&display=swap');

/* Hexer Product Carousel Styles */

.hexer-product-carousel-wrapper {
    position: relative;
    padding: 0;
    overflow: visible; /* Changed from hidden to allow arrows outside */
    background-color: transparent;
    font-family: 'Poppins', sans-serif;
    background-image: none;
}

/* Ensure swiper container has height auto to shrink with content */
.hexer-product-swiper {
    padding: 0 !important;
    min-height: auto; /* Removed fixed min-height to allow shrinking */
    overflow: hidden !important; /* Changed to hidden as arrows are now outside */
}

.hexer-product-slide {
    transition: all 0.3s ease;
    opacity: 1;
    transform: none;
    display: flex;
    justify-content: center;
    align-items: stretch; /* Changed to stretch for equal height */
    height: auto;
}

.hexer-equal-height .hexer-product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hexer-equal-height .hexer-product-card-inner {
    flex-grow: 1;
}

.hexer-product-slide.swiper-slide-active {
    opacity: 1;
    transform: none;
    z-index: 1;
}

.hexer-product-card {
    width: 100%;
    max-width: 400px;
    text-align: left;
    position: relative;
}

.hexer-product-card-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    background-color: #f5f5f5;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align items to the bottom */
    align-items: stretch;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hexer-product-image-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
}

/* Product Image Area - NOW FILLING ENTIRE CARD */
.hexer-product-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hexer-product-card-inner:hover .hexer-product-image {
    transform: scale(1.05);
}

/* Remove old img styles as we are using background-image now */
.hexer-product-image img {
    display: none;
}

/* Category Label - Hidden by default, shows on hover */
.hexer-product-cat {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(255, 255, 255, 0.95); /* Default fallback */
    padding: 6px 15px;
    border-radius: 20px; /* Default fallback */
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #333;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-block;
    width: auto;
}

.hexer-product-card-inner:hover .hexer-product-cat {
    opacity: 1;
    transform: translateY(0);
}

/* Bottom Colored Block / Button Area - NOW OVERLAYING IMAGE WITH NO BACKGROUND */
.hexer-add-to-bag {
    position: relative;
    height: 80px;
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5; /* Higher than image */
    transition: all 0.3s ease;
    background-color: transparent; /* Background removed */
}

.hexer-add-to-bag:hover {
    background-color: transparent;
}

.hexer-bag-btn {
    background-color: #1a1a1a;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    width: 90%;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    transform: translateY(20px);
}

.hexer-product-card-inner:hover .hexer-bag-btn {
    opacity: 1;
    transform: translateY(0);
}

.hexer-bag-btn:hover {
    background-color: #333;
    color: #fff;
}

/* Product Info */
.hexer-product-info {
    margin-top: 20px;
    padding: 0 5px;
}

.hexer-product-title {
    font-family: 'Playfair Display', serif; /* Or similar luxury font */
    font-size: 16px;
    margin: 0 0 5px 0;
    font-weight: 600;
    color: #1a1a1a;
}

.hexer-product-price {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.hexer-product-price .woocommerce-Price-amount {
    color: #666;
}

/* Product Grid Styles */
.hexer-product-grid {
    display: grid;
    width: 100%;
}

.hexer-product-item {
    width: 100%;
}

.hexer-product-item .hexer-product-card {
    max-width: 100%;
}

/* Different backgrounds for slides and grid items */
.hexer-product-slide:nth-child(5n+1) .hexer-product-card-inner,
.hexer-product-item:nth-child(5n+1) .hexer-product-card-inner { background-color: #b1c4d4; }
.hexer-product-slide:nth-child(5n+2) .hexer-product-card-inner,
.hexer-product-item:nth-child(5n+2) .hexer-product-card-inner { background-color: #e9e2d7; }
.hexer-product-slide:nth-child(5n+3) .hexer-product-card-inner,
.hexer-product-item:nth-child(5n+3) .hexer-product-card-inner { background-color: #f7e8d0; }
.hexer-product-slide:nth-child(5n+4) .hexer-product-card-inner,
.hexer-product-item:nth-child(5n+4) .hexer-product-card-inner { background-color: #dbbf9a; }
.hexer-product-slide:nth-child(5n+5) .hexer-product-card-inner,
.hexer-product-item:nth-child(5n+5) .hexer-product-card-inner { background-color: #eee9e4; }

/* Navigation Arrows */
.hexer-nav-next, .hexer-nav-prev {
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.8);
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex !important;
    justify-content: center;
    align-items: center;
    z-index: 100 !important;
    cursor: pointer;
    position: absolute;
    margin: 0 !important; /* Reset margin */
    top: 50%;
    transform: translateY(-50%);
}

.hexer-nav-next i, .hexer-nav-prev i,
.hexer-nav-next svg, .hexer-nav-prev svg {
    display: inline-block !important; /* Ensure visibility */
    font-style: normal;
    vertical-align: middle;
    line-height: 1;
}

.hexer-nav-prev {
    left: 10px;
}

.hexer-nav-next {
    right: 10px;
}

.hexer-nav-next:after, .hexer-nav-prev:after {
    display: none !important; /* Hide default swiper arrows */
}

.hexer-nav-next i, .hexer-nav-prev i,
.hexer-nav-next svg, .hexer-nav-prev svg {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.hexer-nav-next:hover, .hexer-nav-prev:hover {
    background: #1a1a1a;
    color: #fff;
}

/* Pagination Dots */
.hexer-pagination {
    bottom: -30px !important;
}

.hexer-pagination .swiper-pagination-bullet {
    background: #1a1a1a !important;
    opacity: 0.2;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.hexer-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    width: 25px;
    border-radius: 5px;
}

/* Product Accordion Styles */
.hexer-product-accordion {
    border-top: 1px solid #f1f1f1;
}

.hexer-accordion-item {
    border-bottom: 1px solid #f1f1f1;
}

.hexer-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hexer-accordion-title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #1a1a1a;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
}

.hexer-accordion-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hexer-accordion-icon-normal,
.hexer-accordion-icon-active {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hexer-accordion-icon-active {
    display: none;
}

.hexer-accordion-item.active .hexer-accordion-icon-normal {
    display: none;
}

.hexer-accordion-item.active .hexer-accordion-icon-active {
    display: flex;
}

.hexer-accordion-icon i {
    font-size: 14px;
    color: #ccc;
}

.hexer-accordion-icon svg {
    width: 14px;
    height: 14px;
    fill: #ccc;
}

.hexer-accordion-content-wrap {
    display: none;
    padding-bottom: 30px;
}

.hexer-accordion-content {
    font-size: 14px;
    line-height: 1.8;
    color: #777;
    font-family: 'Poppins', sans-serif;
}

.hexer-accordion-content p {
    margin: 0 0 10px 0;
}

.hexer-accordion-content p:last-child {
    margin-bottom: 0;
}

/* Hover effect */
.hexer-accordion-header:hover .hexer-accordion-title {
    color: #000;
}

/* Product Variation Widget Styles */
.hexer-product-variation-widget {
    font-family: 'Poppins', sans-serif;
}

.hexer-variation-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 15px;
}

.hexer-variation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.hexer-variation-button {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 50px;
    text-align: center;
    outline: none !important;
    box-shadow: none !important;
}

.hexer-variation-button:focus,
.hexer-variation-button:active,
.hexer-variation-button:focus-visible,
.hexer-add-to-cart-button:focus,
.hexer-add-to-cart-button:active,
.hexer-add-to-cart-button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

.hexer-variation-button:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.hexer-variation-button.selected {
    background-color: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.hexer-add-to-cart-button {
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    padding: 15px 20px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hexer-add-to-cart-button:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
    opacity: 1 !important;
}

.hexer-add-to-cart-button:hover:not(:disabled) {
    background-color: #333;
}

.hexer-no-variation-product {
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* Price Widget Styles */
.hexer-product-price-wrapper {
    margin-bottom: 20px;
}

.hexer-product-price-display {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    display: block;
    line-height: 1;
}

.hexer-product-price-display span,
.hexer-product-price-display ins,
.hexer-product-price-display bdi {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
    font-family: inherit !important;
    text-decoration: none !important;
}

.hexer-product-price-display del {
    color: #999 !important;
    font-size: 0.8em !important;
    margin-right: 10px;
    font-weight: 400 !important;
    display: inline-block;
}

    .hexer-product-slide {
        transform: none;
    }
}

@media (max-width: 768px) {
    .hexer-product-slide {
        opacity: 1;
        transform: none;
    }
    .hexer-product-slide.swiper-slide-active {
        opacity: 1;
        transform: none;
    }
    .hexer-product-card-inner {
        aspect-ratio: 1/1;
    }
}

