/* 
 * Kefir Design System (Wild Style) 
 * Based on analysis of drinkwildwonder.com 
 */

:root {
    --kefir-blue: #001689;
    --kefir-pink: #E21B79;
    --kefir-cream: #FBF5E7;
    --kefir-lime: #DAFF3C;
    --kefir-border-radius: 8px;
    --kefir-font-heading: 'Barlow Condensed', sans-serif;
    --kefir-font-body: 'Rubik', sans-serif;
}

/* Base Typo */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--kefir-font-heading) !important;
    text-transform: uppercase;
    font-weight: 700;
}

body {
    background-color: var(--kefir-cream);
    font-family: var(--kefir-font-body);
    color: var(--kefir-blue);
}

/* --- COMPONENT: MARQUEE (CSS Only) --- */
.kefir-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    background-color: var(--kefir-blue);
    color: var(--kefir-lime);
    padding: 12px 0;
    white-space: nowrap;
}

.kefir-marquee-track {
    display: flex;
    width: max-content; /* Ensure it fits content */
    animation: kefir-scroll 20s linear infinite;
}

.kefir-marquee-content {
    font-family: var(--kefir-font-heading);
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    padding-right: 20px; /* Spacing between repeats */
}

@keyframes kefir-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-25%); } /* Move by 1/4th because we repeated content 4 times */
}

/* --- COMPONENT: PRODUCT CARD (Grid Item) --- */
/* To be applied to Elementor Loop Grid Item container class: .kefir-product-card */

.kefir-product-card {
    position: relative;
    background: transparent;
    overflow: visible; /* Allow buttons to pop */
}

/* Image Swap Logic */
.kefir-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.25; /* Tall Can Aspect */
    background: white; /* Optional card bg */
    border-radius: var(--kefir-border-radius);
    overflow: hidden;
}

.kefir-card-img-front,
.kefir-card-img-hover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease-out;
}

.kefir-card-img-front {
    opacity: 1;
}

.kefir-card-img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* Trigger Hover */
.kefir-product-card:hover .kefir-card-img-front {
    opacity: 0; /* Optional: fade out front, or just overlay */
}
.kefir-product-card:hover .kefir-card-img-hover {
    opacity: 1;
}

/* Quantity Pills (Gravity Forms / WC Variation Radios) */
.kefir-qty-pill label {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--kefir-blue);
    border-radius: var(--kefir-border-radius);
    font-family: var(--kefir-font-heading);
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    transition: all 0.2s;
}

.kefir-qty-pill input[type="radio"]:checked + label {
    background-color: var(--kefir-blue);
    color: white;
}

/* Quick Add Button (Slide Up) */
.kefir-quick-add-btn {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Snappy pop */
}

.kefir-product-card:hover .kefir-quick-add-btn {
    opacity: 1;
    transform: translateY(0);
}
