:root {
    --olive-dark: #4A513B;
    --olive-moss: #596148;
    --gold: #C8A15A;
    --cream: #F7F2EA;
    --beige: #EDE3D5;
    --text: #2D261F;
    --muted: #6E6256;
    --border: rgba(74, 81, 59, 0.16);
    --shadow: 0 20px 45px rgba(74, 81, 59, 0.16);
    --skeleton-base: #EDE3D5;
    --skeleton-highlight: #F7F2EA;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    position: relative;
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, rgba(237, 227, 213, 0.4) 0%, rgba(247, 242, 234, 0.95) 100%);
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--olive-dark);
}

h1, h2, h3, h4, .font-serif {
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    color: var(--olive-dark);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 3vw + 1rem, 3.5rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.7rem, 2.1vw + 1rem, 2.4rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.7rem;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.1rem;
    color: var(--muted);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--olive-dark);
    color: var(--cream);
    padding: 0.7rem 1rem;
    z-index: 2000;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.site-header {
    background: rgba(247, 242, 234, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    padding: 0.9rem 0;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.2em;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-mark {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--gold), var(--olive-dark));
    color: var(--cream);
    font-weight: 700;
}

.brand-name {
    color: var(--olive-dark);
}

.nav-link {
    color: var(--olive-dark) !important;
    font-weight: 600;
    padding-inline: 0.8rem !important;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0.8rem;
    bottom: 0.2rem;
    width: calc(100% - 1.6rem);
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
    transform: scaleX(1);
}

