/* ============================================
   TOPPINGS — VARIABLES
   ============================================ */
:root {
    --fruit: #E94E77;
    --cereal: #C68B59;
    --candy: #C45AB3;
    --mix: #6B8E6B;
    --syrup: #C68B59;
}

/* ============================================
   COMPACT HERO
   ============================================ */
.top-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--blush);
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.top-hero-content {
    position: relative;
    z-index: 2;
}

.top-hero-tag {
    font-family: 'Clash Display', sans-serif;
    font-size: clamp(1rem, 1.3vw, 1.3rem);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}

.top-hero h1 {
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.0;
    color: var(--navy);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.top-hero h1 .accent { color: var(--coral); }

.top-hero-sub {
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto 40px;
}

.top-hero-counter {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    background: white;
    padding: 18px 36px;
    border-radius: 100px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.06);
}

.counter-item { text-align: center; }

.counter-num,
.counter-plus {
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--coral);
    line-height: 1;
}

.counter-num { display: inline-block; }
.counter-plus { display: inline; }

/* Floating toppings */
.floating-topping {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    will-change: transform;
}

.floating-topping img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

/* Marquee */
.topping-marquee {
    padding: 36px 0;
    background: var(--cream);
    overflow: hidden;
}

.topping-marquee-track {
    display: flex;
    width: max-content;
    animation: topping-marquee 35s linear infinite;
}

.topping-marquee-item {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s ease;
}

.topping-marquee-item:hover {
    transform: scale(1.12);
}

.topping-marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes topping-marquee {
    to { transform: translateX(-50%); }
}

.counter-label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

.counter-div {
    width: 1px;
    height: 36px;
    background: rgba(13, 48, 90, 0.1);
}

/* ============================================
   TOPPING PANEL SECTION
   ============================================ */
.tp-section {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 42% 58%;
    position: relative;
    overflow: hidden;
}

.tp-bg-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    top: 50%;
    left: 62%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    transition: background 1s ease;
}

/* ============================================
   LEFT — SELECTOR PANEL
   ============================================ */
.tp-selector {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 88px 36px 36px 48px;
    position: relative;
    z-index: 2;
    border-right: 1px solid rgba(13, 48, 90, 0.06);
    min-height: 0;
}

.tp-selector-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.tp-header { flex-shrink: 0; }

.tp-label {
    font-family: 'Clash Display', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.tp-label::before,
.tp-label::after {
    content: '';
    width: 24px;
    height: 1.5px;
    background: currentColor;
    opacity: 0.5;
}

.tp-title {
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 2.5vw, 3rem);
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* ============================================
   CIRCLES GRID
   ============================================ */
.tp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(10px, 1.5vw, 20px);
    width: 100%;
}

.tp-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 8px 4px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.tp-circle:hover { transform: scale(1.07); }
.tp-circle:active { transform: scale(0.96); }

.tp-circle-img-wrap {
    width: clamp(72px, 7vw, 110px);
    height: clamp(72px, 7vw, 110px);
    border-radius: 50%;
    overflow: hidden;
    background: white;
    border: 2px solid rgba(13, 48, 90, 0.08);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    flex-shrink: 0;
}

.tp-circle-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
    filter: saturate(0.8) brightness(0.95);
}

.tp-circle:hover .tp-circle-img-wrap img,
.tp-circle.active .tp-circle-img-wrap img {
    filter: saturate(1) brightness(1);
    transform: scale(1.1);
}

.tp-circle.active .tp-circle-img-wrap {
    border-color: var(--tp-accent);
    box-shadow: 0 0 0 3px rgba(var(--tp-accent-rgb), 0.15),
                0 8px 25px -5px rgba(var(--tp-accent-rgb), 0.25);
}

.tp-circle:hover .tp-circle-img-wrap {
    border-color: rgba(13, 48, 90, 0.2);
}

.tp-circle-ring {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(72px, 7vw, 110px);
    height: clamp(72px, 7vw, 110px);
    border-radius: 50%;
    border: 2px solid var(--tp-accent);
    opacity: 0;
    pointer-events: none;
}

.tp-circle.active .tp-circle-ring {
    opacity: 1;
    animation: tp-ring-pulse 2s ease-in-out infinite;
}

@keyframes tp-ring-pulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.6; }
    50% { transform: translateX(-50%) scale(1.22); opacity: 0; }
}

.tp-circle-label {
    font-family: 'Clash Display', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(13, 48, 90, 0.4);
    transition: color 0.4s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: clamp(72px, 7vw, 110px);
    text-align: center;
}

