/* ============================================================================
   KATI Naturals - Custom Styles
   Premium natural cosmetics webshop
   ============================================================================ */

/* --------------------------------------------------------------------------
   Base & Reset
   -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Mukta', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.font-heading {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
}

/* --------------------------------------------------------------------------
   Custom Scrollbar
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f6f2;
}

::-webkit-scrollbar-thumb {
    background: #87946c;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #728059;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #87946c #f5f6f2;
}

/* --------------------------------------------------------------------------
   Selection
   -------------------------------------------------------------------------- */
::selection {
    background-color: #87946c;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   Animations - Keyframes
   -------------------------------------------------------------------------- */

/* Fade in from below */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Gentle scale up */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* WhatsApp button pulse */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Subtle float */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* Shimmer for loading placeholders */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Botanical sway */
@keyframes sway {
    0%, 100% {
        transform: rotate(-2deg);
    }
    50% {
        transform: rotate(2deg);
    }
}

/* --------------------------------------------------------------------------
   Animation Utility Classes
   -------------------------------------------------------------------------- */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out both;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out both;
}

.animate-slide-in-left {
    animation: slideInLeft 0.7s ease-out both;
}

.animate-slide-in-right {
    animation: slideInRight 0.7s ease-out both;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out both;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-sway {
    animation: sway 4s ease-in-out infinite;
}

/* Staggered animation delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }

/* Start invisible for scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.is-visible {
    animation: fadeInUp 0.8s ease-out both;
}

/* --------------------------------------------------------------------------
   Product Card Styles
   -------------------------------------------------------------------------- */
.product-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.4s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.1);
    border-color: rgba(135, 148, 108, 0.2);
}

/* --------------------------------------------------------------------------
   Button Styles
   -------------------------------------------------------------------------- */
.btn-primary {
    background-color: #1d1c1c;
    color: #ffffff;
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 2px solid #1d1c1c;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background-color: transparent;
    color: #1d1c1c;
}

.btn-secondary {
    background-color: transparent;
    color: #1d1c1c;
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 2px solid #1d1c1c;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background-color: #1d1c1c;
    color: #ffffff;
}

.btn-olive {
    background-color: #87946c;
    color: #ffffff;
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 2px solid #87946c;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-olive:hover {
    background-color: #728059;
    border-color: #728059;
}

/* --------------------------------------------------------------------------
   WhatsApp Button
   -------------------------------------------------------------------------- */
.whatsapp-button {
    animation: pulse-green 2s infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    animation: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #374151;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1.5px;
    background-color: #87946c;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #87946c;
}

.nav-link:hover::after {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-gradient {
    background: linear-gradient(
        135deg,
        #f5f6f2 0%,
        #e8e4db 25%,
        #f0ede6 50%,
        #e5e0d5 75%,
        #f5f6f2 100%
    );
}

.hero-pattern {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(135, 148, 108, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(135, 148, 108, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(135, 148, 108, 0.05) 0%, transparent 50%);
}

/* --------------------------------------------------------------------------
   Section Divider
   -------------------------------------------------------------------------- */
.section-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, transparent, #87946c, transparent);
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Ingredient Card
   -------------------------------------------------------------------------- */
.ingredient-card {
    transition: all 0.4s ease;
}

.ingredient-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.ingredient-card .ingredient-image {
    transition: transform 0.5s ease;
}

.ingredient-card:hover .ingredient-image {
    transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   Horizontal Scroll Container
   -------------------------------------------------------------------------- */
.scroll-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

/* --------------------------------------------------------------------------
   Partner Logo
   -------------------------------------------------------------------------- */
.partner-logo {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.4s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Cookie Consent Banner
   -------------------------------------------------------------------------- */
.cookie-banner {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* --------------------------------------------------------------------------
   Loading Shimmer
   -------------------------------------------------------------------------- */
.shimmer {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* --------------------------------------------------------------------------
   Responsive adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero-gradient {
        min-height: 80vh;
    }

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

@media (max-width: 640px) {
    h1 {
        font-size: 1.875rem !important;
    }

    .btn-primary,
    .btn-secondary,
    .btn-olive {
        padding: 0.625rem 1.5rem;
        font-size: 0.8125rem;
    }
}

/* --------------------------------------------------------------------------
   Overlay effects
   -------------------------------------------------------------------------- */
.overlay-dark {
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.overlay-light {
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.9) 100%
    );
}

/* --------------------------------------------------------------------------
   Focus styles for accessibility
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #87946c;
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Print styles
   -------------------------------------------------------------------------- */
@media print {
    .no-print,
    .whatsapp-button,
    .cookie-banner,
    header nav,
    footer {
        display: none !important;
    }
}
