/**
 * Shop Products Section - Homepage Carousel
 * @version 1.0.0
 */

/* ==========================================================================
   Shop Section
   ========================================================================== */
.shop-section {
    background: linear-gradient(180deg, #fff 0%, #faf6f2 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.shop-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.shop-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Header */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.shop-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--wp--preset--color--accent, #C9A961) 0%, #b8975a 100%);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.shop-badge i {
    font-size: 0.85rem;
}

.shop-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.shop-section-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.shop-see-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #1a1a1a;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.shop-see-all:hover {
    background: #1a1a1a;
    color: #fff;
}

.shop-see-all i {
    transition: transform 0.3s ease;
}

.shop-see-all:hover i {
    transform: translateX(4px);
}

/* Carousel Container */
.shop-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.shop-carousel-wrapper {
    flex: 1;
    overflow: hidden;
}

.shop-carousel {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-slide {
    flex: 0 0 calc((100% - 4.5rem) / 4);
    min-width: 0;
}

/* Carousel Buttons */
.shop-carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    z-index: 10;
}

.shop-carousel-btn:hover:not(:disabled) {
    background: var(--wp--preset--color--accent, #C9A961);
    border-color: var(--wp--preset--color--accent, #C9A961);
    color: #fff;
    transform: scale(1.05);
}

.shop-carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.shop-carousel-btn i {
    font-size: 1rem;
    color: inherit;
}

/* Product Card */
.shop-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.shop-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.shop-thumb {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #f5efe7 0%, #efe5d8 100%);
}

.shop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shop-card:hover .shop-thumb img {
    transform: scale(1.06);
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-placeholder i {
    font-size: 3rem;
    color: rgba(201, 169, 97, 0.6);
}

.shop-card-body {
    padding: 1.1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shop-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.4rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-card-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--wp--preset--color--accent, #C9A961);
    margin: 0 0 0.75rem;
}

.shop-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    margin-top: auto;
    transition: color 0.3s ease, gap 0.3s ease;
}

.shop-card:hover .shop-card-link {
    color: var(--wp--preset--color--primary-dark, #C48B8B);
    gap: 0.6rem;
}

.shop-card-link i {
    font-size: 0.7rem;
}

/* Dots Navigation */
.shop-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.shop-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.shop-carousel-dot:hover {
    background: #bbb;
}

.shop-carousel-dot.active {
    background: var(--wp--preset--color--accent, #C9A961);
    transform: scale(1.2);
}

/* CTA */
.shop-cta {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.shop-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, var(--wp--preset--color--accent, #C9A961) 0%, #b8975a 100%);
    box-shadow: 0 6px 18px rgba(201, 169, 97, 0.35);
    transition: all 0.3s ease;
}

.shop-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(201, 169, 97, 0.45);
    color: #fff;
}

/* Skeleton Loading */
.skeleton-card {
    pointer-events: none;
}

.shop-thumb.skeleton-thumb {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shop-skeleton-shimmer 1.5s infinite;
}

.shop-slide.skeleton .skeleton-text {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shop-skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

.shop-slide.skeleton .skeleton-title {
    height: 18px;
    width: 80%;
    margin: 1.1rem 1.25rem 0.75rem;
}

.shop-slide.skeleton .skeleton-meta {
    height: 16px;
    width: 50%;
    margin: 0 1.25rem 1.25rem;
}

@keyframes shop-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .shop-slide {
        flex: 0 0 calc((100% - 1.5rem) / 2);
    }
}

@media (max-width: 768px) {
    .shop-section {
        padding: 4rem 0;
    }

    .shop-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .shop-see-all {
        align-self: flex-start;
    }

    .shop-carousel-btn {
        display: none;
    }

    .shop-carousel-container {
        padding: 0;
    }
}

@media (max-width: 600px) {
    .shop-section {
        padding: 3rem 0;
    }

    .shop-section-inner {
        padding: 0 1rem;
    }

    .shop-slide {
        flex: 0 0 100%;
    }

    .shop-carousel {
        gap: 1rem;
    }
}
