/* OmniChants — pure-PHP styles. Mirrors the React+Tailwind theme. */

:root {
    --oc-bg: #F9F6F0;
    --oc-surface: #FFFFFF;
    --oc-surface-2: #EFEBE3;
    --oc-text: #2A2A2A;
    --oc-text-soft: #5C5C5C;
    --oc-primary: #B47B62;
    --oc-primary-hover: #9E6953;
    --oc-border: #E2DCD0;
    --oc-success: #7B8A72;
    --oc-error: #D95D5D;
}

* { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
    background: var(--oc-bg);
    color: var(--oc-text);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, .font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
    letter-spacing: -0.01em;
    margin: 0;
}

::selection { background: rgba(180, 123, 98, 0.25); color: var(--oc-text); }

.oc-container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .oc-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .oc-container { padding: 0 2rem; } }

.oc-section { padding: 3rem 0; }
@media (min-width: 768px) { .oc-section { padding: 5rem 0; } }

.oc-eyebrow { font-size: 0.75rem; letter-spacing: .3em; text-transform: uppercase; opacity: .6; }
.oc-h1 { font-size: 2.4rem; line-height: 1.05; margin-top: 1rem; }
@media (min-width: 640px) { .oc-h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .oc-h1 { font-size: 3.6rem; } }

.oc-h2 { font-size: 1.7rem; margin-top: .5rem; }
@media (min-width: 640px) { .oc-h2 { font-size: 2.2rem; } }
@media (min-width: 1024px) { .oc-h2 { font-size: 2.8rem; } }

.oc-lead { font-size: 1rem; line-height: 1.7; opacity: .8; margin-top: 1.25rem; max-width: 32rem; }

.oc-btn-primary, .oc-btn-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5rem; padding: .85rem 1.5rem; border-radius: .375rem;
    font-weight: 500; transition: all .2s ease; text-align: center;
    border: 1px solid transparent; font-size: .95rem;
}
.oc-btn-primary { background: var(--oc-primary); color: #fff; }
.oc-btn-primary:hover { background: var(--oc-primary-hover); }
.oc-btn-primary[disabled] { opacity: .6; cursor: not-allowed; }
.oc-btn-secondary { background: transparent; color: var(--oc-primary); border-color: var(--oc-primary); }
.oc-btn-secondary:hover { background: var(--oc-primary); color: #fff; }

.oc-link-arrow { color: var(--oc-text-soft); font-size: .9rem; }
.oc-link-arrow:hover { color: var(--oc-primary); }

/* Header */
.oc-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(249,246,240,.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--oc-border);
}
.oc-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem; }
.oc-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; letter-spacing: -.01em; }
.oc-logo span { color: var(--oc-primary); }
.oc-logo-light { color: #F9F6F0; font-size: 1.75rem; }
.oc-nav { display: none; gap: 2rem; align-items: center; }
.oc-nav a { font-size: .9rem; transition: color .2s ease; }
.oc-nav a:hover { color: var(--oc-primary); }
@media (min-width: 768px) { .oc-nav { display: inline-flex; } }
.oc-header-right { display: flex; align-items: center; gap: .75rem; }
.oc-cart-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; border-radius: .375rem; transition: background .2s ease;
}
.oc-cart-btn:hover { background: var(--oc-surface-2); }
.oc-cart-badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 20px; height: 20px; padding: 0 .25rem; border-radius: 9999px;
    background: var(--oc-primary); color: #fff; font-size: 11px; font-weight: 500;
    display: inline-flex; align-items: center; justify-content: center;
}
.oc-cart-badge[hidden] { display: none; }
.oc-burger {
    display: inline-flex; flex-direction: column; gap: 4px; width: 2.5rem; height: 2.5rem;
    align-items: center; justify-content: center; background: transparent; border: 0;
}
.oc-burger span { width: 18px; height: 1.5px; background: var(--oc-text); }
@media (min-width: 768px) { .oc-burger { display: none; } }
.oc-mobile-nav { display: none; flex-direction: column; padding: 1rem; gap: .5rem; border-top: 1px solid var(--oc-border); }
.oc-mobile-nav a { padding: .5rem 0; }
body.oc-menu-open .oc-mobile-nav { display: flex; }
@media (min-width: 768px) { body.oc-menu-open .oc-mobile-nav { display: none; } }

