/* Fab Woo Grid-Carousel — Frontend Styles */

.fwgc-carousel-wrap {
    position: relative;
    width: 100%;
}

.fwgc-carousel {
    position: relative;
    overflow: hidden;
}

/* Slide / Card */
.fwgc-slide {
    height: auto;
}

.fwgc-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.fwgc-card:hover {
    text-decoration: none;
    color: inherit;
}

.fwgc-card__thumb {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.fwgc-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fwgc-card__info {
    padding: 10px 0 0;
}

.fwgc-card__title {
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fwgc-card__price {
    margin-top: 4px;
    line-height: 1.4;
}

.fwgc-card__price del {
    opacity: 0.5;
    font-weight: 400;
}

.fwgc-card__price ins {
    text-decoration: none;
}

/* Navigation Arrows — Default (with background) */
.fwgc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, opacity 0.3s, visibility 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    user-select: none;
}

.fwgc-arrow:hover {
    background: #fff;
}

.fwgc-arrow--prev {
    left: 8px;
}

.fwgc-arrow--next {
    right: 8px;
}

.fwgc-arrow svg {
    width: 20px;
    height: 20px;
}

.fwgc-arrow.swiper-button-disabled {
    opacity: 0;
    visibility: hidden;
    cursor: default;
    pointer-events: none;
}

/* Navigation Arrows — Plain (no background) */
.fwgc-arrows-plain .fwgc-arrow {
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.fwgc-arrows-plain .fwgc-arrow:hover {
    background: none;
    opacity: 0.7;
}

.fwgc-arrows-plain .fwgc-arrow--prev {
    left: -4px;
}

.fwgc-arrows-plain .fwgc-arrow--next {
    right: -4px;
}

/* Pagination Dots */
.fwgc-pagination {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.fwgc-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.3;
    transition: opacity 0.2s;
    cursor: pointer;
}

.fwgc-pagination .swiper-pagination-bullet-active {
    opacity: 1;
}

/* ==========================================================================
   Category Card Overlay
   ========================================================================== */
.fwgc-card--category .fwgc-card__thumb {
    position: relative;
}

.fwgc-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 16px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 60%);
    border-radius: inherit;
    pointer-events: none;
}

.fwgc-card__discount {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.fwgc-card__cat-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive: hide arrows on mobile */
@media (max-width: 767px) {
    .fwgc-arrow {
        display: none;
    }

    .fwgc-card__info {
        padding-top: 8px;
    }

    .fwgc-card__discount {
        font-size: 20px;
    }

    .fwgc-card__cat-name {
        font-size: 12px;
    }

    .fwgc-card__overlay {
        padding: 10px 8px;
    }
}