.tp-circle:hover .tp-circle-label { color: rgba(13, 48, 90, 0.65); }
.tp-circle.active .tp-circle-label { color: var(--tp-accent); }

/* ============================================
   RIGHT — SHOWCASE PANEL
   ============================================ */
.tp-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 64px;
    position: relative;
    z-index: 1;
    gap: 24px;
    overflow: hidden;
}

.tp-showcase-img-container {
    position: relative;
    width: 100%;
    height: clamp(160px, 22vh, 260px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Background decorative number */
.tp-showcase-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    font-size: clamp(9rem, 26vh, 18rem);
    color: rgba(13, 48, 90, 0.06);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

/* Large circular image */
.tp-img-wrap {
    position: relative;
    z-index: 1;
    width: clamp(130px, 17vh, 210px);
    height: clamp(130px, 17vh, 210px);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.tp-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform, opacity;
}

/* Float animation */
@keyframes tp-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(-6px) rotate(-1deg); }
}

.tp-img-wrap.tp-floating {
    animation: tp-float 5s ease-in-out infinite;
}

/* Info */
.tp-showcase-info {
    text-align: center;
    max-width: 480px;
    width: 100%;
}

.tp-showcase-name {
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    line-height: 1.1;
}

.tp-showcase-line {
    width: 48px;
    height: 3px;
    border-radius: 3px;
    margin: 0 auto 16px;
}

.tp-showcase-desc {
    font-size: clamp(0.88rem, 1vw, 1rem);
    line-height: 1.7;
    color: rgba(13, 48, 90, 0.6);
    font-weight: 400;
}

/* ============================================
   RESPONSIVE — TABLET (1100px)
   ============================================ */
@media (max-width: 1100px) {
    .tp-section {
        grid-template-columns: 40% 60%;
    }

    .tp-selector {
        padding: 88px 24px 36px 32px;
    }

    .tp-showcase {
        padding: 80px 32px;
    }
}

/* ============================================
   RESPONSIVE — MOBILE (768px)
   ============================================ */
