/* <-- GLOBAL - START --> */

:root {
    --color-bg: #fdf7f2;
    --color-bg-alt: #ffffff;
    --color-primary: #d57a8c;
    --color-primary-dark: #b35f72;
    --color-accent: #f1c27d;
    --color-text: #333333;
    --color-muted: #777777;
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.06);
    --radius-large: 18px;
    --radius-medium: 10px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
}

a {
    color: var(--color-primary-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* <-- GLOBAL - STOP --> */

/* <-- SEASONS-THEME - START --> */

/* IARNA – tonuri reci, albastru deschis + roz rece */
body.season-iarna {
    --color-bg: #f3f7fb;
    --color-bg-alt: #ffffff;
    --color-primary: #7b9fdc;
    --color-primary-dark: #567bb8;
    --color-accent: #cbe4ff;
}

/* PRIMĂVARA – verde crud + roz pal */
body.season-primavara {
    --color-bg: #f3fbf5;
    --color-bg-alt: #ffffff;
    --color-primary: #7ac68b;
    --color-primary-dark: #4da463;
    --color-accent: #f8d5e6;
}

/* VARA – galben cald + turcoaz */
body.season-vara {
    --color-bg: #fffaf1;
    --color-bg-alt: #ffffff;
    --color-primary: #f3a73b;
    --color-primary-dark: #d4881f;
    --color-accent: #79d7e3;
}

/* TOAMNA – portocaliu / ruginiu */
body.season-toamna {
    --color-bg: #fdf4eb;
    --color-bg-alt: #ffffff;
    --color-primary: #d67a3b;
    --color-primary-dark: #b25b22;
    --color-accent: #f0c087;
}

/* <-- SEASONS-THEME - STOP --> */

/* <-- ANTET - START --> */

.site-header {
    background: radial-gradient(circle at top left, #ffe3eb, #fdf7f2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Logo 3D Idea Store */

.brand-3d {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
}

.brand-3d-main {
    font-family: "Georgia", "Times New Roman", serif;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e46a92;            /* roz interior */
    -webkit-text-stroke: 2px #ffffff; /* contur alb */
    text-stroke: 2px #ffffff;
    text-shadow:
        0 2px 0 rgba(0,0,0,0.12),
        0 4px 10px rgba(0,0,0,0.25);
}

/* Stelute sclipitoare */

.brand-3d-sparkles {
    position: absolute;
    top: -4px;
    right: -8px;
    width: 42px;
    height: 24px;
    pointer-events: none;
}

.brand-3d-sparkles span {
    position: absolute;
    font-size: 0.7rem;
    color: #fff;
    text-shadow: 0 0 6px rgba(255,255,255,0.9);
}

.brand-3d-sparkles span:nth-child(1) {
    top: 0;
    left: 0;
}

.brand-3d-sparkles span:nth-child(2) {
    top: 8px;
    right: 0;
    font-size: 0.9rem;
}

.brand-3d-sparkles span:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
}

/* Meniu central */

.main-nav-wrapper {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.main-nav {
    background: rgba(255,255,255,0.85);
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    padding: 0.25rem 0.75rem;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 1.2rem;
    align-items: center;
    font-size: 0.95rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text);
    padding: 0.25rem 0.15rem;
    position: relative;
    white-space: nowrap;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.15rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e46a92, #f1c27d);
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.main-nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.main-nav a.nav-active {
    font-weight: 600;
}

.main-nav a.nav-active::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Dreapta: icoane Coș + Cont */

.header-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--color-text);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.icon-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

/* Responsive antet */

@media (max-width: 640px) {
    .site-header-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav-wrapper {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .main-nav {
        justify-content: center;
    }
}

/* <-- ANTET - STOP --> */

/* <-- SEASONS-DECOR - START --> */

/* facem containerul antetului referinta pentru pozitionare */
.site-header-inner {
    position: relative;
}

/* iconitele sezoniere animate, plasate prin JS */
.season-floating-icon {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    font-size: 1.1rem;
    transition: opacity 0.8s linear, transform 2.5s linear;
    will-change: opacity, transform, left, top;
}

@media (max-width: 640px) {
    .season-floating-icon {
        font-size: 0.9rem;
    }
}

/* fundaluri de sezon (raman cum erau) */

/* IARNA – tonuri reci */
body.season-iarna .site-header {
    background: radial-gradient(circle at top left, #e6f3ff, #f8fbff);
}

/* PRIMAVARA – verde crud + lumină */
body.season-primavara .site-header {
    background: radial-gradient(circle at top left, #e8f9ef, #f7fff9);
}

/* VARA – galben cald */
body.season-vara .site-header {
    background: radial-gradient(circle at top left, #fff2c9, #fffaf1);
}

/* TOAMNA – tonuri ruginii */
body.season-toamna .site-header {
    background: radial-gradient(circle at top left, #ffe7cf, #fdf4eb);
}

/* <-- SEASONS-DECOR - STOP --> */

/* <-- ANTET-ADMIN-BRAND - START --> */

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 600;
    font-size: 1rem;
}

.brand-pill {
    font-size: 0.7rem;
    text-transform: uppercase;
    background: #ffeef2;
    color: var(--color-primary-dark);
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    align-self: flex-start;
    margin-top: 0.1rem;
}

/* logo-ul sezonier (folosit și în frontend, și în admin) */
.brand-logo-img {
    display: block;
    height: 46px;   /* ajustează dacă logo-urile sunt prea mari/mici */
    width: auto;
}

/* <-- ANTET-ADMIN-BRAND - STOP --> */

.brand-logo-img {
    display: block;
    height: 46px;      /* ajustează după cum îți place */
    width: auto;
}


/* <-- MAIN-LAYOUT - START --> */

.site-main {
    padding: 1.5rem 0 2rem;
}

/* Hero */

.hero {
    background: var(--color-bg-alt);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
    padding: 2rem 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.hero-text {
    flex: 1 1 260px;
}

.hero-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 2rem;
    margin: 0 0 0.5rem;
}

.hero-subtitle {
    margin: 0 0 1rem;
    color: var(--color-muted);
}

.hero-badge {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary-dark);
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 0 0 220px;
    min-height: 160px;
    border-radius: var(--radius-large);
    background: radial-gradient(circle at top left, #ffe3eb, #fff5e6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-visual::before,
.hero-visual::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    border: 1px dashed rgba(213, 122, 140, 0.4);
}

.hero-visual::before {
    width: 80%;
    height: 70%;
}

.hero-visual::after {
    width: 55%;
    height: 45%;
}

.hero-visual-label {
    position: relative;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1rem;
    text-align: center;
    padding: 1rem 1.2rem;
    border-radius: 999px;
    background: white;
    box-shadow: var(--shadow-soft);
}

/* Titluri de secțiune */

.section-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.4rem;
    margin: 0 0 0.75rem;
}

.section-description {
    margin: 0 0 1.25rem;
    color: var(--color-muted);
}

/* <-- MAIN-LAYOUT - STOP --> */


/* <-- CARDURI-GRID - START --> */

.grid {
    display: grid;
    gap: 1rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
    background: var(--color-bg-alt);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    padding: 1rem 1.1rem;
}

.card-header {
    margin-bottom: 0.5rem;
}

.card-title {
    font-weight: 600;
    margin: 0 0 0.2rem;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--color-muted);
}

/* Badge-uri */

.badge-soft {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: #ffeef2;
    color: var(--color-primary-dark);
}

/* <-- CARDURI-GRID - STOP --> */


/* <-- BUTOANE - START --> */

.btn {
    display: inline-block;
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--color-text);
}

.btn-ghost:hover {
    background: #fff;
}

/* <-- BUTOANE - STOP --> */


/* <-- TABELE - START --> */

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-alt);
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.table th,
.table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    font-size: 0.9rem;
}

.table thead {
    background: #fbe9e7;
}

.table tbody tr:nth-child(even) {
    background: #fffaf7;
}

/* <-- TABELE - STOP --> */


/* <-- FORMULARE - START --> */

.form-group {
    margin-bottom: 0.9rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.form-control,
textarea {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    border: 1px solid #e0d3c7;
    font-size: 0.95rem;
}

textarea {
    resize: vertical;
}

/* <-- FORMULARE - STOP --> */


/* <-- MESAJE - START --> */

.alert {
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-error {
    background: #ffebee;
    color: #b71c1c;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.muted {
    color: var(--color-muted);
    font-size: 0.85rem;
}

/* <-- MESAJE - STOP --> */


/* <-- PAGINA-PRODUS - START --> */

.product-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-gallery {
    flex: 0 0 260px;
}

.product-gallery img {
    width: 100%;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    margin-bottom: 0.5rem;
}

.product-info {
    flex: 1 1 260px;
}

.price-label {
    font-size: 1.25rem;
    font-weight: 600;
}

/* <-- PAGINA-PRODUS - STOP --> */


/* <-- COS - START --> */

.cart-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* <-- COS - STOP --> */


/* <-- FOOTER - START --> */

.site-footer {
    border-top: 1px solid #f0e2d7;
    padding: 1.2rem 0;
    font-size: 0.85rem;
    color: var(--color-muted);
    text-align: center;
}

/* <-- FOOTER - STOP --> */


/* <-- RESPONSIVE-GENERAL - START --> */

@media (max-width: 768px) {
    .hero {
        padding: 1.5rem;
    }
}

/* <-- RESPONSIVE-GENERAL - STOP --> */
