/* ==========================================================================
   Every Chapati, Broken Down — shop composition section
   ========================================================================== */

.roti-breakdown {
    padding-block: 3.5rem 4rem;
    background-color: #ffffff;
}

.roti-breakdown__title {
    margin-bottom: 2.5rem;
    color: #1c1c1c;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
}

.roti-breakdown__title-highlight {
    display: inline-block;
    padding: 0.03em 0.18em;
    background-color: #ffcc00;
}

.roti-breakdown__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Visual */
.roti-breakdown__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    padding: 0;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(26, 54, 93, 0.08);
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.08);
    overflow: visible;
}

.roti-breakdown__image {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    aspect-ratio: 4 / 3;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.08);
}

.roti-breakdown__badge {
    position: absolute;
    right: -1.75rem;
    bottom: -1.25rem;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 114px;
    height: 114px;
    border-radius: 50%;
    background-color: #1c1c1c;
    text-align: center;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.roti-breakdown__badge-value {
    color: #ffcc00;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.roti-breakdown__badge-label {
    margin-top: 0.25rem;
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

/* Data bars */
.roti-breakdown__list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    list-style: none;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(26, 54, 93, 0.1);
}

.roti-breakdown__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.625rem;
}

.roti-breakdown__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    color: #1c1c1c;
    font-size: clamp(0.78rem, 1.5vw, 0.95rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.3;
    text-transform: uppercase;
}

.roti-breakdown__dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.roti-breakdown__dot--brown {
    background-color: #c5933f;
}

.roti-breakdown__dot--gold {
    background-color: #ffcc00;
}

.roti-breakdown__percent {
    flex-shrink: 0;
    color: #1c1c1c;
    font-size: clamp(1.6rem, 2.6vw, 2.6rem);
    font-weight: 900;
    line-height: 1;
}

.roti-breakdown__track {
    width: 100%;
    height: 12px;
    overflow: hidden;
    background-color: #e8e8e8;
    border-radius: 999px;
}

.roti-breakdown__fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.roti-breakdown__fill--brown {
    background-color: #c5933f;
}

.roti-breakdown__fill--gold {
    background-color: #ffcc00;
}

.roti-breakdown__cta-wrap {
    display: flex;
    justify-content: center;
    padding-top: 1.5rem;
}

.roti-breakdown__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem 0.75rem 1.5rem;
    border-radius: 999px;
    background-color: #111111;
    box-shadow: 0 3px 0 #ffcc00;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.roti-breakdown__cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ffcc00;
    color: #111111;
    font-size: 1rem;
    line-height: 1;
}

.roti-breakdown.is-visible .roti-breakdown__fill {
    width: calc(var(--percent, 0) * 1%);
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 768px) {
    .roti-breakdown {
        padding-block: 2.5rem 3rem;
    }

    .roti-breakdown__title {
        margin-bottom: 1.75rem;
    }

    .roti-breakdown__layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .roti-breakdown__visual {
        min-height: 260px;
        border-radius: 18px;
    }

    .roti-breakdown__badge {
        width: 90px;
        height: 90px;
        right: -1rem;
        bottom: -1rem;
    }

    .roti-breakdown__badge-value {
        font-size: 1.6rem;
    }

    .roti-breakdown__list {
        gap: 1.5rem;
    }

    .roti-breakdown__track {
        height: 10px;
    }

    .roti-breakdown__percent {
        font-size: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .roti-breakdown__fill {
        transition: none;
    }
}
