﻿/**
 * New Arrivals Carousel - Owl Carousel Styles
 * Rebelhorn-inspired horizontal slider with badges and wishlist
 */

/* ===================================================================
   SECTION CONTAINER
   =================================================================== */
.new-arrivals-carousel-section {
    width: 100%;
    padding: 3rem 0;
    background-color: var(--bg-light);
}

/* ===================================================================
   HEADER (Title + Navigation)
   =================================================================== */
.new-arrivals-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*padding: 0 var(--container-padding);*/
    padding: 0 28px;
    margin-bottom: 1rem;
}

.new-arrivals-carousel-title {
    font-size: var(--font-size-21px); /* 21px as requested */
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-dark);
    margin: 0;
    line-height: 1;
}

/* Navigation Arrows - Simple Carets Only */
.new-arrivals-carousel-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.owl-nav-btn {
    width: auto;
    height: auto;
    padding: 0;
    border: none;
    background: none;
    color: var(--color-text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    font-size: 1.5rem; /* Larger caret size */
    line-height: 1;
}

.owl-nav-btn:hover {
    color: var(--color-accent);
    transform: scale(1.15);
}

.owl-nav-btn:active {
    transform: scale(0.9);
}

/* Disable buttons styling when disabled */
.owl-nav-btn:disabled {
    color: var(--color-medium-gray);
    cursor: not-allowed;
    opacity: 0.5;
}

.owl-nav-btn:disabled:hover {
    transform: none;
}

/* ===================================================================
   OWL CAROUSEL OVERRIDES
   =================================================================== */
.new-arrivals-owl {
    padding: 0 var(--container-padding);
}

.new-arrivals-owl .owl-stage-outer {
    overflow: visible; /* Allow shadows to show */
}

    .new-arrivals-owl .owl-item {
        padding: 0; /* Small gap between items --> Regular 0 8px */
        margin-right: 1rem !important; /* Regular 1rem */
        margin-bottom: 16px !important; /* Allow bottom box-shadow to be visible */
    }

/* ===================================================================
   PRODUCT CARD
   =================================================================== */
.carousel-product-card {
    background: var(--color-white);
    /*border-radius: var(--border-radius-md);*/
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .carousel-product-card:hover {
        /*box-shadow: var(--shadow-lg);*/
        box-shadow: 0 8px 16px rgba(0,0,0,0.15);
        /*transform: translateY(-4px);*/
    }

/* ===================================================================
   PRODUCT IMAGES (2 images with hover effect)
   =================================================================== */
.carousel-product-images {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Square box */
    overflow: hidden;
    background-color: var(--color-light-gray);
}

.carousel-product-images a {
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-base);
}

.carousel-product-image-secondary {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.carousel-product-card:hover .carousel-product-image-primary {
    opacity: 0;
}

.carousel-product-card:hover .carousel-product-image-secondary {
    opacity: 1;
}

/* ===================================================================
   BADGES & WISHLIST
   Moved to product-badges.css (centralized)
   =================================================================== */

/* ===================================================================
   PRODUCT INFO
   =================================================================== */
.carousel-product-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.carousel-product-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Limit to 1 line */
    -webkit-box-orient: vertical;
    word-break: break-word; /* Break long words if needed */
}

.carousel-product-title a {
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color var(--transition-base);
}

.carousel-product-title a:hover {
    color: var(--color-accent);
}

.carousel-product-variations {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin: 0;
}

/* ===================================================================
   PRICE DISPLAY
   =================================================================== */
.carousel-product-price {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.price-current {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-dark);
}

.price-old {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.price-sale {
    color: var(--color-danger);
}

.price-from {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-dark);
}

.price-contact {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-accent);
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS
   =================================================================== */

/* Mobile (1 item visible) */
@media (max-width: 767px) {
    .new-arrivals-carousel-title {
        font-size: 1.125rem; /* 18px on mobile */
    }

    .owl-nav-btn {
        font-size: 1.25rem; /* Slightly smaller on mobile */
    }

    .carousel-product-images {
        aspect-ratio: 1 / 1; /* Square on mobile for better fit */
    }

    .new-arrivals-owl {
        padding: 0 15px;
    }
}

/* Tablet (3 items visible) */
@media (min-width: 768px) and (max-width: 1199px) {
    .new-arrivals-carousel-title {
        font-size: 1.25rem; /* 20px on tablet */
    }
}

/* Desktop (4 items visible) */
@media (min-width: 1200px) {
    .carousel-product-images {
        aspect-ratio: 1 / 1; /* Square on desktop */
    }
}

/* ===================================================================
   OWL CAROUSEL CUSTOM DOTS (Optional)
   =================================================================== */
.new-arrivals-owl .owl-dots {
    text-align: center;
    margin-top: 1.5rem;
}

.new-arrivals-owl .owl-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    background-color: var(--color-medium-gray);
    border-radius: 50%;
    transition: all var(--transition-base);
    cursor: pointer;
}

.new-arrivals-owl .owl-dot.active {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

.new-arrivals-owl .owl-dot:hover {
    background-color: var(--color-accent);
}