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

:root {
    --midnight-blue: #0B1F33;
    --midnight-blue-soft: #132B43;
    --ivory: #F6F0E4;
    --ivory-card: #FFFCF5;
    --old-gold: #B89146;
    --old-gold-dark: #947535;
    --studio: #714D9C;
    --woodsmoke: #111315;
    --woodsmoke-soft: #34363A;

    /* Legacy aliases keep every existing page on the same visual system. */
    --royal-maroon: var(--midnight-blue);
    --royal-maroon-dark: #071522;
    --primary-gold: var(--old-gold);
    --bright-gold: #C8AA67;
    --brass-gold: var(--old-gold-dark);
    --saffron: var(--studio);
    --saffron-dark: #5F3D89;
    --cream-bg: var(--ivory);
    --cream-card: var(--ivory-card);
    --charcoal: var(--woodsmoke);
    --text-dark: var(--woodsmoke);
    --text-muted: var(--woodsmoke-soft);
    --border-gold: rgba(184, 145, 70, 0.42);
    
    /* Apple-like subtle shadows */
    --soft-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --medium-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    --elegant-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    --gold-glow: 0 0 0 1px rgba(184, 145, 70, 0.28);
    
    /* Apple-like easing */
    --spring-easing: cubic-bezier(0.4, 0, 0.2, 1);
    --apple-easing: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--cream-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
    border: 2px solid var(--cream-bg);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--royal-maroon-dark);
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'San Francisco', 'Helvetica Neue', sans-serif;
    background-color: var(--cream-bg);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-title {
    font-family: 'Philosopher', 'Cinzel', 'Lora', serif;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.8);
}

/* Header Text Styling */
.header-logo {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'San Francisco', 'Helvetica Neue', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--royal-maroon) 0%, var(--primary-gold) 50%, var(--brass-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Links */
.nav-link {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'San Francisco', 'Helvetica Neue', sans-serif;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.2s var(--apple-easing);
    letter-spacing: -0.01em;
}
.nav-link:hover {
    color: var(--royal-maroon);
}

/* Traditional Sacred Grid BG */
.sacred-grid-bg {
    background-color: var(--cream-bg);
    background-image: 
        radial-gradient(var(--border-gold) 1px, transparent 1px), 
        radial-gradient(rgba(107, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
}

/* Decorative Mandala Border / Frame */
.mandala-frame {
    border: 3px double var(--primary-gold);
    padding: 6px;
    position: relative;
}
.mandala-frame::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 1px solid var(--border-gold);
    pointer-events: none;
}

/* Traditional Divider */
.traditional-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}
.traditional-divider::before, .traditional-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-gold), transparent);
}
.traditional-divider-dot {
    width: 12px;
    height: 12px;
    background: var(--royal-maroon);
    transform: rotate(45deg);
    margin: 0 15px;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* Primary Traditional Button */
.btn-primary {
    background: linear-gradient(135deg, #6B0000 0%, #8A0000 50%, #4A0000 100%);
    color: #FFFFFF !important;
    border: 1px solid #D4AF37;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'San Francisco', 'Helvetica Neue', sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(107, 0, 0, 0.25);
    transition: all 0.3s var(--apple-easing);
}
.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(107, 0, 0, 0.35);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #8A0000 0%, #6B0000 100%);
    color: #FFFFFF !important;
}
.btn-primary:active {
    transform: scale(0.98);
    box-shadow: var(--soft-shadow);
}

/* Secondary Button */
.btn-secondary {
    background: var(--cream-card);
    color: var(--royal-maroon) !important;
    border: 1px solid var(--border-gold);
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'San Francisco', 'Helvetica Neue', sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 12px;
    transition: all 0.3s var(--apple-easing);
}
.btn-secondary:hover {
    background: #FFF;
    border-color: var(--primary-gold);
    color: var(--royal-maroon-dark) !important;
    box-shadow: var(--medium-shadow);
    transform: translateY(-2px);
}
.btn-secondary:active {
    transform: scale(0.98);
}

/* Golden Accent Button */
.btn-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: #2C1E14 !important;
    border: 1px solid #F3E5AB;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'San Francisco', 'Helvetica Neue', sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
    transition: all 0.3s var(--apple-easing);
}
.btn-gold:hover {
    background: linear-gradient(135deg, #B8860B 0%, #996515 100%);
    color: #FFFFFF !important;
    border-color: #D4AF37;
    box-shadow: 0 6px 16px rgba(184, 134, 11, 0.35);
    transform: translateY(-2px);
}

/* Traditional Product Cards */
.product-card {
    background: #FFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--soft-shadow);
    transition: all 0.3s var(--apple-easing);
}
.product-card:hover {
    box-shadow: var(--elegant-shadow), var(--gold-glow);
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.5);
}

/* Category Cards styling */
.category-card {
    background: var(--cream-card);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--soft-shadow);
    transition: all 0.3s var(--apple-easing);
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--elegant-shadow), var(--gold-glow);
    border-color: rgba(212, 175, 55, 0.5);
}

/* Saffron / Orange Flashed Banner */
.saffron-banner {
    background: linear-gradient(90deg, var(--saffron) 0%, var(--saffron-dark) 100%);
    color: #FFF;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'San Francisco', 'Helvetica Neue', sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

/* Floating Animations */
@keyframes traditional-float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
.animate-float {
    animation: traditional-float 7s ease-in-out infinite;
}

/* Glowing Pulsation */
@keyframes glow-pulse {
    0% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.7); }
    100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
}
.gold-glow {
    animation: glow-pulse 3s infinite;
}