/* Hero */
.oc-hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .oc-hero-grid { grid-template-columns: 6fr 6fr; gap: 4rem; } }
.oc-cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.oc-microbenefits { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.5rem; font-size: .8rem; opacity: .7; }
.oc-hero-img { aspect-ratio: 4/5; border-radius: .5rem; overflow: hidden; background: var(--oc-surface-2); }
.oc-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Bento */
.oc-bento { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .oc-bento { grid-template-columns: repeat(4, 1fr); } }
.oc-bento-cell { padding: 1.5rem; background: var(--oc-surface-2); border-radius: .5rem; }
.oc-bento-cell h3 { font-size: 1.25rem; margin: .75rem 0 .25rem; }
.oc-bento-cell p { font-size: .875rem; opacity: .7; line-height: 1.6; margin: 0; }
.oc-bento-icon { color: var(--oc-primary); font-size: 1.5rem; }

/* Product grid + card */
.oc-product-grid { display: grid; grid-template-columns: 1fr; gap: 2rem 2rem; }
@media (min-width: 640px) { .oc-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .oc-product-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem 2rem; } }
.oc-product-grid.oc-grid-4 { gap: 2.5rem 2rem; }
@media (min-width: 1024px) { .oc-product-grid.oc-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.oc-card {
    background: var(--oc-surface); border: 1px solid var(--oc-border); border-radius: .5rem;
    overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s ease;
}
.oc-card:hover { box-shadow: 0 6px 24px rgba(42,42,42,.08); }
.oc-card-img { position: relative; aspect-ratio: 4/5; background: var(--oc-surface-2); overflow: hidden; }
.oc-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.oc-card:hover .oc-card-img img { transform: scale(1.04); }
.oc-badge {
    position: absolute; top: .75rem;
    font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
    padding: .25rem .5rem; border-radius: 2px;
}
.oc-badge-sale { left: .75rem; background: var(--oc-primary); color: #fff; }
.oc-badge-new { right: .75rem; background: rgba(255,255,255,.92); color: var(--oc-text); }

.oc-card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.oc-card-body h3 { font-size: 1.25rem; line-height: 1.3; }
.oc-card-short { font-size: .875rem; opacity: .7; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oc-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .75rem; }
.oc-price { display: inline-flex; align-items: baseline; gap: .5rem; }
.oc-price-now { font-size: 1.05rem; font-weight: 500; }
.oc-price-was { font-size: .875rem; opacity: .5; text-decoration: line-through; }
.oc-add-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border: 1px solid var(--oc-border); border-radius: .375rem;
    background: transparent; color: var(--oc-text); transition: all .2s ease;
}
.oc-add-icon:hover { background: var(--oc-primary); color: #fff; border-color: var(--oc-primary); }

/* Section header */
.oc-section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem; }

/* Story split */
.oc-split { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .oc-split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.oc-split-image { aspect-ratio: 5/4; border-radius: .5rem; overflow: hidden; }
.oc-split-image img { width: 100%; height: 100%; object-fit: cover; }

/* CTA banner */
.oc-cta-banner { background: var(--oc-surface-2); border-radius: .5rem; padding: 3rem 1.5rem; text-align: center; }
@media (min-width: 768px) { .oc-cta-banner { padding: 4rem 2rem; } }
.oc-cta-banner h3 { font-size: 1.75rem; margin-bottom: .75rem; }
@media (min-width: 640px) { .oc-cta-banner h3 { font-size: 2.25rem; } }
.oc-cta-banner p { opacity: .75; max-width: 36rem; margin: 0 auto 2rem; }

/* Shop */
.oc-shop-head { max-width: 48rem; margin-bottom: 2.5rem; }
.oc-filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; }
.oc-pill {
    padding: .5rem 1rem; border-radius: 9999px; font-size: .875rem; transition: all .2s ease;
    background: #fff; border: 1px solid var(--oc-border); color: var(--oc-text);
}
.oc-pill:hover { border-color: var(--oc-primary); }
.oc-pill.is-active { background: var(--oc-primary); color: #fff; border-color: var(--oc-primary); }
.oc-shop-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.oc-sort-wrap { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; }
.oc-sort-wrap select { padding: .55rem .75rem; border: 1px solid var(--oc-border); border-radius: .375rem; background: #fff; }

/* Product detail */
.oc-pdp { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .oc-pdp { grid-template-columns: 1fr 1fr; } }
.oc-pdp-img { aspect-ratio: 4/5; border-radius: .5rem; overflow: hidden; background: var(--oc-surface-2); }
.oc-pdp-img img { width: 100%; height: 100%; object-fit: cover; }
.oc-pdp-thumbs { display: flex; gap: .75rem; margin-top: 1rem; }
.oc-pdp-thumbs button {
    width: 80px; height: 80px; border-radius: .375rem; overflow: hidden;
    border: 2px solid transparent; padding: 0; background: var(--oc-surface-2);
}
.oc-pdp-thumbs button.is-active { border-color: var(--oc-primary); }
.oc-pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.oc-pdp-rating { display: inline-flex; align-items: center; gap: .75rem; margin-top: .75rem; }
.oc-pdp-price { display: inline-flex; gap: .75rem; align-items: baseline; margin-top: 1.5rem; }
.oc-pdp-price .oc-price-now { font-size: 1.5rem; }
.oc-pdp-features { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: .5rem; }
.oc-pdp-features li { display: flex; gap: .5rem; font-size: .9rem; }
.oc-qty-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.oc-qty {
    display: inline-flex; align-items: center; border: 1px solid var(--oc-border); border-radius: .375rem;
}
.oc-qty button { width: 40px; height: 48px; background: transparent; border: 0; }
.oc-qty span { width: 40px; text-align: center; }
.oc-pdp-info-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--oc-border); }
.oc-pdp-info-row > div { display: flex; gap: .75rem; align-items: flex-start; }
.oc-pdp-info-row p { margin: 0; }

/* Reviews */
.oc-reviews { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .oc-reviews { grid-template-columns: 1fr 1fr; } }
.oc-review {
    background: var(--oc-bg); border: 1px solid var(--oc-border); border-radius: .5rem; padding: 1.5rem;
}
.oc-review-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.oc-review-verified { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; opacity: .6; }
.oc-review h4 { font-size: 1.125rem; margin-bottom: .5rem; }
.oc-review p { font-size: .9rem; line-height: 1.6; opacity: .85; margin: 0 0 1rem; }
.oc-review-meta { font-size: .75rem; opacity: .6; }

/* Cart */
.oc-cart-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .oc-cart-grid { grid-template-columns: 8fr 4fr; } }
.oc-cart-list { list-style: none; padding: 0; margin: 0; }
.oc-cart-row { display: flex; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--oc-border); }
.oc-cart-row:last-child { border-bottom: 0; }
.oc-cart-thumb { width: 96px; height: 112px; border-radius: .375rem; overflow: hidden; background: var(--oc-surface-2); flex-shrink: 0; }
@media (min-width: 640px) { .oc-cart-thumb { width: 112px; height: 128px; } }
.oc-cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.oc-cart-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: .5rem; }
.oc-cart-info h3 { font-size: 1.25rem; }
.oc-cart-line-total { font-weight: 500; }
.oc-cart-summary {
    background: var(--oc-surface-2); border-radius: .5rem; padding: 1.5rem;
    position: sticky; top: 6rem;
}
.oc-cart-summary h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.oc-cart-summary dl { display: flex; flex-direction: column; gap: .75rem; font-size: .875rem; margin: 0; }
.oc-cart-summary dl > div { display: flex; justify-content: space-between; }
.oc-cart-summary .oc-row-total { padding-top: .75rem; border-top: 1px solid var(--oc-border); margin-top: .75rem; font-size: 1.05rem; font-weight: 500; }
.oc-cart-empty { text-align: center; padding: 5rem 1rem; }
.oc-remove-btn {
    background: transparent; border: 0; opacity: .6; transition: all .2s ease;
}
.oc-remove-btn:hover { opacity: 1; color: var(--oc-error); }

