/* 
    Premium Global Stylesystem
    Standardized for Safe Care / Ecory Wellness
*/

:root {
    --primary: var(--primary, #1c355e);
    --primary-light: var(--primary); /* Simplified */
    --accent: var(--accent, #f97316); 
    --accent-hover: var(--accent);
    --bg-main: var(--body-bg, #f8fafc);
    --bg-sage: #f2f7f2; 
    --bg-card: var(--card-bg, #ffffff);
    --text-main: var(--heading, #0f172a);
    --text-muted: #64748b;
    --text-forest: var(--primary); 
    --order-yellow: var(--header-btn, #facc15);
    --border: #e2e8f0;
    --glass: rgba(255, 255, 255, 0.7);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-premium: 0 20px 40px -10px rgba(28, 53, 94, 0.1);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Outfit', 'Hind Siliguri', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Base Links & Buttons */
a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* Hide Scrollbar */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Custom Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.animate-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-scale { animation: fadeInScale 0.6s ease-out forwards; }

/* Custom Component Styles for Organic Store */
.section-organic { background-color: var(--bg-sage); }

.trust-card {
    background: white;
    border: 1px solid #eef2ee;
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}
.trust-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.trust-card img { width: 45px; height: 45px; object-fit: contain; margin-bottom: 12px; }
.trust-card span { font-size: 11px; font-weight: 800; color: #1e293b; display: block; line-height: 1.3; }

.pain-solution-card {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border-radius: var(--radius-xl);
    padding: 35px 25px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px -10px rgba(28, 53, 94, 0.05);
}
.pain-solution-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -15px rgba(28, 53, 94, 0.15);
    background: #ffffff;
    border-color: #e2e8f0;
}
.pain-solution-title {
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    text-align: center;
    line-height: normal;
    margin-bottom: 30px;
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pain-solution-images {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    margin-top: auto;
    padding-bottom: 10px;
}
.pain-illustration {
    width: 80%;
    height: auto;
    object-fit: contain;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}
.pain-solution-card:hover .pain-illustration {
    transform: scale(1.08) translateX(-5px);
}
.pain-product {
    position: absolute;
    bottom: -10px;
    right: 0%;
    width: 45%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}
.pain-solution-card:hover .pain-product {
    transform: scale(1.1) translate(-10px, -15px) rotate(8deg);
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.2));
}

.pain-solution-card.full-image {
    padding: 0;
    overflow: hidden;
}
.pain-full-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.pain-solution-card.full-image:hover .pain-full-img {
    transform: scale(1.1);
}

/* Refined Ingredients Section (V2) */
.section-ingredients-v2 {
    background: #01241a; /* Deep, solid forest green */
    position: relative;
    overflow: hidden;
}

.ingredient-card-v2 {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.ingredient-card-v2:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-10px);
}

.ingredient-img-v2 {
    width: 100%;
    height: 180px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ingredient-img-v2 img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.ingredient-card-v2:hover .ingredient-img-v2 img {
    transform: scale(1.15) translateY(-5px);
    filter: drop-shadow(0 30px 60px rgba(16, 185, 129, 0.4));
}

.ingredient-title-v2 {
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.ingredient-desc-v2 {
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 0.95rem;
    color: rgba(209, 250, 229, 0.6);
    line-height: 1.6;
    font-weight: 500;
}

.cert-bar-v2 {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    padding: 30px 40px;
}

/* Product Card Redesign - Minimalist & High Conversion */
.product-card-minimal {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card-minimal:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.06);
}

.minimal-card-image {
    position: relative;
    aspect-ratio: 1;
    background: #fdfdfd;
    overflow: hidden;
}
.minimal-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card-minimal:hover .minimal-card-image img {
    transform: scale(1.05);
}

.card-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444; /* Vibrant Red */
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
    pointer-events: none;
    font-style: italic;
}

.minimal-card-info {
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.minimal-product-title {
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #10b981; /* Emerald Green */
    margin: 0;
    line-height: 1.3;
    text-align: center;
}

.minimal-price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.minimal-price-new {
    color: #334155;
    font-size: 1.1rem;
    font-weight: 800;
}
.minimal-price-old {
    color: #94a3b8;
    font-size: 0.9rem;
    text-decoration: line-through;
    font-weight: 600;
}

.minimal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.btn-minimal-cart, .btn-minimal-buy {
    width: 100%;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.btn-minimal-cart {
    background: #10b981; /* Emerald Green */
    color: #fff;
    box-shadow: 0 4px 12px -2px rgba(16, 185, 129, 0.2);
}
.btn-minimal-cart:hover {
    background: #059669;
    transform: scale(0.98);
}

.btn-minimal-buy {
    background: #f97316; /* Orange */
    color: #fff;
    box-shadow: 0 4px 12px -2px rgba(249, 115, 22, 0.2);
}
.btn-minimal-buy:hover {
    background: #ea580c;
    transform: scale(0.98);
}

.badge-organic { background: var(--order-yellow); color: #1e293b; font-size: 10px; font-weight: 900; padding: 4px 10px; border-radius: 4px; }
.btn-order-now { background: var(--accent); color: white; border-radius: 12px; font-weight: 900; font-style: italic; text-transform: uppercase; }