/* Traditional Color Accents */
.gold-accent {
    color: var(--primary-gold);
}
.maroon-accent {
    color: var(--royal-maroon);
}
.saffron-accent {
    color: var(--saffron);
}

/* Option selection cards */
.option-card {
    background: #FFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s var(--apple-easing);
    cursor: pointer;
    border-radius: 12px;
}
.option-card:hover {
    border-color: var(--primary-gold);
    background: var(--cream-card);
    transform: translateY(-1px);
}
.option-card.selected {
    border-color: var(--royal-maroon);
    background: rgba(107, 0, 0, 0.05);
    box-shadow: var(--soft-shadow);
}

/* Thumbnails */
.thumbnail {
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s var(--apple-easing);
    border-radius: 8px;
}
.thumbnail:hover, .thumbnail.active {
    border-color: var(--royal-maroon);
    box-shadow: var(--soft-shadow);
}

/* Hero Section */
.hero-traditional {
    background: 
        radial-gradient(circle at 10% 50%, rgba(107, 0, 0, 0.03), transparent 50%),
        radial-gradient(circle at 90% 30%, rgba(212, 175, 55, 0.04), transparent 50%),
        var(--cream-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Form Controls */
.input-traditional {
    background-color: #FFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'San Francisco', 'Helvetica Neue', sans-serif;
    color: var(--text-dark);
    transition: all 0.2s var(--apple-easing);
    font-size: 15px;
}
.input-traditional:focus {
    outline: none;
    border-color: var(--royal-maroon);
    box-shadow: 0 0 0 3px rgba(107, 0, 0, 0.1);
}
.input-traditional::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

/* High Contrast & Visibility Overrides for Maximum Readability */
body {
    font-weight: 500;
    color: #2C1E14;
}
p, span, li, a {
    color: #3D2B1F;
}

/* High-contrast colors for text on light backgrounds */
.text-gray-500, .text-gray-600, .text-gray-700, .text-gray-800, .text-gray-650, .text-gray-655, .text-gray-750, .text-gray-755, .text-gray-505 {
    color: #2C1E14 !important;
}
.text-gray-400 {
    color: #4A3525 !important;
}

/* Headings contrast defaults */
h1, h2, h3, h4, h5, h6 {
    color: #6B0000;
    font-weight: 700;
}

/* Headings and text inside dark wrappers must remain white/cream */
.bg-gradient-to-r h1, .bg-gradient-to-r h2, .bg-gradient-to-r h3,
.bg-gradient-to-br h1, .bg-gradient-to-br h2, .bg-gradient-to-br h3,
footer h1, footer h2, footer h3, footer h4,
.bg-[#1C120C] h1, .bg-[#1C120C] h2, .bg-[#1C120C] h3, .bg-[#1C120C] h4,
.bg-[#1C120C] p, .bg-[#1C120C] span, .bg-[#1C120C] li, .bg-[#1C120C] a,
footer p, footer span, footer li, footer a,
.bg-gradient-to-r p, .bg-gradient-to-r span, .bg-gradient-to-r li,
.bg-gradient-to-br p, .bg-gradient-to-br span, .bg-gradient-to-br li,
.bg-gradient-to-r .text-gray-300, .bg-gradient-to-br .text-gray-300, footer .text-gray-400,
.bg-gradient-to-r .text-gray-200, .bg-gradient-to-br .text-gray-200 {
    color: #EAE3D2 !important;
}

input, select, textarea {
    color: #2C1E14 !important;
    font-weight: 500 !important;
}
.star-rating {
    color: var(--primary-gold);
}



/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Container with fixed sides */
.container-fixed {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 640px) {
    .container-fixed {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 1024px) {
    .container-fixed {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: block;
    cursor: pointer;
    padding: 8px;
    z-index: 100;
    border-radius: 8px;
    transition: background 0.2s var(--apple-easing);
}

.mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    padding: 80px 32px 32px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.4s var(--apple-easing);
}

.mobile-nav.active {
    display: block;
    transform: translateX(0);
}

.mobile-nav a {
    display: block;
    padding: 20px 0;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: color 0.2s var(--apple-easing);
    letter-spacing: -0.01em;
}

.mobile-nav a:hover {
    color: var(--royal-maroon);
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
    z-index: 1000;
    padding: 12px;
    border-radius: 50%;
    transition: background 0.2s var(--apple-easing);
}

.mobile-nav-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Responsive Typography */
@media (max-width: 767px) {
    h1 {
        font-size: 28px !important;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 24px !important;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 20px !important;
        line-height: 1.3;
    }
    
    h4 {
        font-size: 18px !important;
    }
    
    p, span, li {
        font-size: 14px !important;
    }
    
    .text-xs {
        font-size: 12px !important;
    }
    
    .text-sm {
        font-size: 13px !important;
    }
    
    .text-base {
        font-size: 14px !important;
    }
    
    .text-lg {
        font-size: 16px !important;
    }
    
    .text-xl {
        font-size: 18px !important;
    }
    
    .text-2xl {
        font-size: 20px !important;
    }
}

/* Responsive Spacing */
@media (max-width: 767px) {
    .py-20 {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }
    
    .py-24 {
        padding-top: 56px !important;
        padding-bottom: 56px !important;
    }
    
    .py-16 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    .py-12 {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }
    
    .py-8 {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }
    
    .px-6 {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .px-12 {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .gap-8 {
        gap: 16px !important;
    }
    
    .gap-6 {
        gap: 12px !important;
    }
    
    .gap-4 {
        gap: 8px !important;
    }
    
    .mb-16 {
        margin-bottom: 32px !important;
    }
    
    .mb-12 {
        margin-bottom: 24px !important;
    }
    
    .mb-8 {
        margin-bottom: 16px !important;
    }
    
    .mb-6 {
        margin-bottom: 12px !important;
    }
    
    .mb-4 {
        margin-bottom: 8px !important;
    }
    
    .mt-12 {
        margin-top: 24px !important;
    }
}

/* Responsive Product Cards */
@media (max-width: 767px) {
    .product-card {
        border-radius: 12px !important;
    }
    
    .product-card .overflow-hidden {
        height: 160px !important;
    }
    
    .product-card .p-5 {
        padding: 12px !important;
    }
    
    .product-card h3 {
        font-size: 13px !important;
        line-height: 1.4;
    }
    
    .product-card button {
        padding: 8px 12px !important;
        font-size: 11px !important;
    }
    
    .product-card .text-lg {
        font-size: 16px !important;
    }
}

/* Responsive Category Cards */
@media (max-width: 767px) {
    .category-card {
        height: 140px !important;
        border-radius: 12px !important;
    }
    
    .category-card h3 {
        font-size: 16px !important;
    }
}

/* Responsive Grid */
@media (max-width: 767px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .grid-cols-5 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

/* Responsive Header */
@media (max-width: 767px) {
    .sticky-header {
        padding: 12px 16px !important;
    }
    
    .header-logo {
        font-size: 18px !important;
    }
    
    .fa-shopping-cart {
        font-size: 18px !important;
    }
    
    .fa-bars {
        font-size: 20px !important;
    }
}

/* Responsive Hero Section */
@media (max-width: 767px) {
    .hero-bg {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
        min-height: auto !important;
    }
    
    .hero-bg .max-w-7xl {
        flex-direction: column !important;
        gap: 32px !important;
    }
    
    .hero-bg .md\:w-1\/2 {
        width: 100% !important;
    }
    
    .hero-bg img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .hero-bg button {
        width: 100% !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
}

/* Responsive Buttons */
@media (max-width: 767px) {
    .btn-primary,
    .btn-secondary,
    .btn-gold {
        padding: 12px 20px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }
}

/* Responsive Forms */
@media (max-width: 767px) {
    .input-traditional {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
    
    input[type="text"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Responsive Footer */
@media (max-width: 767px) {
    footer {
        padding: 32px 16px !important;
    }
    
    footer .grid-cols-4 {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    footer h3,
    footer h4 {
        font-size: 18px !important;
    }
    
    footer p,
    footer li {
        font-size: 13px !important;
    }
}

/* Responsive Featured Section */
@media (max-width: 767px) {
    .featured-card {
        padding: 16px !important;
    }
    
    .featured-card h3 {
        font-size: 16px !important;
    }
    
    .featured-card p {
        font-size: 13px !important;
    }
    
    .featured-card ul {
        font-size: 12px !important;
    }
    
    .featured-card .text-2xl {
        font-size: 18px !important;
    }
}

/* Responsive Testimonials */
@media (max-width: 767px) {
    .carousel {
        padding: 24px 16px !important;
    }
    
    .carousel blockquote {
        font-size: 14px !important;
        line-height: 1.6;
    }
    
    .carousel cite {
        font-size: 12px !important;
    }
}

/* Responsive Filters (Shop Page) */
@media (max-width: 767px) {
    .md\:w-1\/4 {
        width: 100% !important;
        margin-bottom: 16px;
    }
    
    .md\:w-3\/4 {
        width: 100% !important;
    }
    
    .sticky {
        position: static !important;
    }
}

/* Hide elements on mobile */
@media (max-width: 767px) {
    .hidden-mobile {
        display: none !important;
    }
}

/* Show elements only on mobile */
@media (min-width: 768px) {
    .mobile-only {
        display: none !important;
    }
}

/* Responsive Image Overlay */
.image-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}

/* Safe Area for Notched Devices */
@supports (padding: max(0px)) {
    .container-fixed {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    
    .sticky-header {
        padding-top: max(12px, env(safe-area-inset-top));
    }
}

/* Touch-friendly tap targets */
@media (max-width: 767px) {
    button,
    a,
    input,
    select {
        min-height: 44px;
    }
    
    .fa-shopping-cart,
    .fa-bars {
        padding: 8px;
    }
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}



/* Traditional Design Enhancements */
.traditional-title {
    position: relative;
    padding-bottom: 24px;
    margin-bottom: 2.5rem !important;
}
.traditional-title::after {
    content: '◆';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-gold);
    font-size: 14px;
    background: #FDFBF7;
    padding: 0 10px;
    z-index: 2;
}
.traditional-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-gold) 50%, transparent 100%);
    z-index: 1;
}

.traditional-title-left {
    position: relative;
    padding-bottom: 24px;
    margin-bottom: 2.5rem !important;
}
.traditional-title-left::after {
    content: '◆';
    position: absolute;
    bottom: -8px;
    left: 40px;
    color: var(--primary-gold);
    font-size: 14px;
    background: #FDFBF7;
    padding: 0 10px;
    z-index: 2;
}
.traditional-title-left::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 140px;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-gold) 0%, transparent 100%);
    z-index: 1;
}

/* Subtle Shimmer for Primary Buttons on Hover */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.btn-primary:hover {
    background: linear-gradient(120deg, #8A0000 0%, #B8860B 50%, var(--royal-maroon-dark) 100%);
    background-size: 200% auto;
    animation: shimmer 2s linear infinite;
}

/* =============================================
   TWO-TIER HEADER — TOP BAR
   ============================================= */
.top-contact-bar {
    background: #1a3a24;
    color: #e8d5a0;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    padding: 8px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}
.top-contact-bar a {
    color: #e8d5a0;
    text-decoration: none;
    transition: color 0.2s ease;
}
.top-contact-bar a:hover {
    color: #D4AF37;
}
.top-bar-info {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.top-bar-item i {
    color: #D4AF37;
    font-size: 14px;
}

/* The public header keeps email support but no longer displays a phone number. */
.top-contact-bar .top-bar-item:has(a[href^="tel:"]) {
    display: none;
}
.top-bar-login {
    display: flex;
    align-items: center;
    gap: 8px;
}
.top-bar-login a {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #e8d5a0 !important;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all 0.2s ease;
}
.top-bar-login a:hover {
    background: rgba(212, 175, 55, 0.3);
    color: #D4AF37 !important;
}
@media (max-width: 640px) {
    .top-contact-bar {
        display: none;
    }
}

/* =============================================
   NEW MAIN HEADER (white bar)
   ============================================= */
.main-header-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 78px;
    background: rgba(248, 252, 247, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.18);
    box-shadow: 0 4px 18px rgba(15, 45, 26, 0.08);
    padding: 16px clamp(22px, 3vw, 42px);
}
.main-header-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.main-header-bar .header-logo {
    font-size: clamp(24px, 2vw, 30px) !important;
    line-height: 1.1;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}
.main-nav a,
.main-nav .nav-dropdown-trigger {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #173521;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.005em;
}
.main-nav a:hover,
.main-nav .nav-dropdown-trigger:hover {
    color: #0f2d1a;
    background: rgba(27, 67, 50, 0.1);
}
.main-nav a.active,
.main-nav a[aria-current="page"] {
    color: #0f2d1a;
    background: rgba(27, 67, 50, 0.12);
}
.main-nav .nav-remedy-store {
    color: #0f2d1a;
    background: #eef6ee;
    border: 1px solid rgba(27, 67, 50, 0.25);
}
.main-nav .nav-remedy-store:hover {
    background: #e2efe3;
    border-color: rgba(27, 67, 50, 0.42);
}

/* =============================================
   FREE TOOLS DROPDOWN
   ============================================= */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-trigger .dropdown-caret {
    font-size: 10px;
    transition: transform 0.2s ease;
    color: #6B7280;
}
.nav-dropdown:hover .dropdown-caret,
.nav-dropdown.open .dropdown-caret {
    transform: rotate(180deg);
}
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: #fff;
    border: 1px solid rgba(26, 58, 36, 0.12);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    min-width: 230px;
    padding: 10px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px 14px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    color: #173521 !important;
    text-decoration: none;
    transition: all 0.15s ease;
    background: transparent !important;
    border: none !important;
    width: 100%;
}
.nav-dropdown-menu a:hover {
    background: rgba(26, 58, 36, 0.07) !important;
    color: #1a3a24 !important;
}
.nav-dropdown-menu a .menu-icon {
    width: 32px;
    height: 32px;
    background: rgba(26, 58, 36, 0.08);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: background 0.15s ease;
}
.nav-dropdown-menu a:hover .menu-icon {
    background: rgba(26, 58, 36, 0.15);
}
.nav-dropdown-menu .menu-text {
    display: flex;
    flex-direction: column;
}
.nav-dropdown-menu .menu-label {
    font-weight: 700;
    font-size: 14px;
    color: #173521;
}
.nav-dropdown-menu .menu-sub {
    font-size: 12px;
    color: #5f735f;
    font-weight: 400;
    margin-top: 1px;
}
.dropdown-divider {
    height: 1px;
    background: rgba(0,0,0,0.06);
    margin: 4px 8px;
}

/* =============================================
   MOBILE NAV (revamped)
   ============================================= */
.mobile-nav-v2 {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(340px, 90vw);
    height: 100vh;
    background: #fff;
    z-index: 200;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    padding: 28px 22px;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    flex-direction: column;
}
.mobile-nav-v2.open {
    right: 0;
}
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 190;
    backdrop-filter: blur(2px);
}
.mobile-nav-overlay.open {
    display: block;
}
.mobile-nav-v2 .mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.mobile-nav-v2 .mobile-logo {
    font-family: 'Philosopher', serif;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #0f2d1a 0%, #2d5a3d 58%, #B8860B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mobile-nav-v2 .mobile-close {
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    transition: background 0.2s;
}
.mobile-nav-v2 .mobile-close:hover {
    background: #e5e7eb;
}
.mobile-nav-v2 a,
.mobile-nav-v2 .mobile-tools-trigger {
    display: flex;
    align-items: center;
    padding: 14px 15px;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #173521;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 4px;
}
.mobile-nav-v2 a:hover,
.mobile-nav-v2 .mobile-tools-trigger:hover {
    background: rgba(26, 58, 36, 0.07);
    color: #1a3a24;
}
.mobile-tools-sub {
    display: none;
    padding-left: 12px;
    padding-bottom: 6px;
}
.mobile-tools-sub.open {
    display: block;
}
.mobile-tools-sub a {
    font-size: 15px;
    color: #536b58 !important;
    padding: 10px 12px !important;
    margin-bottom: 1px;
}
.mobile-tools-sub a:hover {
    color: #1a3a24 !important;
}
@media (max-width: 768px) {
    .mobile-nav-v2 {
        display: flex;
    }
    .main-nav {
        display: none;
    }
}

/* Hide the desktop navigation before it becomes cramped on tablets. */
@media (max-width: 1024px) {
    .mobile-nav-v2 {
        display: flex;
    }
    .main-nav {
        display: none;
    }
    .main-header-bar #mobile-menu-btn-v2 {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        color: #173521;
        background: #eef6ee;
        border: 1px solid rgba(27, 67, 50, 0.18);
    }
    .main-header-bar form[action="shop.html"] {
        display: none;
    }
}

@media (min-width: 1025px) and (max-width: 1180px) {
    .main-header-bar form[action="shop.html"] {
        display: none;
    }
}

/* The direct-order announcement has been retired from every page. */
#flash-banner {
    display: none !important;
}

/* =============================================
   DARK GREEN SERVICE CARDS  (reference style)
   ============================================= */
.service-section-title {
    font-family: 'Philosopher', 'Cinzel', serif;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    color: #1D1D1F;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.section-gold-rule {
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    border: none;
    margin: 0 auto 48px;
    border-radius: 2px;
}
.dark-service-card {
    background: #1B4332;
    border-radius: 16px;
    padding: 40px 28px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(212, 175, 55, 0.12);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.dark-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.18);
    border-color: rgba(212, 175, 55, 0.3);
}
.dark-service-card .card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    margin-bottom: 4px;
}
.dark-service-card .card-icon svg {
    width: 48px;
    height: 48px;
    stroke: #D4AF37;
    fill: none;
    stroke-width: 1.2;
}
.dark-service-card h3 {
    font-family: 'Philosopher', 'Cinzel', serif;
    font-size: 18px;
    font-weight: 600;
    color: #F5ECD7;
    margin: 0;
    letter-spacing: 0.01em;
}
.dark-service-card .card-divider {
    width: 48px;
    height: 2px;
    background: #D4AF37;
    border-radius: 1px;
    margin: -4px auto 0;
}
.dark-service-card p {
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    color: rgba(245, 236, 215, 0.75);
    line-height: 1.65;
    margin: 0;
    font-weight: 400;
}
.dark-service-card .read-more {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #D4AF37;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    padding-bottom: 1px;
    transition: all 0.2s ease;
    margin-top: 4px;
}
.dark-service-card .read-more:hover {
    color: #FFD700;
    border-color: #FFD700;
    letter-spacing: 0.12em;
}

/* =============================================
   SERVICES PAGE — SECTION WRAPPER
   ============================================= */
.services-section-bg {
    background: #f8f6f2;
    padding: 80px 24px;
}
.services-section-bg .grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.services-section-bg .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
@media (max-width: 1024px) {
    .services-section-bg .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .services-section-bg .grid-4,
    .services-section-bg .grid-3 {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .services-section-bg .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 520px) {
    .services-section-bg .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   ROYAL HERITAGE THEME
   Midnight Blue · Ivory · Old Gold · Studio · Woodsmoke
   ========================================================== */

html {
    color-scheme: light;
    font-size: 16px;
}

body,
body.sacred-grid-bg {
    background-color: var(--ivory) !important;
    background-image: url('../images/royal-heritage-paper.jpg') !important;
    background-repeat: repeat !important;
    background-size: 627px 627px !important;
    color: var(--woodsmoke) !important;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
}

::selection {
    background: var(--studio);
    color: var(--ivory-card);
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-title,
.service-section-title {
    color: var(--midnight-blue) !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 700 !important;
    letter-spacing: 0;
    line-height: 1.12;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3.25rem);
}

h3 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

p,
li,
label,
input,
select,
textarea,
button {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

p,
li {
    color: var(--woodsmoke-soft) !important;
}

a {
    color: var(--midnight-blue);
}

.text-gray-300,
.text-gray-400,
.text-gray-500,
.text-gray-600,
.text-gray-650,
.text-gray-655,
.text-gray-700,
.text-gray-750,
.text-gray-755,
.text-gray-800,
.text-gray-900,
.text-gray-505 {
    color: var(--woodsmoke-soft) !important;
}

.maroon-accent,
.gold-accent,
.saffron-accent,
[class~="text-[#6B0000]"],
[class~="text-[#D4AF37]"],
[class~="text-[#b8860b]"],
[class~="text-[#B8860B]"],
[class~="text-[#FF9933]"] {
    color: var(--midnight-blue) !important;
}

.gold-accent,
[class~="text-[#D4AF37]"],
[class~="text-[#b8860b]"],
[class~="text-[#B8860B]"] {
    color: var(--old-gold-dark) !important;
}

[class~="bg-[#FDFBF7]"],
[class~="bg-[#FBFBFD]"],
.services-section-bg,
.hero-traditional,
.hero-bg {
    background-color: var(--ivory) !important;
    background-image: none !important;
}

[class~="bg-white"],
[class*="bg-white/"],
.option-card,
.input-traditional,
.product-card,
.category-card,
.blog-article-card,
.featured-card {
    background-color: var(--ivory-card) !important;
}

.bg-gray-50,
.bg-gray-100,
[class*="bg-gray-50/"] {
    background-color: #F2EADB !important;
}

section[class*="bg-gray-50/"] {
    background-image: url('../images/royal-heritage-paper.jpg') !important;
    background-repeat: repeat !important;
    background-size: 627px 627px !important;
}

[class~="border-gray-100"],
[class~="border-gray-200"],
[class~="border-gray-300"],
[class*="border-gray-100/"],
[class*="border-gray-200/"],
[class*="border-gray-300/"] {
    border-color: rgba(184, 145, 70, 0.34) !important;
}

[style*="linear-gradient"],
[style*="radial-gradient"] {
    background-image: none !important;
}

section[style*="linear-gradient"] {
    background-color: var(--midnight-blue) !important;
}

section[style*="linear-gradient"] h1,
section[style*="linear-gradient"] h2,
section[style*="linear-gradient"] h3 {
    color: var(--ivory) !important;
}

section[style*="linear-gradient"] p {
    color: #E5DDCF !important;
}

[style*="background:#1B4332"],
[style*="background: #1B4332"] {
    background: var(--midnight-blue) !important;
}

*:focus-visible {
    outline: 3px solid var(--studio) !important;
    outline-offset: 3px;
}

/* Email-only heritage support strip; phone and WhatsApp promotion stay removed. */
.top-contact-bar {
    display: flex !important;
    min-height: 36px;
    padding: 6px clamp(22px, 3vw, 46px) !important;
    background: var(--midnight-blue) !important;
    border-top: 2px solid var(--old-gold);
    border-bottom: 1px solid var(--old-gold);
}

.top-contact-bar > * {
    display: flex !important;
}

.top-contact-bar .top-bar-info,
.top-contact-bar .top-bar-item {
    align-items: center;
}

.top-contact-bar .top-bar-item,
.top-contact-bar .top-bar-item a,
.top-contact-bar .top-bar-item i {
    color: #E5DDCF !important;
    font-size: 13px;
}

.top-contact-bar .top-bar-item a:hover {
    color: var(--old-gold) !important;
}

/* Midnight header and clear shopping actions. */
.main-header-bar,
.main-header-bar[style] {
    min-height: 88px;
    padding: 17px clamp(22px, 3vw, 46px);
    background: var(--midnight-blue) !important;
    border-bottom: 2px solid var(--old-gold);
    box-shadow: 0 8px 24px rgba(11, 31, 51, 0.18);
}

.main-header-inner {
    max-width: 1480px;
    gap: 22px;
}

.header-logo,
.main-header-bar .header-logo,
.mobile-nav-v2 .mobile-logo {
    background: none !important;
    color: var(--old-gold) !important;
    -webkit-text-fill-color: currentColor !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(1.85rem, 2.25vw, 2.45rem) !important;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.main-nav {
    gap: 4px;
}

.main-nav a,
.main-nav .nav-dropdown-trigger {
    min-height: 44px;
    padding: 10px 13px;
    color: var(--ivory) !important;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 8px;
}

.main-nav a:hover,
.main-nav .nav-dropdown-trigger:hover,
.main-nav a.active,
.main-nav a[aria-current="page"] {
    color: var(--old-gold) !important;
    background: rgba(246, 240, 228, 0.06);
    border-color: rgba(184, 145, 70, 0.52);
}

.main-nav .nav-remedy-store {
    color: var(--old-gold) !important;
    background: transparent !important;
    border-color: var(--old-gold) !important;
}

.main-nav .nav-remedy-store:hover {
    color: var(--midnight-blue) !important;
    background: var(--old-gold) !important;
}

.main-nav a[href="shop.html"] {
    color: var(--old-gold) !important;
}

.main-nav a[href="shop.html"]:hover,
.main-nav a[href="shop.html"][aria-current="page"] {
    color: var(--midnight-blue) !important;
    background: var(--old-gold) !important;
    border-color: var(--old-gold) !important;
}

.nav-dropdown-trigger .dropdown-caret {
    color: var(--old-gold);
}

.nav-dropdown-menu {
    background: var(--ivory-card);
    border: 1px solid var(--old-gold);
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(11, 31, 51, 0.2);
}

.nav-dropdown-menu a,
.nav-dropdown-menu .menu-label {
    color: var(--midnight-blue) !important;
}

.nav-dropdown-menu .menu-sub {
    color: var(--woodsmoke-soft) !important;
}

.nav-dropdown-menu a:hover {
    background: rgba(184, 145, 70, 0.12) !important;
    color: var(--midnight-blue) !important;
}

.nav-dropdown-menu a .menu-icon {
    color: var(--studio);
    background: rgba(113, 77, 156, 0.1);
}

.main-header-bar form[action="shop.html"] input {
    min-height: 44px;
    width: clamp(168px, 16vw, 220px) !important;
    background: var(--ivory-card) !important;
    border: 1px solid var(--old-gold) !important;
    border-radius: 9px !important;
    color: var(--woodsmoke) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
}

.main-header-bar form[action="shop.html"] input::placeholder {
    color: #5C5D60;
    opacity: 1;
}

.main-header-bar form[action="shop.html"] button,
.main-header-bar form[action="shop.html"] button i {
    color: var(--midnight-blue) !important;
}

.main-header-bar a[href="cart.html"] {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--old-gold);
    border-radius: 9px;
    color: var(--old-gold) !important;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-header-bar a[href="cart.html"]:hover {
    background: var(--old-gold);
    color: var(--midnight-blue) !important;
    transform: translateY(-1px);
}

.main-header-bar a[href="cart.html"] .fa-shopping-cart {
    color: currentColor !important;
    font-size: 20px !important;
}

.cart-count {
    min-width: 21px !important;
    width: auto !important;
    height: 21px !important;
    padding: 0 5px;
    background: var(--studio) !important;
    color: #FFFFFF !important;
    border: 2px solid var(--midnight-blue);
    font-size: 11px !important;
}

#mobile-menu-btn-v2,
.main-header-bar #mobile-menu-btn-v2 {
    color: var(--old-gold) !important;
    background: transparent !important;
    border: 1px solid var(--old-gold) !important;
}

#mobile-menu-btn-v2 i {
    color: currentColor !important;
}

/* Mobile navigation keeps the same rich contrast. */
.mobile-nav-v2 {
    background: var(--midnight-blue);
    border-left: 1px solid var(--old-gold);
    box-shadow: -12px 0 40px rgba(11, 31, 51, 0.3);
}

.mobile-nav-v2 .mobile-nav-header {
    border-bottom-color: rgba(184, 145, 70, 0.45);
}

.mobile-nav-v2 a,
.mobile-nav-v2 .mobile-tools-trigger {
    color: var(--ivory) !important;
    font-size: 17px;
}

.mobile-nav-v2 a:hover,
.mobile-nav-v2 .mobile-tools-trigger:hover {
    color: var(--old-gold) !important;
    background: rgba(246, 240, 228, 0.06);
}

.mobile-tools-sub a {
    color: #DED4C3 !important;
}

.mobile-nav-v2 .mobile-close {
    background: var(--ivory-card);
    color: var(--midnight-blue);
}

.mobile-nav-overlay {
    background: rgba(7, 21, 34, 0.64);
}

/* Buttons: Old Gold is the primary action, Midnight is secondary. */
.btn-primary,
.btn-gold {
    min-height: 44px;
    background: var(--old-gold) !important;
    background-image: none !important;
    color: var(--midnight-blue) !important;
    border: 1px solid var(--old-gold-dark) !important;
    border-radius: 9px;
    box-shadow: 0 5px 12px rgba(11, 31, 51, 0.14);
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: none !important;
}

.btn-primary *,
.btn-gold * {
    color: var(--midnight-blue) !important;
}

.btn-primary:hover,
.btn-gold:hover {
    background: #C8A65D !important;
    background-image: none !important;
    color: var(--midnight-blue) !important;
    border-color: var(--midnight-blue) !important;
    box-shadow: 0 8px 18px rgba(11, 31, 51, 0.2);
    transform: translateY(-2px);
    animation: none !important;
}

.btn-primary:active,
.btn-gold:active {
    transform: translateY(0);
}

.btn-secondary {
    min-height: 44px;
    background: var(--ivory-card) !important;
    color: var(--midnight-blue) !important;
    border: 1px solid var(--midnight-blue) !important;
    border-radius: 9px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
}

.btn-secondary:hover {
    background: var(--midnight-blue) !important;
    color: var(--ivory) !important;
    border-color: var(--midnight-blue) !important;
}

button {
    text-underline-offset: 3px;
}

/* Selected tabs, pagination and product labels use Studio sparingly. */
[class~="bg-[#6B0000]"],
[class~="bg-red-500"],
[class~="bg-green-500"],
[class~="bg-orange-500"] {
    background-color: var(--studio) !important;
    background-image: none !important;
    color: #FFFFFF !important;
    border-color: #5F3D89 !important;
}

[class~="bg-[#D4AF37]"] {
    background-color: var(--old-gold) !important;
    background-image: none !important;
}

[class~="bg-[#1C120C]"],
footer {
    background: var(--midnight-blue) !important;
    background-image: none !important;
}

/* Product and content cards follow the selected ivory-and-gold grid. */
.product-card,
.category-card,
.blog-article-card,
.featured-card,
.mandala-frame,
#cart-items-wrapper,
#calculator-card,
#cart-empty-state {
    border: 1px solid rgba(184, 145, 70, 0.55) !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 16px rgba(11, 31, 51, 0.08) !important;
}

.product-card {
    overflow: hidden;
}

.product-card:hover,
.category-card:hover,
.blog-article-card:hover {
    border-color: var(--old-gold) !important;
    box-shadow: 0 14px 30px rgba(11, 31, 51, 0.14) !important;
    transform: translateY(-5px);
}

.product-card > .overflow-hidden,
.product-card [class~="bg-white"] {
    background: #FFFEFA !important;
}

.product-card h3 {
    color: var(--woodsmoke) !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    line-height: 1.2;
}

.product-card .gold-accent {
    color: var(--midnight-blue) !important;
    font-size: 1.16rem !important;
    font-weight: 700;
}

.product-card .line-through {
    color: #68635A !important;
}

.product-card button:not(.btn-primary) {
    min-height: 44px;
    background: var(--ivory-card) !important;
    color: var(--midnight-blue) !important;
    border: 1px solid var(--midnight-blue) !important;
    font-size: 14px !important;
}

.product-card .btn-primary {
    min-height: 44px;
    font-size: 14px !important;
}

.product-card [class~="h-[160px]"] {
    height: 184px !important;
}

/* Shop filter panel and active category mirror the approved mock. */
#category-filter-list .category-btn {
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--woodsmoke-soft) !important;
    font-size: 15px;
}

#category-filter-list .category-btn:hover {
    color: var(--midnight-blue) !important;
    background: rgba(184, 145, 70, 0.12);
    border-color: rgba(184, 145, 70, 0.4);
}

