/* ============================================
   VARIABLES & BASE
   ============================================ */
:root {
    --prod-radius: 20px;
    --prod-shadow: 0 20px 60px rgba(0,0,0,.08);
    --section-bg: #faf9f7;
    --section-alt-bg: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #666;
}

/* ============================================
   HERO
   ============================================ */
.products-hero {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    background: #1a1a1a;
    color: #fff;
}

.products-hero__bg {
    position: absolute;
    inset: 0;
    background-image: url(/images/hero/products.webp);
    background-size: 100%;
    background-position: bottom;
    filter: brightness(.35);
}

.products-hero__label {
    display: inline-block;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 100px;
    padding: 6px 18px;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: rgba(255,255,255,.85);
}

.products-hero__title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--ciotolandia-orange, #e67e22), var(--ciotolandia-light-green, #4aa34a));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-hero__sub {
    font-size: 1.1rem;
    opacity: .75;
    max-width: 580px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.products-hero__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.badge-pill {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 100px;
    padding: 8px 16px;
    font-size: .85rem;
    color: rgba(255,255,255,.9);
    backdrop-filter: blur(10px);
}

.products-hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.products-hero__scroll span {
    display: block;
    width: 2px;
    height: 8px;
    background: rgba(255,255,255,.4);
    border-radius: 2px;
    animation: scrollDots 1.4s ease-in-out infinite;
}

.products-hero__scroll span:nth-child(2) { animation-delay: .2s; }
.products-hero__scroll span:nth-child(3) { animation-delay: .4s; }

@keyframes scrollDots {
    0%, 100% { opacity: .2; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.4); }
}

/* ============================================
   EGGSHELL BANNER
   ============================================ */
.eggshell-banner {
    background: linear-gradient(135deg, #fffdf5 0%, #fff8e1 100%);
    border-top: 1px solid rgba(0,0,0,.06);
    border-bottom: 1px solid rgba(0,0,0,.06);
}
 
.eggshell-banner__icon {
    font-size: 4.5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.12));
}
 
.eggshell-banner__title {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text, #1a1a2e);
    margin: 0;
}
 
.eggshell-banner__sub {
    font-size: .95rem;
    line-height: 1.65;
    opacity: .8;
    color: var(--text, #1a1a2e);
}
 
/* Benefit cards */
.eggshell-benefit-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 14px;
    padding: 1.25rem 1rem;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}
 
.eggshell-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.10);
}
 
.eggshell-benefit-card__icon {
    display: block;
    font-size: 2rem;
    margin-bottom: .5rem;
}
 
.eggshell-benefit-card__title {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: .4rem;
    color: var(--text, #1a1a2e);
}
 
.eggshell-benefit-card__text {
    font-size: .82rem;
    line-height: 1.55;
    opacity: .75;
    margin: 0;
    color: var(--text, #1a1a2e);
}
 
@media (max-width: 767.98px) {
    .eggshell-banner__icon { font-size: 3rem; }
    .eggshell-banner__title { font-size: 1.35rem; }
}

/* ============================================
   STICKY NAV
   ============================================ */
.products-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,.07);
    padding: 0;
}

.products-nav .container { overflow-x: auto; }

.products-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    justify-content: center;
}

.products-nav li { flex-shrink: 0; }

.prod-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: .9rem;
    border-bottom: 3px solid transparent;
    transition: all .25s ease;
    white-space: nowrap;
}

.prod-nav-link:hover { color: var(--text-dark); }
.prod-nav-link.active { color: var(--text-dark); border-bottom-color: currentColor; }

.prod-nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================
   PRODUCT SECTIONS
   ============================================ */
.product-section {
    position: relative;
    padding: 100px 0;
    background: var(--section-bg);
    overflow: hidden;
}

.product-section--alt {
    background: var(--section-alt-bg);
}

.product-section__accent {
    position: absolute;
    top: -100px;
    right: -150px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: var(--accent-light);
    pointer-events: none;
}

.product-section--alt .product-section__accent {
    top: auto;
    bottom: -100px;
    left: -150px;
    right: auto;
}

/* Tags */
.product-tag {
    display: inline-block;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
    border: 1.5px solid color-mix(in srgb, var(--accent) 30%, transparent);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* Titles */
.product-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.1;
    margin-bottom: 18px;
    color: var(--text-dark);
}

.product-intro {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 36px;
}

/* ============================================
   INGREDIENT LIST
   ============================================ */
.ingredient-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ingredient-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ingredient-bar-wrap {
    width: 5px;
    flex-shrink: 0;
    align-self: stretch;
    background: #f0ede8;
    border-radius: 10px;
    overflow: hidden;
    min-height: 60px;
    position: relative;
}

.ingredient-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--pct);
    background: var(--color);
    border-radius: 10px;
    transition: height 1.2s cubic-bezier(.23,1,.32,1);
}

.ingredient-details strong {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.ingredient-details strong em {
    font-style: normal;
    font-weight: 500;
    opacity: .55;
    font-size: .82rem;
    margin-left: 6px;
}

.ingredient-details p {
    font-size: .82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   PRODUCT VISUAL CARD
   ============================================ */
.product-visual-card {
    background: #fff;
    border-radius: var(--prod-radius);
    box-shadow: var(--prod-shadow);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.05);
}

.product-visual-card__image {
    position: relative;
    overflow: hidden;
    max-height: 300px;
}

.product-visual-card__image img {
    width: 100%;
    height: auto;
    margin-left: 20%;
    margin-top: -10%;
    object-fit: cover;
    transition: transform .5s ease;
    display: block;
}

.product-visual-card:hover .product-visual-card__image img {
    transform: scale(1.04);
}

.product-visual-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 15px rgba(0,0,0,.12);
}

/* Benefits grid */
.product-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #f5f3ef;
}

.benefit-tile {
    background: #fff;
    padding: 18px 20px;
    transition: background .2s;
}

.benefit-tile:hover { background: #fafaf9; }

.benefit-icon {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 6px;
}

.benefit-tile strong {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.benefit-tile p {
    font-size: .78rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* CTA row */
.product-cta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #fff;
    flex-wrap: wrap;
}

.btn-product {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border-radius: 100px;
    padding: 11px 24px;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, background .2s;
    white-space: nowrap;
}

.btn-product:hover {
    color: #fff;
    transform: translateY(-2px);
}

.product-allergen {
    font-size: .78rem;
    color: #27ae60;
    font-weight: 600;
}

/* ============================================
   FINAL CTA
   ============================================ */
.products-cta-final {
    background: var(--ciotolandia-light-green);
    color: #fff;
}

.products-cta-final h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .product-section { padding: 60px 0; }
    .product-benefits-grid { grid-template-columns: 1fr 1fr; }
    .product-visual-card__image img { height: 220px; }
    .products-hero { padding: 80px 0 60px; }
    .prod-nav-link { padding: 12px 16px; font-size: .82rem; }
    .product-cta-row { flex-direction: column; align-items: flex-start; }

    .product-section--alt .product-section__accent {
        top: -100px;
        bottom: unset;
    }
}

@media (max-width: 480px) {
    .product-benefits-grid { grid-template-columns: 1fr; }
}