@import "fonts/Gilroy/stylesheet.css";
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap");

:root {
    --mb-ink: #281306;
    --mb-ink-soft: #654f42;
    --mb-caramel: #c4976d;
    --mb-caramel-dark: #8f542e;
    --mb-cream: #fffaf4;
    --mb-paper: rgba(255, 250, 244, 0.91);
    --mb-border: rgba(70, 38, 19, 0.16);
    --mb-error: #8b3125;
    --mb-shadow: 0 24px 70px rgba(82, 43, 19, 0.13);
    --header-height: 96px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background: #f4e3d5;
    color: var(--mb-ink);
    font-family: "DM Sans", Arial, sans-serif;
}

body.modal-open {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    border: 0;
}

.hidden {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 1310px;
    padding: 0 15px;
    margin: 0 auto;
}

/* Header */
.header {
    position: relative;
    z-index: 20;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--mb-border);
    background: rgba(247, 236, 223, 0.74);
    color: var(--mb-ink);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header .container {
    width: 100%;
}

.header a,
.header .logo {
    color: var(--mb-ink) !important;
}

.header__nav {
    display: grid;
    height: var(--header-height);
    grid-template-columns: 2fr 8fr 2fr;
    align-items: center;
    gap: 20px;
}

.nav__logo {
    justify-self: start;
}

.logo--mb {
    display: inline-block;
    width: fit-content;
    line-height: 0;
}

.form-mb-logo {
    width: 70px;
    height: auto;
    object-fit: contain;
}

.nav-list {
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 64px;
    list-style: none;
}

.nav-list__item {
    position: relative;
}

.nav-list__link {
    display: block;
    padding: 36px 0;
    color: var(--mb-ink);
    font-size: 17px;
    font-weight: 500;
}

.nav-list__link--dropdown::after {
    content: "⌄";
    margin-left: 8px;
}

