/* Glow Video Carousel (Homepage) */

.glow-video-carousel-section {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 32px 0 36px;
    background: #ffffff;
    overflow: visible;
}

.glow-video-carousel-section .gvc-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 16px;
}

.glow-video-carousel-section .gvc-header {
    text-align: center;
    margin-bottom: 18px;
}

.glow-video-carousel-section .gvc-header h3 {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    margin: 0 0 8px;
}

.glow-video-carousel-section .gvc-header p {
    color: #777;
    margin: 0;
}

.glow-video-carousel-section .gvc-carousel {
    position: relative;
}

.glow-video-carousel-section .gvc-nav {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.glow-video-carousel-section .gvc-nav:hover {
    transform: translateY(-50%) scale(1.04);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.glow-video-carousel-section .gvc-nav:active {
    transform: translateY(-50%) scale(0.98);
}

.glow-video-carousel-section .gvc-nav svg {
    width: 18px;
    height: 18px;
    stroke: #111;
    stroke-width: 2.5;
    fill: none;
}

.glow-video-carousel-section .gvc-prev {
    left: 12px;
}

.glow-video-carousel-section .gvc-next {
    right: 12px;
}

.glow-video-carousel-section .gvc-scroller {
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    /* Removed scroll-behavior: smooth - it can interfere with programmatic scrollLeft */
}

.glow-video-carousel-section .gvc-scroller:active {
    cursor: grabbing;
}

.glow-video-carousel-section .gvc-scroller::-webkit-scrollbar {
    display: none;
}

.glow-video-carousel-section .gvc-track {
    display: flex;
    gap: 16px;
    padding: 8px 0 10px;
    align-items: center;  /* Center items vertically so taller center item is balanced */
}

@supports (padding-left: max(16px, 1px)) {
    .glow-video-carousel-section .gvc-track {
        padding-left: 0;
        padding-right: 0;
    }
}

.glow-video-carousel-section .gvc-item {
    flex: 0 0 auto;
    width: 220px;
    transition: width 260ms ease, transform 260ms ease, filter 260ms ease;
    will-change: transform;
}

@media (max-width: 420px) {
    .glow-video-carousel-section .gvc-item {
        width: 200px;
    }
}

.glow-video-carousel-section .gvc-item.is-center {
    width: 280px;
    transform: translateY(-8px);
    z-index: 3;
}

.glow-video-carousel-section .gvc-item.is-center .gvc-media {
    aspect-ratio: 9 / 16 !important;  /* Override to tall portrait when centered */
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.20);
}

.glow-video-carousel-section .gvc-media {
    display: block;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #111;
    height: 392px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.14);
}

@supports (aspect-ratio: 1 / 1) {
    .glow-video-carousel-section .gvc-media {
        height: auto;
        aspect-ratio: 1 / 1;  /* Square by default, center gets 9:16 */
        transition: aspect-ratio 300ms ease, box-shadow 300ms ease;
    }
}

.glow-video-carousel-section .gvc-media img,
.glow-video-carousel-section .gvc-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

.glow-video-carousel-section .gvc-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 160ms ease;
    pointer-events: none;
}

.glow-video-carousel-section .gvc-item:hover .gvc-play {
    opacity: 1;
}

.glow-video-carousel-section .gvc-play-btn {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.glow-video-carousel-section .gvc-play-btn svg {
    width: 22px;
    height: 22px;
    fill: #fff;
    margin-left: 2px;
}

.glow-video-carousel-section .gvc-product {
    margin-top: 10px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.glow-video-carousel-section .gvc-product-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    flex: 0 0 auto;
    background: #f3f4f6;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.glow-video-carousel-section .gvc-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.glow-video-carousel-section .gvc-product-meta {
    flex: 1 1 auto;
    min-width: 0;
}

.glow-video-carousel-section .gvc-product-brand {
    font-size: 11px;
    font-weight: 800;
    color: rgba(17, 24, 39, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.1;
}

.glow-video-carousel-section .gvc-product-name {
    font-size: 13px;
    font-weight: 800;
    color: #111827;
    margin: 2px 0 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.glow-video-carousel-section .gvc-product-name a {
    color: inherit;
    text-decoration: none;
}

.glow-video-carousel-section .gvc-product-name a:hover {
    text-decoration: underline;
}

.glow-video-carousel-section .gvc-price {
    margin-top: 6px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.glow-video-carousel-section .gvc-price-current {
    font-weight: 900;
    color: #111827;
    font-size: 13px;
}

.glow-video-carousel-section .gvc-price-old {
    font-weight: 700;
    color: rgba(17, 24, 39, 0.48);
    font-size: 12px;
    text-decoration: line-through;
}

.glow-video-carousel-section .gvc-add {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
    transition: transform 120ms ease, background 120ms ease;
}

.glow-video-carousel-section .gvc-add:hover {
    transform: scale(1.04);
    background: #f8fafc;
}

.glow-video-carousel-section .gvc-add:active {
    transform: scale(0.98);
}

.glow-video-carousel-section .gvc-add[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}
