/* ================================
   COREME - Custom Styles
   Couleurs: #218A80 (primary), #086055 (secondary), #50483E (text)
   ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #50483E;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Force page to start at top */
body::before {
    content: '';
    display: block;
    height: 0;
    width: 0;
    position: absolute;
    top: 0;
}

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

.nav-link {
    position: relative;
    color: #50483E;
    font-weight: 500;
    transition: color 0.3s ease;
    padding-bottom: 4px;
}

.nav-link:hover {
    color: #218A80;
}

.nav-link.active {
    color: #218A80;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #218A80;
}

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

.btn-primary {
    display: inline-block;
    background: #218A80;
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 138, 128, 0.2);
}

.btn-primary:hover {
    background: #086055;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 138, 128, 0.3);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #218A80;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #218A80;
}

.btn-secondary:hover {
    background: #218A80;
    color: white;
    transform: translateY(-2px);
}

/* ================================
   FILTER & CATEGORY BUTTONS
   ================================ */

.filter-btn,
.category-btn {
    padding: 10px 20px;
    border-radius: 50px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #50483E;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover,
.category-btn:hover {
    border-color: #218A80;
    color: #218A80;
}

.filter-btn.active,
.category-btn.active {
    background: #218A80;
    color: white;
    border-color: #218A80;
}

/* ================================
   CARDS & PRODUCTS
   ================================ */

.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* ================================
   BLOG ARTICLES
   ================================ */

.blog-article {
    transition: all 0.3s ease;
}

.blog-article:hover {
    transform: translateY(-5px);
}

/* ================================
   SMOOTH SCROLLING
   ================================ */

html {
    scroll-behavior: smooth;
}

/* Adjust for fixed header */
section[id] {
    scroll-margin-top: 80px;
}

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

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

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

/* ================================
   RESPONSIVE UTILITIES
   ================================ */

@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ================================
   FORM ELEMENTS
   ================================ */

input[type="text"],
input[type="email"],
textarea {
    font-family: 'Inter', sans-serif;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #218A80 !important;
    box-shadow: 0 0 0 3px rgba(33, 138, 128, 0.1);
}

/* ================================
   CUSTOM SCROLLBAR
   ================================ */

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #218A80;
    border-radius: 5px;
}

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

/* ================================
   SELECTION COLOR
   ================================ */

::selection {
    background: #218A80;
    color: white;
}

::-moz-selection {
    background: #218A80;
    color: white;
}

/* ================================
   TRANSITIONS
   ================================ */

* {
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* ================================
   LOADING STATES
   ================================ */

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ================================
   ACCESSIBILITY
   ================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #218A80;
    outline-offset: 2px;
}

/* ================================
   PRINT STYLES
   ================================ */

@media print {
    nav,
    footer,
    .btn-primary,
    .btn-secondary {
        display: none;
    }
}

/* ================================
   HERO GRADIENT ANIMATION
   ================================ */

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animate {
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
}

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

#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.hidden {
    max-height: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 300px;
}

/* ================================
   PRODUCT BADGES
   ================================ */

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: #218A80;
    color: white;
}

.badge-sale {
    background: #ef4444;
    color: white;
}

.badge-bestseller {
    background: #fbbf24;
    color: #78350f;
}

/* ================================
   STAR RATINGS
   ================================ */

.star-rating {
    color: #fbbf24;
    font-size: 14px;
}

/* ================================
   PRICE STYLES
   ================================ */

.price-old {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 14px;
}

.price-current {
    color: #218A80;
    font-size: 28px;
    font-weight: bold;
}

/* ================================
   FOOTER LINKS
   ================================ */

footer a {
    transition: all 0.2s ease;
}

footer a:hover {
    color: #218A80 !important;
    transform: translateX(3px);
}

/* ================================
   SHADOW UTILITIES
   ================================ */

.shadow-soft {
    box-shadow: 0 10px 40px rgba(33, 138, 128, 0.1);
}

.shadow-hover:hover {
    box-shadow: 0 15px 50px rgba(33, 138, 128, 0.15);
}

/* ================================
   TEXT GRADIENT
   ================================ */

.text-gradient {
    background: linear-gradient(135deg, #218A80 0%, #086055 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================
   LOADER
   ================================ */

.loader {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #218A80;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================================
   FADE IN ON SCROLL
   ================================ */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   RESPONSIVE TYPOGRAPHY
   ================================ */

@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* ================================
   CUSTOM UTILITIES
   ================================ */

.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-padding {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 6rem 0;
    }
}

/* ================================
   LINK HOVER EFFECTS
   ================================ */

.link-underline {
    position: relative;
    text-decoration: none;
}

.link-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #218A80;
    transition: width 0.3s ease;
}

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

/* ================================
   IMAGE EFFECTS
   ================================ */

.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.1);
}

/* ================================
   CARD SHINE EFFECT
   ================================ */

.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.card-shine:hover::before {
    left: 100%;
}