/* =========================================================
   AVRILA — PICK 4 BUNDLE
   CLEAN + RESPONSIVE + MOBILE SAFE
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --forest: #183c31;
    --forest-2: #275a49;
    --sage: #8fc47a;
    --sage-pale: #edf6e8;
    --cream: #fbfaf4;
    --white: #ffffff;
    --text: #193027;
    --muted: #6c7d74;
    --border: rgba(24, 60, 49, 0.15);
    --shadow: 0 22px 55px rgba(24, 60, 49, 0.12);
}


/* =========================================================
   GLOBAL RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 8% 8%,
            rgba(143, 196, 122, 0.20),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(230, 197, 205, 0.25),
            transparent 25%
        ),
        var(--cream);

    color: var(--text);

    font-family: "Inter", sans-serif;
}

button {
    font: inherit;
}


/* =========================================================
   MAIN BUNDLE SECTION
   ========================================================= */

.bundle-section {
    width: min(1180px, calc(100% - 40px));
    margin-top: 100vh;
    margin: 0 auto;

    padding: 90px 0 100px;
}


/* =========================================================
   BUNDLE HEADER
   ========================================================= */

.bundle-head {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 40px;

    margin-bottom: 38px;
}

.bundle-head > div {
    min-width: 0;
}


/* =========================================================
   MAIN HEADING
   ========================================================= */

.bundle-section h1 {
    width: 100%;
    max-width: 720px;

    margin: 0;
    padding: 0;

    font-family: "Playfair Display", serif;

    font-size: clamp(40px, 5vw, 68px);

    font-weight: 500;

    line-height: 1.05;

    letter-spacing: -0.5px;
}

.bundle-section h1 em {
    color: var(--forest-2);
}


/* =========================================================
   INTRO
   ========================================================= */

.bundle-intro {
    width: 100%;
    max-width: 520px;

    margin: 18px 0 0;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.75;
}


/* =========================================================
   FIXED PRICE CARD
   ========================================================= */

.fixed-price-card {
    width: 220px;
    min-width: 220px;

    padding: 20px 22px;

    border: 1px solid var(--border);

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.78);

    box-shadow:
        0 14px 38px rgba(24, 60, 49, 0.08);

    backdrop-filter: blur(10px);
}

.price-label {
    color: var(--muted);

    font-family: "Manrope", sans-serif;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}

.fixed-price {
    margin-top: 5px;

    color: var(--forest);

    font-family: "Playfair Display", serif;

    font-size: 38px;

    line-height: 1;
}

.price-note {
    margin-top: 6px;

    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.bundle-shell {
    display: grid;

    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(280px, 0.65fr);

    gap: 28px;

    align-items: start;

    width: 100%;
}


/* =========================================================
   PANELS
   ========================================================= */

.picker-panel,
.summary-panel {
    width: 100%;
    min-width: 0;

    border: 1px solid var(--border);

    border-radius: 26px;

    background: rgba(255, 255, 255, 0.88);

    box-shadow: var(--shadow);
}

.picker-panel {
    padding: 26px;
}


/* =========================================================
   PICKER HEADER
   ========================================================= */

.picker-topline {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 16px;

    margin-bottom: 20px;
}

.picker-title {
    min-width: 0;

    font-family: "Playfair Display", serif;

    font-size: 28px;

    line-height: 1.2;
}

.counter-pill {
    flex: 0 0 auto;

    padding: 9px 13px;

    border-radius: 999px;

    background: var(--sage-pale);

    color: var(--forest);

    font-family: "Manrope", sans-serif;

    font-size: 12px;

    font-weight: 700;

    white-space: nowrap;
}


/* =========================================================
   SOAP GRID
   ========================================================= */

.soap-grid {
    width: 100%;
    min-width: 0;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}


/* =========================================================
   SOAP TILE
   ========================================================= */

.soap-tile {
    position: relative;

    width: 100%;
    min-width: 0;
    min-height: 0;

    padding: 15px;

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: 20px;

    background: var(--white);

    color: var(--text);

    text-align: left;

    cursor: pointer;

    appearance: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.soap-tile:hover {
    transform: translateY(-4px);

    border-color:
        rgba(39, 90, 73, 0.42);

    box-shadow:
        0 14px 30px rgba(24, 60, 49, 0.10);
}

.soap-tile:focus-visible {
    outline:
        3px solid rgba(143, 196, 122, 0.55);

    outline-offset: 3px;
}

.soap-tile.selected {
    border-color: var(--forest-2);

    box-shadow:
        0 0 0 2px rgba(39, 90, 73, 0.15),
        0 16px 34px rgba(24, 60, 49, 0.13);
}


/* =========================================================
   CHECK MARK
   ========================================================= */

.tile-check {
    position: absolute;

    top: 12px;
    right: 12px;

    z-index: 5;

    display: grid;

    width: 28px;
    height: 28px;

    place-items: center;

    border:
        1px solid rgba(24, 60, 49, 0.18);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.90);

    color: transparent;

    font-size: 14px;

    font-weight: 700;

    transition: 0.2s ease;
}

.soap-tile.selected .tile-check {
    border-color: var(--forest);

    background: var(--forest);

    color: white;
}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.soap-visual {
    width: 100%;
    height: 180px;

    margin-bottom: 14px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 15px;

    background: #ffffff;
}

.soap-visual img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    transition:
        transform 0.3s ease;
}

