/* UBICHEE Front Page Styles - Hero, Sections, Products, Footer */
/* Loaded only on front page via ubi-assets.php */

/* Front-page specific styles - CSS vars & fonts from global.css */
.hero{
    padding:55px 7% 75px;
    min-height:610px;
    display:grid;
    grid-template-columns:1.03fr .97fr;
    align-items:center;
    gap:25px;
    overflow:hidden;
    position:relative;
}
.hero-copy{
    position:relative;
    z-index:2;
}
.eyebrow{
    display:inline-block;
    background:var(--yellow);
    padding:9px 15px;
    border-radius:30px;
    font-size:11px;
    letter-spacing:.13em;
    font-weight:800;
    text-transform:uppercase;
}
h1,h2,h3,p{
    margin-top:0;
}
h1{
    font:700 clamp(48px,6vw,82px)/.98 Fredoka;
    color:var(--deep);
    letter-spacing:-2px;
    margin:23px 0 20px;
    max-width:600px;
}
h1 em{
    font-style:normal;
    color:#e979a9;
}
.hero-copy p{
    font-size:16px;
    line-height:1.8;
    color:#65586b;
    max-width:430px;
    margin-bottom:28px;
}
.hero-copy .hero-price{
    font-size:13px;
    line-height:1.4;
    color:#6f6174;
    margin:-8px 0 24px;
}
.hero-price strong{
    color:var(--purple);
    font-size:17px;
}
.primary{
    background:var(--purple);
    color:white;
    padding:16px 25px;
    border-radius:40px;
    font-weight:800;
    display:inline-flex;
    align-items:center;
    gap:12px;
    box-shadow:0 8px 0 #d8c3ec;
    transition:.2s;
}
.primary:hover{
    transform:translateY(-3px);
    box-shadow:0 11px 0 #d8c3ec;
}
.hero-art{
    position:relative;
    z-index:1;
    min-height:450px;
    display:flex;
    align-items:center;
    justify-content:center;
}
.hero-slider{
    position:relative;
    width:min(420px,88%);
    aspect-ratio:1;
    border-radius:50%;
}
.hero-slide{
    position:absolute;
    inset:0;
    opacity:0;
    transform:scale(.94) rotate(-2deg);
    transition:opacity .7s ease,transform .7s ease;
    display:flex;
    align-items:center;
    justify-content:center;
    pointer-events:none;
}
.hero-slide.active{
    opacity:1;
    transform:scale(1) rotate(0);
    z-index:2;
    pointer-events:auto;
}
.hero-slide img{
    width:100%;
    aspect-ratio:1;
    object-fit:cover;
    border-radius:50%;
    box-shadow:0 30px 60px rgba(60,20,80,.28);
    background:var(--yellow);
}
.hero-slide-label{
    position:absolute;
    bottom:5%;
    left:50%;
    transform:translateX(-50%);
    background:var(--yellow);
    color:var(--deep);
    padding:9px 18px;
    border-radius:30px;
    font:800 12px 'DM Sans',sans-serif;
    letter-spacing:.12em;
    text-transform:uppercase;
    box-shadow:0 6px 16px rgba(0,0,0,.12);
    white-space:nowrap;
    z-index:3;
}
.hero-dots{
    position:absolute;
    bottom:-48px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:0;
    z-index:3;
}
/* 24px hit area with an 11px visible dot: the dot lives on ::before so the
   control meets the minimum touch target without changing the design. */