.nav-list__sub-nav {
    position: absolute;
    top: calc(100% - 12px);
    left: 50%;
    min-width: 230px;
    padding-top: 12px;
    visibility: hidden;
    opacity: 0;
    transform: translate(-50%, 10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.nav-list__item:hover .nav-list__sub-nav,
.nav-list__item:focus-within .nav-list__sub-nav {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
}

.sub-nav {
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    background: #fffaf4;
    box-shadow: var(--mb-shadow);
    list-style: none;
}

.sub-nav__link {
    display: block;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--mb-ink);
    font-size: 15px;
}

.sub-nav__link:hover {
    background: #f4dfcf;
}

.cart {
    position: relative;
    display: inline-flex;
    justify-self: end;
    align-items: center;
}

.cart__img {
    width: 30px;
    height: 30px;
    filter: brightness(0) saturate(100%) sepia(22%) saturate(1040%) hue-rotate(344deg) brightness(35%);
}

.cart__count {
    position: absolute;
    top: 3px;
    right: -6px;
    display: inline-block;
    height: 25px;
    padding: 0 6px;
    border-radius: 40px;
    background: #a96432;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 25px;
}

.nav__btn {
    display: none;
    justify-self: end;
    padding: 8px;
    background: transparent;
    cursor: pointer;
}

.nav__btn img {
    width: 28px;
    filter: brightness(0) saturate(100%) sepia(22%) saturate(1040%) hue-rotate(344deg) brightness(35%);
}

/* Hero */
.section1 {
    min-height: 100svh;
    background: linear-gradient(135deg, #f8eee5 0%, #ead6c6 100%);
    scroll-snap-align: start;
}

.form {
    display: grid;
    width: min(1320px, calc(100% - 64px));
    min-height: calc(100svh - var(--header-height));
    margin: 0 auto;
    padding: 58px 0 70px;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.78fr);
    align-items: center;
    gap: clamp(48px, 7vw, 110px);
}

.form_text {
    max-width: 680px;
}

.form_text h1 {
    margin: 0 0 28px;
    color: var(--mb-ink);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(58px, 6.5vw, 100px);
    font-weight: 500;
    line-height: 0.94;
    letter-spacing: -0.045em;
}

.form_text p1,
.form_text p2,
.form_text p3 {
    display: block;
    max-width: 640px;
    margin-top: 16px;
    color: var(--mb-ink-soft);
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.6;
    white-space: pre-line;
}

.product {
    width: 100%;
    height: min(68svh, 720px);
    min-height: 500px;
}

.product img {
    width: 100%;
    height: 100%;
    border-radius: 34px;
    object-fit: cover;
    box-shadow: var(--mb-shadow);
}

/* Shared full-screen steps */
.section2,
.section3,
.section4,
.section5,
.section6,
.section7,
.section8,
.section9,
.section10 {
    --step: "";
    position: relative;
    display: flex;
    width: 100%;
    min-height: 100svh;
    padding: clamp(90px, 9vw, 132px) 24px 48px;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 10% 88%, rgba(169, 100, 50, 0.10), transparent 25rem),
        linear-gradient(135deg, #f8eee5 0%, #ead6c6 100%);
    scroll-snap-align: start;
    overflow: hidden;
}

.section2 { --step: "01 / 09"; }
.section3 { --step: "02 / 09"; }
.section4 { --step: "03 / 09"; }
.section5 { --step: "04 / 09"; }
.section6 { --step: "05 / 09"; }
.section7 { --step: "06 / 09"; }
.section8 { --step: "07 / 09"; }
.section9 { --step: "08 / 09"; }
.section10 { --step: "09 / 09"; }

.section2::before,
.section3::before,
.section4::before,
.section5::before,
.section6::before,
.section7::before,
.section8::before,
.section9::before,
.section10::before {
    content: "STEP " var(--step);
    position: absolute;
    top: 42px;
    left: 50%;
    color: var(--mb-caramel-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    transform: translateX(-50%);
}

.section2 > .logo--mb,
.section3 > .logo--mb,
.section4 > .logo--mb,
.section5 > .logo--mb,
.section6 > .logo--mb,
.section7 > .logo--mb,
.section8 > .logo--mb,
.section9 > .logo--mb,
.section10 > .logo--mb {
    position: absolute;
    top: 26px;
    left: 30px;
    z-index: 3;
}

.section2 > .logo--mb .form-mb-logo,
.section3 > .logo--mb .form-mb-logo,
.section4 > .logo--mb .form-mb-logo,
.section5 > .logo--mb .form-mb-logo,
.section6 > .logo--mb .form-mb-logo,
.section7 > .logo--mb .form-mb-logo,
.section8 > .logo--mb .form-mb-logo,
.section9 > .logo--mb .form-mb-logo,
.section10 > .logo--mb .form-mb-logo {
    width: 62px;
}

.email-container,
.cake-form {
    width: min(720px, 92vw);
    padding: clamp(30px, 5vw, 58px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 30px;
    background: var(--mb-paper);
    box-shadow: var(--mb-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.email-container label,
.cake-form h2 {
    display: block;
    margin: 0 0 26px;
    color: var(--mb-ink);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.027em;
}

.cake-form > p {
    margin: -10px 0 24px;
    color: var(--mb-ink-soft);
    font-size: 17px;
    line-height: 1.5;
}

.pickup-note {
    display: block;
    margin-top: 14px;
    color: var(--mb-ink-soft);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 14px;
    font-style: italic;
    line-height: 1.45;
    letter-spacing: 0;
}

.email-container input,
#phone {
    width: 100%;
    min-height: 58px;
    padding: 14px 2px;
    border: 0;
    border-bottom: 1.5px solid rgba(40, 19, 6, 0.34);
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: var(--mb-ink);
    font-size: clamp(17px, 2vw, 21px);
}

.email-container input:focus,
#phone:focus {
    border-color: var(--mb-caramel-dark);
    box-shadow: 0 2px 0 var(--mb-caramel-dark);
}

.email-container input::placeholder,
#phone::placeholder {
    color: #8b7b70;
    opacity: 1;
}

.iti {
    width: 100%;
}

.iti__country-list {
    z-index: 50;
    color: #222;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

/* Guest options */
.cake-options {
    display: grid;
    gap: 12px;
}

.cake-option {
    position: relative;
    display: flex;
    min-height: 64px;
    padding: 16px 54px 16px 20px;
    align-items: center;
    border: 1px solid var(--mb-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--mb-ink);
    font-size: 17px;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.cake-option:hover,
.cake-option:has(input:checked) {
    border-color: var(--mb-caramel-dark);
    background: rgba(243, 220, 201, 0.86);
}

.cake-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.cake-option input:checked + span {
    font-weight: 700;
}

.checkmark2 {
    position: absolute;
    top: 50%;
    right: 18px;
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid rgba(40, 19, 6, 0.25);
    border-radius: 50%;
    color: transparent;
    font-size: 14px;
    transform: translateY(-50%);
}

.cake-option input:checked ~ .checkmark2 {
    border-color: var(--mb-caramel-dark);
    background: var(--mb-caramel-dark);
    color: #fff;
}

/* Buttons and validation */
.btn,
.submit-btn,
.back-btn,
.photo-action-btn,
#checkout,
#continueShopping,
#continueShoppingFromPopup {
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.btn,
.submit-btn,
#checkout {
    background: var(--mb-ink);
    color: #fff;
}

.btn {
    margin-top: 32px;
    padding: 15px 28px;
    font-weight: 700;
}

.submit-container {
    display: flex;
    margin-top: 32px;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.submit-btn,
.back-btn {
    min-width: 126px;
    padding: 13px 24px;
    font-weight: 700;
}

.back-btn {
    border-color: var(--mb-border);
    background: transparent;
    color: var(--mb-ink);
}

.btn:hover,
.submit-btn:hover,
#checkout:hover {
    background: var(--mb-caramel-dark);
}

.btn:active,
.submit-btn:active,
.back-btn:active {
    transform: scale(0.97);
}

.error-message {
    margin: 14px 0 0 !important;
    padding: 10px 13px;
    border: 1px solid rgba(139, 49, 37, 0.18);
    border-radius: 12px;
    background: #f9e3de;
    color: var(--mb-error) !important;
    font-family: "DM Sans", Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
}

/* Mobile navigation */
.mobile-nav-wrapper {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    padding: max(24px, env(safe-area-inset-top)) 24px 30px;
    overflow-y: auto;
    background: #fffaf4;
}

.mobile-nav-wrapper--open,
.mobile-nav-wrapper.active {
    display: block;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-cart {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-nav-btn-close {
    padding: 8px;
    background: transparent;
}

.mobile-nav-btn-close img {
    width: 26px;
}

.mobile-nav,
.mobile-sub-nav {
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.mobile-nav__link,
.mobile-sub-nav .sub-nav__link {
    display: block;
    padding: 13px 4px;
    color: var(--mb-ink);
}

.mobile-sub-nav {
    margin: 4px 0 12px 18px;
}

/* Cart and success modal */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 899;
    display: none;
    background: rgba(20, 11, 6, 0.5);
    backdrop-filter: blur(4px);
}

.modal,
.added-to-cart-modal {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: none;
    padding: 24px;
    align-items: center;
    justify-content: center;
}

.modal-content,
.added-to-cart-modal .modal-content {
    position: relative;
    width: min(100%, 1040px);
    max-height: 90svh;
    padding: clamp(24px, 4vw, 46px);
    overflow-y: auto;
    border-radius: 26px;
    background: #fffaf4;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.24);
}

.added-to-cart-modal .modal-content {
    width: min(440px, 100%);
    text-align: center;
}

.close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 32px;
    cursor: pointer;
}

.cart-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(270px, 0.75fr);
    gap: 28px;
}

.cart-header,
.summary-line {
    display: flex;
    padding: 12px 0;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--mb-border);
}

.cart-summary {
    padding: 22px;
    border-radius: 20px;
    background: var(--mb-ink);
    color: #fffaf4;
}

.cart-summary input {
    max-width: 130px;
    padding: 7px;
    border-radius: 8px;
}

#checkout,
#continueShopping,
#continueShoppingFromPopup {
    width: 100%;
    margin-top: 12px;
    padding: 13px 18px;
}

#checkout {
    background: var(--mb-caramel);
}