.soap-tile:hover .soap-visual img {
    transform: scale(1.04);
}


/* =========================================================
   PRODUCT NAME
   ========================================================= */

.soap-name {
    display: block;

    width: 100%;

    font-family: "Playfair Display", serif;

    font-size: 19px;

    line-height: 1.18;

    overflow-wrap: break-word;
}


/* =========================================================
   PRODUCT DESCRIPTION
   ========================================================= */

.soap-use {
    display: block;

    width: 100%;

    margin-top: 7px;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.45;

    overflow-wrap: break-word;
}


/* =========================================================
   ERROR / LOADING
   ========================================================= */

.limit-message {
    min-height: 20px;

    margin: 16px 2px 0;

    color: #a7483f;

    font-size: 12px;

    line-height: 1.5;
}

.bundle-loading,
.bundle-error {
    grid-column: 1 / -1;

    width: 100%;

    padding: 30px 20px;

    color: var(--muted);

    text-align: center;

    font-size: 14px;

    line-height: 1.6;
}

.bundle-error button {
    padding: 10px 16px;

    border: 1px solid var(--forest);

    border-radius: 8px;

    background: var(--forest);

    color: white;

    cursor: pointer;
}


/* =========================================================
   SUMMARY PANEL
   ========================================================= */

.summary-panel {
    position: sticky;

    top: 24px;

    padding: 25px;
}

.summary-kicker {
    color: var(--forest-2);

    font-family: "Manrope", sans-serif;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}

.summary-title {
    margin: 8px 0 5px;

    font-family: "Playfair Display", serif;

    font-size: 30px;

    line-height: 1.15;
}