#category-filter-list .category-btn.is-active {
    color: var(--ivory) !important;
    background: var(--midnight-blue);
    border-color: var(--old-gold);
    font-weight: 700;
}

body > section:first-of-type nav.text-sm.text-gray-600.mb-6 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

body > section:first-of-type nav.text-sm.text-gray-600.mb-6 a {
    color: var(--midnight-blue) !important;
    font-weight: 600;
}

body > section:first-of-type nav.text-sm.text-gray-600.mb-6 a:not(:last-child)::after {
    content: '/';
    padding-left: 8px;
    color: var(--old-gold);
    font-weight: 400;
}

#min-price,
#max-price,
#promo-input,
.input-traditional,
input,
select,
textarea {
    background: var(--ivory-card) !important;
    color: var(--woodsmoke) !important;
    border-color: rgba(184, 145, 70, 0.58) !important;
}

input::placeholder,
textarea::placeholder {
    color: #65625D !important;
    opacity: 1;
}

/* Article, tool and service boxes get legible text on their own surfaces. */
.mandala-frame::before {
    border-color: rgba(184, 145, 70, 0.5);
}

.option-card.selected {
    border-color: var(--studio);
    background: rgba(113, 77, 156, 0.08) !important;
}

.dark-service-card {
    background: var(--midnight-blue);
    border: 1px solid rgba(184, 145, 70, 0.62);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(11, 31, 51, 0.16);
}