#continueShopping,
#continueShoppingFromPopup {
    border-color: var(--mb-border);
    background: transparent;
    color: inherit;
}

#continueShoppingFromPopup {
    border-color: var(--mb-caramel);
    background: var(--mb-caramel);
    color: #fffaf4;
    font-weight: 700;
}

#continueShoppingFromPopup:hover {
    background: var(--mb-caramel-dark);
}

.success-animation {
    width: 100px;
    margin: 20px auto;
}

.checkmark3 {
    width: 100px;
    height: 100px;
    display: block;
    margin: 0 auto;
    border-radius: 50%;
    stroke: #fffaf4;
    stroke-width: 3;
    stroke-miterlimit: 10;
    box-shadow: inset 0 0 0 var(--mb-caramel);
}

.checkmark__circle3 {
    fill: #fffaf4;
    stroke: var(--mb-caramel);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-miterlimit: 10;
}

.checkmark__check3 {
    transform-origin: 50% 50%;
    fill: none;
    stroke: var(--mb-caramel-dark) !important;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}

.added-to-cart-modal.is-visible .checkmark__circle3 {
    animation: mb-success-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.added-to-cart-modal.is-visible .checkmark3 {
    animation: mb-success-fill 0.4s ease-in-out 0.4s forwards,
               mb-success-scale 0.3s ease-in-out 0.9s both;
}

.added-to-cart-modal.is-visible .checkmark__check3 {
    animation: mb-success-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes mb-success-stroke {
    to { stroke-dashoffset: 0; }
}

@keyframes mb-success-scale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes mb-success-fill {
    to { box-shadow: inset 0 0 0 30px var(--mb-caramel); }
}

.cart-buttons {
    margin-top: 20px;
}

/* Tablet */
@media (max-width: 1024px) {
    .form {
        width: min(760px, calc(100% - 44px));
        padding: 36px 0 64px;
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .product {
        order: 1;
        height: min(54svh, 560px);
        min-height: 350px;
    }

    .form_text {
        order: 2;
    }

    .cart-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Phone */
@media (max-width: 767px) {
    :root {
        --mobile-safe-top: max(10px, env(safe-area-inset-top));
        --header-height: calc(64px + var(--mobile-safe-top));
    }

    html,
    body {
        width: 100%;
        height: 100%;
        overflow: hidden;
        overscroll-behavior: none;
    }

    html {
        scroll-snap-type: none;
    }

    .container {
        width: 100%;
        padding: 0 15px;
    }

    .header {
        position: sticky;
        top: 0;
        z-index: 100;
        width: 100%;
        padding-top: var(--mobile-safe-top);
    }

    .header__nav {
        height: 64px;
        grid-template-columns: 2fr 8fr 2fr;
        gap: 20px;
        transform: translateY(-7px);
    }

    .header .form-mb-logo {
        width: 64px;
    }

    .nav-list {
        display: none;
    }

    .cart {
        grid-column: 2;
    }

    .nav__btn {
        display: block;
        grid-column: 3;
    }

    .form {
        width: calc(100% - 32px);
        min-height: calc(100dvh - var(--header-height));
        padding: 24px 0 48px;
        gap: 28px;
    }

    .product {
        height: 43svh;
        min-height: 300px;
    }

    .product img {
        border-radius: 24px;
    }

    .form_text h1 {
        margin-bottom: 22px;
        font-size: clamp(46px, 13vw, 66px);
    }

    .form_text p1,
    .form_text p2,
    .form_text p3 {
        font-size: 15px;
        line-height: 1.5;
    }

    .section2,
    .section3,
    .section4,
    .section5,
    .section6,
    .section7,
    .section8,
    .section9,
    .section10 {
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        padding: max(94px, calc(env(safe-area-inset-top) + 78px)) 16px 34px;
        align-items: center;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
    }

    .section1 {
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
    }

    .section2::before,
    .section3::before,
    .section4::before,
    .section5::before,
    .section6::before,
    .section7::before,
    .section8::before,
    .section9::before,
    .section10::before {
        top: max(48px, calc(env(safe-area-inset-top) + 36px));
        font-size: 12px;
    }

    .section2 > .logo--mb,
    .section3 > .logo--mb,
    .section4 > .logo--mb,
    .section5 > .logo--mb,
    .section6 > .logo--mb,
    .section7 > .logo--mb,
    .section8 > .logo--mb,
    .section9 > .logo--mb,
    .section10 > .logo--mb {
        top: max(34px, calc(env(safe-area-inset-top) + 23px));
        left: 18px;
    }

    .section2 > .logo--mb .form-mb-logo,
    .section3 > .logo--mb .form-mb-logo,
    .section4 > .logo--mb .form-mb-logo,
    .section5 > .logo--mb .form-mb-logo,
    .section6 > .logo--mb .form-mb-logo,
    .section7 > .logo--mb .form-mb-logo,
    .section8 > .logo--mb .form-mb-logo,
    .section9 > .logo--mb .form-mb-logo,
    .section10 > .logo--mb .form-mb-logo {
        width: 64px;
    }

    .email-container,
    .cake-form {
        width: min(100%, 560px);
        padding: 26px 20px;
        border-radius: 22px;
    }

    .email-container label,
    .cake-form h2 {
        margin-bottom: 20px;
        font-size: clamp(27px, 7.8vw, 35px);
        overflow-wrap: anywhere;
    }

    .cake-form > p {
        margin-bottom: 18px;
        font-size: 15px;
    }

    .cake-option {
        min-height: 58px;
        padding: 13px 50px 13px 15px;
        font-size: 15px;
    }

    .email-container input,
    #phone {
        font-size: 16px;
    }

    .submit-container {
        width: 100%;
        margin-top: 28px;
        flex-wrap: wrap;
    }

    .submit-btn,
    .back-btn {
        min-width: 116px;
        padding: 13px 21px;
    }

    .modal,
    .added-to-cart-modal {
        padding: 14px;
    }
}

@media (max-width: 390px) {
    .email-container,
    .cake-form {
        padding: 23px 17px;
    }

    .email-container label,
    .cake-form h2 {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Header and mobile navigation copied from the Products order form. */
:root {
    --accent: #a96432;
    --footer-bg: #e8d1bc;
    --footer-text-color: #3b2418;
    --font-main: "Gilroy", sans-serif;
    --font-cards: "Inter", sans-serif;
}

.section1 > .header {
    --mb-ink: #281306;
    --mb-caramel: #a96432;
    --mb-border: rgba(40, 19, 6, 0.16);
    position: relative;
    top: auto;
    z-index: auto;
    display: flex;
    width: auto;
    height: 96px;
    min-height: 0;
    padding: 0;
    align-items: center;
    border-bottom: 1px solid var(--mb-border);
    background: rgba(247, 236, 223, 0.74);
    color: var(--mb-ink);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.section1 > .header .container {
    width: 100%;
    max-width: 1310px;
    padding: 0 15px;
    margin: 0 auto;
}

.section1 > .header a,
.section1 > .header .logo {
    color: var(--mb-ink) !important;
}

.section1 > .header .header__nav {
    display: grid;
    height: auto;
    margin-bottom: 0;
    grid-template-columns: 2fr 8fr 2fr;
    align-items: center;
    gap: 20px;
}

.section1 > .header .nav__logo {
    display: flex;
    align-items: center;
    justify-self: start;
    gap: 8px;
}

.section1 > .header .logo--mb {
    display: flex;
    width: fit-content;
    height: fit-content;
    align-items: center;
    line-height: 0;
}

.section1 > .header .logo--mb::after {
    content: none !important;
}

.section1 > .header .form-mb-logo {
    display: block;
    width: clamp(60px, 5vw, 76px);
    height: auto;
    max-width: none;
    object-fit: contain;
}

.section1 > .header .nav-list {
    display: flex;
    margin: 0;
    padding: 0;
    align-self: center;
    justify-self: center;
    justify-content: center;
    align-items: center;
    gap: 65px;
    list-style: none;
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 500;
}

.section1 > .header .nav-list__item {
    position: relative;
    padding: 10px 0;
}

.section1 > .header .nav-list__link {
    display: block;
    padding: 0;
    color: var(--mb-ink);
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 500;
    transition: opacity 0.1s ease-in;
}

.section1 > .header .nav-list__link:hover {
    opacity: 0.7;
}

.section1 > .header .nav-list__link--dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section1 > .header .nav-list__link--dropdown::after {
    content: url("img/icons/arrow-down.svg");
    height: 18px;
    margin-left: 0;
}

.section1 > .header .nav-list__sub-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 160px;
    min-width: 0;
    padding-top: 0;
    visibility: visible;
    opacity: 0;
    pointer-events: none;
    transform: translate(0%, 10%);
    transition: all 0.2s ease-in;
}

.section1 > .header .nav-list__item:hover .nav-list__sub-nav,
.section1 > .header .nav-list__item:focus-within .nav-list__sub-nav {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
    transform: translate(0%, 0%);
}

.section1 > .header .sub-nav {
    display: grid;
    margin: 0;
    padding: 20px;
    gap: 16px;
    border: 0;
    border-radius: 16px;
    background-color: var(--footer-bg);
    box-shadow: none;
    color: var(--footer-text-color);
    list-style: none;
    font-family: var(--font-main);
    font-size: 16px;
}

.section1 > .header .sub-nav__link {
    display: block;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--footer-text-color) !important;
    font-family: var(--font-main);
    font-size: 16px;
    transition: color 0.1s ease-in;
}

.section1 > .header .sub-nav__link:hover {
    background: transparent;
    color: var(--accent) !important;
}

.section1 > .header .cart {
    position: relative;
    display: inline-block;
    align-self: center;
    justify-self: end;
}

.section1 > .header .cart__img {
    display: block;
    width: auto;
    height: auto;
    filter: brightness(0) saturate(100%) sepia(22%) saturate(1040%) hue-rotate(344deg) brightness(35%);
}

.section1 > .header .cart__count {
    position: absolute;
    top: 3px;
    right: -6px;
    display: inline-block;
    height: 25px;
    min-width: 0;
    padding: 0 6px;
    border-radius: 40px;
    background-color: #a96432;
    color: #fff;
    font-family: var(--font-cards);
    font-size: 16px;
    font-weight: 700;
    line-height: 25px;
}

.section1 > .header .nav__btn {
    display: none;
    padding: 0;
    background: none;
    cursor: pointer;
}

.section1 > .header .nav__btn img {
    display: block;
    width: auto;
    height: auto;
    max-width: fit-content;
    filter: brightness(0) saturate(100%) sepia(22%) saturate(1040%) hue-rotate(344deg) brightness(35%);
}

.mobile-nav-wrapper {
    position: absolute;
    z-index: 9;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    display: none;
    width: 320px;
    max-width: none;
    padding: 30px;
    overflow-y: visible;
    background-color: var(--footer-bg);
    color: var(--footer-text-color);
    font-family: var(--font-main);
}

.mobile-nav-wrapper a {
    color: var(--footer-text-color);
    transition: color 0.1s ease-in;
}

.mobile-nav-wrapper a:hover {
    color: #8f542e;
}

.mobile-nav-wrapper--open,
.mobile-nav-wrapper.active {
    display: block;
}

.mobile-nav-header {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(59, 36, 24, 0.18);
}

.mobile-cart {
    display: flex;
    flex-grow: 1;
    padding-right: 20px;
    align-items: center;
    gap: 20px;
    border-right: 1px solid rgba(59, 36, 24, 0.18);
    font-size: 22px;
    font-weight: 500;
}

.mobile-nav-btn-close {
    padding: 0;
    background: none;
}

.mobile-nav-btn-close img,
.mobile-nav-wrapper .cart__img {
    display: block;
    width: auto;
    height: auto;
    filter: brightness(0) saturate(100%) sepia(22%) saturate(1040%) hue-rotate(344deg) brightness(35%);
}

.mobile-nav,
.mobile-sub-nav {
    margin: 0;
    list-style: none;
}

.mobile-nav {
    display: grid;
    padding: 0;
    gap: 20px;
    font-size: 22px;
}

.mobile-sub-nav {
    display: grid;
    padding: 20px 0 0 20px;
    gap: 14px;
    font-size: 16px;
}

.mobile-nav__link,
.mobile-sub-nav .sub-nav__link {
    display: block;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--footer-text-color);
}

@media (max-width: 992px) {
    .section1 > .header .nav-list {
        display: none;
    }

    .section1 > .header .nav__btn {
        display: block;
    }
}

@media (max-width: 767px) {
    .section1 > .header {
        --mobile-safe-top: max(10px, env(safe-area-inset-top));
        box-sizing: border-box;
        position: relative;
        top: auto;
        z-index: auto;
        height: calc(64px + var(--mobile-safe-top)) !important;
        min-height: calc(64px + var(--mobile-safe-top)) !important;
        padding-top: var(--mobile-safe-top) !important;
        margin-top: 0 !important;
    }

    .section1 > .header .header__nav {
        height: auto;
        transform: translateY(-7px);
    }

    .section1 > .header .form-mb-logo {
        width: 64px;
    }

    .section1 > .header .cart {
        grid-column: auto;
    }

    .section1 > .header .nav__btn {
        grid-column: auto;
        justify-self: auto;
    }
}


/* =========================================================
   WEDDING CART — EXACT INDEX BASKET
   Copied visually from the current index cart and scoped here
   so the wedding form's older modal styles cannot override it.
   ========================================================= */

body.modal-open {
  overflow: hidden !important;
}

#cartModal.modal {
  isolation: isolate;
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  justify-content: center;
  align-items: center;
  overflow: auto;
  flex-direction: column;
  font-family: Inter, Arial, sans-serif;
}

#cartModal > .modal-content {
  z-index: 2;
  background: white;
  padding: 30px;
  border-radius: 16px;
  width: 95%;
  max-width: 1300px;
  text-align: left;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  max-height: 95vh;
  overflow-y: auto;
  color: #1e1e1e;
}

#cartModal .close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

#cartModal h2 {
  margin: 0 0 0.83em;
  font-family: Inter, Arial, sans-serif;
  font-size: 1.5em;
  font-weight: 700;
  color: #1e1e1e;
}