.hero-dot{
    width:24px;
    height:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:transparent;
    border:0;
    padding:0;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
}
.hero-dot::before{
    content:"";
    width:11px;
    height:11px;
    border-radius:50%;
    background:#d9c7e8;
    transition:background .25s,transform .25s;
}
.hero-dot.active::before{
    background:var(--purple);
    transform:scale(1.25);
    animation:ubiDotPulse 1.8s ease-in-out infinite;
}
@keyframes ubiDotPulse{
    0%,100%{box-shadow:0 0 0 0 rgba(103,55,165,.45);}
    50%{box-shadow:0 0 0 7px rgba(103,55,165,0);}
}
.bread{
    width:245px;
    height:175px;
    background:linear-gradient(145deg,#f8d28a,#c77a35);
    border-radius:48% 48% 38% 38%;
    transform:rotate(8deg);
    position:relative;
    box-shadow:inset -13px -15px 0 #a95f2e,inset 0 9px 0 #ffe0a4,0 22px 24px #a55d3450;
}
.bread:before{
    content:"";
    position:absolute;
    width:125px;
    height:63px;
    background:#fff2d5;
    border-radius:50%;
    left:60px;
    top:48px;
    box-shadow:inset 0 -8px 0 #e9c98e;
}
.bread:after{
    content:"";
    position:absolute;
    width:55px;
    height:28px;
    background:#f5c94d;
    border-radius:50%;
    left:95px;
    top:65px;
    box-shadow:0 0 0 6px #fff8e7;
}
.spark{
    position:absolute;
    font-size:42px;
    color:var(--purple);
}
.s1{top:35px;right:8%;}
.s2{bottom:48px;left:3%;font-size:34px;color:#ed7cab;}
.sticker{
    position:absolute;
    right:0;
    bottom:40px;
    background:var(--pink);
    color:#fff;
    padding:18px 22px;
    border-radius:50%;
    font:700 17px Fredoka;
    transform:rotate(12deg);
    box-shadow:5px 6px 0 #c95d8e;
}
.section{
    padding:90px 7%;
}
.trust-strip{
    background:var(--deep);
    padding:0 7%;
}
.trust-strip ul{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px 34px;
    margin:0;
    padding:16px 0;
    list-style:none;
    font-size:13px;
    font-weight:600;
    color:#fff;
}
.trust-strip li{
    display:flex;
    align-items:center;
    gap:8px;
}
.trust-strip li span{
    color:var(--yellow);
    font-weight:800;
}
.section-tag{
    color:#5f2a80;
    font-weight:800;
    font-size:11px;
    letter-spacing:.18em;
    text-transform:uppercase;
}
.section-title{
    font:700 clamp(36px,4vw,54px)/1.05 Fredoka;
    color:var(--deep);
    letter-spacing:-1px;
    margin:12px 0 18px;
}
.intro{
    display:grid;
    grid-template-columns:.8fr 1.2fr;
    gap:9%;
    align-items:center;
    background:#f4e9fb;
}
.intro-mark{
    background:var(--purple);
    color:white;
    border-radius:45% 55% 57% 43%;
    padding:48px 35px;
    text-align:center;
    transform:rotate(-4deg);
    font:700 35px Fredoka;
    max-width:310px;
    justify-self:center;
}
.intro p{
    color:#65586b;
    line-height:1.9;
    max-width:650px;
}
.home-products{
    background:#fffaf1;
}
.home-products-head{
    display:flex;
    justify-content:space-between;
    align-items:end;
    margin-bottom:38px;
}
.home-products-head p{
    color:#766b79;
    max-width:320px;
    line-height:1.7;
    font-size:14px;
}
.product-carousel{position:relative;}
.product-grid{
    display:flex;
    gap:22px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
    padding-bottom:6px;
}
.product-grid::-webkit-scrollbar{display:none;}
.product-card{
    flex:0 0 calc((100% - 44px)/3);
    scroll-snap-align:start;
}
.product-nav{
    position:absolute;top:50%;transform:translateY(-50%);z-index:2;
    width:42px;height:42px;border:0;border-radius:50%;
    background:#6737a5;color:#fff;font-size:26px;line-height:1;cursor:pointer;
    box-shadow:0 4px 14px rgba(0,0,0,.18);
}
.product-nav.prev{left:-18px;}
.product-nav.next{right:-18px;}
.product-nav:hover{background:#4e3575;}
.product-card{
    background:white;
    border-radius:25px;
    padding:14px;
    position:relative;
    box-shadow:0 10px 35px #44245b0d;
    transition:.25s;
}
.product-card:hover{
    transform:translateY(-7px);
}
.product-link{
    display:block;
    color:inherit;
    text-decoration:none;
}
.product-link:hover .product-visual{
    transform:scale(1.02);
    transition:.25s;
}
.product-visual{
    aspect-ratio:1/1;
    border-radius:19px;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    overflow:hidden;
}
.product-visual img{
    width:100%;
    height:100%;
    object-fit:contain;
}
.product-visual.original{
    background:#f9df9b;
}
.product-visual.choco{
    background:#e8c6b5;
}
.product-visual.tira{
    background:#e7d5f4;
}
.mini-bread{
    position:relative;
    width:160px;
    height:115px;
    border-radius:50% 50% 40% 40%;
    background:linear-gradient(145deg,#f9d998,#bd7439);
    box-shadow:inset -10px -10px #a85d2b,0 15px 20px #6d422b40;
    transform:rotate(-8deg);
}
.mini-bread:before{
    content:"";
    position:absolute;
    width:82px;
    height:38px;
    background:#fff0d3;
    border-radius:50%;
    left:39px;
    top:35px;
}
.choco .mini-bread:after{
    content:"";
    position:absolute;
    width:65px;
    height:28px;
    background:#75432f;
    border-radius:50%;
    left:48px;
    top:40px;
}
.tira .mini-bread:after{
    content:"";
    position:absolute;
    width:95px;
    height:48px;
    background:#e7d8bf;
    border-radius:50%;
    left:32px;
    top:27px;
    box-shadow:0 5px 0 #a47b5a;
}
.product-label{
    position:absolute;
    top:15px;
    left:15px;
    background:white;
    padding:7px 11px;
    border-radius:20px;
    font-size:10px;
    font-weight:800;
    letter-spacing:.08em;
}
.product-info{
    padding:19px 9px 10px;
}
.product-info h3{
    font:600 25px Fredoka;
    color:var(--deep);
    margin-bottom:7px;
}
.product-info p{
    font-size:13px;
    color:#6f6174;
    line-height:1.6;
    min-height:42px;
}
.price-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-top:18px;
}
.price{
    font-size:19px;
    font-weight:800;
    color:var(--purple);
}
.price-block{
    display:flex;
    flex-direction:column;
    gap:1px;
}
.price-from{
    font-size:10px;
    font-weight:700;
    letter-spacing:.12em;
    text-transform:uppercase;
    color:#6f6174;
}
.price-sizes{
    font-size:11px;
    font-weight:600;
    color:#6f6174;
}
.add{
    background:var(--yellow);
    color:var(--deep);
    border-radius:50%;
    width:43px;
    height:43px;
    font-size:23px;
    font-weight:700;
    transition:.2s;
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    flex:0 0 auto;
}
.add:hover{
    background:var(--pink);
    color:white;
}
/* Add to cart animation */
@keyframes ubiAddBounce{
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.3); }
    60% { transform: scale(0.9); }
    80% { transform: scale(1.1); }
}
@keyframes ubiAddSuccess{
    0% { background: var(--yellow); }
    50% { background: #4caf50; color: #fff; }
    100% { background: var(--yellow); }
}
.add.ubi-adding{
    animation: ubiAddBounce .5s cubic-bezier(.2,.8,.2,1) !important;
}
.add.ubi-added{
    animation: ubiAddSuccess .6s ease !important;
}
.add.ubi-added::after{
    content:'✓';
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    color:#fff;
}
/* Cart button bounce (front page) */
@keyframes ubiCartBounceFront{
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.25); }
    60% { transform: scale(0.95); }
    80% { transform: scale(1.1); }
}
#ubiCartBtn.ubi-cart-bounce{
    animation: ubiCartBounceFront .5s cubic-bezier(.2,.8,.2,1) !important;
    box-shadow: 0 0 0 4px rgba(255,214,90,.5), 0 6px 20px rgba(103,55,165,.3) !important;
}
.inside{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8%;
    align-items:center;
    background:var(--yellow);
}
.inside-art{
    min-height:220px;
    background:#ffd65a;
    border-radius:48% 52% 44% 56%;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    position:relative;
    padding:8px 0;
}
.inside-bread{
    width:100%;
    height:auto;
    max-height:340px;
    object-fit:contain;
    filter:drop-shadow(0 20px 30px rgba(60,20,80,.2));
}
.inside-art .bread{
    transform:scale(.8) rotate(9deg);
}
.inside-copy p{
    line-height:1.8;
    color:#665635;
    max-width:470px;
}
.ingredient-list{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:25px;
}
.ingredient-list span{
    background:#fff8e8;
    padding:10px 15px;
    border-radius:30px;
    font-size:12px;
    font-weight:700;
}
.text-link{
    color:var(--purple);
    font-weight:800;
    text-decoration:underline;
    text-decoration-thickness:2px;
    text-underline-offset:3px;
}
.text-link:hover{
    color:#4c247d;
}
.proof{
    background:#fff;
}
.proof-note{
    font-size:12px;
    color:#6f6174;
    margin:-6px 0 28px;
}
.proof-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}
.proof-card{
    margin:0;
    background:var(--cream);
    border:1px solid #f0e4d2;
    border-radius:22px;
    padding:26px;
}
.proof-card blockquote{
    margin:0;
    font-size:15px;
    line-height:1.75;
    color:#4b3c57;
}
.proof-card figcaption{
    margin-top:16px;
    display:flex;
    flex-direction:column;
    gap:2px;
}
.proof-name{
    font-size:13px;
    font-weight:800;
    color:var(--deep);
}
.proof-meta{
    font-size:12px;
    color:#6f6174;
}
.proof-cta{
    margin:24px 0 0;
    font-size:13px;
    color:#65586b;
}
.proof-cta a{
    color:var(--purple);
    font-weight:800;
    text-decoration:underline;
    text-underline-offset:3px;
}
.home-faq{
    background:var(--cream);
}
.faq-list{
    max-width:820px;
    margin-top:8px;
}
.faq-list details{
    border-top:1px solid #e5d6c4;
    padding:18px 0;
}
.faq-list details:last-of-type{
    border-bottom:1px solid #e5d6c4;
}
.faq-list summary{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    cursor:pointer;
    list-style:none;
    font-size:16px;
    font-weight:700;
    color:var(--deep);
}
.faq-list summary::-webkit-details-marker{
    display:none;
}
.faq-list summary::after{
    content:"+";
    font:700 22px Fredoka;
    color:var(--purple);
    transition:transform .2s;
}
.faq-list details[open] summary::after{
    transform:rotate(45deg);
}
.faq-list details p{
    margin:12px 0 0;
    max-width:700px;
    font-size:14px;
    line-height:1.75;
    color:#65586b;
}
.faq-more{
    margin:22px 0 0;
    font-size:14px;
}
.why{
    background:var(--deep);
    color:white;
}
.why .section-title{
    color:white;
}
.why .section-tag{
    color:#e9c9ff;
}
.why-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:35px;
    margin-top:45px;
}
.why-item{
    border-top:1px solid #ffffff50;
    padding-top:22px;
}
.why-num{
    font:700 44px Fredoka;
    color:var(--pink);
}
.why-item h3{
    font:600 23px Fredoka;
    margin:12px 0;
    color:var(--pink);
}
.why-item p{
    font-size:13px;
    line-height:1.8;
    color:#d4c6e1;
}
.cta{
    background:var(--pink);
    text-align:center;
    padding:80px 20px;
    position:relative;
    overflow:hidden;
}
.cta .section-tag{
    color:#3f2338;
}
.cta .section-title{
    color:var(--deep);
    font-size:clamp(38px,5vw,62px);
}
.cta p{
    color:#3f2338;
}
.cta .primary{
    background:var(--deep);
    box-shadow:0 8px 0 #bd6791;
}
.cta-actions{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;
    margin-top:26px;
}
.cta-wa{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    color:var(--deep);
    padding:16px 25px;
    border-radius:40px;
    font-weight:800;
    box-shadow:0 8px 0 #d97aa4;
    transition:.2s;
}
.cta-wa:hover{
    transform:translateY(2px);
    box-shadow:0 6px 0 #d97aa4;
}
footer footer{
    background:#24113e;
    color:white;
    padding:45px 7%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:25px;
}
.footer-logo{
    font:700 32px Fredoka;
    color:var(--yellow);
}
footer p{
    font-size:12px;
    color:#cdbfd8;
    margin:8px 0 0;
}
footer .footlinks{
    display:flex;
    gap:22px;
    font-size:12px;
    color:#e8dff0;
}
.cart-toast{
    position:fixed;
    right:20px;
    bottom:20px;
    background:var(--deep);
    color:white;
    padding:15px 20px;
    border-radius:14px;
    box-shadow:0 10px 30px #0003;
    opacity:0;
    transform:translateY(15px);
    transition:.25s;
    z-index:50;
    font-size:13px;
}
.cart-toast.show{
    opacity:1;
    transform:translateY(0);
}