/* Checkout */
.oc-checkout-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .oc-checkout-grid { grid-template-columns: 7fr 5fr; } }
.oc-form-section { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.oc-form-section h2 { font-size: 1.5rem; margin-bottom: .75rem; }
.oc-input {
    width: 100%; padding: .7rem .9rem; background: #fff; color: var(--oc-text);
    border: 1px solid var(--oc-border); border-radius: .375rem; font-size: .95rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.oc-input:focus { outline: none; border-color: var(--oc-primary); box-shadow: 0 0 0 2px rgba(180,123,98,.2); }
textarea.oc-input { resize: vertical; min-height: 140px; }
.oc-form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .oc-form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.oc-secure-note { display: flex; align-items: flex-start; gap: .75rem; padding: 1.25rem; background: var(--oc-surface-2); border-radius: .5rem; }
.oc-secure-note p { margin: 0; }

/* Contact / About / Policies */
.oc-prose { max-width: 48rem; }
.oc-prose h2 { font-size: 1.5rem; margin: 2rem 0 .5rem; }
.oc-prose p, .oc-prose li { font-size: .95rem; line-height: 1.7; opacity: .9; }
.oc-prose ul { padding-left: 1.25rem; }
.oc-policy-eyebrow { font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; opacity: .6; }

/* Contact panel */
.oc-contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 1024px) { .oc-contact-grid { grid-template-columns: 7fr 5fr; } }
.oc-contact-info { display: flex; flex-direction: column; gap: 1rem; }
.oc-contact-card { padding: 1.5rem; background: var(--oc-surface-2); border-radius: .5rem; }
.oc-contact-card h3 { font-size: 1.25rem; margin: .75rem 0 .25rem; }
.oc-contact-card p, .oc-contact-card a { font-size: .875rem; opacity: .85; }
.oc-contact-card a:hover { color: var(--oc-primary); }

/* Footer */
.oc-footer { background: #2A2A2A; color: #F9F6F0; margin-top: 4rem; }
.oc-footer-grid { padding: 4rem 1rem; display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .oc-footer-grid { grid-template-columns: 2fr 1fr 1fr; padding: 4rem 1.5rem; } }
.oc-footer-brand p { max-width: 24rem; opacity: .8; line-height: 1.7; font-size: .9rem; }
.oc-footer h4 { font-family: 'Outfit', sans-serif; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1rem; opacity: .7; font-weight: 500; }
.oc-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.oc-footer ul a { font-size: .875rem; transition: color .2s ease; }
.oc-footer ul a:hover { color: var(--oc-primary); }
.oc-newsletter { display: flex; gap: .5rem; margin-top: 1.5rem; max-width: 24rem; }
.oc-newsletter input {
    flex: 1; padding: .55rem .75rem; border-radius: .375rem; font-size: .875rem;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #F9F6F0;
}
.oc-newsletter input::placeholder { color: rgba(249,246,240,.5); }
.oc-newsletter button { padding: .55rem 1rem; background: var(--oc-primary); color: #fff; border: 0; border-radius: .375rem; font-size: .875rem; }
.oc-footer-base { padding: 1.5rem 1rem; font-size: .75rem; opacity: .6; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: .25rem; justify-content: space-between; }
@media (min-width: 768px) { .oc-footer-base { flex-direction: row; padding: 1.5rem; } }

/* About */
.oc-about-pillars { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .oc-about-pillars { grid-template-columns: repeat(3, 1fr); } }

/* Toast */
.oc-toast {
    position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    background: #2A2A2A; color: #F9F6F0; padding: .9rem 1.25rem; border-radius: .5rem;
    font-size: .9rem; box-shadow: 0 6px 24px rgba(0,0,0,.18); z-index: 100; opacity: 0;
    transition: opacity .25s ease;
    max-width: 90vw;
}
.oc-toast.is-visible { opacity: 1; }

/* 404 + utility */
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.text-center { text-align: center; }

/* Animations */
@keyframes oc-fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.oc-fade-up { animation: oc-fade-up .6s ease-out both; }
.oc-delay-1 { animation-delay: 80ms; }
.oc-delay-2 { animation-delay: 160ms; }

/* Stripe icons row in checkout summary */
.oc-pay-icons { margin-top: 1rem; }

/* Payment method radio cards */
.oc-pay-methods { display: flex; flex-direction: column; gap: .75rem; }
.oc-pay-option {
    display: flex; gap: .9rem; padding: 1rem 1.1rem; border-radius: .5rem;
    border: 1.5px solid var(--oc-border); background: #fff; cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.oc-pay-option:hover { border-color: rgba(180,123,98,.5); }
.oc-pay-option.is-active { border-color: var(--oc-primary); background: rgba(180,123,98,.05); }
.oc-pay-option input[type="radio"] { margin-top: .25rem; accent-color: var(--oc-primary); }
.oc-pay-option > div { flex: 1; }
.oc-pay-option p { margin: .25rem 0 0; font-size: .8rem; opacity: .7; line-height: 1.5; }
.oc-pay-option-title { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.oc-pay-badge { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 9999px; background: var(--oc-surface-2); color: var(--oc-text-soft); }

/* Footer address */
.oc-footer-address { font-style: normal; font-size: .85rem; line-height: 1.6; opacity: .8; margin: 1.25rem 0 0; }
.oc-footer-address strong { display: block; margin-bottom: .15rem; opacity: 1; font-weight: 500; }

/* Loading spinner */
.oc-spinner {
    width: 32px; height: 32px; border: 3px solid var(--oc-border);
    border-top-color: var(--oc-primary); border-radius: 50%;
    animation: oc-spin .8s linear infinite; margin: 0 auto 1.25rem;
}
@keyframes oc-spin { to { transform: rotate(360deg); } }
