/* ==========================================================================
   COZY COOCON CUSTOM SHOPS/REELS CAROUSEL & LIGHTBOX CSS
   ========================================================================== */

/* Utility */
.hidden { display: none !important; }

/* Carousel Wrapper */
.cc-reels-carousel-container {
    position: relative;
    width: 100%;
    margin: 20px auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.cc-reels-carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
}

.cc-reels-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Reel Card */
.cc-reel-card {
    flex: 0 0 calc(20% - 16px);
    min-width: 180px;
    aspect-ratio: 9/16;
    position: relative;
    border-radius: var(--radius-card, 20px);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(164,146,124,0.12);
    transition: transform 0.3s cubic-bezier(0.22, 0.68, 0, 1.2), box-shadow 0.3s ease;
    background-color: #000;
}

@media (max-width: 1024px) {
    .cc-reel-card { flex: 0 0 calc(33.333% - 14px); }
    .cc-reels-carousel-container { padding: 0 30px; }
}
@media (max-width: 600px) {
    .cc-reel-card { flex: 0 0 calc(50% - 10px); }
    .cc-reels-carousel-container { padding: 0 10px; }
}

.cc-reel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(164,146,124,0.24);
}

/* Card Video */
.cc-reel-thumbnail {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.5s ease;
}

/* Views Badge */
.cc-reel-views-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-family: var(--ff-body, 'Quicksand', sans-serif);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.cc-reel-views-badge svg {
    width: 13px !important;
    height: 13px !important;
    min-width: 13px !important;
    min-height: 13px !important;
    max-width: 13px !important;
    max-height: 13px !important;
    fill: #fff !important;
    display: block !important;
    flex-shrink: 0;
    vertical-align: middle !important;
    overflow: hidden !important;
}

/* Card Info Overlay */
.cc-reel-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    z-index: 10;
    pointer-events: none;
}

.cc-reel-card-title {
    font-family: var(--ff-display, 'Fredoka', sans-serif);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   SHARED CIRCLE BUTTON MIXIN — applied to all icon buttons
   ============================================================ */
.cc-reels-carousel-btn,
.cc-reels-lightbox-action-btn,
.cc-reels-lightbox-close-btn,
.cc-reels-lightbox-like-btn,
.cc-reels-lightbox-nav-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0;
    border: none;
    box-sizing: border-box !important;
    line-height: 0 !important;   /* key: removes inline-block vertical gap */
    font-size: 0 !important;     /* prevents inherited text-based size pushing */
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
}

/* All SVGs inside any circle button — forced square + centered */
.cc-reels-carousel-btn svg,
.cc-reels-lightbox-action-btn svg,
.cc-reels-lightbox-close-btn svg,
.cc-reels-lightbox-like-btn svg,
.cc-reels-lightbox-nav-btn svg {
    display: block !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
    overflow: hidden !important;
}

/* ==========================================================================
   CAROUSEL NAV BUTTONS
   ========================================================================== */

.cc-reels-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    border-radius: 50% !important;
    background-color: #fff !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10;
    color: #333;
    transition: all 0.25s ease;
}

.cc-reels-carousel-btn:hover {
    background-color: var(--dusty-blush, #E6C4C1) !important;
    color: #3D3830;
}

.cc-reels-carousel-btn.prev { left: 10px; }
.cc-reels-carousel-btn.next { right: 10px; }

.cc-reels-carousel-btn svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    fill: currentColor !important;
}

.cc-reels-carousel-btn.disabled {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* ==========================================================================
   LIGHTBOX OVERLAY MODAL
   ========================================================================== */

.cc-reels-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(8px);
}

.cc-reels-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.cc-reels-lightbox-content-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 90vh;
    max-height: 800px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    background-color: #000;
}

@media (max-width: 500px) {
    .cc-reels-lightbox-content-wrapper {
        height: 100%;
        max-height: 100%;
        width: 100%;
        border-radius: 0;
    }
}

.cc-reels-lightbox-player-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.cc-reels-lightbox-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mute Button */
.cc-reels-lightbox-top-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
}

.cc-reels-lightbox-action-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
    background-color: rgba(0,0,0,0.55) !important;
    border: none !important;
    color: #fff;
    backdrop-filter: blur(4px);
    transition: background-color 0.2s ease;
}

.cc-reels-lightbox-action-btn:hover {
    background-color: rgba(0,0,0,0.8) !important;
}

.cc-reels-lightbox-action-btn svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    fill: #fff !important;
}

/* Close Button */
.cc-reels-lightbox-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1000001;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    background: rgba(0,0,0,0.4) !important;
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cc-reels-lightbox-close-btn:hover {
    background: rgba(0,0,0,0.7) !important;
    transform: scale(1.1);
}

.cc-reels-lightbox-close-btn svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    fill: #fff !important;
}

