/* ============================= */
/*        RESET & GLOBAL        */
/* ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #fff;
    color: #111;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================= */
/*           HEADER             */
/* ============================= */

body,
html {
    margin: 0;
    padding: 0;
}

.site-header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 40px;
    padding: 0 20px;
    font-family: 'Poppins', sans-serif;
}

/* 🔵 Logo Zone */
.header-logo-outside {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 10px 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    white-space: nowrap;
    font-size: 1.2rem;
    color: #000;
}

.logo-text:hover {
    color: #ff6600;
    transition: color 0.3s ease;
}

/* 🟢 Menu Zone */
.header-menu {
    flex: 1 1 auto;
    justify-content: center;
    display: flex;
}

.menu-items {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-items li {
    position: relative;
    display: flex;
    align-items: center;
}

.menu-items li a {
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.menu-items i {
    margin-right: 6px;
    color: #0073aa;
    transition: color 0.3s ease;
}

.menu-items a:hover i {
    color: #ff6600;
}

.menu-items li a:hover {
    color: #0073aa;
}

/* 👤 Dropdown trigger */
.menu-dropdown {
    position: relative;
}

.menu-dropdown>a {
    font-weight: 600;
    text-decoration: none;
    padding: 10px;
    color: #333;
}

.menu-dropdown>a::after {
    content: " ▼";
    font-size: 12px;
    margin-left: 5px;
}

/* ✅ Dropdown principal */
.menu-dropdown .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    max-width: 90vw;
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow-wrap: break-word;
    word-break: break-word;
}

.menu-dropdown:hover .submenu {
    display: block;
}

/* ✅ Linkuri din submenu */
.menu-dropdown .submenu li {
    margin: 5px 0;
}

.menu-dropdown .submenu a {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

/* 🔧 Elimină complet hover/focus/active pe TOATE linkurile din dropdown */
.menu-dropdown .submenu a:hover,
.menu-dropdown .submenu a:focus,
.menu-dropdown .submenu a:active,
.menu-dropdown .submenu-right a:hover,
.menu-dropdown .submenu-right a:focus,
.menu-dropdown .submenu-right a:active {
    background-color: transparent;
    color: inherit;
    outline: none;
    box-shadow: none;
    border: none;
    cursor: default;
}

/* 🔁 Submenu lateral pentru admin */
.submenu-parent {
    position: relative;
}

.submenu-right {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 180px;
    background-color: #fff;
    padding: 10px;
    border-radius: 4px;
    z-index: 1000;
}

.submenu-parent:hover .submenu-right {
    display: block;
}

/* ✅ Linkuri din submenu lateral */
.submenu-right a {
    display: block;
    padding: 8px 12px;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

/* ✅ Hover & focus fără chenar albastru */
.submenu-right a:hover,
.submenu-right a:focus,
.submenu-right a:active {
    background-color: #f0f0f0;
    color: #000;
    outline: none;
    box-shadow: none;
    border: none;
}


/* 🔴 Utility Zone */
.header-utility {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
    padding-right: 20px;
    text-align: right;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-form input[type="text"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-form button {
    padding: 6px 10px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.search-form button:hover {
    background-color: #005177;
}

/* 🛒 Cart */
.cart-link {
    position: relative;
}

.cart-count {
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 5px;
}

/* 📱 Responsivitate */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-menu {
        margin-top: 10px;
    }

    .header-utility {
        margin-top: 10px;
        justify-content: center;
    }

    .menu-items {
        flex-direction: column;
        gap: 10px;
    }
}


/* ============================= */
/*         HERO SECTION         */
/* ============================= */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 80px 40px;
    background: #f9f9f9;
    flex-wrap: wrap;
}

.hero-left {
    flex: 1;
    max-width: 500px;
}

.hero-left h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #111;
}

.btn-red {
    background: #d94c4c;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s ease;
    text-transform: uppercase;
}

.btn-red:hover {
    background: #ff6600;
}

.hero-right {
    flex: 1;
    max-width: 400px;
    text-align: center;
}

.hero-right img {
    max-width: 300px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.hero-right img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* ============================= */
/*         PRODUSE GRID         */
/* ============================= */
.produse {
    padding: 60px 40px;
    text-align: center;
    background: #fdfdfd;
}

.produse h2 {
    font-size: 28px;
    margin-bottom: 40px;
    color: #111;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ============================= */
/*            CARDURI           */
/* ============================= */
.card {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex: 0 0 auto;
    min-width: 180px;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.card .btn {
    background: #d94c4c;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s ease;
}

.card .btn:hover {
    background: #ff6600;
}

/* ============================= */
/*          CATEGORII           */
/* ============================= */
.categorie {
    position: relative;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.categorie:hover {
    transform: translateY(-5px);
}

.categorie img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
}

.categorie h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.hover-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.categorie.coming-soon:hover .hover-label {
    opacity: 1;
}

/* ============================= */
/*         PLICURI PAGE         */
/* ============================= */
.plicuri-page-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    font-family: 'Cinzel Decorative', cursive;
    color: #ff6f00;
    background: #fff3e0;
    padding: 15px 30px;
    border-radius: 50px;
    margin: 30px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: fit-content;
}

.plicuri-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.plicuri-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.plicuri-card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.plicuri-title {
    font-size: 18px;
    margin: 10px 0;
    color: #333;
}

.plicuri-price {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.plicuri-card.opened {
    display: none;
}

.plicuri-card.highlighted {
    border: 2px solid #ff6f00;
    box-shadow: 0 0 15px rgba(255, 111, 0, 0.2);
    transform: scale(1.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plicuri-card:hover {
    transform: translateY(-5px);
}

.plicuri-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
}

.plicuri-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.plicuri-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0073aa;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.plicuri-btn:hover {
    background-color: #005f8d;
}

.plicuri-pagination-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* ============================= */
/*         FLIP LOGIC           */
/* ============================= */
.card-flip {
    perspective: 1000px;
    width: 150px;
    height: 225px;
    margin: 0 auto;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.card-inner.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ccc;
}

.card-front img,
.card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-front {
    z-index: 2;
}

.card-back {
    transform: rotateY(180deg);
}

/* ============================= */
/*         OVERLAY FULL         */
/* ============================= */
#card-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#card-overlay.active {
    opacity: 1;
    visibility: visible;
}

.card-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-progress {
    margin-top: 20px;
    color: #fff;
    font-size: 18px;
}

/* ============================= */
/*         PAGINARE             */
/* ============================= */
.plicuri-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.plicuri-pagination a {
    padding: 8px 14px;
    background: #eee;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background 0.3s ease;
}

.plicuri-pagination a,
.plicuri-pagination span {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: #ff6600;
    /* portocaliu */
    color: #000;
    /* text negru */
    text-decoration: none;
    font-size: 14px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.plicuri-pagination .current {
    background-color: #000;
    /* negru */
    color: #fff;
    /* text alb */
    border: 1px solid #ff6600;
    font-weight: bold;
}

.plicuri-pagination a.active {
    background: #ff6f00;
    color: white;
}

.plicuri-pagination a:hover {
    background-color: #fff;
    /* negru */
    color: #000;
    /* text alb */
    border: 1px solid #ff6600;
    /* linie portocalie */
}

.plicuri-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.plicuri-pagination .page-numbers:hover {
    background: #f5f5f5;
}

.plicuri-pagination .page-numbers.current {
    background: #333;
    color: #fff;
    font-weight: bold;
    border-color: #333;
}

/* ============================= */
/*         RESPONSIVE GRID      */
/* ============================= */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-left,
    .hero-right {
        max-width: 100%;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .plicuri-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .plicuri-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .plicuri-grid {
        grid-template-columns: 1fr;
    }

    .btn-red {
        width: 100%;
        text-align: center;
    }

    .card {
        padding: 16px;
    }
}

/* ============================= */
/*         CUSTOM MENU          */
/* ============================= */
.custom-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .custom-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    .custom-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

/* ============================= */
/*         LANDING PAGE         */
/* ============================= */
.landing-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background: url('/wp-content/uploads/fundal.jpg') center/cover no-repeat;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    text-align: center;
}

.login-card h2 {
    margin-bottom: 10px;
}

.login-card p {
    margin-bottom: 20px;
}

/* ============================= */
/*     SEARCH FORM PLICURI      */
/* ============================= */

.plicuri-intro {
    background-color: #f0f8ff;
    /* albastru deschis */
    border: 1px solid #cce0f5;
    border-radius: 10px;
    padding: 25px;
    margin: 30px auto;
    max-width: 700px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.plicuri-intro p:first-child {
    font-size: 18px;
    font-weight: 500;
    color: #0073aa;
    /* albastru WordPress */
    margin-bottom: 15px;
}

.plicuri-intro strong {
    color: #0073aa;
    font-size: 17px;
}

.plicuri-intro ol {
    padding-left: 20px;
    margin-top: 10px;
}

.plicuri-intro ol li {
    margin-bottom: 8px;
}

.plicuri-search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
    max-width: 400px;
    width: 100%;
    flex-wrap: nowrap;
}

@media (max-width: 480px) {
    .plicuri-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .plicuri-search-form button {
        width: 100%;
    }
}

.plicuri-search-form input[type="text"] {
    flex: 1;
    min-width: 250px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.plicuri-search-form button {
    padding: 10px 20px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.plicuri-search-form button:hover {
    background-color: #e60000;
}

.nr-selector-form {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #333;
}

.nr-selector-form label {
    font-weight: 500;
    margin-right: 8px;
}

.nr-selector-form select {
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.nr-selector-form select:hover {
    border-color: #ff6600;
}


/* ============================= */
/*         LOGIN CUSTOM         */
/* ============================= */
.pagina-login-custom .woocommerce form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.pagina-login-custom .woocommerce input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.pagina-login-custom .woocommerce button {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.pagina-login-custom .woocommerce button:hover {
    background-color: #005f8d;
}

.page-template-pagina-login-custom .site-logo {
    display: none;
}

/* ============================= */
/*            FOOTER            */
/* ============================= */
.site-footer {
    background-color: #111;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    width: 100%;
    display: block;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo-img {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.footer-menu {
    margin-bottom: 20px;
}

.footer-menu a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    font-weight: 500;
}

.footer-menu a:hover {
    text-decoration: underline;
}

.site-footer a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}

.site-footer .footer-logo img {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.site-footer .footer-links {
    margin: 20px 0;
}

.site-footer .footer-links a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.site-footer .footer-links a:hover {
    color: #ffcc00;
}

.footer-copy {
    font-size: 14px;
}


/* ============================= */
/*  PAGE - WRAPPER               */
/* ============================= */

.page-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.page-wrapper h1 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 30px;
}

.page-content {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
}


/* ============================= */
/*  INFO - CUM FUNCTIONEAZA     */
/* ============================= */

.cum-functioneaza {
    background: #f9f9f9;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.cum-functioneaza-box {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* Titlu centrat și albastru */
.cum-functioneaza-box h3 {
    text-align: center;
    color: #0073aa;
    /* Albastru WordPress-style */
    font-size: 28px;
    margin-bottom: 30px;
}

.cum-functioneaza h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

/* Containerul celor 3 pași */
.steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Fiecare pas stilizat ca pe homepage */
.step {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step strong {
    display: block;
    font-size: 22px;
    color: #0073aa;
    margin-bottom: 10px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #0073aa;
}

.step p {
    font-size: 16px;
    color: #555;
}

/* ============================= */
/*        CONTACT FORM           */
/* ============================= */

.wpcf7 {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.wpcf7 label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.wpcf7 input,
.wpcf7 textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.wpcf7 input[type="submit"] {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #005f8d;
}

/* ============================= */
/*        PAGINA PROFIL         */
/* ============================= */

.pagina-profil {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    background-color: #f0f4f8;
    box-sizing: border-box;
}

.profil-wrapper {
    max-width: 800px;
    width: 100%;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ============================= */
/*         HEADER TITLU         */
/* ============================= */

.profil-wrapper h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #333;
    text-align: left;
    /* 🔁 aliniat la stânga */
}

/* ============================= */
/*     ZONA AVATAR + INFO       */
/* ============================= */

.profil-top {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Avatar în stânga */
.profil-avatar {
    flex: 0 0 180px;
}

.avatar-container {
    position: relative;
    display: inline-block;
}

.avatar img.custom-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: none;

    /* ✨ Umbre 3D stratificate */
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 6px 12px rgba(0, 0, 0, 0.1),
        0 12px 24px rgba(0, 0, 0, 0.05);

    transition: box-shadow 0.3s ease;
}

.avatar img.custom-avatar:hover {
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 16px 32px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.delete-avatar-form {
    position: absolute;
    top: -6px;
    right: -6px;
}

.delete-avatar-btn {
    position: absolute;
    top: 8px;
    /* 🔽 suprapus ușor peste colțul de sus */
    right: 8px;
    /* 🔽 suprapus ușor peste colțul din dreapta */
    width: 26px;
    height: 26px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 2px solid #e74c3c;
    color: #e74c3c;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 0 0 2px rgba(231, 76, 60, 0.2);
    transition: all 0.25s ease;
}

.delete-avatar-btn:hover {
    background-color: #fff;
    color: #c0392b;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(192, 57, 43, 0.3);
}

/* Formular avatar */
.avatar-form {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.avatar-title {
    font-weight: bold;
    color: #555;
    font-size: 0.95em;
}

.avatar-form input[type="file"] {
    width: 220px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    font-size: 0.9em;
    text-align: left;
}

.avatar-form input[type="submit"] {
    width: 160px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9em;
    text-align: center;
}

/* ============================= */
/*     ZONA INFORMATII CONT     */
/* ============================= */

.profil-info {
    flex: 1;
    background-color: #fff;
    /* 🔁 fundal alb elegant */
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px 25px;
    font-size: 15px;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.profil-info:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.profil-info ul.detalii {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profil-info ul.detalii li {
    margin-bottom: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.profil-info ul.detalii li:last-child {
    border-bottom: none;
}

.profil-info strong {
    display: inline-block;
    width: 140px;
    font-weight: 600;
    color: #000;
}


/* ============================= */
/*     ZONA EDITARE CONT        */
/* ============================= */

.profil-edit {
    background-color: #fff;
    /* 🔁 fundal alb elegant */
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.profil-edit:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.edit-account-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}

.edit-account-form h3 {
    grid-column: 1 / -1;
    margin-bottom: 20px;
    font-size: 1.4em;
    color: #004D98;
    text-align: center;
}

.edit-account-form p.full-width,
.edit-account-form fieldset {
    grid-column: 1 / -1;
}

.edit-account-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.edit-account-form input[type="text"],
.edit-account-form input[type="email"],
.edit-account-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    background-color: #fff;
    /* 🔁 fundal alb în input */
}

.edit-account-form small {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #777;
}

.edit-account-form fieldset {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.edit-account-form legend {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.password-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.password-row p {
    margin: 0;
}

/* ============================= */
/*       BUTON SAVE CHANGES     */
/* ============================= */

.save-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    grid-column: 1 / -1;
    background-color: #fff;
    color: #004D98;
    border: 1px solid #004D98;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.save-link:hover {
    background-color: #004D98;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ====================================== */
/*       TRIMITERE OFERTA - PROFIL        */
/* ===================================== */

.profil-oferta {
    margin: 40px 0;
    padding: 20px;
    background: #f4f9ff;
    border: 1px solid #cce;
    border-radius: 10px;
    text-align: center;
}

.profil-oferta h3 {
    margin-bottom: 10px;
    color: #0073aa;
}

.profil-oferta .oferta-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.profil-oferta .oferta-btn:hover {
    background: #005f8d;
}

/* ============================================== */
/*       SFARSIT TRIMITERE OFERTA - PROFIL        */
/* ============================================= */


/* ============================================== */
/*       PAGINA TRIMITERE OFERTA         */
/* ============================================= */
.cardzilla-oferta-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #f9fbff;
    border: 1px solid #dde;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.cardzilla-oferta-form h2 {
    margin-bottom: 10px;
    color: #0073aa;
    font-size: 24px;
}

.cardzilla-oferta-form .intro {
    margin-bottom: 20px;
    color: #555;
}

.cardzilla-oferta-form .form-group {
    margin-bottom: 15px;
}

.cardzilla-oferta-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #333;
}

.cardzilla-oferta-form input,
.cardzilla-oferta-form select,
.cardzilla-oferta-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.cardzilla-oferta-form button.oferta-btn {
    background: #0073aa;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cardzilla-oferta-form button.oferta-btn:hover {
    background: #005f8d;
}

.oferta-confirmare {
    background: #e6ffed;
    border: 1px solid #b2e2c9;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    color: #2e7d32;
    font-weight: bold;
}
/* ============================================== */
/*       SFARSIT PAGINA TRIMITERE OFERTA         */
/* ============================================= */

/* ============================================== */
/*                OFERTELE MELE                  */
/* ============================================= */
.ofertele-mele-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.filtru-butoane {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.buton-filtru {
    padding: 8px 14px;
    background: #3498db;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.buton-filtru:hover {
    background-color: #2980b9;
}

.lista-oferte {
    list-style: none;
    padding: 0;
}

.oferta-item {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
}

.oferta-item h4 {
    margin-top: 0;
    color: #0073aa;
}

.oferta-item p {
    margin: 5px 0;
}

.oferta-search-form {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.oferta-search-form input,
.oferta-search-form select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    flex: 1;
    min-width: 200px;
}

.oferta-search-form button {
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.oferta-search-form button:hover {
    background-color: #005f8d;
}

.oferta-paginare {
    margin-top: 30px;
    text-align: center;
}

.oferta-paginare .page-numbers {
    margin: 0 5px;
    padding: 6px 12px;
    background: #eee;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.oferta-paginare .current {
    background: #0073aa;
    color: #fff;
}

/* ============================================== */
/*       SFARSIT OFERTELE MELE                  */
/* ============================================= */

/* ============================= */
/*         BUTON LOGOUT         */
/* ============================= */

.profil-logout {
    text-align: center;
    margin-top: 20px;
}

.logout-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fff;
    color: #e74c3c;
    border: 1px solid #e74c3c;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1em;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.logout-link:hover {
    background-color: #e74c3c;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================= */
/*         POP-UP MESAJ         */
/* ============================= */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-box {
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    font-size: 1.1em;
    color: #333;
    text-align: center;
    max-width: 400px;
    position: relative;
}

.popup-box.success {
    border-left: 6px solid #28a745;
}

.popup-box.error {
    border-left: 6px solid #e74c3c;
}

.popup-box button {
    margin-top: 15px;
    padding: 6px 12px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.popup-box button:hover {
    background-color: #005f8d;
}

/* ============================= */
/*     MESAJ NEAUTENTIFICAT     */
/* ============================= */

.not-logged {
    text-align: center;
    font-size: 1.2em;
    color: #c00;
    margin-top: 50px;
}


/* ============================= */
/*         COMENZI             */
/* ============================= */

.comenzi-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.comanda-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    background: #fff;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    overflow-x: auto;      /* dacă vrei scroll orizontal */
    width: 1000px;        /* sau cât ai nevoie */
}

.comanda-header {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.comanda-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid #ddd;
}

.comanda-info {
    flex: 1;
    background: transparent;
}

.comanda-info a {
    color: #007bff;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.comanda-info a:hover {
    color: #0056b3;
    text-decoration: none;
}

.toggle-carduri {
    margin-top: 10px;
    padding: 6px 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.carduri-ascunse {
    display: none;
    margin-top: 15px;
    width: 100%;
    overflow-x: auto;
}

.carduri-rand {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 10px 0;
    overflow-x: auto;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.toggle-carduri,
.toggle-adrese {
    padding: 6px 12px;
    min-width: 140px;
    max-width: 200px;
    font-size: 14px;
}


.carduri-ascunse,
.order-adrese {
    transition: all 0.3s ease;
}

.order-adrese {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.order-adrese p {
    flex: 1;
    margin: 0;
    font-size: 14px;
}

.card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.card-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 8px;
}

.card-detalii h4 {
    font-size: 14px;
    margin: 0;
    text-align: center;
    font-weight: 600;
}

.card-detalii .raritate {
    font-size: 12px;
    margin-top: 4px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
}

/* Culori pentru fiecare raritate */
.raritate.base {
    color: #999;
}

.raritate.common {
    color: #4caf50;
}

.raritate.uncommon {
    color: #2196f3;
}

.raritate.rare {
    color: #673ab7;
}

.raritate.super-rare {
    color: #e91e63;
}

.raritate.legendary {
    color: #ff9800;
}

.raritate.necunoscut {
    color: #ccc;
    font-style: italic;
}


/* ============================= */
/*     BADGE RARITATE CARDURI    */
/* ============================= */

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 10px;
    background-color: #eee;
    color: #333;
}



/* =====================================================
   Procesare salvare status+notificare oferete -admin
======================================================== */

.tabel-oferte {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: #fff;
    color: #333;
}

.tabel-oferte th,
.tabel-oferte td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.tabel-oferte th {
    background: #f39c12;
    color: #000;
}

.tabel-oferte textarea {
    width: 100%;
    resize: vertical;
}
/* ===============================================================
   Sfarsit - Procesare salvare status+notificare oferete -admin
==================================================================== */