/**
 * Antique Furnish (AntiqueFurnish.com) - Luxury Heritage Stylesheet
 * Primary: Deep forest green (#1B3B2B, #11281D)
 * Secondary: Warm ivory (#FDFBF7) & Antique cream (#FAF6EE)
 * Accent: Muted antique gold (#C5A059) & Aged brass (#B38F48)
 * Text: Rich charcoal (#242220) & Dark brown (#3A322D)
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --forest-950: #0f2219;
    --forest-900: #1b3b2b;
    --forest-800: #244b36;
    --forest-700: #315e45;
    --ivory: #fdfbf7;
    --cream: #faf6ee;
    --cream-dark: #f0e9dc;
    --gold: #c5a059;
    --gold-light: #dfc88e;
    --brass: #b38f48;
    --charcoal: #242220;
    --dark-brown: #3a322d;
    --border-antique: #e8e2d5;
}

html {
    scroll-behavior: smooth;
    background-color: var(--ivory);
    color: var(--charcoal);
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--ivory);
    color: var(--charcoal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.font-editorial {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Subtle, tasteful image reveal effect */
.reveal-frame {
    overflow: hidden;
    position: relative;
    background-color: #f4ece0;
}

.reveal-frame img {
    transition: transform 0.75s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
    will-change: transform;
}

.group:hover .reveal-frame img,
.reveal-frame:hover img {
    transform: scale(1.035);
}

/* Tasteful shadows */
.shadow-antique {
    box-shadow: 0 12px 36px -12px rgba(27, 59, 43, 0.08), 0 4px 16px -4px rgba(36, 34, 32, 0.04);
}

.shadow-antique-lg {
    box-shadow: 0 24px 60px -15px rgba(27, 59, 43, 0.12), 0 8px 24px -6px rgba(36, 34, 32, 0.06);
}

.shadow-antique-subtle {
    box-shadow: 0 4px 20px -2px rgba(36, 34, 32, 0.05);
}

/* Refined borders */
.border-antique {
    border-color: var(--border-antique);
}

.border-gold {
    border-color: rgba(197, 160, 89, 0.35);
}

/* Buttons */
.btn-primary {
    background-color: var(--forest-900);
    color: var(--ivory);
    border: 1px solid var(--forest-900);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    letter-spacing: 0.06em;
}

.btn-primary:hover {
    background-color: var(--forest-950);
    border-color: var(--forest-950);
    box-shadow: 0 6px 20px -4px rgba(20, 43, 31, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--forest-900);
    border: 1px solid var(--forest-900);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    letter-spacing: 0.06em;
}

.btn-secondary:hover {
    background-color: var(--forest-900);
    color: var(--ivory);
    box-shadow: 0 6px 20px -4px rgba(20, 43, 31, 0.25);
    transform: translateY(-1px);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--forest-950);
    border: 1px solid var(--gold);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-gold:hover {
    background-color: var(--brass);
    border-color: var(--brass);
    color: #ffffff;
    box-shadow: 0 6px 20px -4px rgba(197, 160, 89, 0.4);
    transform: translateY(-1px);
}

/* Announcement Bar ticker / smooth fade */
.announcement-item {
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Cart slide-over drawer */
#cartDrawer {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
#cartDrawer.translate-x-full {
    transform: translateX(100%);
}
#cartDrawer:not(.translate-x-full) {
    transform: translateX(0);
}

/* Toast Notification animations */
.toast-slide-in {
    animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.toast-slide-out {
    animation: toastOut 0.25s ease-in forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-16px) scale(0.98);
    }
}

/* Aspect ratio helpers */
.aspect-card {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.aspect-square {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.aspect-portrait {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #faf6ee;
}
::-webkit-scrollbar-thumb {
    background: #d4caa8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b38f48;
}

/* Print Invoice Styling */
@media print {
    body {
        background: white !important;
        color: #111 !important;
        font-size: 11pt;
    }
    header, footer, .no-print, #cartDrawer, #toastContainer, .btn-print, #announcementBar {
        display: none !important;
    }
    .print-container {
        box-shadow: none !important;
        border: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}