@media (max-width: 768px) {
    .top-hero {
        min-height: 50vh;
        padding: 100px 20px 60px;
    }

    .floating-topping { display: none; }
    .top-hero h1 { font-size: 2.5rem; }

    .top-hero-counter {
        gap: 16px;
        padding: 14px 24px;
    }

    .counter-num,
    .counter-plus { font-size: 1.6rem; }

    .topping-marquee { padding: 28px 0; }
    .topping-marquee-item {
        width: 85px;
        height: 85px;
        margin: 0 10px;
    }

    .tp-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .tp-selector {
        padding: 60px 20px 32px;
        border-right: none;
        border-bottom: 1px solid rgba(13, 48, 90, 0.06);
        align-items: center;
    }

    .tp-selector-inner {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .tp-grid {
        justify-content: center;
        max-width: 100%;
    }

    .tp-showcase {
        padding: 32px 24px 48px;
    }

    .tp-showcase-img-container {
        height: 180px;
    }

    .tp-img-wrap {
        width: 80px;
        height: 80px;
    }

    .tp-showcase-number { font-size: 7rem; }
    .tp-showcase-name { font-size: 1.5rem; }
    .tp-showcase-desc { font-size: 0.9rem; }
}

@media (max-width: 400px) {
    .top-hero h1 { font-size: 2rem; }

    .tp-circle-img-wrap {
        width: 64px;
        height: 64px;
    }
    .tp-circle-ring {
        width: 64px;
        height: 64px;
    }
}

/* ============================================
   TOPPING CAROUSEL — horizontal category navigation
   ============================================ */
.tp-carousel {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: background-color 0.5s ease;
}

/* --- Navigation Bar --- */
.tp-cat-nav {
    flex-shrink: 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    gap: 16px;
    border-bottom: 1px solid rgba(13, 48, 90, 0.06);
    position: relative;
    z-index: 10;
    background: inherit;
}

.tp-cat-tabs {
    flex: 1;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.tp-cat-tabs::-webkit-scrollbar { display: none; }

.tp-cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 100px;
    font-family: 'Clash Display', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    outline: none;
    background: transparent;
    color: rgba(13, 48, 90, 0.38);
    transition: background 0.3s ease, color 0.3s ease, transform 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.tp-cat-tab .tab-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tab-accent, #E94E77);
    flex-shrink: 0;
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.tp-cat-tab.active {
    background: var(--tab-accent, #E94E77);
    color: white;
}

.tp-cat-tab.active .tab-dot {
    background: rgba(255, 255, 255, 0.75);
    opacity: 1;
    transform: scale(1.3);
}

.tp-cat-tab:not(.active):hover {
    background: rgba(13, 48, 90, 0.05);
    color: rgba(13, 48, 90, 0.6);
    transform: translateY(-1px);
}

/* Controls: arrows + counter */
.tp-cat-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.tp-cat-counter {
    font-family: 'Clash Display', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(13, 48, 90, 0.25);
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.08em;
    user-select: none;
    min-width: 52px;
    justify-content: center;
}

.tp-cat-cur {
    color: var(--tp-accent, #E94E77);
    font-size: 14px;
    transition: color 0.4s ease;
}

.tp-cat-sep { opacity: 0.4; }

/* Arrow buttons */
.tp-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1.5px solid rgba(13, 48, 90, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    outline: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tp-arrow:hover {
    background: var(--tp-accent, #E94E77);
    border-color: var(--tp-accent, #E94E77);
    transform: scale(1.15);
    box-shadow: 0 4px 18px rgba(var(--tp-accent-rgb, 233, 78, 119), 0.35);
}

.tp-arrow:active { transform: scale(0.93); }

.tp-arrow svg {
    width: 16px;
    height: 16px;
    stroke: rgba(13, 48, 90, 0.5);
    transition: stroke 0.3s ease;
    flex-shrink: 0;
    pointer-events: none;
}

.tp-arrow:hover svg { stroke: white; }

.tp-arrow:focus-visible {
    outline: 2px solid var(--tp-accent, #E94E77);
    outline-offset: 2px;
}

.tp-cat-tab:focus-visible {
    outline: 2px solid var(--tab-accent, #E94E77);
    outline-offset: 2px;
}

/* Progress bar (absolute, bottom of nav) */
.tp-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: rgba(13, 48, 90, 0.05);
    pointer-events: none;
}

.tp-progress-fill {
    display: block;
    height: 100%;
    width: 20%;
    background: var(--tp-accent, #E94E77);
    border-radius: 0 2px 2px 0;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
}

/* --- Carousel Body + Stage --- */
.tp-carousel-body {
    flex: 1;
    min-height: 0;
}

.tp-stage {
    width: 100%;
    min-height: calc(100vh - 64px);
    display: grid;
    grid-template-columns: 42% 58%;
    position: relative;
    overflow: hidden;
}

/* Reduce top padding in carousel (no 88px header clearance needed) */
.tp-carousel .tp-selector {
    padding-top: 44px;
}

/* --- Carousel Responsive: tablet --- */
@media (max-width: 1100px) {
    .tp-stage {
        grid-template-columns: 40% 60%;
    }
    .tp-cat-nav {
        padding: 0 20px;
        gap: 10px;
    }
}

/* --- Carousel Responsive: mobile --- */
@media (max-width: 768px) {
    .tp-cat-nav {
        height: 56px;
        padding: 0 12px;
        gap: 6px;
    }
    .tp-cat-tab {
        padding: 5px 10px;
        font-size: 9px;
        gap: 5px;
    }
    .tp-arrow {
        width: 34px;
        height: 34px;
    }
    .tp-arrow svg {
        width: 14px;
        height: 14px;
    }
    .tp-cat-counter { display: none; }
    .tp-stage {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .tp-carousel .tp-selector {
        padding: 32px 20px 24px;
        border-right: none;
        border-bottom: 1px solid rgba(13, 48, 90, 0.06);
        align-items: center;
    }
    .tp-carousel .tp-selector-inner {
        align-items: center;
        text-align: center;
        width: 100%;
    }
    .tp-carousel .tp-grid {
        justify-content: center;
    }
    .tp-carousel .tp-showcase {
        padding: 32px 24px 48px;
    }
}

/* --- Very small screens: show only dots in tabs --- */
@media (max-width: 480px) {
    .tp-cat-tab span:not(.tab-dot) { display: none; }
    .tp-cat-tab {
        padding: 0;
        width: 28px;
        height: 28px;
        justify-content: center;
        gap: 0;
    }
    .tp-cat-tab .tab-dot {
        width: 8px;
        height: 8px;
        opacity: 0.7;
    }
    .tp-cat-tab.active .tab-dot {
        width: 10px;
        height: 10px;
    }
    .tp-arrow {
        width: 32px;
        height: 32px;
    }
}