.dark-service-card h3 {
    color: var(--ivory) !important;
    font-size: 1.45rem;
}

.dark-service-card p {
    color: #E6DDCE !important;
    font-size: 15px;
    line-height: 1.7;
}

.dark-service-card .card-divider,
.section-gold-rule {
    background: var(--old-gold);
    background-image: none;
}

.dark-service-card .read-more,
.dark-service-card .card-icon,
.dark-service-card .card-icon svg {
    color: var(--old-gold);
    stroke: var(--old-gold);
}

.traditional-title::after,
.traditional-title-left::after {
    content: none;
}

.traditional-title::before,
.traditional-title-left::before {
    background: var(--old-gold);
    width: 112px;
    height: 2px;
}

h1.traditional-title {
    font-size: clamp(2.75rem, 4vw, 3.5rem) !important;
}

.traditional-divider::before,
.traditional-divider::after {
    background: var(--old-gold);
}

.traditional-divider-dot {
    width: 10px;
    height: 10px;
    background: var(--studio);
    border-color: var(--old-gold);
    box-shadow: none;
}

/* Footer text remains readable against Midnight Blue. */
footer {
    border-top: 3px solid var(--old-gold) !important;
}

footer h1,
footer h2,
footer h3,
footer h4,
footer .header-logo,
footer .maroon-accent {
    color: var(--old-gold) !important;
    -webkit-text-fill-color: currentColor !important;
}