#cartModal .cart-wrapper {
  display: flex;
  flex-direction: row;
  gap: 60px;
}

#cartModal .cart-left {
  flex: 2;
  overflow-y: auto;
  max-height: 75vh;
}

#cartModal .cart-summary {
  flex: 1;
  padding: 30px;
  border: 0;
  border-radius: 16px;
  background: #b57638;
  color: white;
  font-size: 18px;
  box-shadow: none;
}

#cartModal .cart-summary h3 {
  margin: 0 0 25px;
  font-family: Inter, Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: white;
}

#cartModal .summary-line {
  display: flex;
  justify-content: space-between;
  gap: 0;
  margin-bottom: 20px;
  padding: 0;
  border: 0;
  color: white;
}

#cartModal .summary-line.total {
  padding-top: 10px;
  border-top: 1px solid #fff;
  font-size: 20px;
  font-weight: 700;
}

#cartModal .cart-summary button {
  width: 100%;
  height: auto;
  min-height: 0;
  margin-top: 18px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #fdd835;
  color: #111;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  cursor: pointer;
  box-shadow: none;
  transform: none;
}

#cartModal #continueShopping {
  margin-right: 10px;
  background: #7a4318;
  color: white;
}

#cartModal #continueShopping:hover {
  background: #5e3212;
}

