/* =====================================================
   KAIRA HOTEL — PREMIUM FOOD CART
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    --navy: #111d2c;
    --navy-light: #1c2b3d;
    --gold: #c8a96a;
    --gold-light: #e6d1a0;
    --cream: #faf8f3;
    --white: #ffffff;
    --text: #252c35;
    --muted: #828791;
    --border: #ece9e2;
    --green: #398064;
    --sidebar-width: 255px;
    --shadow: 0 15px 45px rgba(24, 34, 47, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

/* =====================================================
   HEADER
===================================================== */

.cart-header {
    position: relative;
    z-index: 10;
    background: var(--navy);
    border-bottom: 1px solid rgba(200, 169, 106, 0.25);
}

.header-inner {
    max-width: 1440px;
    min-height: 88px;
    margin: 0 auto;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
}

.brand-icon {
    width: 47px;
    height: 47px;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    display: grid;
    place-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-style: italic;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

.brand-text strong {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 3px;
}

.brand-text small {
    color: var(--gold);
    font-size: 8px;
    letter-spacing: 2px;
    font-weight: 600;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-nav > a {
    color: #d5d9df;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.25s ease;
}

.header-nav > a:hover {
    color: var(--gold-light);
}

.header-nav .account-link {
    padding: 11px 17px;
    border: 1px solid rgba(200, 169, 106, 0.5);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-icon {
    font-size: 17px;
}

/* =====================================================
   HERO BANNER
===================================================== */

.welcome-banner {
    position: relative;
    min-height: 290px;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 80% 50%,
            rgba(200, 169, 106, 0.15),
            transparent 45%
        ),
        linear-gradient(110deg, #111d2c 0%, #1c2b3d 100%);
    display: flex;
    align-items: center;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        120deg,
        transparent,
        transparent 100px,
        rgba(255, 255, 255, 0.012) 101px,
        rgba(255, 255, 255, 0.012) 102px
    );
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 47px 6%;
}

.eyebrow,
.section-kicker,
.summary-kicker {
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.4px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eyebrow-line {
    width: 33px;
    height: 1px;
    background: var(--gold);
}

.banner-content h1 {
    margin-top: 12px;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: clamp(45px, 5vw, 66px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -1px;
}

.banner-content h1 span {
    color: var(--gold);
}

.banner-content > p {
    margin-top: 12px;
    color: #c5cbd3;
    font-size: 13px;
}

.breadcrumb {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: #9ba5b1;
    font-size: 10px;
}

.breadcrumb a:hover {
    color: var(--gold-light);
}

.breadcrumb strong {
    color: var(--gold-light);
    font-weight: 500;
}

.banner-decoration {
    position: absolute;
    right: 9%;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(200, 169, 106, 0.055);
    font-family: 'Playfair Display', serif;
    font-size: clamp(180px, 24vw, 310px);
    font-style: italic;
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

/* =====================================================
   MAIN CONTAINER
===================================================== */

.cart-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 52px 6% 35px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin-top: 5px;
    color: var(--navy);
    font-family: 'Playfair Display', serif;
    font-size: 31px;
    font-weight: 500;
}

.section-heading > div:first-child > p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.cart-count {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    background: white;
    border: 1px solid var(--border);
}

.count-icon {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    background: #f6f0e3;
    color: #9b7840;
    font-size: 22px;
}

.cart-count strong,
.cart-count small {
    display: block;
}

.cart-count strong {
    color: var(--navy);
    font-size: 18px;
    line-height: 1.3;
}

.cart-count small {
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 1.2px;
}

/* =====================================================
   CART LAYOUT
===================================================== */

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 355px;
    align-items: start;
    gap: 27px;
}

.cart-panel {
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.panel-heading {
    min-height: 82px;
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.panel-heading > div {
    display: flex;
    align-items: center;
    gap: 13px;
}

.panel-number {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
}

.panel-heading h3 {
    color: var(--navy);
    font-family: 'Playfair Display', serif;
    font-size: 21px;
    font-weight: 500;
}

.secure-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--green);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

/* =====================================================
   INDIVIDUAL FOOD ITEM
===================================================== */

.cart-item {
    padding: 25px 26px;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) auto;
    align-items: center;
    gap: 21px;
    border-bottom: 1px solid var(--border);
    transition: background 0.25s ease;
}

.cart-item:hover {
    background: #fdfcf9;
}

.item-image {
    position: relative;
    width: 132px;
    height: 142px;
    overflow: hidden;
    background: #f0ece3;
}

.item-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.cart-item:hover .item-image img {
    transform: scale(1.05);
}

.food-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #b49b6a;
    font-size: 45px;
    background: linear-gradient(135deg, #f3eee4, #e8dfcf);
}

.image-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 4px 7px;
    background: rgba(17, 29, 44, 0.88);
    color: var(--gold-light);
    font-size: 7px;
    letter-spacing: 1.5px;
}

.item-info {
    min-width: 0;
}

.item-category {
    color: #a38753;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.item-info h3 {
    margin-top: 5px;
    color: var(--navy);
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.item-description {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.7;
}

.unit-price {
    margin-top: 10px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
}

.unit-price span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
}

.quantity-control {
    width: fit-content;
    margin-top: 14px;
    display: flex;
    align-items: center;
    border: 1px solid #e7e2d8;
    background: white;
}

.quantity-control form {
    display: flex;
}

.qty-btn {
    width: 34px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: 19px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover:not(:disabled) {
    background: var(--navy);
    color: white;
}

.qty-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.quantity-number {
    min-width: 32px;
    display: grid;
    place-items: center;
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    border-left: 1px solid #e7e2d8;
    border-right: 1px solid #e7e2d8;
}

.item-total {
    min-width: 105px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
}

.total-label {
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 1px;
}

.item-total > strong {
    color: var(--navy);
    font-size: 17px;
    white-space: nowrap;
}

.remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    background: transparent;
    color: #a65d57;
    font-size: 10px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.remove-btn span {
    font-size: 17px;
}

.remove-btn:hover {
    color: #7f2822;
}

/* =====================================================
   CART FOOTER ACTIONS
===================================================== */

.cart-footer {
    min-height: 76px;
    padding: 20px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.continue-link {
    color: var(--navy);
    font-size: 11px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.continue-link span {
    margin-right: 7px;
    color: #a38753;
    font-size: 17px;
}

.continue-link:hover {
    color: #a38753;
}

.clear-cart-btn {
    padding: 9px 12px;
    border: 1px solid #e9dfd9;
    background: white;
    color: #9b5952;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-cart-btn:hover {
    background: #fbefed;
    border-color: #dcbab5;
}

/* =====================================================
   ORDER SUMMARY
===================================================== */

.summary-panel {
    position: sticky;
    top: 20px;
    padding: 27px 25px 23px;
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.summary-top h3 {
    margin-top: 7px;
    color: var(--navy);
    font-family: 'Playfair Display', serif;
    font-size: 27px;
    font-weight: 500;
}

.summary-top p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

.summary-divider {
    height: 1px;
    margin: 22px 0;
    background: var(--border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin: 17px 0;
    font-size: 11px;
}

.summary-row > span:first-child {
    color: #777e88;
}

.summary-row > strong {
    color: var(--navy);
    font-weight: 700;
    white-space: nowrap;
}

.calculated-later {
    color: #9a804d;
    text-align: right;
    font-size: 10px;
}

.grand-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.grand-total > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.grand-total > div > span {
    color: var(--navy);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.grand-total small {
    max-width: 180px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.6;
}

.grand-total > strong {
    color: var(--navy);
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    white-space: nowrap;
}

.checkout-btn {
    min-height: 54px;
    margin-top: 25px;
    padding: 14px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--navy);
    color: white;
    border: 1px solid var(--navy);
    font-size: 12px;
    font-weight: 600;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.checkout-btn:hover {
    background: #273b51;
    border-color: var(--gold);
}

.checkout-arrow {
    color: var(--gold-light);
    font-size: 21px;
    transition: transform 0.2s ease;
}

.checkout-btn:hover .checkout-arrow {
    transform: translateX(4px);
}

.secure-checkout {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.lock-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: #f5f1e7;
    color: #9c7e42;
    font-size: 20px;
}

.secure-checkout strong,
.secure-checkout small {
    display: block;
}

.secure-checkout strong {
    color: var(--navy);
    font-size: 10px;
}

.secure-checkout small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.5;
}

.summary-note {
    display: flex;
    gap: 10px;
    margin-top: 19px;
    padding: 13px;
    background: #faf7f0;
}

.note-star {
    color: #b18b4c;
    font-size: 17px;
}

.summary-note p {
    color: #858078;
    font-size: 9px;
    line-height: 1.8;
}

.summary-note strong {
    display: block;
    margin-bottom: 2px;
    color: var(--navy);
    font-size: 10px;
}

/* =====================================================
   EMPTY CART
===================================================== */

.empty-cart {
    padding: 70px 25px;
    text-align: center;
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.empty-icon-wrap {
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
    display: grid;
    place-items: center;
    background: #f7f2e7;
    border: 1px solid #e8dcc1;
    border-radius: 50%;
}

.empty-icon {
    color: #aa8951;
    font-size: 43px;
}

.empty-cart h2 {
    margin-top: 12px;
    color: var(--navy);
    font-family: 'Playfair Display', serif;
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 500;
}

.empty-cart > p {
    max-width: 440px;
    margin: 12px auto 24px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
}

.browse-btn {
    min-height: 49px;
    padding: 14px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    background: var(--navy);
    color: white;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.browse-btn span {
    color: var(--gold-light);
    font-size: 18px;
}

.browse-btn:hover {
    background: #273b51;
}

.empty-decoration {
    margin-top: 35px;
    color: #b5aa95;
    font-size: 8px;
    letter-spacing: 3px;
}

/* =====================================================
   BOTTOM BRAND MESSAGE
===================================================== */

.bottom-promise {
    margin-top: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}

.bottom-promise span {
    color: var(--gold);
    font-size: 12px;
}

.bottom-promise p {
    color: #8a877f;
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    font-style: italic;
}

/* =====================================================
   FOOTER
===================================================== */

.cart-footer-bottom {
    min-height: 72px;
    padding: 20px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    background: var(--navy);
}

.cart-footer-bottom p {
    color: #b4bdc8;
    font-size: 10px;
}

.cart-footer-bottom > span {
    color: var(--gold);
    font-size: 8px;
    letter-spacing: 1.5px;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {
    .header-inner {
        padding: 0 4%;
    }

    .header-nav {
        gap: 17px;
    }

    .cart-container {
        padding-right: 4%;
        padding-left: 4%;
    }

    .cart-layout {
        grid-template-columns: minmax(0, 1fr) 310px;
        gap: 18px;
    }

    .cart-item {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 16px;
    }

    .item-image {
        width: 105px;
        height: 125px;
    }

    .item-total {
        grid-column: 2;
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    .item-info h3 {
        font-size: 18px;
    }
}

/* =====================================================
   MOBILE NAVIGATION
===================================================== */

@media (max-width: 760px) {
    .header-inner {
        min-height: auto;
        padding: 17px 5%;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .brand-icon {
        width: 41px;
        height: 41px;
        font-size: 26px;
    }

    .brand-text strong {
        font-size: 19px;
    }

    .header-nav {
        width: 100%;
        padding-bottom: 2px;
        gap: 19px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: thin;
    }

    .header-nav > a {
        font-size: 11px;
    }

    .header-nav .account-link {
        padding: 8px 12px;
    }

    .welcome-banner {
        min-height: 245px;
    }

    .banner-content {
        padding: 35px 5%;
    }

    .banner-content h1 {
        font-size: 48px;
    }

    .banner-content > p {
        max-width: 340px;
        font-size: 12px;
    }

    .banner-decoration {
        right: -5%;
        font-size: 190px;
    }

    .cart-container {
        padding: 34px 5% 28px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-heading h2 {
        font-size: 26px;
    }

    .section-heading > div:first-child > p {
        max-width: 280px;
        font-size: 11px;
    }

    .cart-count {
        padding: 9px;
        gap: 8px;
    }

    .count-icon {
        width: 29px;
        height: 29px;
        font-size: 18px;
    }

    .cart-count small {
        font-size: 7px;
        letter-spacing: 0.5px;
    }

    .cart-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .summary-panel {
        position: static;
    }

    .panel-heading {
        padding: 20px 16px;
    }

    .panel-heading h3 {
        font-size: 19px;
    }

    .secure-label {
        font-size: 7px;
    }

    .cart-item {
        padding: 20px 16px;
        grid-template-columns: 95px minmax(0, 1fr);
        gap: 14px;
    }

    .item-image {
        width: 95px;
        height: 115px;
    }

    .item-info h3 {
        font-size: 17px;
    }

    .item-description {
        font-size: 10px;
    }

    .item-total {
        grid-column: 1 / -1;
        padding-top: 12px;
        border-top: 1px dashed var(--border);
    }

    .cart-footer {
        padding: 17px 16px;
    }

    .continue-link {
        font-size: 10px;
    }

    .clear-cart-btn {
        padding: 8px;
        font-size: 9px;
    }

    .cart-footer-bottom {
        padding: 20px 5%;
        flex-direction: column;
        text-align: center;
        gap: 7px;
    }
}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 390px) {
    .section-heading {
        gap: 8px;
    }

    .section-heading h2 {
        font-size: 23px;
    }

    .cart-count {
        gap: 6px;
    }

    .cart-count small {
        font-size: 6px;
    }

    .cart-item {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 12px;
    }

    .item-image {
        width: 82px;
        height: 105px;
    }

    .item-info h3 {
        font-size: 16px;
    }

    .qty-btn {
        width: 29px;
        height: 30px;
    }

    .item-total > strong {
        font-size: 15px;
    }

    .bottom-promise {
        gap: 8px;
    }

    .bottom-promise p {
        font-size: 11px;
    }
}

/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}