/* Like Button */
.cc-reels-lightbox-side-actions {
    position: absolute;
    right: 16px;
    bottom: 220px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cc-reels-lightbox-like-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cc-reels-lightbox-like-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    border-radius: 50% !important;
    background-color: rgba(0,0,0,0.45) !important;
    border: none !important;
    color: #fff;
    backdrop-filter: blur(4px);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cc-reels-lightbox-like-btn:hover {
    transform: scale(1.1);
}

.cc-reels-lightbox-like-btn svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    fill: #fff !important;
    transition: fill 0.2s ease, transform 0.2s ease;
}

.cc-reels-lightbox-like-btn.liked svg {
    fill: #e63946 !important;
    transform: scale(1.15);
}

.cc-reels-lightbox-like-count {
    font-family: var(--ff-body, 'Quicksand', sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    text-align: center;
    line-height: 1;
}

/* Nav Arrows */
.cc-reels-lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    border-radius: 50% !important;
    background-color: rgba(255,255,255,0.18) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    color: #fff;
    z-index: 100001;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.cc-reels-lightbox-nav-btn:hover {
    background-color: rgba(255,255,255,0.9) !important;
    color: #111;
    transform: translateY(-50%) scale(1.08);
}

.cc-reels-lightbox-nav-btn.prev { left: calc(50% - 260px); }
.cc-reels-lightbox-nav-btn.next { right: calc(50% - 260px); }

@media (max-width: 1024px) {
    .cc-reels-lightbox-nav-btn.prev { left: 12px; }
    .cc-reels-lightbox-nav-btn.next { right: 12px; }
}

@media (max-width: 600px) {
    .cc-reels-lightbox-nav-btn { display: none !important; }
}

.cc-reels-lightbox-nav-btn svg {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    fill: currentColor !important;
}

/* Product Card */
.cc-reels-product-card {
    position: absolute;
    bottom: 24px;
    left: 16px;
    right: 16px;
    z-index: 10;
    background: rgba(255,255,255,0.97);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUpReelProduct 0.35s ease;
}

@keyframes slideUpReelProduct {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cc-reels-product-info-wrap {
    display: flex;
    align-items: center;
    padding: 14px;
    gap: 12px;
}

.cc-reels-product-img {
    width: 54px !important;
    height: 54px !important;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.cc-reels-product-meta {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cc-reels-product-brand {
    font-family: var(--ff-body, 'Quicksand', sans-serif);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #B0AA8E;
    margin-bottom: 2px;
}

.cc-reels-product-title {
    font-family: var(--ff-body, 'Quicksand', sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    color: #3D3830;
    margin: 0 0 2px 0;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cc-reels-product-price {
    font-family: var(--ff-display, 'Fredoka', sans-serif);
    font-size: 0.9rem;
    font-weight: 600;
    color: #3D3830;
}

.cc-reels-product-link-icon {
    flex-shrink: 0;
    color: #7A7060;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.cc-reels-product-link-icon svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    fill: currentColor !important;
    display: block !important;
}

.cc-reels-product-shop-btn {
    background-color: var(--dusty-blush, #E6C4C1) !important;
    color: #3D3830 !important;
    text-align: center;
    padding: 13px 16px;
    font-family: var(--ff-body, 'Quicksand', sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none !important;
    text-transform: uppercase;
    display: block;
    border-top: 1px solid rgba(0,0,0,0.04);
    transition: background-color 0.2s ease;
}

.cc-reels-product-shop-btn:hover {
    background-color: var(--warm-beige, #B0AA8E) !important;
    color: #fff !important;
}

/* ==========================================================================
   INSTAGRAM-STYLE SECTION WRAPPER
   ========================================================================== */

.cozy-insta-section-wrap {
    padding: 60px 24px;
    background-color: #FFFDF9;
    font-family: var(--ff-body, "Quicksand", sans-serif);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.cozy-insta-header {
    text-align: center;
    margin-bottom: 40px;
}

.cozy-insta-subtitle {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--warm-beige, #B0AA8E);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.cozy-insta-title {
    font-family: var(--ff-display, "Fredoka", sans-serif);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--ink, #3D3830);
    margin: 0;
}

.cozy-insta-btn-container {
    display: flex !important;
    justify-content: center !important;
    margin-top: 36px;
    width: 100%;
}

.cozy-insta-follow-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 14px 32px !important;
    background-color: var(--dusty-blush, #E6C4C1) !important;
    color: var(--ink, #3D3830) !important;
    font-family: var(--ff-body, "Quicksand", sans-serif) !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 999px !important;
    box-shadow: 0 6px 20px rgba(230,196,193,0.35) !important;
    transition: all 0.3s ease !important;
    line-height: 1.5 !important;
}

.cozy-insta-follow-btn:hover {
    background-color: var(--warm-beige, #B0AA8E) !important;
    color: #fff !important;
    transform: translateY(-3px) !important;
}

.cozy-insta-svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    transition: transform 0.3s;
    vertical-align: middle !important;
}

.cozy-insta-follow-btn:hover .cozy-insta-svg {
    transform: rotate(12deg) scale(1.1);
}