/* Mobile responsive - Front page specific */
@media(max-width:800px){
    .hero{
        grid-template-columns:1fr;
        padding:55px 7% 40px;
        text-align:center;
    }
    .hero-copy p{
        margin-left:auto;
        margin-right:auto;
    }
    .hero-art{
        min-height:330px;
    }
    .hero-slider{
        width:min(320px,80%);
    }
    .bread{
        transform:scale(.8) rotate(8deg);
    }
    .intro,.inside{
        grid-template-columns:1fr;
    }
    .intro-mark{
        margin-bottom:20px;
    }
    .product-card{flex-basis:calc((100% - 22px)/2);}
    .product-nav.prev{left:-8px;}
    .product-nav.next{right:-8px;}
    .why-grid{
        grid-template-columns:1fr;
        gap:20px;
    }
    .proof-grid{
        grid-template-columns:1fr;
    }
    .home-products-head{
        display:block;
    }
    .home-products-head p{
        margin-top:12px;
    }
    footer{
        flex-direction:column;
        text-align:center;
    }
    .footlinks{
        flex-wrap:wrap;
        justify-content:center;
    }
}
@media(max-width:520px){
    .product-card{flex-basis:100%;}
    .product-visual{
        aspect-ratio:1/1;
    }
    .section{
        padding:65px 7%;
    }
    .hero{
        min-height:auto;
    }
    .hero-art{
        min-height:300px;
    }
    .sticker{
        right:3%;
        bottom:20px;
    }
}