#cartModal #checkout {
  background: #fdd835;
  color: #111;
}

#cartModal #checkout:hover {
  background: #c9a600;
}

#cartModal .cart-header {
  display: flex;
  justify-content: space-between;
  padding: 0 0 15px;
  border: 0;
  border-bottom: 2px solid #ddd;
  color: #1e1e1e;
  font-size: 20px;
  font-weight: 700;
}

#cartModal .cart-items {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

#cartModal .cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
  color: #1e1e1e;
  font-size: 18px;
}

#cartModal .cart-item-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

#cartModal .cart-item img {
  width: 200px;
  height: 200px;
  max-width: none;
  object-fit: cover;
  border-radius: 12px;
}

#cartModal .item-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

#cartModal .info-and-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 38px;
}

#cartModal .item-description,
#cartModal .product-description {
  flex: 1;
  color: #555;
  font-size: 14px;
  line-height: 1.4;
}

#cartModal .item-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 70px;
  margin-top: 10px;
}

#cartModal .quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 100px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f8eedd;
}

#cartModal .quantity-controls button {
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: #444;
  font-size: 18px;
  font-weight: 700;
  box-shadow: none;
}

#cartModal .quantity-controls span {
  min-width: 14px;
  text-align: center;
}

#cartModal .remove-btn {
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  margin: 0 0 0 auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #b30000;
  font-size: 22px;
  cursor: pointer;
  box-shadow: none;
  transition: color 0.2s, transform 0.2s;
}

