/* ==========================================================================
   Zari Zeens Collection - Custom CSS (T-shirts Preset Style)
   Only for: Top Reel, Announcement Bar, WhatsApp Button,
             Add to Cart button styling, Header layout
   Everything else is handled by Woodmart
   ========================================================================== */

/* ==========================================================================
   1. TOP REEL — SCROLLING MARQUEE BAR
   ========================================================================== */
.zzc-top-reel {
    background: #1C1C1C;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 101;
    contain: layout style;
}

.zzc-top-reel__track {
    display: flex;
    animation: zzc-marquee 35s linear infinite;
    width: max-content;
    will-change: transform;
    backface-visibility: hidden;
}

.zzc-top-reel:hover .zzc-top-reel__track {
    animation-play-state: paused;
}

.zzc-top-reel__group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 9px 0;
}

.zzc-top-reel__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
    padding: 0 16px;
    white-space: nowrap;
}

.zzc-top-reel__item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.zzc-top-reel__item--highlight {
    color: #FFD700;
    font-weight: 600;
}

.zzc-top-reel__item--highlight svg {
    opacity: 1;
    stroke: #FFD700;
}

.zzc-top-reel__separator {
    color: rgba(255, 255, 255, 0.25);
    font-size: 10px;
    padding: 0 4px;
    user-select: none;
}

@keyframes zzc-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .zzc-top-reel__group { padding: 7px 0; }
    .zzc-top-reel__item { font-size: 11px; padding: 0 10px; }
    .zzc-top-reel__track { animation-duration: 22s; }
}



/* ==========================================================================
   3. WHATSAPP FLOATING BUTTON
   ========================================================================== */
.zzc-whatsapp-btn {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 52px;
    height: 52px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zzc-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

@media (max-width: 768px) {
    .zzc-whatsapp-btn {
        bottom: 90px;
        right: 16px;
        width: 46px;
        height: 46px;
    }
    .zzc-whatsapp-btn svg { width: 22px; height: 22px; }
}

/* ==========================================================================
   4. T-SHIRTS STYLE — ADD TO CART BUTTON ON PRODUCT CARDS
   Woodmart's "standard" hover mode puts the ATC button below price.
   These styles ensure it matches the T-shirts demo: black button, full width.
   ========================================================================== */

/* Force show the ATC button area in standard mode */
.products .product .button.add_to_cart_button,
.products .product .woocommerce-loop-product__link + .add_to_cart_button,
.products .product .product-element-bottom .add_to_cart_button,
.products .product .wd-add-btn .button,
.products .product a.button {
    display: block !important;
    width: 100%;
    background-color: #1C1C1C !important;
    color: #ffffff !important;
    border: 2px solid #1C1C1C !important;
    padding: 10px 16px !important;
    text-align: center;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    transition: background 0.25s ease, color 0.25s ease !important;
    margin-top: 10px;
    cursor: pointer;
}

.products .product .button.add_to_cart_button:hover,
.products .product .wd-add-btn .button:hover,
.products .product a.button:hover {
    background-color: #ffffff !important;
    color: #1C1C1C !important;
    border-color: #1C1C1C !important;
}

/* "Select Options" button — variable products */
.products .product a.button.product_type_variable,
.products .product a.button.product_type_grouped {
    background-color: #ffffff !important;
    color: #1C1C1C !important;
    border: 2px solid #1C1C1C !important;
}

.products .product a.button.product_type_variable:hover,
.products .product a.button.product_type_grouped:hover {
    background-color: #1C1C1C !important;
    color: #ffffff !important;
}

/* Ensure product-info bottom area is visible (not hidden on hover-only) */
.products .product .product-element-bottom,
.products .product .wd-add-btn {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    width: 100%;
}

/* ==========================================================================
   5. DESKTOP HEADER — Logo Left, Menu Center, Actions Right
   ========================================================================== */
@media (min-width: 1025px) {
    /* Top-level header row */
    .wd-header-row-inner,
    .wd-header-row > .container > .wd-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }

    /* Logo column - left */
    .wd-header-logo,
    .wd-header-row .wd-col:first-child {
        flex: 0 0 auto !important;
        justify-content: flex-start !important;
    }

    /* Menu column - center */
    .woodmart-navigation,
    .wd-nav-holder,
    .wd-header-row .wd-col:nth-child(2) {
        flex: 1 1 auto !important;
        display: flex !important;
        justify-content: center !important;
    }

    /* Actions column - right */
    .wd-header-actions,
    .wd-tools-area,
    .wd-header-row .wd-col:last-child {
        flex: 0 0 auto !important;
        justify-content: flex-end !important;
    }
}
