:root {
    --bg: #FAFAF7;
    --text: #1A1A1A;
    --text-secondary: #6B6B6B;
    --accent: #2D5016;
    --accent-hover: #3D6B20;
    --gold: #B8924A;
    --cream: #F5F0E8;
    --border: #E8E4DC;
    --dark: #1A1A1A;
    --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg); color: var(--text); line-height: 1.6; }
h1, h2, h3, h4, h5, h6, .logo, .page-title, .footer-logo { font-family: 'Cormorant Garamond', serif; }
a { text-decoration: none; color: inherit; }

/* Navbar (Shared) */
.navbar { position: sticky; top: 0; height: 72px; background: rgba(250, 250, 247, 0.9); backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid var(--border); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 100%; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 500; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500; position: relative; }
.nav-links a.active::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 1px; background-color: var(--text); }
.nav-actions .cart-icon { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500; }
.nav-actions .cart-icon.active { border-bottom: 1px solid var(--text); padding-bottom: 4px; }

/* Main Cart Area */
.cart-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    min-height: 60vh;
}

.breadcrumb {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.breadcrumb a { color: var(--text); }
.page-title { font-size: 42px; font-weight: 400; margin-bottom: 48px; }

/* Cart Layout */
.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    gap: 48px;
    align-items: start;
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto auto 36px;
    grid-template-areas: "img info qty line remove";
    gap: 20px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cart-item.removing {
    opacity: 0;
    transform: translateX(20px);
}

.item-img {
    grid-area: img;
    width: 80px;
    height: 80px;
    object-fit: cover;
    background: var(--cream);
    border-radius: 4px;
}

.item-info {
    grid-area: info;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.item-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 4px;
    overflow-wrap: anywhere;
}

.item-desc, .item-unit {
    font-size: 12px;
    color: var(--text-secondary);
}

.item-qty {
    grid-area: qty;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 20px;
    height: 36px;
}

.qty-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    width: 36px;
    height: 34px;
    color: var(--text);
}
.qty-btn:disabled { color: #C9C9C9; cursor: default; }

.qty-val {
    font-size: 14px;
    min-width: 20px;
    text-align: center;
}

.item-subtotal {
    grid-area: line;
    font-size: 15px;
    font-weight: 500;
    min-width: 64px;
    text-align: right;
    white-space: nowrap;
}

.item-remove {
    grid-area: remove;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 22px;
    line-height: 1;
    width: 36px;
    height: 36px;
}
.item-remove:hover { color: var(--text); }

.continue-shopping {
    margin-top: 32px;
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}
.continue-shopping:hover {
    border-color: var(--text);
}

/* Order Summary */
.order-summary {
    position: sticky;
    top: 100px;
    min-width: 0;
    background: var(--white);
    padding: 32px;
    border: 1px solid var(--border);
}

.summary-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 14px;
}

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

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
}

.summary-muted { color: var(--text-secondary); text-align: right; }
.summary-shipping-note {
    font-size: 12px;
    color: var(--text-secondary);
    margin: -8px 0 20px;
}

.checkout-btn {
    display: block;
    width: 100%;
    background: var(--accent);
    color: var(--white);
    text-align: center;
    min-height: 52px;
    padding: 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: background 0.3s;
}
.checkout-btn:hover { background: var(--accent-hover); }

.summary-note {
    text-align: center;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 16px;
}

/* Empty State */
.empty-cart {
    text-align: center;
    padding: 80px 0;
}

.empty-icon {
    width: 80px;
    height: 80px;
    stroke: var(--border);
    margin-bottom: 24px;
}

.empty-title {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 16px;
}

.empty-desc {
    font-size: 15px;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.explore-btn {
    display: inline-block;
    border: 1px solid var(--text);
    padding: 14px 32px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.3s;
}
.explore-btn:hover {
    background: var(--text);
    color: var(--white);
}

/* Footer (Shared) */
.site-footer { background-color: var(--dark); color: var(--white); padding: 80px 24px 40px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-logo { font-size: 32px; display: block; margin-bottom: 16px; font-family: 'Cormorant Garamond', serif; }
.footer-col p, .footer-col a { color: #999; font-size: 14px; margin-bottom: 12px; }
.footer-col a:hover { color: var(--white); }
.social-icons { display: flex; gap: 16px; margin-top: 24px;}
.social-icons a { color: var(--white); font-size: 16px; }
.footer-col h4 { font-family: 'Inter', sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 24px; }
.footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid #333; padding-top: 32px; display: flex; justify-content: space-between; color: #666; font-size: 12px; }

/* Responsive */
@media (max-width: 900px) {
    .cart-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .order-summary { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .cart-item {
        grid-template-columns: 72px minmax(0, 1fr) auto;
        grid-template-areas:
            "img info remove"
            "img qty  line";
        column-gap: 14px;
        row-gap: 10px;
        align-items: start;
        padding: 20px 0;
    }
    .item-img { width: 72px; height: 72px; }
    .item-qty { justify-self: start; }
    .item-subtotal { align-self: center; justify-self: end; min-width: 0; }
    .item-remove { margin-top: -6px; justify-self: end; }
    .order-summary { padding: 24px 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}

/* Logo image constraint */
.logo img {
    height: 50px !important;
    max-height: 50px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain;
    display: block;
}

.footer-logo-img {
    height: 60px !important;
    max-height: 60px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain;
}