#cartModal .remove-btn:hover {
  background: transparent;
  color: #ff0000;
  transform: scale(1.2);
}

#cartModal .item-price {
  padding-top: 35px;
  font-size: 18px;
  font-weight: 700;
}

#cartModal .free-ship {
  margin: 15px 0;
  color: #fff;
  font-size: 14px;
}

#cartModal .free-ship-text {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

#cartModal .free-ship-amount {
  color: #ffcc33;
  font-weight: 700;
}

#cartModal .free-ship-bar {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.25);
}

#cartModal .free-ship-fill {
  width: 0%;
  height: 100%;
  border-radius: 5px;
  background: #ffcc33;
  transition: width 0.3s ease-in-out;
}

#cartModal .modal-line {
  z-index: 1;
  pointer-events: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 0;
  height: 4px;
  margin-bottom: 20px;
  background-color: #b57638;
  transform: translate(-50%, -50%);
  animation: none;
}

#cartModal > .modal-content.modal-animate {
  opacity: 0;
  transform: scaleY(0);
  transform-origin: center center;
  animation: none;
  margin-top: 0;
}

@keyframes lineGrow {
  from { width: 0; }
  to { width: 65vw; }
}

@keyframes expandModal {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

/* Exact index payment block */
#cartModal .payment-methods {
  margin: 4px 0 20px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
}

#cartModal .payment-methods__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

#cartModal .payment-methods__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

#cartModal .payment-methods__stripe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

#cartModal .payment-methods__stripe img {
  display: block;
  width: 96px;
  max-width: 100%;
  height: auto;
}

#cartModal .payment-methods__icons {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 10px !important;
  align-items: stretch;
}

#cartModal .payment-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  height: 48px !important;
  padding: 7px 12px !important;
  overflow: hidden !important;
  border: 1px solid rgba(38,29,23,.08) !important;
  border-radius: 9px !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.08) !important;
}

#cartModal .payment-logo img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 92% !important;
  max-height: 31px !important;
  object-fit: contain !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

#cartModal .payment-logo--visa img {
  max-width: 78px !important;
  max-height: 27px !important;
}

#cartModal .payment-logo--mc img {
  max-width: 82px !important;
  max-height: 30px !important;
}

#cartModal .payment-logo--amex img {
  max-width: 84px !important;
  max-height: 32px !important;
}

#cartModal .payment-logo--discover img {
  max-width: 82px !important;
  max-height: 28px !important;
}

#cartModal .payment-logo--apple img {
  max-width: 80px !important;
  max-height: 28px !important;
}

#cartModal .payment-logo--gpay {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

#cartModal .payment-logo--gpay img {
  max-width: 86px !important;
  max-height: 29px !important;
}

#cartModal .payment-methods__note {
  margin: 12px 0 0;
  color: rgba(255,255,255,.86);
  font-size: 11px;
  line-height: 1.4;
}

/* The desktop index opens the modal; phones still use the separate basket page. */
@media (max-width: 600px) {
  #cartModal .payment-methods {
    padding: 14px;
  }

  #cartModal .payment-methods__icons {
    gap: 7px !important;
  }

  #cartModal .payment-logo {
    height: 43px !important;
    min-height: 43px !important;
    padding: 6px 8px !important;
  }

  #cartModal .payment-logo img {
    max-height: 27px !important;
  }
}

/* =========================================================
   WEDDING FORM STEP SCROLL
   Same interaction as custom:
   page itself cannot scroll into the next step;
   active step may scroll internally when its content is taller.
   ========================================================= */

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}

html {
  scroll-snap-type: none !important;
}

.section1,
.section2,
.section3,
.section4,
.section5,
.section6,
.section7,
.section8,
.section9,
.section10 {
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-align: none !important;
}

@media (max-width: 767px) {
  .section1,
  .section2,
  .section3,
  .section4,
  .section5,
  .section6,
  .section7,
  .section8,
  .section9,
  .section10 {
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
  }
}


/* =========================================================
   WEDDING CART — QUANTITY / REMOVE BUTTON FIX
   Keep the rest of the index cart unchanged.
   ========================================================= */

#cartModal .item-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 70px;
  margin-top: 10px;
}

#cartModal .quantity-controls {
  box-sizing: border-box;
  width: 100px;
  min-width: 100px;
  height: 42px;
  padding: 0 10px;
  margin: 0;
  display: grid;
  grid-template-columns: 26px 28px 26px;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 0;
  border-radius: 10px;
  background: #f9f0e2;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.05);
}

#cartModal .quantity-controls button {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 26px !important;
  min-width: 26px !important;
  height: 30px !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #444 !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  transform: none !important;
}

#cartModal .quantity-controls button:hover {
  background: transparent !important;
  color: #000 !important;
  transform: none !important;
}

#cartModal .quantity-controls span {
  box-sizing: border-box;
  width: 28px;
  min-width: 28px;
  margin: 0;
  padding: 0;
  display: block;
  color: #333;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 30px;
  text-align: center;
}

#cartModal .remove-btn {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  flex: 0 0 40px;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #b30000 !important;
  font-size: 23px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer;
}

#cartModal .remove-btn:hover {
  background: transparent !important;
  color: #ff0000 !important;
  transform: scale(1.12) !important;
}

@media (max-width: 900px) {
  #cartModal .item-controls {
    gap: 36px;
  }
}


/* =========================================================
   WEDDING CART — FINAL VISIBLE BUTTON REDESIGN
   ONLY quantity +/- and remove X
   ========================================================= */

