/* ==================== 
   ТАМАРИН САД - Custom Styles
   ==================== */

/* CSS Variables */
:root {
    --color-warm-white: #F8F5F0;
    --color-nature-green: #3A7D34;
    --color-nature-green-dark: #2D6329;
    --color-terracotta: #B3543A;
    --color-terracotta-dark: #9A472F;
    --color-text-dark: #2D2D2D;
    --color-text-muted: #6B7280;
}

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

/* Body Scrollbar */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: var(--color-warm-white);
}

body::-webkit-scrollbar-thumb {
    background: var(--color-nature-green);
    border-radius: 5px;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--color-nature-green-dark);
}

/* ==================== ANIMATIONS ==================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-delay-1 {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.2s forwards;
}

.animate-fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.4s forwards;
}

.animate-fade-in-delay-3 {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.6s forwards;
}

.animate-modal-in {
    animation: modalIn 0.3s ease-out forwards;
}

.animate-slide-down {
    animation: slideDown 0.3s ease-out forwards;
}

/* ==================== TAB BUTTONS ==================== */

.tab-btn {
    color: var(--color-text-muted);
    background: transparent;
}

.tab-btn:hover {
    color: var(--color-nature-green);
}

.tab-btn.active {
    background: var(--color-nature-green);
    color: white;
}

/* ==================== PRODUCT CARDS ==================== */

.product-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-card-image {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, rgba(58, 125, 52, 0.1), rgba(179, 84, 58, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-card-body {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    .product-card-body {
        padding: 1.5rem;
    }
}

.product-card h3 {
    font-size: 0.9375rem; /* ~15px */
    line-height: 1.25;
}

@media (min-width: 640px) {
    .product-card h3 {
        font-size: 1.125rem; /* ~18px */
    }
}

.product-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-status.in-stock {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.product-status.coming-soon {
    background: rgba(234, 179, 8, 0.1);
    color: #ca8a04;
}

/* ==================== MODAL ==================== */

#product-modal.active {
    display: block;
}

#product-modal:not(.active) {
    display: none;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* ==================== FORM STYLES ==================== */

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-nature-green);
    box-shadow: 0 0 0 3px rgba(58, 125, 52, 0.1);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-dark);
}

/* ==================== NAVIGATION ==================== */

.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-nature-green);
    transition: width 0.3s ease;
}

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

/* ==================== MOBILE MENU ==================== */

#mobile-menu {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

#mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease-out forwards;
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */

@media (max-width: 768px) {
    .product-card-body {
        padding: 1rem;
    }
    
    .product-card h3 {
        font-size: 1rem;
    }
}

/* ==================== SCROLL ANIMATIONS ==================== */

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== UTILITY CLASSES ==================== */

.text-balance {
    text-wrap: balance;
}

/* Success message for form */
.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #16a34a;
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
}

/* Error message for form */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
}
