/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary-brown: #8B5A2B;
    --dark-brown: #6d451c;
    --light-brown: #D2B48C;
    --accent-brown: #A67C52;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --background-cream: #f9f7f2;
    --text-dark: #4a4a4a;
    --text-gray: #6b7280;
    --white: #ffffff;
    --border-light: #e5e5e5;
    
    /* Spacing */
    --bar-height: 48px;
    --bar-gap: 8px;
    --bars-total-height: calc((var(--bar-height) * 2) + var(--bar-gap));
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-standard: all 0.3s ease;
    --transition-bounce: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE STYLES ===== */
body {
    font-family: 'Lora', serif;
    background-color: var(--background-cream);
    color: var(--text-dark);
    padding-top: var(--bars-total-height);
}

.font-serif {
    font-family: 'Cinzel', serif;
}

/* ===== TYPOGRAPHY & GRADIENTS ===== */
.gradient-text {
    background: linear-gradient(90deg, var(--primary-brown) 0%, var(--light-brown) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--light-brown) 100%);
}

.section-title {
    font-family: 'Cinzel', serif;
    color: var(--primary-brown);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    font-weight: 700;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--amber-600);
    margin: 0.5rem auto;
    border-radius: 2px;
    background: linear-gradient(to right, var(--primary-brown), var(--light-brown), var(--primary-brown));
}

/* ===== NAVIGATION ===== */
.nav-link {
    position: relative;
    transition: var(--transition-standard);
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-brown);
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 100%;
}

.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-standard);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===== BUTTON STYLES ===== */
.vintage-btn {
    background: linear-gradient(to bottom, var(--primary-brown), var(--dark-brown));
    color: var(--background-cream);
    border: 1px solid var(--light-brown);
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 600;
    transition: var(--transition-standard);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.vintage-btn:hover {
    background: linear-gradient(to bottom, var(--dark-brown), var(--primary-brown));
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

.vintage-btn:active {
    transform: translateY(0);
}

.buy-now-btn {
    background: var(--amber-600);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 9999px;
    font-weight: 600;
    transition: var(--transition-standard);
    text-align: center;
    display: block;
    width: 100%;
    font-size: 0.875rem;
}

.buy-now-btn:hover {
    background: var(--amber-700);
    transform: translateY(-1px);
}

.explore-btn {
    margin-top: 0.75rem;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: var(--transition-standard);
    background: rgba(251, 191, 36, 0.1);
    color: var(--amber-700);
    text-align: center;
}

.explore-btn:hover {
    background: rgba(251, 191, 36, 0.2);
    color: #92400e;
}

/* ===== CARD COMPONENTS ===== */
.vintage-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-standard);
    border: 1px solid rgba(245, 158, 11, 0.1);
    display: block;
    text-decoration: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vintage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-standard);
    border: 1px solid var(--border-light);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-card {
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: var(--transition-standard);
    border: 1px solid var(--border-light);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===== GRID LAYOUTS ===== */
.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.bundles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.offers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* ===== PROMO BARS ===== */
.promo-stack {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--bar-gap);
    pointer-events: none;
    padding: 8px;
    box-sizing: border-box;
}

.promo-bar {
    height: var(--bar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    pointer-events: auto;
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    animation: fadeIn 600ms ease both;
    overflow: hidden;
}

.promo-green {
    background: linear-gradient(90deg, #059669, #10b981);
}

.promo-blue {
    background: linear-gradient(90deg, #0ea5e9, #0369a1);
}

.promo-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.promo-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: inline-block;
}

.limited {
    background: rgba(255, 255, 255, 0.12);
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ===== DECORATIVE ELEMENTS ===== */
.vintage-header {
    background: linear-gradient(to bottom, var(--primary-brown), var(--dark-brown));
    color: var(--background-cream);
    border-bottom: 3px solid var(--light-brown);
}

.ornamental-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.ornamental-divider::before,
.ornamental-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--primary-brown);
}

.ornamental-divider::before {
    margin-right: 10px;
}

.ornamental-divider::after {
    margin-left: 10px;
}

.store-window {
    background: var(--white);
    border: 3px solid var(--primary-brown);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 20px;
    margin-bottom: 30px;
}

.price-tag {
    background: var(--primary-brown);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
    display: inline-block;
    position: relative;
}

.price-tag::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid var(--primary-brown);
}

.awning {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--accent-brown) 100%);
    padding: 15px 30px;
    color: var(--white);
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.awning:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--primary-brown);
}

.awning:before {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--primary-brown);
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-brown);
    background: rgba(251, 191, 36, 0.1);
    border-radius: 9999px;
}

/* ===== BACKGROUND PATTERNS ===== */
.bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.wood-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h100v100H0z' fill='%238B5A2B'/%3E%3Cpath d='M0 0h100v2H0z' fill='%23A67C52'/%3E%3Cpath d='M0 4h100v2H0z' fill='%23A67C52'/%3E%3Cpath d='M0 8h100v2H0z' fill='%23A67C52'/%3E%3Cpath d='M0 12h100v2H0z' fill='%23A67C52'/%3E%3C/svg%3E");
    background-size: 100px 100px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buyPulse {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-2px) scale(1.02);
        opacity: .6;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== SPECIAL COMPONENTS ===== */
.faq-item {
    border-radius: 4px;
    transition: var(--transition-standard);
    border: 1px solid var(--border-light);
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.classic-border {
    border: 2px solid var(--primary-brown);
    border-radius: 4px;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 180px;
    height: 360px;
    background: #1f2937;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin: 0 auto;
}

.phone-screen {
    position: absolute;
    top: 15px;
    left: 10px;
    right: 10px;
    bottom: 15px;
    background: linear-gradient(135deg, #92400e 0%, var(--amber-600) 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    background: #1f2937;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 10;
}

.phone-button {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.feature-item {
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 480px) {
    .service-grid,
    .category-grid,
    .bundles-grid,
    .offers-grid {
        gap: 0.5rem;
    }
    
    .vintage-card {
        padding: 0.75rem;
    }
    
    .promo-bar {
        padding: 0 0.8rem;
        border-radius: 6px;
        font-size: .86rem;
    }
    
    .limited {
        display: none;
    }
    
    .promo-left span {
        display: inline-block;
        max-width: 60vw;
    }
}

@media (min-width: 768px) {
    .slider-item {
        flex: 0 0 50%;
    }
}

@media (min-width: 1024px) {
    .slider-item {
        flex: 0 0 33.33%;
    }
}

/* Slider styles */
.slider-container {
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.slider-item {
    scroll-snap-align: start;
    flex: 0 0 100%;
}

/* Back to top button */
#back-to-top {
    transition: var(--transition-standard);
}

#back-to-top:hover {
    transform: translateY(-3px);
}