/* ============================
   Flavor Collection Showcase - Frontend CSS
   Horizontal Slider Layout
   ============================ */

/* Section */
.fcs-section {
    width: 100%;
    box-sizing: border-box;
}

.fcs-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 16px 0;
    padding: 0;
}

/* Slider Wrapper */
.fcs-slider-wrapper {
    position: relative;
    width: 100%;
}

/* Container - Horizontal Scroll */
.fcs-container.fcs-slider {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: var(--fcs-gap, 0px);
    background: var(--fcs-container-bg, transparent);
    width: 100% !important;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.fcs-container.fcs-slider::-webkit-scrollbar {
    display: none;
}

/* Product Card - Slider item */
.fcs-product-card {
    position: relative;
    background: var(--fcs-card-bg, #FFFFFF);
    border: var(--fcs-card-border, 1px solid #E5E5E5);
    border-radius: var(--fcs-card-radius, 0px);
    box-shadow: var(--fcs-card-shadow, none);
    overflow: hidden;
    transition: all 0.3s ease;
    flex: 0 0 calc((100% - (var(--fcs-columns, 4) - 1) * var(--fcs-gap, 0px)) / var(--fcs-columns, 4)) !important;
    min-width: calc((100% - (var(--fcs-columns, 4) - 1) * var(--fcs-gap, 0px)) / var(--fcs-columns, 4)) !important;
    max-width: calc((100% - (var(--fcs-columns, 4) - 1) * var(--fcs-gap, 0px)) / var(--fcs-columns, 4)) !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start;
    box-sizing: border-box;
}

.fcs-product-card .fcs-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Slider Arrows */
.fcs-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #E5E5E5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: opacity 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    line-height: 1;
}

.fcs-slider-arrow:hover {
    background: #f5f5f5;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.fcs-slider-arrow.fcs-arrow-hidden {
    opacity: 0;
    pointer-events: none;
}

.fcs-arrow-left {
    left: -18px;
}

.fcs-arrow-right {
    right: -18px;
}

/* Drag state */
.fcs-slider.fcs-dragging {
    scroll-behavior: auto;
    cursor: grabbing;
    user-select: none;
}

.fcs-slider.fcs-dragging a,
.fcs-slider.fcs-dragging .fcs-wishlist-icon {
    pointer-events: none;
}

/* Hover Effects */
.fcs-hover-shadow:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.fcs-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.fcs-hover-border:hover {
    border-color: #1A1A1A;
}

/* Image Wrapper */
.fcs-card-image-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--fcs-image-bg, #FFFFFF);
    width: 100%;
}

/* Aspect Ratios */
.fcs-ratio-1x1 {
    aspect-ratio: 1 / 1;
}

.fcs-ratio-3x4 {
    aspect-ratio: 3 / 4;
}

.fcs-ratio-4x3 {
    aspect-ratio: 4 / 3;
}

.fcs-ratio-16x9 {
    aspect-ratio: 16 / 9;
}

.fcs-ratio-auto {
    height: var(--fcs-image-height, 280px);
}

/* Product Images */
.fcs-product-image {
    width: 100%;
    height: 100%;
    object-fit: var(--fcs-image-fit, contain);
    display: block;
    transition: opacity 0.3s ease;
}

.fcs-product-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: var(--fcs-image-fit, contain);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fcs-product-card:hover .fcs-product-image-hover {
    opacity: 1;
}

.fcs-product-card:hover .fcs-product-image {
    opacity: 0;
}

.fcs-product-card:not(:hover) .fcs-product-image {
    opacity: 1;
}

/* Badges */
.fcs-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 3px;
    z-index: 2;
    pointer-events: none;
}