.summary-copy {
    margin: 0 0 18px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   SELECTION SLOTS
   ========================================================= */

.slots {
    display: grid;

    gap: 9px;

    width: 100%;
}

.slot {
    display: flex;

    width: 100%;
    min-height: 55px;

    align-items: center;

    gap: 11px;

    padding: 9px 11px;

    border:
        1px dashed rgba(24, 60, 49, 0.22);

    border-radius: 13px;

    background: #fbfdf9;
}

.slot.filled {
    border-style: solid;

    border-color:
        rgba(24, 60, 49, 0.14);

    background: var(--sage-pale);
}

.slot-icon {
    display: grid;

    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    place-items: center;

    border-radius: 10px;

    background: white;

    font-size: 17px;
}

.slot-text {
    min-width: 0;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.35;

    overflow-wrap: break-word;
}

.slot.filled .slot-text {
    color: var(--text);

    font-weight: 600;
}


/* =========================================================
   SUMMARY TOTAL
   ========================================================= */

.summary-total {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 16px;

    margin: 22px 0 14px;

    padding-top: 18px;

    border-top:
        1px solid var(--border);
}

.total-caption {
    color: var(--muted);

    font-size: 12px;
}

.total-value {
    flex: 0 0 auto;

    font-family: "Playfair Display", serif;

    font-size: 34px;

    line-height: 1;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.checkout-btn,
.clear-btn {
    display: block;

    width: 100%;

    border-radius: 13px;

    cursor: pointer;

    transition: 0.2s ease;
}

.checkout-btn {
    padding: 15px 18px;

    border:
        1px solid var(--forest);

    background: var(--forest);

    color: white;

    font-family: "Manrope", sans-serif;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.checkout-btn:not(:disabled):hover {
    background: var(--forest-2);
}

.checkout-btn:disabled {
    border-color: #b9c5bf;

    background: #b9c5bf;

    cursor: not-allowed;
}

.clear-btn {
    margin-top: 9px;

    padding: 11px 16px;

    border:
        1px solid var(--border);

    background: transparent;

    color: var(--muted);

    font-size: 12px;
}

.clear-btn:hover {
    color: var(--forest);

    border-color:
        rgba(24, 60, 49, 0.35);
}


/* =========================================================
   WARNING
   ========================================================= */

.text-danger {
    margin: 13px 0 0;

    color: #a7483f;

    font-size: 10px;

    line-height: 1.5;

    text-align: center;
}


/* =========================================================
   TOAST
   ========================================================= */

.toast {
    position: fixed;

    left: 50%;
    bottom: 24px;

    z-index: 9999;

    width: max-content;

    max-width: calc(100% - 30px);

    padding: 12px 18px;

    border-radius: 999px;

    background: var(--forest);

    color: white;

    font-size: 12px;

    opacity: 0;

    pointer-events: none;

    transform:
        translate(-50%, 20px);

    transition: 0.25s ease;
}

.toast.show {
    opacity: 1;

    transform:
        translate(-50%, 0);
}


/* =========================================================
   TABLET
   1100px AND BELOW
   ========================================================= */

@media (max-width: 1100px) {

    .bundle-section {
        width: calc(100% - 32px);

        padding-top: 70px;
        padding-bottom: 80px;
    }

    .bundle-head {
        gap: 25px;
    }

    .bundle-section h1 {
        font-size:
            clamp(38px, 5.5vw, 58px);
    }

    .soap-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .soap-visual {
        height: 175px;
    }
}


/* =========================================================
   SMALL LAPTOP / TABLET
   920px AND BELOW
   ========================================================= */

@media (max-width: 920px) {

    .bundle-head {
        flex-direction: column;

        align-items: stretch;

        gap: 22px;
    }

    .fixed-price-card {
        width: 100%;

        min-width: 0;
    }

    .bundle-shell {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .summary-panel {
        position: static;
    }
}


/* =========================================================
   MOBILE
   680px AND BELOW
   ========================================================= */

@media (max-width: 680px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }


    /* -----------------------------------------------------
       MAIN SECTION

       IMPORTANT:
       No margin-top: 20vh.
       Content is positioned naturally below the header.
       ----------------------------------------------------- */

    .bundle-section {
        width: 100%;
        max-width: 100%;

        margin: 0;

        padding:
            105px 12px 60px;
    }


    /* -----------------------------------------------------
       HEADER AREA
       ----------------------------------------------------- */

    .bundle-head {
        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 18px;

        margin-bottom: 24px;
    }

    .bundle-head > div {
        width: 100%;

        max-width: 100%;
    }


    /* -----------------------------------------------------
       MAIN HEADING
       ----------------------------------------------------- */

    .bundle-section h1 {
        width: 100%;
        max-width: 100%;

        margin: 0;
        padding: 0;

        font-size:
            clamp(34px, 10vw, 46px);

        line-height: 1.05;

        letter-spacing: -0.5px;

        overflow-wrap: normal;

        word-break: normal;
    }


    .bundle-intro {
        width: 100%;
        max-width: 100%;

        margin: 14px 0 0;

        font-size: 14px;

        line-height: 1.65;
    }


    /* -----------------------------------------------------
       PRICE CARD
       ----------------------------------------------------- */

    .fixed-price-card {
        width: 100%;

        min-width: 0;

        padding: 17px 18px;

        border-radius: 18px;
    }

    .fixed-price {
        font-size: 35px;
    }


    /* -----------------------------------------------------
       MAIN CONTENT
       ----------------------------------------------------- */

    .bundle-shell {
        display: flex;

        flex-direction: column;

        width: 100%;

        gap: 18px;

        margin: 0;
    }


    .picker-panel,
    .summary-panel {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        border-radius: 18px;
    }


    .picker-panel {
        padding: 14px;
    }


    .summary-panel {
        position: static;

        padding: 17px;
    }


    /* -----------------------------------------------------
       PICKER HEADER
       ----------------------------------------------------- */

    .picker-topline {
        width: 100%;

        display: flex;

        justify-content: space-between;

        align-items: center;

        gap: 8px;

        margin-bottom: 14px;
    }


    .picker-title {
        min-width: 0;

        font-size: 24px;

        line-height: 1.1;
    }


    .counter-pill {
        flex: 0 0 auto;

        padding: 7px 9px;

        font-size: 10px;

        white-space: nowrap;
    }


    /* -----------------------------------------------------
       SOAP GRID
       ----------------------------------------------------- */

    .soap-grid {
        width: 100%;

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 9px;
    }


    /* -----------------------------------------------------
       SOAP TILE
       ----------------------------------------------------- */

    .soap-tile {
        width: 100%;

        min-width: 0;
        min-height: 0;

        padding: 8px;

        border-radius: 14px;
    }


    /* -----------------------------------------------------
       SOAP IMAGE
       ----------------------------------------------------- */

    .soap-visual {
        width: 100%;

        height: 135px;

        margin-bottom: 8px;

        display: flex;

        align-items: center;
        justify-content: center;

        overflow: hidden;

        border-radius: 10px;

        background: #ffffff;
    }


    .soap-visual img {
        display: block;

        width: 100%;
        height: 100%;

        max-width: 100%;
        max-height: 100%;

        object-fit: contain;
    }


    /* -----------------------------------------------------
       PRODUCT TEXT
       ----------------------------------------------------- */

    .soap-name {
        display: block;

        width: 100%;

        font-size: 15px;

        line-height: 1.15;

        overflow-wrap: break-word;
    }


    .soap-use {
        display: block;

        width: 100%;

        margin-top: 4px;

        font-size: 9px;

        line-height: 1.35;

        overflow-wrap: break-word;
    }


    /* -----------------------------------------------------
       CHECK
       ----------------------------------------------------- */

    .tile-check {
        width: 23px;
        height: 23px;

        top: 7px;
        right: 7px;

        font-size: 11px;
    }


    /* -----------------------------------------------------
       SUMMARY
       ----------------------------------------------------- */

    .summary-title {
        font-size: 27px;

        line-height: 1.1;
    }

    .summary-copy {
        font-size: 12px;

        line-height: 1.55;
    }

    .slot {
        min-height: 49px;

        padding: 8px 9px;

        gap: 8px;
    }

    .slot-icon {
        width: 32px;
        height: 32px;

        flex: 0 0 32px;
    }

    .slot-text {
        font-size: 11px;
    }

    .total-value {
        font-size: 30px;
    }


    /* -----------------------------------------------------
       BUTTONS
       ----------------------------------------------------- */

    .checkout-btn,
    .clear-btn {
        width: 100%;

        min-height: 48px;
    }

    .checkout-btn {
        padding: 13px 14px;

        font-size: 10px;
    }


    /* -----------------------------------------------------
       FLOATING BUTTONS
       ----------------------------------------------------- */

    .floating-btn {
        width: 50px !important;
        height: 50px !important;

        bottom: 14px !important;
    }

    .whatsapp-btn {
        right: 12px !important;
    }

    .chatbot-btn {
        left: 12px !important;
    }
}


/* =========================================================
   SMALL PHONES
   480px AND BELOW
   ========================================================= */

@media (max-width: 480px) {

    .bundle-section {
        /*
         * DO NOT use margin-top here.
         * Padding creates safe space below the navbar.
         */
        width: 100%;

        padding:
            100px 10px 50px;
    }


    .bundle-section h1 {
        font-size: 34px;

        line-height: 1.04;
    }


    .bundle-intro {
        font-size: 13px;

        line-height: 1.6;
    }


    /* Price */

    .fixed-price-card {
        padding: 16px;

        border-radius: 17px;
    }

    .fixed-price {
        font-size: 34px;
    }


    /* Picker */

    .picker-panel {
        padding: 12px;
    }

    .picker-topline {
        gap: 6px;
    }

    .picker-title {
        font-size: 23px;
    }

    .counter-pill {
        padding: 7px 8px;

        font-size: 9px;
    }


    /* Soap grid */

    .soap-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }

    .soap-tile {
        padding: 7px;

        border-radius: 13px;
    }


    /* Soap image */

    .soap-visual {
        height: 125px;

        margin-bottom: 7px;

        border-radius: 9px;
    }


    .soap-name {
        font-size: 14px;
    }

    .soap-use {
        font-size: 8.5px;
    }


    /* Check */

    .tile-check {
        width: 22px;
        height: 22px;

        top: 6px;
        right: 6px;

        font-size: 10px;
    }


    /* Summary */

    .summary-panel {
        padding: 14px;
    }
}


/* =========================================================
   VERY SMALL PHONES
   380px AND BELOW
   ========================================================= */

@media (max-width: 380px) {

    .bundle-section {
        width: 100%;

        padding:
            95px 8px 50px;
    }


    .bundle-section h1 {
        font-size: 31px;

        line-height: 1.05;
    }


    .bundle-intro {
        font-size: 13px;
    }


    .picker-panel {
        padding: 10px;
    }


    .picker-title {
        font-size: 21px;
    }


    .counter-pill {
        font-size: 8.5px;

        padding: 6px 7px;
    }


    .soap-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 7px;
    }


    .soap-tile {
        padding: 6px;

        border-radius: 12px;
    }


    .soap-visual {
        height: 115px;

        border-radius: 8px;
    }


    .soap-name {
        font-size: 13px;
    }


    .soap-use {
        font-size: 8px;

        line-height: 1.3;
    }


    .tile-check {
        width: 20px;
        height: 20px;

        top: 5px;
        right: 5px;

        font-size: 10px;
    }


    .summary-title {
        font-size: 24px;
    }


    .summary-panel {
        padding: 13px;
    }
}


/* =========================================================
   EXTRA SMALL
   340px AND BELOW
   ========================================================= */

@media (max-width: 340px) {

    .bundle-section {
        padding-left: 7px;
        padding-right: 7px;
    }


    .bundle-section h1 {
        font-size: 29px;
    }


    .soap-visual {
        height: 105px;
    }


    .soap-name {
        font-size: 12px;
    }


    .soap-use {
        font-size: 7.5px;
    }
}


/* =========================================================
   MOBILE NAVBAR SUPPORT
   ========================================================= */

@media (max-width: 768px) {

    #mainNav {
        width: 100% !important;
        max-width: 100% !important;

        min-height: 76px !important;

        padding: 10px 14px !important;

        display: flex !important;

        align-items: center !important;

        justify-content: space-between !important;

        gap: 10px !important;

        box-sizing: border-box !important;

        overflow: hidden !important;
    }


    #mainNav .nav-logo {
        flex: 0 0 auto !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    #mainNav .logoavrila {
        width: 82px !important;

        height: auto !important;

        max-height: 56px !important;

        object-fit: contain !important;

        display: block !important;
    }


    #mainNav .nav-links {
        display: none !important;
    }


    #mainNav .nav-actions {
        flex: 0 0 auto !important;

        display: flex !important;

        align-items: center !important;

        justify-content: flex-end !important;

        gap: 6px !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    #mainNav .nav-icon {
        width: 32px !important;
        height: 32px !important;

        min-width: 32px !important;

        padding: 0 !important;
        margin: 0 !important;

        display: flex !important;

        align-items: center !important;
        justify-content: center !important;

        font-size: 16px !important;
    }


    #mainNav .cart-count {
        min-width: 15px !important;

        height: 15px !important;

        padding: 0 !important;

        display: flex !important;

        align-items: center !important;
        justify-content: center !important;

        font-size: 9px !important;
    }
}


/* =========================================================
   VERY SMALL NAVBAR
   ========================================================= */

@media (max-width: 380px) {

    #mainNav {
        min-height: 72px !important;

        padding:
            9px 11px !important;
    }


    #mainNav .logoavrila {
        width: 72px !important;

        max-height: 50px !important;
    }


    #mainNav .nav-actions {
        gap: 4px !important;
    }


    #mainNav .nav-icon {
        width: 29px !important;
        height: 29px !important;

        min-width: 29px !important;

        font-size: 14px !important;
    }
}