/* ==========================================================================
   ADN NATURAL - DESIGN SYSTEM & MAIN STYLES
   ========================================================================== */

/* 1. CSS RESET & VARIABLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color Palette */
    --primary: #34205B;
    --primary-rgb: 52, 32, 91;
    --primary-light: #4F367F;
    --primary-dark: #251445;
    --accent: #60438F;
    --gold: #C9A96E;
    --gold-dark: #B19259;
    --bg-hero: #F8F3EF;
    --bg-body: #FAF7F5;
    --bg-card: #FFFFFF;
    --border-light: #E8DED5;
    --text-primary: #34205B;
    --text-secondary: #5E4F73;
    --text-light: #8E80A3;
    --white: #FFFFFF;
    --success: #2E7D32;
    --error: #C62828;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-accent: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Shadows & Border Radius */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px rgba(61, 26, 92, 0.08);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Layout */
    --header-height: 80px;
    --container-width: 1200px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.text-center {
    text-align: center;
}

/* 2. BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-family: var(--font-accent);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 26, 92, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--white);
}

.btn-gold:hover {
    background-color: var(--gold-dark);
    transform: translateY(-2px);
}

/* 3. NAVIGATION (GLASSMORPHISM)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    height: 70px;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(232, 224, 216, 0.5);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    position: relative;
    padding: 0.5rem 0;
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-icon-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--gold);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.mobile-menu-drawer {
    display: none;
}

.mobile-menu-overlay {
    display: none;
}

/* 4. HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    background-color: var(--bg-hero);
    background-image: radial-gradient(circle at 80% 20%, rgba(201, 169, 110, 0.1) 0%, transparent 60%);
    padding-top: calc(var(--header-height) + 2rem);
    display: flex;
    align-items: center;
    position: relative;
}

/* .hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, var(--bg-body), transparent);
} */

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: inline-block;
    border-bottom: 1.5px solid var(--gold);
    padding-bottom: 0.2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    border-top: 1px solid rgba(61, 26, 92, 0.1);
    padding-top: 2rem;
}

.feature-item {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-icon {
    color: var(--primary);
}

.feature-title {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-products-collage {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    width: 100%;
}

.collage-img {
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: bottom center;
}

.collage-img:hover {
    transform: translateY(-15px) scale(1.08) !important;
    z-index: 10 !important;
    filter: drop-shadow(0 20px 40px rgba(52, 32, 91, 0.22)) !important;
}

/* 5. PRODUCT CARDS & GRID
   ========================================================================== */
.section-title-wrapper {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.section-subtitle {
    font-family: var(--font-accent);
    color: var(--gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.product-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(232, 224, 216, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(61, 26, 92, 0.1);
}

.product-image-container {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    margin-bottom: 1.5rem;
    background-color: #FBF9F6;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.product-image-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 85%;
    max-width: 85%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-image-container img {
    transform: translate(-50%, -50%) scale(1.08);
}

.product-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary);
    color: var(--white);
    font-family: var(--font-accent);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-card-price {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.btn-add-cart-icon {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart-icon:hover {
    background-color: var(--gold);
    transform: scale(1.1);
}

/* 6. TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--white);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 300px;
    border-left: 4px solid var(--primary);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left-color: var(--success);
}

.toast-error {
    border-left-color: var(--error);
}

/* 7. CART SIDEBAR (DRAWER)
   ========================================================================== */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(61, 26, 92, 0.4);
    backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.cart-drawer-open .cart-drawer-overlay {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background-color: var(--white);
    z-index: 2000;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer-open .cart-drawer {
    transform: translateX(0);
}

.cart-drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-drawer-title {
    font-size: 1.5rem;
}

.cart-drawer-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.cart-drawer-close:hover {
    color: var(--primary);
}

.cart-drawer-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-drawer-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    align-items: center;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    background-color: #FBF9F6;
    border-radius: var(--radius-sm);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.cart-qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    max-width: 90px;
}

.cart-qty-btn {
    background: none;
    border: none;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 0.9rem;
}

.cart-qty-input {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 0.85rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.cart-item-remove:hover {
    color: var(--error);
}

.cart-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-light);
    background-color: #FAF8F5;
}

.cart-drawer-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.cart-drawer-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* 8. FOOTER
   ========================================================================== */
.footer {
    background-color: var(--primary);
    color: var(--white);
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col h4 {
    color: var(--gold);
    font-family: var(--font-accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 1.5rem;
}

.footer-about img {
    height: 50px;
    margin-bottom: 1.5rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    max-width: 280px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-socials a {
    background-color: rgba(255, 255, 255, 0.08);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
}

.footer-socials a:hover {
    background-color: var(--gold);
    transform: translateY(-2px);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 0.85rem;
    flex-grow: 1;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.4);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--gold);
}

.footer-tagline {
    border-top: 1.5px solid rgba(201, 169, 110, 0.2);
    border-bottom: 1.5px solid rgba(201, 169, 110, 0.2);
    padding: 1.5rem 0;
    text-align: center;
    font-family: var(--font-accent);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.footer-fda {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.footer-copyright {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}