.fcs-badge-discount {
    background: var(--fcs-discount-badge-bg, #E53935);
    color: var(--fcs-discount-badge-color, #FFFFFF);
}

.fcs-badge-new {
    background: var(--fcs-new-badge-bg, #4CAF50);
    color: var(--fcs-new-badge-color, #FFFFFF);
}

.fcs-badge-discount + .fcs-badge-new {
    top: 34px;
}

/* Wishlist Icon */
.fcs-wishlist-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
    z-index: 3;
    color: var(--fcs-wishlist-color, #CCCCCC);
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.fcs-wishlist-icon:hover {
    color: var(--fcs-wishlist-hover-color, #E53935);
    transform: scale(1.1);
}

.fcs-wishlist-icon.fcs-wishlisted {
    color: var(--fcs-wishlist-hover-color, #E53935);
}

.fcs-wishlist-icon.fcs-wishlisted svg {
    fill: currentColor;
}

/* Card Content */
.fcs-card-content {
    padding: var(--fcs-card-padding, 14px);
    text-align: var(--fcs-title-align, left);
}

/* Brand */
.fcs-product-brand {
    display: block;
    font-size: var(--fcs-brand-font-size, 13px);
    font-weight: var(--fcs-brand-font-weight, 400);
    color: var(--fcs-brand-color, #666666);
    margin-bottom: 2px;
    line-height: 1.3;
}

/* Title */
.fcs-product-title-link {
    text-decoration: none;
    color: inherit;
}

.fcs-product-title {
    font-family: var(--fcs-title-font-family, inherit);
    font-size: var(--fcs-title-font-size, 14px);
    font-weight: var(--fcs-title-font-weight, 500);
    color: var(--fcs-title-color, #1A1A1A);
    line-height: var(--fcs-title-line-height, 1.4);
    margin: 0 0 6px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: var(--fcs-title-max-lines, 2);
    -webkit-box-orient: vertical;
}

/* Collection */
.fcs-product-collection {
    display: block;
    font-size: var(--fcs-collection-font-size, 12px);
    color: var(--fcs-collection-color, #888888);
    margin-bottom: 4px;
}

/* Price */
.fcs-product-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    font-size: var(--fcs-price-font-size, 15px);
    font-weight: var(--fcs-price-font-weight, 600);
    margin-top: 4px;
}

.fcs-price-current {
    color: var(--fcs-price-color, #1A1A1A);
}

.fcs-price-old {
    color: var(--fcs-old-price-color, #999999);
    text-decoration: line-through;
    font-weight: 400;
    font-size: 0.9em;
}

.fcs-price-sale {
    color: var(--fcs-sale-price-color, #E53935);
}

.fcs-price-plus {
    font-size: 0.85em;
    color: var(--fcs-price-color, #1A1A1A);
    font-weight: 400;
}

/* Rating */
.fcs-product-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 4px;
}

.fcs-star {
    font-size: 14px;
    line-height: 1;
}

.fcs-star-filled {
    color: var(--fcs-star-color, #FFC107);
}

.fcs-star-empty {
    color: var(--fcs-star-empty-color, #E0E0E0);
}

.fcs-rating-count {
    font-size: 12px;
    color: #999999;
    margin-left: 4px;
}

/* Stock */
.fcs-stock-status {
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

.fcs-in-stock {
    color: var(--fcs-stock-in-color, #4CAF50);
}

.fcs-out-of-stock {
    color: var(--fcs-stock-out-color, #E53935);
}

/* Add to Cart */
.fcs-add-to-cart {
    margin-top: 8px;
}

.fcs-cart-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 8px 16px;
    background: var(--fcs-cart-btn-bg, #1A1A1A);
    color: var(--fcs-cart-btn-color, #FFFFFF);
    border: none;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.fcs-cart-btn:hover {
    background: var(--fcs-cart-btn-hover-bg, #333333);
    color: var(--fcs-cart-btn-color, #FFFFFF);
}

/* Empty State */
.fcs-empty {
    text-align: center;
    padding: 20px;
    color: #999999;
}

/* ============================
   Responsive
   ============================ */

/* Tablet */
@media (max-width: 1023px) {
    .fcs-product-card {
        flex: 0 0 calc((100% - (var(--fcs-columns-tablet, 3) - 1) * var(--fcs-gap, 0px)) / var(--fcs-columns-tablet, 3));
        min-width: calc((100% - (var(--fcs-columns-tablet, 3) - 1) * var(--fcs-gap, 0px)) / var(--fcs-columns-tablet, 3));
        max-width: calc((100% - (var(--fcs-columns-tablet, 3) - 1) * var(--fcs-gap, 0px)) / var(--fcs-columns-tablet, 3));
    }

    .fcs-slider-arrow {
        display: none;
    }
}
/* Mobile */
@media (max-width: 767px) {
    .fcs-product-card {
        flex: 0 0 calc((100% - 2 * var(--fcs-gap, 0px)) / 2.2) !important;
        min-width: calc((100% - 2 * var(--fcs-gap, 0px)) / 2.2) !important;
        max-width: calc((100% - 2 * var(--fcs-gap, 0px)) / 2.2) !important;
    }

    .fcs-product-title {
        font-size: var(--fcs-title-font-size-m, 12px);
    }

    .fcs-product-brand {
        font-size: var(--fcs-brand-font-size-m, 11px);
    }

    .fcs-product-price {
        font-size: var(--fcs-price-font-size-m, 13px);
    }

    .fcs-section-title {
        font-size: 17px;
    }

    .fcs-slider-arrow {
        display: none;
    }
}
