/*--------- Home Interface Styles ----------*/
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(10px, 3vw, 15px);
}
.message-container {
    margin-top: clamp(1rem, 2vw, 1.5rem);
}
.alert {
    padding: clamp(10px, 2vw, 1rem);
    border-radius: clamp(6px, 1.5vw, 8px);
    text-align: center;
    position: relative;
    font-weight: 600;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    font-size: clamp(0.85rem, 1.5vw, 1rem);
}
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.btn-close {
    background: transparent;
    border: none;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}
.offer0 {
    padding: clamp(0.5rem, 1.5vw, 1rem) 0;
    background-color: #f8f9fa;
}
/* Enhanced Hero Section */
.hero-intro-container {
    padding: clamp(40px, 5vw, 80px) clamp(15px, 3vw, 20px);
    width: 100%;
    min-height: clamp(60vh, 80vh, 100vh);
    display: flex;
    justify-content: center;
    align-items: center;
    /* Added vibrant, friendly brand gradient */
    background: linear-gradient(135deg, var(--dark-coffee, #3e2723) 0%, var(--primary-brown, #8d6e63) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
    color: white;
}
/* Enhanced Hero Glass effect */
.hero-intro {
    padding: clamp(25px, 5vw, 60px) clamp(20px, 4vw, 50px);
    border-radius: clamp(10px, 3vw, 15px);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 2;
    cursor: pointer;
}
.hero-intro:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
    border-color: rgba(255, 255, 255, 0.4);
}
.hero-title {
    font-size: clamp(2.2rem, 7vw, 5rem);
    font-weight: 800;
    margin: 0 0 clamp(0.5rem, 2vw, 1rem) 0;
    line-height: 1.1;
    letter-spacing: clamp(-0.5px, -0.1vw, -1px);
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    font-weight: 300;
    opacity: 0.95;
}
.hero-intro-btn {
    display: inline-block;
    padding: clamp(12px, 2.5vw, 20px) clamp(25px, 5vw, 50px);
    text-decoration: none;
    color: var(--dark-coffee, #3e2723);
    background: var(--pure-white, #ffffff);
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.4s ease;
    font-size: clamp(0.95rem, 1.5vw, 1.25rem);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: none;
}
.hero-intro-btn:hover, .hero-intro-btn:focus {
    background: #f1f1f1;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
    outline: none;
}
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    pointer-events: none;
}
@keyframes ripple-anim {
    to { transform: scale(4); opacity: 0; }
}

@media (max-width: 768px) {
    .hero-intro-container {
        min-height: 40vh;
        padding: 40px 15px;
    }
    .hero-intro {
        padding: 25px 15px;
    }
}

/* Products Section */
.products-section {
    padding: clamp(40px, 8vw, 80px) 0;
}
.alt-bg {
    background-color: #f8f9fa;
}
.section-title {
    text-align: center;
    font-weight: 800;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    padding-bottom: clamp(0.75rem, 2vw, 1rem);
    border-bottom: 2px solid rgba(141, 110, 99, 0.15);
    color: var(--dark-coffee, #3e2723);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 30vw, 260px), 1fr));
    gap: clamp(1rem, 3vw, 1.5rem);
    justify-content: center;
}
.product-card-wrapper {
    display: flex;
}
.product-card {
    background: var(--pure-white, #ffffff);
    border-radius: clamp(10px, 3vw, 15px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    width: 100%;
    overflow: hidden;
}
.product-card:hover, .product-card:focus-within {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.image-container {
    position: relative;
    padding: clamp(10px, 2vw, 1rem);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: clamp(0.75rem, 1.2vw, 0.8rem);
    z-index: 2;
}
.product-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}
.product-img-wrapper {
    height: clamp(160px, 25vw, 200px);
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    display: flex;
    align-items: center;
    justify-content: center;
}
.shop-item-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.product-card:hover .shop-item-image {
    transform: scale(1.1);
}
.product-title {
    color: var(--dark-coffee, #3e2723);
    font-weight: 700;
    margin: 0 0 clamp(0.25rem, 1vw, 0.5rem) 0;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.5em;
}
.product-meta {
    margin-top: auto;
}
.product-price {
    color: var(--primary-brown, #8d6e63);
    font-weight: 800;
    margin: 0 0 clamp(0.25rem, 1vw, 0.5rem) 0;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
}
.price-old {
    color: #6c757d;
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    margin-right: 8px;
    font-weight: 400;
}
.rating {
    color: #ffc107;
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
}
/* Promos */
.promo-banner {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
    text-align: center;
    color: white;
    margin: clamp(2.5rem, 6vw, 4rem) 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
@keyframes dynamicBrandBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.promo-primary {
    background-color: var(--primary-brown, #8d6e63);
}
.promo-success {
    background: linear-gradient(270deg, var(--primary-brown, #8d6e63), var(--dark-coffee, #3e2723), var(--primary-brown, #8d6e63));
    background-size: 400% 400%;
    animation: dynamicBrandBg 8s ease infinite;
}
.promo-dark {
    background-color: var(--dark-coffee, #3e2723);
}
.promo-title {
    font-weight: 800;
    margin-bottom: clamp(1rem, 3vw, 2rem);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: var(--pure-white, #ffffff);
}
.promo-picture {
    width: 100%;
    max-height: clamp(200px, 35vw, 300px);
    object-fit: contain;
    border-radius: clamp(10px, 3vw, 15px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    background-color: var(--pure-white, #ffffff);
}
/* Enhanced Offer Section Background */
.bg-gradient-brand {
    background: linear-gradient(135deg, var(--primary-brown, #8d6e63) 0%, var(--dark-coffee, #3e2723) 100%);
    position: relative;
    overflow: hidden;
}
.bg-gradient-brand::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}
.offer-section {
    padding: clamp(40px, 8vw, 5rem) 0;
    color: white;
}
.offer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 3rem);
    align-items: center;
}
@media (min-width: 992px) {
    .offer-grid { grid-template-columns: 1fr 1fr; }
}
.offer-image-col {
    text-align: center;
}
.offer-image-wrapper {
    position: relative;
    display: inline-block;
    padding: clamp(10px, 3vw, 20px);
    background: linear-gradient(270deg, var(--primary-brown, #8d6e63), var(--dark-coffee, #3e2723), var(--primary-brown, #8d6e63));
    background-size: 400% 400%;
    animation: dynamicBrandBg 8s ease infinite;
    border-radius: clamp(10px, 3vw, 15px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    max-width: clamp(240px, 40vw, 320px);
    width: 100%;
    box-sizing: border-box;
}
.offer-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: white;
    padding: clamp(6px, 1.5vw, 10px) clamp(12px, 2.5vw, 20px);
    border-radius: 50px;
    font-weight: 700;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.offer-image {
    width: 100%;
    height: auto;
    border-radius: clamp(6px, 2vw, 10px);
    object-fit: contain;
    background-color: var(--pure-white, #ffffff);
    display: block;
}
.offer-text-col {
    text-align: center;
}
@media (min-width: 992px) {
    .offer-text-col { text-align: left; }
}
.offer-subtitle {
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffc107;
    font-weight: 700;
    margin-bottom: clamp(0.25rem, 1vw, 0.5rem);
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}
.offer-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    color: #fff;
}
.offer-desc {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    opacity: 0.9;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
}
.btn-offer {
    display: inline-block;
    background: #ffc107;
    color: var(--dark-coffee, #3e2723);
    padding: clamp(12px, 2vw, 15px) clamp(25px, 5vw, 40px);
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    transition: background 0.3s, transform 0.3s;
}
.btn-offer:hover, .btn-offer:focus {
    background: #fff;
    transform: translateY(-3px);
    outline: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
/* Testimonials Original Design Rules */
.testimonials-section {
    padding: clamp(40px, 8vw, 5rem) 0;
}
.testimonials-header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}
.section-subtitle {
    color: var(--text-muted, #6c757d);
    max-width: 600px;
    margin: 0 auto;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}
.testimonial-card {
    background: var(--pure-white, #ffffff);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: clamp(10px, 3vw, 15px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(141, 110, 99, 0.1);
}
.quote-icon {
    color: var(--primary-brown, #8d6e63);
    opacity: 0.5;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
}
.reviewer-avatar {
    width: clamp(60px, 10vw, 80px);
    height: clamp(60px, 10vw, 80px);
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto clamp(0.75rem, 2vw, 1rem) auto;
    border: 3px solid #eaeaea;
}
.reviewer-name {
    font-weight: 700;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    font-size: clamp(1rem, 1.8vw, 1.1rem);
}
.testimonial-text {
    font-style: italic;
    color: var(--text-muted, #6c757d);
    flex-grow: 1;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    font-size: clamp(0.9rem, 1.5vw, 0.95rem);
}
.testimonials-action {
    text-align: center;
    margin-top: 15px;
}
.btn-outline {
    display: inline-block;
    border: 2px solid var(--primary-brown, #8d6e63);
    color: var(--primary-brown, #8d6e63);
    padding: clamp(12px, 2.5vw, 15px) clamp(25px, 5vw, 40px);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}
.btn-outline:hover, .btn-outline:focus {
    background: var(--primary-brown, #8d6e63);
    color: white;
    outline: none;
}
/* Brands & Partners Base Rules */
.brands-section, .partners-section {
    padding: clamp(3rem, 6vw, 4rem) 0;
    border-top: 1px solid #eaeaea;
}
.text-muted { color: #6c757d !important; }
.brand-img {
    max-width: 100%;
    max-height: clamp(40px, 8vw, 60px);
    object-fit: contain;
    transition: all 0.3s ease;
}
.grayscale-hover { filter: grayscale(100%); }
.grayscale-hover:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* ==================================================== */
/* Hardware Accelerated CSS Infinite Marquee Animations */
/* ==================================================== */

.marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding: clamp(10px, 2vw, 20px) 0;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    /* Default fallback speed, can be overwritten by JS dynamically */
    animation: marqueeScroll 30s linear infinite;
    /* Hardware acceleration to prevent layout repaints/stutter */
    will-change: transform;
}

.marquee-track:hover {
    /* UX Pause on hover to allow users to interact/read */
    animation-play-state: paused; 
}

.marquee-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    /* Essential space between the end of Content Block 1 and start of Content Block 2 */
    padding-right: clamp(1.5rem, 4vw, 2.5rem); 
}

.marquee-item {
    flex-shrink: 0;
}

/* Explicit widths for seamless alignment inside the sliding flex container */
.testimonial-wrapper.marquee-item {
    width: clamp(280px, 30vw, 350px);
    display: flex;
}
.brand-item.marquee-item {
    width: clamp(120px, 15vw, 180px);
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes marqueeScroll {
    0% { transform: translate3d(0, 0, 0); }
    /* By sliding strictly to -50% (the exact width of the original duplicate track length), 
       it visually jumps back seamlessly to the start of the matching cloned node. */
    100% { transform: translate3d(-50%, 0, 0); }
}