.nav-icon {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(74, 81, 59, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.nav-icon:hover,
.nav-icon:focus-visible {
    transform: translateY(-2px);
    border-color: var(--gold);
}

.nav-icon svg {
    width: 1rem;
    height: 1rem;
    fill: var(--olive-dark);
}

.hero-section {
    padding: 3.5rem 0 4.5rem;
    background: linear-gradient(135deg, rgba(237, 227, 213, 0.9), rgba(247, 242, 234, 0.95));
}

.py-lg-6 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.hero-card,
.ritual-card,
.product-card,
.benefit-item {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
}

.hero-card {
    overflow: hidden;
    padding: 1rem;
    animation: fadeUp 0.8s ease both;
}

.hero-card img {
    border-radius: 1rem;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.btn {
    border-radius: 999px;
    padding: 0.8rem 1.4rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--olive-dark), var(--olive-moss));
    border: none;
    color: var(--cream);
}

.btn-outline {
    border: 1px solid var(--olive-dark);
    color: var(--olive-dark);
    background: transparent;
}

.section {
    padding: 5rem 0;
}

.section-soft {
    background: rgba(237, 227, 213, 0.35);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: center;
}

.ritual-card {
    height: 100%;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ritual-card:hover,
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(74, 81, 59, 0.2);
}

.ritual-media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.ritual-body {
    padding: 1.2rem 1.2rem 1.4rem;
}

.ritual-icon {
    display: inline-flex;
    width: 2.3rem;
    height: 2.3rem;
    justify-content: center;
    align-items: center;
    border-radius: 999px;
    background: rgba(200, 161, 90, 0.18);
    color: var(--gold);
    margin-bottom: 0.8rem;
}

.ritual-step {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.benefit-list {
    padding-left: 1rem;
    color: var(--muted);
    margin-bottom: 0.8rem;
}

.ingredient-copy {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.benefit-item {
    padding: 1.5rem;
    height: 100%;
}

.benefit-item h3 {
    color: var(--olive-dark);
}

.about-quote {
    border-left: 3px solid var(--gold);
    padding-left: 1rem;
    font-style: italic;
    color: var(--olive-moss);
    margin-top: 1.5rem;
}

.product-card {
    overflow: hidden;
    height: 100%;
}

.product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.product-body {
    padding: 1.4rem;
}

.site-footer {
    background: linear-gradient(145deg, var(--olive-dark) 0%, #3a4030 100%);
    color: var(--cream);
    margin-top: 4rem;
}

.footer-brand a {
    text-decoration: none;
}

.footer-logo-text {
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--cream);
}

.footer-description {
    color: rgba(247, 242, 234, 0.75);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-heading {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-list a {
    color: rgba(247, 242, 234, 0.85);
    font-size: 0.9rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-list a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social-link {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(247, 242, 234, 0.3);
    border-radius: 50%;
    color: var(--cream);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--olive-dark);
    transform: translateY(-2px);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter-input-group {
    display: flex;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(247, 242, 234, 0.3);
    background: rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s ease;
}

.newsletter-input-group:focus-within {
    border-color: var(--gold);
}

.newsletter-input-group input {
    flex: 1;
    border: none;
    padding: 0.75rem 1.2rem;
    background: transparent;
    color: var(--cream);
    font-size: 0.9rem;
    outline: none;
}

.newsletter-input-group input::placeholder {
    color: rgba(247, 242, 234, 0.6);
}

.newsletter-input-group button {
    border: none;
    padding: 0.75rem 1.2rem;
    background: var(--gold);
    color: var(--olive-dark);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-input-group button:hover {
    background: #d4ad63;
}

.newsletter-feedback {
    color: rgba(247, 242, 234, 0.8);
    font-size: 0.8rem;
    min-height: 1.2rem;
}

.newsletter-feedback.success {
    color: #8fbc8f;
}

.newsletter-feedback.error {
    color: #f0a0a0;
}

.footer-divider {
    border-color: rgba(247, 242, 234, 0.15);
    margin: 2rem 0 1.5rem;
}

.footer-copyright {
    color: rgba(247, 242, 234, 0.6);
    font-size: 0.85rem;
}

.footer-contact-mini {
    font-size: 0.85rem;
}

.footer-contact-mini a {
    color: rgba(247, 242, 234, 0.75);
    transition: color 0.2s ease;
}

.footer-contact-mini a:hover {
    color: var(--gold);
}

.cookie-banner {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: linear-gradient(135deg, rgba(74, 81, 59, 0.98), rgba(89, 97, 72, 0.97));
    color: var(--cream);
    box-shadow: 0 10px 30px rgba(74, 81, 59, 0.18);
}

.cookie-banner h5 {
    color: var(--cream);
}

.legal-page .eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    font-weight: 600;
}

.legal-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 30px rgba(74, 81, 59, 0.06);
    border: 1px solid var(--border);
}

.legal-toc {
    background: var(--cream);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--gold);
}

.legal-toc h5 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--olive-dark);
    margin-bottom: 0.8rem;
}

.legal-toc ol {
    margin: 0;
    padding-left: 1.2rem;
}

.legal-toc li {
    margin-bottom: 0.3rem;
}

.legal-toc a {
    color: var(--muted);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.legal-toc a:hover {
    color: var(--gold);
}

.legal-content {
    color: var(--text);
    line-height: 1.8;
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 1.4rem;
}

.legal-content h3,
.legal-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.legal-content ul {
    padding-left: 1.25rem;
}

.legal-content p,
.legal-content li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.legal-content table {
    font-size: 0.9rem;
}

.legal-content code {
    background: rgba(200, 161, 90, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--olive-dark);
}

@media (max-width: 768px) {
    .legal-card {
        padding: 1.5rem;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 992px) {
    .hero-section {
        padding-top: 5rem;
        padding-bottom: 5.5rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .section {
        padding: 4rem 0;
    }

    .hero-section {
        padding: 2.5rem 0 3.5rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ==================== CART STYLES ==================== */

/* Loading indicator */
body.loading::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 38, 31, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.loading::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--cream);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 10000;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 350px;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.toast-error {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.toast-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #333;
}

.toast-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

/* Cart badge */
#cartBadge {
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--olive-dark);
    font-weight: 700;
}

/* Cart page specific */
.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.variant-info {
    font-size: 0.85rem;
    color: var(--muted);
}

/* Cart quantity controls */
.input-group-sm .btn {
    padding: 0.25rem 0.5rem;
}

.input-group-sm .form-control {
    text-align: center;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .toast-notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
}

/* ========================================
   Contact page
   ======================================== */
.contact-page .eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    font-weight: 600;
}

.contact-form-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(74, 81, 59, 0.08);
    border: 1px solid var(--border);
}

.contact-form-card .form-control {
    border-radius: 10px;
    border: 1px solid rgba(74, 81, 59, 0.2);
    padding: 0.8rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-card .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200, 161, 90, 0.15);
}

.contact-info-card {
    background: linear-gradient(145deg, var(--cream), white);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--border);
}

.contact-info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    width: 2.8rem;
    height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 161, 90, 0.12);
    border-radius: 10px;
    color: var(--gold);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-item h5 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--olive-dark);
    margin-bottom: 0.2rem;
}

.contact-info-item a {
    color: var(--muted);
    transition: color 0.2s ease;
}

.contact-info-item a:hover {
    color: var(--gold);
}

.contact-hours h5 {
    font-size: 0.95rem;
    color: var(--olive-dark);
}