/* =========================================================
   ShopCI theme
   Palette: paper #F7F8F6 · ink #17231E · pine #1F5C46
            marigold #E9A13B · mist #E4E8E3
   Type:    Fraunces (display) · Inter (body/UI)
   ========================================================= */

:root {
    --paper: #f7f8f6;
    --ink: #17231e;
    --pine: #1f5c46;
    --pine-dark: #174534;
    --marigold: #e9a13b;
    --mist: #e4e8e3;
    --radius: 14px;
    --bs-body-font-family: 'Inter', system-ui, sans-serif;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'Inter', system-ui, sans-serif;
}

/* ---- Type ------------------------------------------------ */
.display-title,
.section-title,
.product-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.display-title { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.05; margin-bottom: 1rem; }
.section-title { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.product-title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--pine);
    margin-bottom: 0.5rem;
}

.lead-copy { font-size: 1.08rem; color: #4a544f; max-width: 46ch; }

/* ---- Nav / promo strip ---------------------------------- */
.promo-strip { background: var(--pine); color: #eaf3ee; letter-spacing: 0.02em; }

.site-nav {
    background: var(--paper);
    border-bottom: 1px solid var(--mist);
}

.navbar-brand {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--ink);
}
.navbar-brand span { color: var(--pine); }

.site-nav .nav-link { color: var(--ink); font-weight: 500; }
.site-nav .nav-link:hover { color: var(--pine); }

.cart-badge {
    position: absolute;
    top: 2px;
    right: -4px;
    background: var(--marigold);
    color: var(--ink);
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ---- Buttons --------------------------------------------- */
.btn-primary {
    --bs-btn-bg: var(--pine);
    --bs-btn-border-color: var(--pine);
    --bs-btn-hover-bg: var(--pine-dark);
    --bs-btn-hover-border-color: var(--pine-dark);
    --bs-btn-active-bg: var(--pine-dark);
    --bs-btn-active-border-color: var(--pine-dark);
    border-radius: 999px;
    font-weight: 600;
}
.btn-outline-dark { border-radius: 999px; font-weight: 600; }

:focus-visible {
    outline: 2px solid var(--pine);
    outline-offset: 2px;
}

/* ---- Hero ------------------------------------------------- */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 2rem; }

.hero-panel { display: grid; gap: 0.75rem; }

.hero-cat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    background: #fff;
    border: 1px solid var(--mist);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    text-decoration: none;
    color: var(--ink);
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.15rem;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.hero-cat small { font-family: 'Inter', sans-serif; color: #7b857f; }
.hero-cat:hover { transform: translateX(4px); border-color: var(--pine); }

/* ---- Sections --------------------------------------------- */
.section { padding: 2.5rem 0; }
.section-sm { padding: 1.5rem 0 2.5rem; }
.see-all { color: var(--pine); font-weight: 600; text-decoration: none; }
.see-all:hover { text-decoration: underline; }

/* ---- Product cards ---------------------------------------- */
.product-card {
    border: 1px solid var(--mist);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.product-card:hover { box-shadow: 0 10px 24px rgba(23, 35, 30, 0.08); transform: translateY(-2px); }

.product-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--mist);
    display: block;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #9aa69f;
    aspect-ratio: 1 / 1;
    background: var(--mist);
    border-radius: 8px;
}
.thumb-placeholder.large { font-size: 4rem; border-radius: var(--radius); }

.deal-chip {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--marigold);
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
}
.deal-chip.static { position: static; }

.product-name {
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
    display: block;
    line-height: 1.3;
}
.product-name:hover { color: var(--pine); }

.price { font-weight: 700; }
.price-lg { font-size: 1.6rem; }
.compare-price { color: #97a19b; text-decoration: line-through; font-size: 0.88em; }

.btn-add {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1.5px solid var(--pine);
    color: var(--pine);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}
.btn-add:hover { background: var(--pine); color: #fff; }

/* ---- Filters ---------------------------------------------- */
.filter-panel {
    background: #fff;
    border: 1px solid var(--mist);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.filter-heading { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; color: #7b857f; }
.filter-list a {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    color: var(--ink);
    text-decoration: none;
}
.filter-list a.active, .filter-list a:hover { color: var(--pine); font-weight: 600; }
.filter-list .count { color: #9aa69f; font-size: 0.85em; }

/* ---- Qty stepper ------------------------------------------ */
.qty-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--mist);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}
.qty-stepper button {
    border: 0;
    background: transparent;
    width: 38px;
    font-size: 1.1rem;
    color: var(--ink);
}
.qty-stepper button:hover { background: var(--mist); }
.qty-stepper input {
    width: 48px;
    border: 0;
    text-align: center;
    font-weight: 600;
    -moz-appearance: textfield;
    appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.stock-note.in { color: var(--pine); font-weight: 500; }
.stock-note.out { color: #b0413e; font-weight: 500; }

.detail-image {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--mist);
    background: #fff;
}

/* ---- Cart ------------------------------------------------- */
.cart-table { display: grid; gap: 0.75rem; }

.cart-row {
    display: grid;
    grid-template-columns: 72px 1fr auto auto auto;
    gap: 0.9rem;
    align-items: center;
    background: #fff;
    border: 1px solid var(--mist);
    border-radius: var(--radius);
    padding: 0.75rem;
}
.cart-thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line { min-width: 72px; text-align: right; }

.btn-remove {
    border: 0;
    background: transparent;
    color: #97a19b;
    font-size: 1.05rem;
}
.btn-remove:hover { color: #b0413e; }

@media (max-width: 575.98px) {
    .cart-row { grid-template-columns: 60px 1fr auto; grid-template-rows: auto auto; }
    .cart-thumb { width: 60px; height: 60px; grid-row: span 2; }
    .cart-line { grid-column: 3; }
    .qty-stepper { grid-column: 2; justify-self: start; }
}

/* ---- Cards / summary --------------------------------------- */
.summary-card {
    background: #fff;
    border: 1px solid var(--mist);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.payment-option {
    border: 1px solid var(--mist);
    border-radius: 12px;
    padding: 0.9rem 1rem 0.9rem 2.4rem;
    margin-bottom: 0.6rem;
}
.payment-option:has(input:checked) { border-color: var(--pine); background: #f2f7f4; }

.success-icon { font-size: 3.6rem; color: var(--pine); }

.empty-state { color: #6d776f; }

.perk i { font-size: 1.7rem; color: var(--pine); }
.perk h6 { margin: 0.5rem 0 0.25rem; }

/* ---- Admin ------------------------------------------------- */
.stat-card {
    background: #fff;
    border: 1px solid var(--mist);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
}
.stat-label { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; color: #7b857f; }
.stat-value { font-family: 'Fraunces', Georgia, serif; font-size: 1.6rem; font-weight: 600; }

.badge.status-pending   { background: #f3e3c2; color: #7a5a17; }
.badge.status-paid      { background: #d9ecdf; color: #1f5c46; }
.badge.status-shipped   { background: #d8e4f5; color: #274b7a; }
.badge.status-delivered { background: var(--pine); color: #fff; }
.badge.status-cancelled { background: #f0dada; color: #93392f; }

/* ---- Footer ------------------------------------------------ */
.site-footer { background: #fff; border-top: 1px solid var(--mist); }
.footer-heading { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: #7b857f; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--pine); }

/* ---- Pagination -------------------------------------------- */
.pagination .page-link { color: var(--pine); border-radius: 8px; margin: 0 2px; }
.pagination .active > .page-link { background: var(--pine); border-color: var(--pine); }

/* ---- Motion / a11y ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