footer p,
footer li,
footer a,
footer span,
footer .text-gray-400,
footer .text-gray-500 {
    color: #E5DDCF !important;
}

footer a:hover {
    color: var(--old-gold) !important;
}

footer .border-gray-800 {
    border-color: rgba(184, 145, 70, 0.32) !important;
}

/* Preserve pale text inside intentional dark feature bands. */
.bg-gradient-to-r,
.bg-gradient-to-br,
[class~="bg-[#1C120C]"] {
    background: var(--midnight-blue) !important;
    background-image: none !important;
}

.bg-gradient-to-r h1,
.bg-gradient-to-r h2,
.bg-gradient-to-r h3,
.bg-gradient-to-br h1,
.bg-gradient-to-br h2,
.bg-gradient-to-br h3,
[class~="bg-[#1C120C]"] h1,
[class~="bg-[#1C120C]"] h2,
[class~="bg-[#1C120C]"] h3 {
    color: var(--ivory) !important;
}

.bg-gradient-to-r p,
.bg-gradient-to-br p,
[class~="bg-[#1C120C]"] p {
    color: #E5DDCF !important;
}

@media (min-width: 1025px) {
    .product-card > .overflow-hidden {
        min-height: 212px;
    }
}

@media (min-width: 1024px) and (max-width: 1359px) {
    #shop-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1024px) {
    .main-header-bar {
        min-height: 76px;
        padding: 13px 18px;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2.25rem !important;
        line-height: 1.12;
    }

    h2 {
        font-size: 1.9rem !important;
        line-height: 1.16;
    }

    h3 {
        font-size: 1.35rem !important;
    }

    h4 {
        font-size: 1.15rem !important;
    }

    p,
    li {
        font-size: 15px !important;
        line-height: 1.7;
    }

    .text-xs {
        font-size: 13px !important;
    }

    .text-sm {
        font-size: 15px !important;
    }

    .text-base {
        font-size: 16px !important;
    }

    .main-header-bar .header-logo {
        max-width: calc(100vw - 150px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 1.75rem !important;
    }

    .product-card h3 {
        font-size: 1rem !important;
        line-height: 1.3;
    }

    .product-card button,
    .product-card .btn-primary {
        min-height: 42px;
        padding: 9px 10px !important;
        font-size: 13px !important;
    }

    .product-card > .overflow-hidden {
        height: 180px !important;
        min-height: 180px;
    }

    #category-filter-list .category-btn {
        font-size: 16px;
    }
}
