/* Peluche Bukowski - Custom Styles */

/* ===== FONTS ===== */
body {
    font-family: 'Open Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.font-display {
    font-family: 'Roboto', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== BUKOWSKI COLOR PALETTE ===== */
/* Primary: Dusty Rose / Blush */
.bg-sage { background-color: #C89B95; }
.bg-sage-dark { background-color: #A67A73; }
.bg-sage-light { background-color: #F0DAD4; }
.text-sage { color: #C89B95; }
.text-sage-dark { color: #A67A73; }
.text-sage-light { color: #EBC6BE; }
.border-sage { border-color: #C89B95; }

/* Secondary: Cream / Warm Ivory */
.bg-cream { background-color: #FAF5EF; }
.bg-cream-dark { background-color: #EFE4D4; }
.text-cream { color: #FAF5EF; }

/* Accent: Warm Cocoa Brown */
.bg-charcoal { background-color: #3E2E26; }
.text-charcoal { color: #3E2E26; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.animate-fade-up { animation: fadeUp 0.6s ease-out forwards; }
.animate-fade-up-delay { animation: fadeUp 0.6s ease-out 0.2s forwards; opacity: 0; }
.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }

/* ===== HEADER STYLES ===== */
#header {
    background-color: rgba(62, 46, 38, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
#header.scrolled {
    background-color: rgba(62, 46, 38, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* ===== MOBILE MENU TRANSITIONS ===== */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}
#mobile-menu.open { display: block; }

/* ===== CARD HOVER EFFECTS ===== */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover { transform: translateY(-4px); }

/* ===== HERO OVERLAY ===== */
.hero-overlay {
    background: linear-gradient(to right, rgba(40, 25, 20, 0.75), rgba(40, 25, 20, 0.5), rgba(40, 25, 20, 0.3));
}

/* ===== CATEGORY CARD OVERLAY ===== */
.category-overlay {
    background: linear-gradient(to top, rgba(30, 18, 14, 0.75) 0%, rgba(30, 18, 14, 0.25) 60%, rgba(30, 18, 14, 0.05) 100%);
}

/* ===== SHADOW STYLES ===== */
.shadow-soft {
    box-shadow: 0 2px 8px -2px rgb(90 60 50 / 0.08), 0 4px 16px -4px rgb(90 60 50 / 0.06);
}

/* ===== STAT NUMBER STYLING ===== */
.stat-number {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}
@media (min-width: 768px) {
    .stat-number { font-size: 3rem; }
}

/* ===== ASPECT RATIOS ===== */
.aspect-\[4\/5\] { aspect-ratio: 4 / 5; }

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #FAF5EF; }
::-webkit-scrollbar-thumb { background: #D4B8AE; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #A67A73; }

/* ===== FOCUS STYLES ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #C89B95;
    outline-offset: 2px;
}

/* ===== FORM INPUTS ===== */
input::placeholder { color: #a8a29e; }
input:focus { outline: none; }

/* ===== TESTIMONIAL CAROUSEL (MOBILE) ===== */
#testimonial-carousel { position: relative; }
#testimonial-track {
    display: flex;
    transition: transform 0.3s ease;
}
#testimonial-track > div {
    flex: 0 0 100%;
    padding: 0 1rem;
}
.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: #D4C4B8;
    transition: background-color 0.3s ease;
    cursor: pointer;
}
.testimonial-dot.active { background-color: #C89B95; }

/* ===== GRADIENT BACKGROUNDS ===== */
.bg-gradient-warm {
    background: linear-gradient(135deg, #FAF5EF 0%, #EFE4D4 100%);
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
    background-color: #C89B95;
    color: white;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}
.btn-primary:hover { background-color: #A67A73; }
.btn-secondary {
    background-color: transparent;
    color: #3E2E26;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    border: 1px solid #D4B8AE;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    border-color: #A67A73;
    background-color: #EFE4D4;
}

/* ===== BEST SELLERS / PRODUCT CARDS ===== */
#best-sellers {
    width: 100%;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid rgba(166, 122, 115, 0.25);
    background: linear-gradient(165deg, #faf5ef 0%, #efe4d4 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 1px 2px rgba(62, 46, 38, 0.05),
        0 10px 28px rgba(62, 46, 38, 0.07);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.32, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(200, 155, 149, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 4px 8px rgba(62, 46, 38, 0.06),
        0 20px 40px rgba(62, 46, 38, 0.1);
}

.product-card__media {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.25rem;
    background:
        radial-gradient(circle at 50% 28%, #faf5ef 0%, #f0e8dc 72%),
        linear-gradient(180deg, #f5ede3 0%, #e8ddd0 100%);
    border-bottom: 1px solid rgba(166, 122, 115, 0.2);
}

.product-card__media img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(62, 46, 38, 0.12));
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.32, 1);
}

.product-card:hover .product-card__media img {
    transform: scale(1.05);
}

.product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.6rem;
    padding: 1.25rem 1.25rem 1.4rem;
}

.product-card__title {
    font-family: Roboto, "Open Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    color: #3e2e26;
}

.product-card__text {
    flex: 1;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #57534e;
}

.product-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.5rem;
    min-height: 2.75rem;
    padding: 0.65rem 1.15rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background: #c89b95;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.product-card__cta svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    opacity: 0.95;
}

.product-card__cta:hover {
    background: #a67a73;
}

.product-card__cta:focus-visible {
    outline: 2px solid #a67a73;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .product-card,
    .product-card__media img {
        transition: none;
    }

    .product-card:hover {
        transform: none;
    }
}

/* ===== FOOTER AFFILIATE DISCLAIMER ===== */
footer .footer-affiliate-disclaimer {
    margin-top: 3rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #f5f5f4;
    font-size: 0.8125rem;
    line-height: 1.65;
    text-align: center;
}

footer .footer-affiliate-disclaimer strong {
    color: #ffffff;
    font-weight: 600;
}

@media (min-width: 640px) {
    footer .footer-affiliate-disclaimer {
        font-size: 0.875rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    header, footer, #mobile-menu, button, .no-print { display: none !important; }
    body { background: white; color: black; }
    a { color: black; text-decoration: underline; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== SELECTION STYLES ===== */
::selection { background-color: #C89B95; color: white; }
::-moz-selection { background-color: #C89B95; color: white; }

/* ===== TYPOGRAPHY ===== */
strong { font-weight: 600; }

/* ===== AMBER FOR STARS ===== */
.text-amber-400 { color: #E8A43A; }

/* ===== PRODUCT IMAGE BACKGROUND ===== */
.product-bg {
    background: linear-gradient(135deg, #FAF5EF 0%, #F0DAD4 100%);
}