#cartModal .item-controls {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 28px !important;
  margin-top: 10px !important;
}

/* Quantity block */
#cartModal .quantity-controls {
  width: auto !important;
  min-width: 0 !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 3px !important;
  display: inline-grid !important;
  grid-template-columns: 34px 34px 34px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  border: 1px solid #ead7bd !important;
  border-radius: 12px !important;
  background: #fbf4e9 !important;
  box-shadow: 0 2px 8px rgba(77, 50, 29, 0.06) !important;
}

/* Minus / Plus are real small square buttons */
#cartModal .quantity-controls button {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  color: #5a3a29 !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: 0 1px 4px rgba(77, 50, 29, 0.10) !important;
  cursor: pointer !important;
  transition: background .18s ease, color .18s ease, transform .18s ease !important;
}

#cartModal .quantity-controls button:hover {
  background: #7a4318 !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}

/* Count in the middle */
#cartModal .quantity-controls span {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  color: #2f2018 !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
}

/* Remove: hide the emoji rendering and draw a clean X */
#cartModal .remove-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: relative !important;
  flex: 0 0 38px !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid #e8c8bd !important;
  border-radius: 50% !important;
  background: #fff7f4 !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 1 !important;
  box-shadow: 0 2px 8px rgba(116, 49, 30, 0.08) !important;
  cursor: pointer !important;
  transform: none !important;
  transition: background .18s ease, border-color .18s ease, transform .18s ease !important;
}

#cartModal .remove-btn::before {
  content: "×" !important;
  display: block !important;
  color: #a53a2c !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 26px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  transform: translateY(-1px);
}

#cartModal .remove-btn:hover {
  background: #a53a2c !important;
  border-color: #a53a2c !important;
  transform: scale(1.06) !important;
}

#cartModal .remove-btn:hover::before {
  color: #fff !important;
}

/* Phone/tablet */
@media (max-width: 900px) {
  #cartModal .item-controls {
    gap: 16px !important;
  }

  #cartModal .quantity-controls {
    grid-template-columns: 32px 32px 32px !important;
    height: 38px !important;
  }

  #cartModal .quantity-controls button,
  #cartModal .quantity-controls span {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
  }

  #cartModal .remove-btn {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    flex-basis: 36px !important;
  }
}


/* =========================================================
   CART — EXACT INDEX STYLES, FORCED
   Values copied from current index home.css.
   All cart declarations use !important so wedding styles cannot override them.
   ========================================================= */

body.modal-open {
  overflow: hidden !important;
}

#cartModal.modal {
  isolation: isolate !important;
  display: none;
  position: fixed !important;
  z-index: 1000 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: auto !important;
  flex-direction: column !important;
}

#cartModal > .modal-content {
  z-index: 2 !important;
  background: white !important;
  padding: 30px !important;
  border: 0 !important;
  border-radius: 16px !important;
  width: 95% !important;
  max-width: 1300px !important;
  text-align: left !important;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3) !important;
  position: relative !important;
  max-height: 95vh !important;
  overflow-y: auto !important;
  color: #1e1e1e !important;
}

#cartModal .close {
  position: absolute !important;
  right: 20px !important;
  top: 15px !important;
  font-size: 28px !important;
  line-height: normal !important;
  cursor: pointer !important;
}

#cartModal .cart-wrapper {
  display: flex !important;
  flex-direction: row !important;
  gap: 60px !important;
}

#cartModal .cart-left {
  flex: 2 !important;
  overflow-y: auto !important;
  max-height: 75vh !important;
}

#cartModal .cart-summary {
  flex: 1 !important;
  background: #b57638 !important;
  color: white !important;
  padding: 30px !important;
  border: 0 !important;
  border-radius: 16px !important;
  font-size: 18px !important;
  box-shadow: none !important;
}

#cartModal .cart-summary h3 {
  margin-bottom: 25px !important;
  font-size: 24px !important;
}

#cartModal .summary-line {
  display: flex !important;
  justify-content: space-between !important;
  margin-bottom: 20px !important;
  padding: 0 !important;
  gap: 0 !important;
  border: 0 !important;
}

#cartModal .summary-line.total {
  font-weight: bold !important;
  font-size: 20px !important;
  border-top: 1px solid #fff !important;
  padding-top: 10px !important;
}

#cartModal .cart-summary input[type="text"] {
  padding: 10px 12px !important;
  border-radius: 8px !important;
  border: 2px solid white !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: white !important;
  font-size: 15px !important;
  width: 100% !important;
  margin-top: 6px !important;
  outline: none !important;
  transition: border 0.3s ease, background 0.3s ease !important;
}

#cartModal .cart-summary input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

#cartModal .cart-summary input[type="text"]:focus {
  border-color: #ffe082 !important;
  background-color: rgba(255, 255, 255, 0.25) !important;
}

#cartModal .cart-summary button {
  margin-top: 18px !important;
  background: #fdd835 !important;
  border: none !important;
  padding: 14px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  border-radius: 10px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  font-size: 16px !important;
  box-shadow: none !important;
  transform: none !important;
}

#cartModal #continueShopping {
  margin-right: 10px !important;
  background: #7a4318 !important;
  color: white !important;
}

#cartModal #continueShopping:hover {
  background: #5e3212 !important;
}

#cartModal #checkout:hover {
  background: #c9a600 !important;
}

#cartModal .cart-header {
  display: flex !important;
  justify-content: space-between !important;
  font-weight: bold !important;
  font-size: 20px !important;
  padding-bottom: 15px !important;
  border-bottom: 2px solid #ddd !important;
}

#cartModal .cart-items {
  display: flex !important;
  flex-direction: column !important;
  gap: 30px !important;
}

#cartModal .cart-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 20px 0 !important;
  border-bottom: 1px solid #ddd !important;
  font-size: 18px !important;
}

#cartModal .cart-item-left {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
}

