@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Poppins:wght@400;500;600;700&display=swap");

:root {
    --green: #184d32;
    --dark-green: #0e3a22;
    --gold: #d4af37;
    --gold-dark: #a97d17;
    --white: #ffffff;
    --background: #f8f6f1;
    --soft-green: #edf4ef;
    --text: #173126;
    --muted: #718077;
    --border: #dde6df;
    --danger: #a53c3c;
    --shadow: 0 18px 50px rgba(19, 61, 39, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1240px, calc(100% - 40px));
    min-height: 86px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand img {
    width: 74px;
    height: 58px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.main-nav a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.main-nav a:hover {
    color: var(--gold-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon {
    position: relative;
    min-width: 46px;
    min-height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--white);
}

.header-icon.active {
    border-color: var(--gold);
}

.header-icon span {
    position: absolute;
    top: -6px;
    right: -3px;
    min-width: 21px;
    height: 21px;
    padding-inline: 5px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--gold-dark);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
}

.shop-now-button {
    padding: 14px 25px;
    border-radius: 999px;
    background: var(--dark-green);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Hero */

.cart-hero {
    padding: 72px 0 58px;
    background:
        radial-gradient(
            circle at top right,
            rgba(212, 175, 55, 0.15),
            transparent 30%
        ),
        linear-gradient(135deg, #f6f1e6, #f9faf7);
    text-align: center;
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.cart-hero h1,
.section-heading h2,
.order-summary h2,
.empty-cart h2 {
    font-family: "Cormorant Garamond", serif;
    color: var(--dark-green);
}

.cart-hero h1 {
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1;
}

.cart-hero p:last-child {
    max-width: 620px;
    margin: 20px auto 0;
    color: var(--muted);
}

/* Main layout */

.cart-main {
    padding: 72px 0 100px;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 34px;
    align-items: start;
}

.cart-products-section,
.order-summary {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.cart-products-section {
    padding: 32px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.section-heading h2,
.order-summary h2 {
    font-size: 37px;
    line-height: 1;
}

#cartItemSummary {
    color: var(--muted);
    font-size: 14px;
}

/* Cart item */

.cart-items {
    display: grid;
}

.cart-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image-wrapper {
    min-height: 150px;
    display: grid;
    place-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fbfaf7;
    overflow: hidden;
}

.cart-item-image {
    width: 100%;
    height: 140px;
    object-fit: contain;
}

.cart-item-content {
    min-width: 0;
}

.cart-item-category {
    color: var(--gold-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.cart-item-title {
    margin-top: 5px;
    font-family: "Cormorant Garamond", serif;
    color: var(--dark-green);
    font-size: 30px;
    line-height: 1.1;
}

.cart-item-price {
    margin-top: 12px;
    color: var(--gold-dark);
    font-size: 21px;
    font-weight: 700;
}

.cart-item-bottom {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.quantity-control {
    display: inline-grid;
    grid-template-columns: 42px 52px 42px;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.quantity-button,
.quantity-value {
    min-height: 42px;
    border: none;
    background: var(--white);
    display: grid;
    place-items: center;
}

.quantity-button {
    color: var(--green);
    font-size: 20px;
    font-weight: 700;
}

.quantity-button:hover {
    background: var(--soft-green);
}

.quantity-value {
    border-inline: 1px solid var(--border);
    font-weight: 700;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.line-total {
    color: var(--dark-green);
    font-weight: 700;
}

.remove-button {
    border: none;
    background: transparent;
    color: var(--danger);
    font-weight: 600;
}

.remove-button:hover {
    text-decoration: underline;
}

/* Empty state */

.empty-cart {
    padding: 70px 20px;
    text-align: center;
}

.empty-cart-icon {
    margin-bottom: 20px;
    font-size: 50px;
}

.empty-cart h2 {
    font-size: 40px;
}

.empty-cart p {
    max-width: 480px;
    margin: 14px auto 28px;
    color: var(--muted);
}

.primary-button {
    display: inline-flex;
    padding: 15px 27px;
    border-radius: 999px;
    background: var(--dark-green);
    color: var(--white);
    font-weight: 700;
}

/* Summary */

.order-summary {
    position: sticky;
    top: 112px;
    padding: 32px;
}

.order-summary h2 {
    margin-bottom: 30px;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    color: var(--muted);
}

.summary-row strong {
    color: var(--text);
}

.coupon-box {
    margin-top: 25px;
    padding: 20px;
    border-radius: 18px;
    background: var(--soft-green);
}

.coupon-box label {
    display: block;
    margin-bottom: 10px;
    color: var(--dark-green);
    font-size: 13px;
    font-weight: 700;
}

.coupon-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.coupon-input-row input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    text-transform: uppercase;
}

.coupon-input-row input:focus {
    border-color: var(--gold);
}

.coupon-input-row button {
    padding: 0 17px;
    border: none;
    border-radius: 12px;
    background: var(--green);
    color: var(--white);
    font-weight: 700;
}

.coupon-message {
    min-height: 22px;
    margin-top: 10px;
    font-size: 12px;
}

.coupon-message.success {
    color: var(--green);
}

.coupon-message.error {
    color: var(--danger);
}

.summary-divider {
    height: 1px;
    margin: 25px 0 13px;
    background: var(--border);
}

.grand-total-row {
    color: var(--dark-green);
    font-size: 20px;
}

.grand-total-row strong {
    color: var(--gold-dark);
    font-size: 28px;
}

.checkout-button {
    width: 100%;
    min-height: 58px;
    margin-top: 25px;
    border: none;
    border-radius: 16px;
    background: var(--dark-green);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 14px 30px rgba(14, 58, 34, 0.2);
}

.checkout-button:hover {
    transform: translateY(-1px);
}

.checkout-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.continue-shopping {
    display: block;
    margin-top: 18px;
    text-align: center;
    color: var(--green);
    font-weight: 600;
}

.secure-note {
    margin-top: 24px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
    font-size: 12px;
}

/* Footer */

.site-footer {
    background: var(--dark-green);
    color: var(--white);
}

.footer-inner {
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-inner h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 34px;
}

.footer-inner p {
    color: rgba(255, 255, 255, 0.75);
}

/* Utility */

.hidden {
    display: none !important;
}

/* Responsive */

@media (max-width: 980px) {
    .main-nav {
        display: none;
    }

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

    .order-summary {
        position: static;
    }
}

@media (max-width: 640px) {
    .container,
    .header-inner {
        width: min(100% - 24px, 1180px);
    }

    .site-header .shop-now-button {
        display: none;
    }

    .header-inner {
        min-height: 72px;
    }

    .brand img {
        width: 58px;
    }

    .cart-hero {
        padding: 52px 0 42px;
    }

    .cart-main {
        padding: 40px 0 70px;
    }

    .cart-products-section,
    .order-summary {
        padding: 22px;
        border-radius: 20px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .cart-item-image-wrapper {
        min-height: 240px;
    }

    .cart-item-image {
        height: 230px;
    }

    .cart-item-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
    }

    .footer-inner {
        padding: 40px 0;
        align-items: flex-start;
        flex-direction: column;
    }
/* Crisp text brand replacement */
.brand{display:inline-flex!important;align-items:center!important;gap:10px!important;text-decoration:none}.avn-brandmark{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#d3ad4f,#efd98d);color:#0a281b;font-family:Georgia,serif;font-weight:700;font-size:14px}.avn-brandword{font-family:Georgia,serif;color:#0a281b;font-size:24px;font-weight:700;letter-spacing:-.04em}.avn-brandword b{color:#b88a2e}@media(max-width:680px){.avn-brandword{font-size:20px}.avn-brandmark{width:32px;height:32px}}
