/* Variabile globale - Tema Light (Implicită) */
:root {
    --bg-color: #faf9f6; /* Alb cald, perlat */
    --header-bg: #ffffff;
    --text-color: #2c2c2c;
    --accent-color: #d4af37; /* Auriu rafinat */
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --border-color: #eaeaea;
}

/* Suprascrierea variabilelor pentru Tema Dark */
body.dark-mode {
    --bg-color: #0f0f11; /* Negru intens, misterios */
    --header-bg: #1a1a1c;
    --text-color: #f0f0f0;
    --accent-color: #cda434; /* Auriu ajustat pentru contrast */
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    --border-color: #2a2a2c;
}

/* Resetări de bază */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Stilizare Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background-color: var(--header-bg);
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1.5px;
    font-family: 'Georgia', serif; /* Font cu serife pentru eleganță */
    cursor: pointer;
}

/* Navigație */
.navbar .nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.navbar a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

.navbar a:hover {
    color: var(--accent-color);
}

/* Acțiuni (Căutare + Dark Mode) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-container {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 0.4rem 1rem;
    background-color: var(--bg-color);
}

.search-input {
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-color);
    padding: 0.4rem;
    width: 220px;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-color);
}

.search-btn i {
    font-size: 18px;
}

.theme-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.theme-btn:hover {
    transform: scale(1.1);
    background-color: var(--border-color);
}

.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 10%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url(imp/aroma.jpg);
    background-size: cover;
    background-position: center;
    color: white;

    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: 'Georgia', serif;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.cta-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 30px;
    background-color: var(--accent-color);
    color: black;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.catalog {
    padding: 4rem 5%;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    font-family: 'Georgia', serif;
    color: var(--accent-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.product-card {
    width: 100%;
    background-color: var(--header-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.product-image {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* 🔥 schimbă asta */
}

/* Text produs */
.product-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-notes {
    font-size: 0.9rem;
    color: gray;
    margin-bottom: 0.5rem;
}

.product-price {
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Buton */
.add-to-cart-btn {
    width: 100%;
    padding: 0.6rem;
    border: none;
    border-radius: 20px;
    background-color: var(--accent-color);
    color: black;
    cursor: pointer;
    transition: 0.3s;
}

.add-to-cart-btn:hover {
    opacity: 0.85;
}

/* Secțiunea Despre Noi */
.about {
    padding: 6rem 10%;
    background-color: var(--header-bg);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-text p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    opacity: 0.9;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

/* Statistici în secțiunea About */
.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    font-family: 'Georgia', serif;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: gray;
}

/* Scroll Fin (Smooth Scroll) */
html {
    scroll-behavior: smooth;
}

/* Ajustare Product Grid pentru Responsivitate */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-container {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .navbar {
        display: none; /* Ideal ar fi un meniu burger aici ulterior */
    }
}

.product-link {
    text-decoration: none; /* Scoate linia de sub text */
    color: inherit;        /* Păstrează culoarea originală a textului */
    display: block;        /* Face tot spațiul link-ului clicabil */
}

.product-image img {
    transition: transform 0.3s ease;
}

.product-link:hover .product-image img {
    transform: scale(1.05); /* Efect vizual plăcut la hover pe link */
}