#cartModal .cart-item img {
  width: 200px !important;
  height: 200px !important;
  max-width: none !important;
  object-fit: cover !important;
  border-radius: 12px !important;
}

#cartModal .item-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  flex: 1 !important;
}

#cartModal .info-and-controls {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 38px !important;
}

#cartModal .item-description {
  color: #555 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  flex: 1 !important;
}

#cartModal .item-controls {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 70px !important;
  margin-top: 10px !important;
}

#cartModal .quantity-controls {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: #f8eedd !important;
  padding: 10px 14px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  min-width: 100px !important;
  width: auto !important;
  height: auto !important;
  box-shadow: none !important;
}

#cartModal .quantity-controls button {
  appearance: auto !important;
  -webkit-appearance: auto !important;
  display: inline-block !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 18px !important;
  font-weight: bold !important;
  color: #444 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transform: none !important;
}

#cartModal .quantity-controls button:hover {
  background: none !important;
  color: #444 !important;
  transform: none !important;
}

#cartModal .quantity-controls span {
  display: inline !important;
  min-width: 14px !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: normal !important;
  text-align: center !important;
}

#cartModal .remove-btn {
  appearance: auto !important;
  -webkit-appearance: auto !important;
  position: static !important;
  display: inline-block !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  flex: none !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  font-size: 22px !important;
  line-height: normal !important;
  color: #b30000 !important;
  cursor: pointer !important;
  margin-left: auto !important;
  box-shadow: none !important;
  transition: color 0.2s, transform 0.2s !important;
}

#cartModal .remove-btn::before {
  content: none !important;
}

#cartModal .remove-btn:hover {
  background: transparent !important;
  color: #ff0000 !important;
  transform: scale(1.2) !important;
}

#cartModal .item-price {
  padding-top: 35px !important;
  font-weight: bold !important;
  font-size: 18px !important;
}

#cartModal .free-ship {
  margin: 15px 0 !important;
  font-size: 14px !important;
  color: #fff !important;
}

#cartModal .free-ship-text {
  margin-bottom: 6px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

#cartModal .free-ship-amount {
  color: #ffcc33 !important;
  font-weight: bold !important;
}

#cartModal .free-ship-bar {
  width: 100% !important;
  height: 8px !important;
  background: rgba(255, 255, 255, 0.25) !important;
  border-radius: 5px !important;
  overflow: hidden !important;
}

#cartModal .free-ship-fill {
  height: 100% !important;
  width: 0%;
  background: #ffcc33 !important;
  border-radius: 5px !important;
  transition: width 0.3s ease-in-out !important;
}

#cartModal .modal-line {
  z-index: 1 !important;
  pointer-events: none !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 0;
  height: 4px !important;
  background-color: #b57638 !important;
  animation: none !important;
  margin-bottom: 20px !important;
}

#cartModal > .modal-content.modal-animate {
  opacity: 0;
  transform: scaleY(0) !important;
  transform-origin: center center !important;
  animation: none !important;
  margin-top: 0 !important;
}

/* Keyframes cannot use !important; values are copied exactly from index. */
@keyframes lineGrow {
  from { width: 0; }
  to { width: 65vw; }
}

@keyframes expandModal {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

/* ===================== INDEX PAYMENT BLOCK ===================== */

#cartModal .payment-methods {
  margin: 4px 0 20px !important;
  padding: 16px !important;
  border: 1px solid rgba(255,255,255,.34) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05)) !important;
}

#cartModal .payment-methods__head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}

#cartModal .payment-methods__title {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

#cartModal .payment-methods__stripe {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  padding: 4px 8px !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.08) !important;
}

#cartModal .payment-methods__stripe img {
  display: block !important;
  width: 96px !important;
  max-width: 100% !important;
  height: auto !important;
}

#cartModal .payment-methods__icons {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
}

#cartModal .payment-logo {
  min-height: 48px !important;
  height: 48px !important;
  border-radius: 9px !important;
  padding: 7px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(38,29,23,.08) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.08) !important;
  background: #fff !important;
  overflow: hidden !important;
}

#cartModal .payment-logo img {
  display: block !important;
  max-width: 92% !important;
  max-height: 31px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  image-rendering: auto !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

#cartModal .payment-logo--visa {
  background: #fff !important;
}

#cartModal .payment-logo--visa img {
  max-width: 78px !important;
  max-height: 27px !important;
}

#cartModal .payment-logo--mc {
  background: #ffffff !important;
}

#cartModal .payment-logo--mc img {
  max-width: 82px !important;
  max-height: 30px !important;
}

#cartModal .payment-logo--amex {
  background: #fff !important;
}

#cartModal .payment-logo--amex img {
  max-width: 84px !important;
  max-height: 32px !important;
}

#cartModal .payment-logo--discover {
  background: #ffffff !important;
}

#cartModal .payment-logo--discover img {
  max-width: 82px !important;
  max-height: 28px !important;
}

#cartModal .payment-logo--apple {
  background: #fff !important;
}

#cartModal .payment-logo--apple img {
  max-width: 80px !important;
  max-height: 28px !important;
}

#cartModal .payment-logo--gpay {
  background: #ffffff !important;
  justify-content: center !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

#cartModal .payment-logo--gpay img {
  max-width: 86px !important;
  max-height: 29px !important;
}

#cartModal .payment-methods__note {
  margin: 12px 0 0 !important;
  color: rgba(255,255,255,.86) !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
}

@media (max-width: 600px) {
  #cartModal .payment-methods {
    padding: 14px !important;
  }

  #cartModal .payment-methods__icons {
    gap: 7px !important;
  }

  #cartModal .payment-logo {
    height: 43px !important;
    min-height: 43px !important;
    padding: 6px 8px !important;
  }

  #cartModal .payment-logo img {
    max-height: 27px !important;
  }
}

