/* ==============================
   WRAPPER
============================== */
.gfv-product-showcase {
    width: 100%;
    margin: 40px 0;
    position: relative;
}

/* ==============================
   HEADING
============================== */
.gfv-heading {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ==============================
   CATEGORY MENU
============================== */
.gfv-category-menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    margin-bottom: 24px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.gfv-category-menu::-webkit-scrollbar {
    display: none;
}

.gfv-category {
    flex: 0 0 auto;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid #dddddd;
    border-radius: 999px;
    background: #ffffff;
    color: #222222;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.gfv-category:hover {
    background: #1f6d3d;
    color: #ffffff;
    border-color: #1f6d3d;
}

.gfv-category.active {
    background: #1f6d3d;
    color: #ffffff;
    border-color: #1f6d3d;
}

/* ==============================
   REELS CAROUSEL WRAPPER
============================== */
.gfv-reels-carousel-wrapper {
    position: relative;
    margin-bottom: 24px;
}

/* ==============================
   HORIZONTAL CAROUSEL
============================== */
.gfv-reels-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 10px 4px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gfv-reels-carousel::-webkit-scrollbar {
    display: none;
}

/* ==============================
   REEL CARD (vertical video card)
============================== */
.gfv-reel-card {
    flex: 0 0 260px;
    width: 260px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e5e5;
    transition: box-shadow 0.25s, transform 0.25s;
    position: relative;
}

.gfv-reel-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

/* ==============================
   VIDEO / MEDIA AREA
============================== */
.gfv-reel-media {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 13;
    overflow: hidden;
    background: #000;
}

.gfv-video-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gfv-video-container iframe,
.gfv-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}

.gfv-video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Play button overlay */
.gfv-reel-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    z-index: 2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
    pointer-events: none;
}

.gfv-reel-play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 0 9px 16px;
    border-color: transparent transparent transparent #333;
    margin-left: 4px;
}

.gfv-reel-card:hover .gfv-reel-play-btn {
    background: rgba(255,255,255,1);
    transform: translate(-50%, -50%) scale(1.08);
}

/* ==============================
   PRODUCT INFO PANEL (bottom of card)
============================== */
.gfv-reel-product-panel {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px 12px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

/* Small product thumbnail in panel */
.gfv-reel-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.gfv-reel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Product details next to thumbnail */
.gfv-reel-details {
    flex: 1;
    min-width: 0;
}

.gfv-reel-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gfv-reel-name:hover {
    color: #1f6d3d;
}

.gfv-reel-rating {
    margin-bottom: 3px;
}

.gfv-reel-rating .star-rating {
    font-size: 11px;
}

.gfv-reel-price {
    font-weight: 700;
    color: #1f6d3d;
    font-size: 14px;
    margin-bottom: 6px;
}

.gfv-reel-add-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: #1f6d3d;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.gfv-reel-add-cart:hover {
    background: #174f2d;
    color: #fff;
}

/* ==============================
   CAROUSEL NAVIGATION ARROWS
============================== */
.gfv-carousel-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.gfv-carousel-arrow:hover {
    background: #1f6d3d;
    color: #fff;
    border-color: #1f6d3d;
}

.gfv-carousel-prev {
    left: -20px;
}

.gfv-carousel-next {
    right: -20px;
}

.gfv-carousel-arrow.gfv-carousel-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ==============================
   FOOTER / EXPLORE MORE
============================== */
.gfv-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 12px;
}

.gfv-explore-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: #1f6d3d;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.2s, transform 0.15s;
}

.gfv-explore-more:hover {
    background: #174f2d;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ==============================
   LOADING STATE
============================== */
.gfv-product-showcase.gfv-loading .gfv-reels-carousel {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* ==============================
   NO PRODUCTS
============================== */
.gfv-no-products {
    width: 100%;
    padding: 40px 0;
    text-align: center;
    color: #666;
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 1024px) {
    .gfv-reel-card {
        flex: 0 0 240px;
        width: 240px;
    }
}

@media (max-width: 768px) {
    .gfv-heading {
        font-size: 24px;
    }

    .gfv-category {
        font-size: 13px;
        padding: 8px 16px;
    }

    .gfv-reel-card {
        flex: 0 0 220px;
        width: 220px;
    }

    .gfv-carousel-prev { left: -10px; }
    .gfv-carousel-next { right: -10px; }

    .gfv-explore-more {
        padding: 10px 24px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .gfv-reel-card {
        flex: 0 0 200px;
        width: 200px;
    }
}