/* Mobile responsive - Front page additional (from header.css) */
@media (max-width: 520px){
    /* Hero section mobile */
    .hero{
        grid-template-columns: 1fr !important;
        padding: 40px 5% 40px !important;
        text-align: center !important;
        min-height: auto !important;
    }
    .hero-copy{
        order: 2 !important;
    }
    .hero-art{
        order: 1 !important;
        min-height: 300px !important;
    }
    .hero-slider{
        width: min(280px, 85%) !important;
    }
    .hero-dots{
        bottom: -30px !important;
    }
    .hero-dot{
        width:24px !important;
        height:24px !important;
    }
    .hero-dot::before{
        width:9px !important;
        height:9px !important;
    }
    .hero h1{
        font-size: clamp(32px, 8vw, 48px) !important;
        line-height: 1.1 !important;
        margin: 16px 0 16px !important;
        max-width: none !important;
    }
    .hero-copy p{
        font-size: 15px !important;
        line-height: 1.7 !important;
        max-width: none !important;
        margin-bottom: 20px !important;
    }
    .primary{
        padding: 14px 22px !important;
        font-size: 14px !important;
    }
    .hero-slide-label{
        font-size: 11px !important;
        padding: 8px 14px !important;
    }
    /* Sections mobile */
    .section{
        padding: 50px 5% !important;
    }
    .section-title{
        font-size: clamp(28px, 6vw, 40px) !important;
    }
    .intro, .inside{
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .intro-mark{
        margin-bottom: 20px !important;
    }
    .product-grid{
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .product-visual{
        aspect-ratio: 1/1 !important;
    }
    .why-grid{
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .cta{
        padding: 50px 15px !important;
    }
    .cta .section-title{
        font-size: clamp(28px, 7vw, 44px) !important;
    }
    /* Footer mobile */
    footer footer{
        flex-direction: column !important;
        text-align: center !important;
        padding: 30px 5% !important;
    }
    .footer-logo{
        margin-bottom: 15px !important;
    }
    .footlinks{
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px !important;
    }
    .bread{
        transform: scale(.7) rotate(8deg) !important;
    }
    .sticker{
        right: 3% !important;
        bottom: 20px !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
    .trust-strip{
        padding: 0 5% !important;
    }
    .trust-strip ul{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 14px;
        padding: 14px 0;
        font-size: 12px;
        text-align: left;
    }
    .hero-copy .hero-price{
        font-size: 13px;
        margin-bottom: 20px;
    }
    .proof-card{
        padding: 22px;
    }
    .faq-list summary{
        font-size: 15px;
    }
    .cta-actions{
        gap: 10px;
    }
    .cta-wa{
        padding: 14px 22px !important;
        font-size: 14px !important;
    }
}

/* Respect reduced-motion for the manually controlled hero slider. */
@media (prefers-reduced-motion: reduce){
    .hero-slide{
        transition:none;
    }
}
