:root {
    /* --primary-color: #007bff; */
    --primary-color: #600e1c;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #ffffff;
    --dark-color: #343a40;
    /* --primary-color-hover: #0056b3; */
    --primary-color-hover: #9d2933;
    --border-form: #c7c5c5;
    --font-text: "Jost", sans-serif;
    --footer-color: #600e1c;
    --visiniu-color: #600e1c;
    --fundal-color: #f8f2f2;
    --button-hover: #310403;

    --font-base: Georgia, Arial, sans-serif;
    --font-winsome: "Winsome", Arial, sans-serif;
    --font-titluri: "Dancing Script", cursive;

    /* Status colors */
    --status-draft: #6c757d;
    --status-pending: #ffc107;
    --status-processing: #17a2b8;
    --status-completed: #28a745;
    --status-cancelled: #dc3545;

    /* Status background colors */
    --status-draft-bg: #f8f9fa;
    --status-pending-bg: #fff3cd;
    --status-processing-bg: #d1ecf1;
    --status-completed-bg: #d4edda;
    --status-cancelled-bg: #f8d7da;

    /* culori pentru grafice */
    --low-color: #10b981;
    --medium-color: #3b82f6;
    --high-color: #f59e0b;
    --premium-color: #E53935;
}


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

body {
    font-family: var(--font-base);
    background-color: var(--light-color);
    color: var(--dark-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Restaurare dimensiuni font default pentru headings */
body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {font-weight: bold;}

body h1 {font-size: 2em;}

body h2 {font-size: 1.5em;}

body h3 {font-size: 1.17em;}

body h4 {font-size: 1em;}

body h5 {font-size: 0.83em;}

body h6 {font-size: 0.67em;}

/* START stiluri pentru imagini multiple */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.preview-image,
.image-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
}

.image-item {
    position: relative;
}

.delete-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
}

/* SFARSIT stiluri pentru imagini multiple */

/* START elemente din swiper carousel*/
/* ========= CUSTOM STYLES ========= */

/* Custom săgeți mai mici cu background gri */
.swiper-button-next,
.swiper-button-prev {
    width: 30px !important;
    height: 30px !important;
    background-color: #666 !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 15px !important;
    color: white !important;
    font-weight: bold !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: #888 !important;
    transform: scale(1.1) !important;
}

.swiper-button-next {
    right: 10px !important;
}

.swiper-button-prev {
    left: 10px !important;
}

/* Custom pagination - pastile mai mari cu altă culoare */
.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background-color: var(--border-form) !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
    background-color: var(--dark-color) !important;
    transform: scale(1.2) !important;
}

.swiper-pagination-bullet:hover {
    background-color: var(--dark-color) !important;
}

/* SFARSIT elemente din swiper carousel*/

/* START stiluri pentru HOME */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.poza-home {
    background-image: url('../images/pozahome.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Parallax */

    /* Înălțime corectă */
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.poza-mare-logo {
    margin: 0 auto;
    width: 200px;
    margin-top: 2rem;
}

.poza-mare-logo img {
    width: 100%;
    filter: drop-shadow(20px 10px 15px rgba(0, 0, 0, 1));
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* sau 'contain' dacă vrei să vezi tot video-ul */
    object-position: center;
}

.about-home {
    /* max-width: 1200px; */
    margin: auto;
    padding: 1rem;
    display: flex;
    justify-content: center;
    flex-direction: column;
    background-color: var(--fundal-color);
}

.about-nume {
    color: var(--light-color);
    font-family: var(--font-titluri);
    font-size: 4rem;
    display: block;
    filter: drop-shadow(20px 10px 15px rgba(0, 0, 0, 1));
    text-align: center;
}

.aboutus-sec {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin: auto;
}

.about-content {
    display: grid;
    gap: 1rem;
    place-items: center;
    color: var(--secundary-color)
}

.about-content p {
    font-style: italic;
    font-weight: 400;
}

.about-img {
    position: relative;
    top: -80px;
    width: 400px;
    margin: auto;
}

.about-img img {
    width: 100%;
    margin: auto;
}

.about-ghirlanda {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.buton-descopera {
    width: 200px;
    background-color: var(--fundal-color) !important;
    color: var(--visiniu-color) !important;
    font-weight: 800;
    font-family: var(--font-titluri);
    font-size: 2rem;
    height: 70px !important;
    transition: all 0.3s ease;
}

.buton-descopera:hover {
    background-color: var(--visiniu-color) !important;
    color: var(--light-color) !important;
}

.about-ghirlanda img {
    color: var(--visiniu-color);
    mix-blend-mode: color;
    pointer-events: none;
}

.about-ghirlanda::after,
.about-ghirlanda::before {
    display: inline-block;
    content: '';
    width: 100px;
    height: 2px;
    background-color: var(--visiniu-color);
}

.font-titlu {
    font-family: var(--font-titluri);
    font-size: 3rem;
    text-align: center;
}

.contact-holder {
    display: flex;
    justify-content: space-around;
    /* margin-top: 1rem; */
    width: 100%;
    color: var(--secondary-color)
}

.contact-holder-items {
    display: grid;
    gap: 0.5rem;
    place-items: center;
}

.contact-holder-items i {
    font-size: 2rem;
}

.contact-holder h2 {
    font-size: 1.8rem;
    color: var(--visiniu-color);
    font-family: var(--font-titluri);
}

.contact-holder-items span {
    font-size: 1.5rem;
    font-style: italic;
}

.linia-verticala {
    width: 2px;
    height: 100%;
    background-color: var(--secondary-color);
    margin: 0 1rem;
}

.crame-container {
    /* max-width: 1200px; */
    margin: auto;
    padding: 6rem;
    background-image: url('../images/fundal-crame.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.crame-container h2 {
    font-family: var(--font-titluri);
    font-size: 3rem;
    color: var(--light-color);
    margin-bottom: 2rem;
    text-align: center;
}

.crama {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Exact 50%-50% */
    gap: 2rem;
    margin-bottom: 3rem;
    background-color: var(--light-color);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.crama-imagini {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.crama img {
    width: 100%;
}

.crama-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.crama-content h2 {
    font-family: var(--font-titluri);
    font-size: 2rem;
    color: var(--visiniu-color);
}

.crama-content p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* Număr de rânduri */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: calc(1.5em * 4);
    /* 4 rânduri × line-height */
    margin-block: auto;
    font-style: italic;
}

.crama-content .button {
    margin-bottom: 0px;
}

.crama-content-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.crama-content-details h2 {
    font-family: var(--font-titluri);
    font-size: 2rem;
    color: var(--visiniu-color);
}

.crama-content-details p {
    font-style: italic;
}

.engros-container {
    /* max-width: 1200px; */
    margin: auto;
    padding: 1rem;
    background-image: url('../images/engros.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.engros-container h2 {
    font-family: var(--font-titluri);
    font-size: 3rem;
    color: var(--light-color);
    margin-bottom: 2rem;
    text-align: center;
}

.engros {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    overflow: hidden;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
    padding: 2rem;
    place-items: center;
}

.engro-imagini {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.engros img {
    width: 100%;
}

.engro-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.engro-content p {
    color: var(--light-color);
    font-style: italic;
    font-size: 1.2rem;
}

.cele-mai-vandute {
    background-image:
        linear-gradient(rgba(248, 242, 242, 0.6),
            /* culoare #f8f2f2 cu 60% transparență */
            rgba(248, 242, 242, 0.6)),
        url('../images/poza4.webp');

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    background-attachment: fixed;

    min-height: 80vh;
    padding: 1rem;
    /* display: grid; */
}


.cele-mai-vandute h2 {
    font-family: var(--font-titluri);
    font-size: 3rem;
    color: var(--visiniu-color);
}

/* SFARSIT stiluri pentru HOME */
/* Container card */
/* Stiluri comune pentru ambele pagini (login și register) */
/* Card container */

.log-reg-container {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    width: 100vw;
    height: 100vh;

}

.login-card {
    background-color: var(--light-color);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

/* Logo */

.login-card .logo {
    text-align: center;
    margin-bottom: 15px;
    background-color: var(--visiniu-color);
    display: flex;
    justify-content: center;
    padding-block: 10px;
}

/* Labels */

.login-card .block {
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

/* Input fields */

.login-card input[type="text"],
.login-card input[type="email"],
.login-card input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin-top: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-form);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.login-card input:focus {
    border-color: var(--visiniu-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--visiniu-rgb, 66, 153, 225), 0.1);
}

/* Terms & Conditions checkbox */

.login-card .terms-checkbox {
    display: flex;
    align-items: flex-start;
    margin: 20px 0;
    gap: 10px;
}

.login-card .terms-checkbox input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
}

.login-card .terms-checkbox label {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #666;
}

.login-card .terms-link {
    color: var(--visiniu-color);
    text-decoration: none;
    transition: color 0.2s;
}

.login-card .terms-link:hover {
    text-decoration: underline;
    color: #2b6cb0;
}

/* Butoane */

.login-card .register-button,
.login-card button[type="submit"] {
    width: auto;
    min-width: 120px;
    padding: 12px 24px;
    background-color: var(--visiniu-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    white-space: nowrap;
}

.login-card .register-button:hover,
.login-card button[type="submit"]:hover {
    background-color: #2b6cb0;
    /* Versiune mai închisă */
    transform: translateY(-2px);
}

/* Link-uri */

.login-card .register-link {
    color: var(--visiniu-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.login-card .register-link:hover {
    text-decoration: underline;
    color: #2b6cb0;
}

/* Validation errors */

.login-card .validation-errors {
    background-color: #fee;
    border: 1px solid #f99;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.login-card .validation-errors ul {
    margin: 0;
    padding-left: 20px;
}

/* Responsive design */

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
        margin: 20px;
        max-width: none;
    }

    .login-card .flex.items-center.justify-end {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .login-card .register-button {
        width: 100%;
        margin-left: 0 !important;
    }

    .login-card .register-link {
        text-align: center;
        display: block;
    }
}

/* Spacing between form fields */

.login-card .mt-4 {
    margin-top: 1rem;
}

/* Checkbox styling (for remember me and terms) */

.login-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--visiniu-color);
    cursor: pointer;
}

/* Message de status (pentru session status) */

.login-card .mb-4.font-medium.text-sm.text-green-600 {
    background-color: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* SFARSIT LOGIN Form */


.icons:hover {
    cursor: pointer;
}

.icons {
    font-size: 1.5rem;
    padding: 5px;
    display: inline-block;
}

.mobil-iconite {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-menu {
    display: none;
    position: absolute;
    right: 0;
    margin-top: -0.5rem;
    width: fit-content;
    background-color: var(--light-color);
    border: 1px solid var(--border-form);
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 12;
    flex-direction: column;
    /* padding: 1rem; */
}

.user-menu a {
    white-space: nowrap;
}

.user-menu-wrapper {
    position: relative;
}

.user-menu-wrapper span {
    color: var(--light-color);
}

.user-menu-button,
.user-menu a,
.user-menu button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    color: var(--text-color);
    background: none;
    border: none;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.user-menu-button:focus {
    outline: none;
}

/* Hover / focus */
.user-menu a:hover,
.user-menu button:hover,
.user-menu a:focus,
.user-menu button:focus {
    background-color: var(--border-form);
    outline: none;
}

.user-menu-button span {
    margin-left: 0.25rem;
}

.desktop-menu {
    background-color: black;
    padding: 10px 0;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
}

nav {
    display: flex;
}

.desktop-menu nav {
    gap: 1rem;

}

.desktop-menu nav a {
    position: relative;
    font-weight: 600;
    font: 1rem;
    color: var(--light-color);
    transition: background-color 0.3s ease;
}

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

.desktop-menu nav a:hover::after {
    width: 80%;
}

header i {
    font-size: 24px;
    color: var(--light-color);
    margin-right: 5px;
    position: relative;
}

.desktop-menu i:hover {
    cursor: pointer;
}

/* .desktop-menu img {
  width: 150px;
} */

.container-iconite {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.container-iconite a {
    display: grid;
}

/* Meniu mobil */

.mobile-menu {
    width: 100%;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: black;
}

.mobile-header {
    display: flex;
    margin-top: 10px;
    width: 100%;
    justify-content: space-evenly;
    margin: 10px auto;
    align-items: center;
}

/* .mobile-header img {
  width: 150px;
} */

.mobile-links {
    display: grid;
    place-items: center;
    width: 100%;
}

.mobile-menu>nav {
    display: flex;
    flex-direction: column;
    align-items: left;
    width: 100%;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.mobile-menu nav a {
    font-weight: 600;
    font: 1rem;
    color: var(--light-color);
    padding: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.search-form {
    min-width: 200px;
    width: 80%;
    display: flex;
    align-items: center;
    /* dacă ai elemente în interiorul form-ului */
    margin: 0;
}

.search-input {
    width: 100%;
}

.search-wrapper {
    position: relative;
    width: 100%;
    margin: 0 0.5rem;
    display: flex;
    gap: 5px;
}

.search-wrapper .ri-search-line {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    pointer-events: none;
    /* să nu blocheze clickul în input */
}

#cart-icon {
    position: relative;
}

.cart-number,
.wishlist-number {
    position: absolute;
    background-color: var(--success-color);
    border-radius: 50%;
    left: 15px;
    top: -5px;
    width: 25px;
    height: 25px;
    text-align: center;
    color: var(--light-color);
    font-size: 1.2rem;
}

.opacity-50 {
    opacity: 50;
}

#contactus-form {
    display: flex;
    flex-direction: column;
    margin: auto;
    max-width: 600px;
    padding: 1rem;
}

#contact-form {
    display: grid;
    gap: 1rem;
    grid-template-columns: 500px 1fr;
    width: 100%;
    margin: auto;
    padding: 1rem;
}

.client-information {
    display: flex;
    flex-direction: column;
}

/* #contact-form h3  {
    margin-block: 1.5rem;
    color: var(--dark-color);
} */

.input-container {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-container input,
.input-container textarea {
    width: 100%;
    padding: 1.2rem 0.5rem 0.5rem;
    font-size: 1rem;
    border: 2px solid var(--secondary-color);
    font-family: inherit;
    z-index: 1;
    background: none;
    outline: none;
    resize: vertical;
}

.input-container label {
    position: absolute;
    top: 1rem;
    left: 0.5rem;
    background: var(--light-color);
    padding: 0 0.25rem;
    color: var(--secondary-color);
    font-size: 1rem;
    transition: 0.2s ease all;
    pointer-events: none;
    z-index: 2;
}

/* Plasare sus când inputul e focus sau conține text */

.input-container input:focus+label,
.input-container input:not(:placeholder-shown)+label,
.input-container textarea:focus+label,
.input-container textarea:not(:placeholder-shown)+label {
    top: -0.6rem;
    font-size: 0.9rem;
    /* color: #333; */
}

/* Efect de „întrerupere” în border */

.input-container input:focus,
.input-container textarea:focus {
    border-color: var(--primary-color);
}

.input-container input:focus+label,
.input-container textarea:focus+label {
    background-color: var(--light-color);
}

.input-container button {
    min-width: 200px;
}

/* Buton */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 0 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    white-space: nowrap;
    height: 40px;
    box-sizing: border-box;
    text-decoration: none;
}

.button:hover {
    background-color: var(--button-hover);
}

.button.grey {
    background-color: var(--secondary-color);
}

.button.grey:hover {
    background-color: var(--dark-color);
}

.button.blue {
    background-color: var(--info-color);
}

.button.blue:hover {
    background-color: var(--dark-color);
}

.button.red {
    background-color: var(--danger-color);
}

/* Stiluri de bază pentru alert-box */
/* Varianta pentru success */

.alert-box.alert-success {
    background-color: #d1fae5;
    /* bg-green-100 */
    color: #065f46;
    /* text-green-800 */
}

/* Varianta pentru error */

.alert-box.alert-error {
    background-color: #fee2e2;
    /* bg-red-100 */
    color: #991b1b;
    /* text-red-800 */
}

/* Ascunde alerta */

.alert-box.hidden {
    display: none;
}

.alert-box {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    max-width: 400px;
    opacity: 0;
    display: none;
    transition: opacity 0.3s ease;
}

/* stiluri acordeon */

.accordion-item {
    margin-bottom: 1rem;
}

.accordion-item p {
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    font-weight: 500;
}

.accordion-item p::after {
    content: "▼";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.accordion-item.active p::after {
    transform: translateY(-50%) rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease;
    padding-left: 1rem;
}

.accordion-item .accordion-content label {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 0.3rem;
    gap: 10px;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    /* suficient de mare pentru a afișa tot conținutul */
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: baseline;
}

.account-actions button {
    margin: unset;
}

input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease-in-out;
    vertical-align: middle;
    background-color: var(--light-color);
}

input[type="checkbox"]:checked {
    background-image: none;
    background-color: transparent;
    border: 2px solid #333;
    /* background-color: var(--light-color); */
}

input[type="checkbox"]:checked::after {
    content: "✔";
    color: var(--primary-color);
    /* background-color: var(--light-color); */
    font-size: 1.5rem;
    position: absolute;
    top: -12px;
}

.filter-form-action {
    display: grid;
    place-items: center;
    gap: 3px;
}

.filter-form-action>button {
    width: 100%;
}

/* sfrsit stiluri acordeon */

.shop-sidebar-container {
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-block: 0.5rem;
    gap: 1rem;
}

.shop-main {
    display: grid;
    margin: auto;
    position: relative;
    padding: 1rem;
}

.filterform {
    width: fit-content;
    position: absolute;
    top: 30px;
    z-index: 1000;
    background-color: var(--light-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.alege-filtre {
    border: 1px solid var(--border-form);
    padding: 0.5rem;
    position: relative;
    white-space: nowrap;
}

.alege-filtre:hover {
    cursor: pointer;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, 220px);
    gap: 1rem;
    width: 100%;
    flex-shrink: 0;
    place-content: space-evenly;
}

/* Stiluri existente rămân */

.product {
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: var(--light-color);
    overflow: hidden;
    /* border-radius: 8px; */
    transition: all 0.3s ease;
    height: 100%;
    /* min-height: 250px;  */
}

/* Border animat PE CONTAINERUL CU IMAGINE */

.product-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    /* Înălțime fixă pentru containerul imaginii */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: 0.7rem;
    border: 1px solid var(--border-form);
}

.product img {
    /* max-width: 90%; */
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-image-container:hover img {
    transform: scale(1.48);
}

/* Border animat */

.product-image-container::before,
.product-image-container::after {
    content: '';
    position: absolute;
    border: 1px solid transparent;
    width: 0;
    height: 0;
    transition:
        width 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0s,
        height 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0s;
    pointer-events: none;
    z-index: 2;
}

/* Linia de sus + stânga */

.product-image-container::before {
    top: 0;
    left: 0;
    border-top-color: var(--visiniu-color);
    border-left-color: var(--visiniu-color);
}

/* Linia de jos + dreapta */

.product-image-container::after {
    bottom: 0;
    right: 0;
    border-bottom-color: var(--visiniu-color);
    border-right-color: var(--visiniu-color);
    transition-delay: 0.4s, 0.4s;
}

.product-image-container:hover::before {
    width: 100%;
    height: 100%;
}

.product-image-container:hover::after {
    width: 100%;
    height: 100%;
}

/* Inimioara */

.inimioara {
    position: absolute;
    top: 20px;
    right: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: var(--light-color);
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    z-index: 3;
}

.inimioara:hover {
    transform: scale(1.1);
}

/* Container pentru actiuni - ASCUNS inițial */

.product-actions-overlay {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 10px 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 4;
}

/* Pe hover pe ARTICLE, afișează actiunile */

.product:hover .product-actions-overlay {
    transform: translateY(0);
}

/* Butoanele din overlay */

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--visiniu-color);
    transition: all 0.3s ease;
}

.action-btn i {
    font-size: 24px;
    width: 36px;
    height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--visiniu-color);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.action-btn:hover i {
    transform: rotate(360deg);
    background-color: var(--visiniu-color);
    color: var(--light-color);
}

.action-btn span {
    font-size: 0.8rem;
    font-weight: 500;
}


.product-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-left: 0.5rem;
    margin-top: auto;
    /* Împinge footer-ul în jos */
    /* border-top: 1px solid rgba(0, 0, 0, 0.05); */
}

.product .pret {
    font-weight: 800;
    font-size: 1rem;
    color: var(--dark-color);
    white-space: nowrap;
}

.pret-taiat {
    text-decoration: line-through;
    color: var(--secondary-color);
    font-weight: 400;
    font-size: 0.9rem;
}

.discount_span {
    color: var(--danger-color);
    font-weight: 700;
    display: block;
    font-size: 1rem;
    white-space: nowrap;
}

.new-badge {
    position: absolute;
    top: 20px;
    left: 0;
    background-color: var(--visiniu-color);
    color: white;
    font-weight: bold;
    padding-block: 4px;
    padding-left: 6px;
    padding-right: 20px;
    font-size: 12px;
    z-index: 10;

    /* triunghi în dreapta pentru forma de steag */
    clip-path: polygon(100% 0, 80% 48%, 100% 100%, 0% 100%, 0 50%, 0% 0%);

}

.product-description-span-titlu {
    color: black;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Butonul original de adăugare în coș - ascuns pe desktop, afișat pe mobil */

.cart-form {
    display: block;
}

.button-shop {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    padding: 12px;
    background-color: var(--visiniu-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-shop:hover {
    background-color: var(--dark-color);
}

.footer {
    display: grid;
    place-items: center;
    padding: 1rem;
    background-color: var(--footer-color);
    color: var(--light-color);
    margin-top: auto;
}

/* sectiunea CART */

.cart {
    display: grid;
    align-items: center;
    margin: auto;
    width: 90%;
}

.checkout-steps {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin-bottom: 2rem;
}

.checkout-steps__item.done {
    /* background: #e0ffe0; */
    color: #2d862d;
    border-bottom: 2px solid var(--success-color);
}

.checkout-steps__item.disabled {
    /* background: #f5f5f5; */
    color: #aaa;
    pointer-events: none;
    opacity: 0.6;
}

.checkout-steps__item {
    gap: 0.5rem;
    display: flex;
    /* padding-bottom: 1rem; */
    border-bottom: 2px solid transparent;
}

.checkout-steps__item-title,
.checkout-steps__item-number {
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
}

.checkout-steps__item-title>em {
    font-size: 0.875rem;
    font-weight: 400;
    font-style: normal;
    color: var(--secondary-color);
}

/* sfarsit sectiunea CART */

/* sectiunea SHOPPING-CART */

.shopping-cart {
    display: grid;
    grid-template-columns: 2fr 1fr;
    padding-bottom: 10px;
    gap: 1rem;
    width: 100%
}

/* START stiluri table generic */

.tabela_comenzi {
    border-collapse: collapse;
    min-width: 630px;
    max-width: 1200px;
    overflow-x: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: var(--light-color);
    margin: 10px auto;
}

.tabela_comenzi thead {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.tabela_comenzi th,
.tabela_comenzi td {
    padding: 0.5rem;
    text-align: left;
}

.tabela_comenzi th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.tabela_comenzi tbody tr {
    border-bottom: 1px solid var(--border-form);
    transition: background-color 0.2s;
}

.tabela_comenzi tbody tr:hover {
    background-color: var(--border-form);
}

/* SFARSIT TABLE GENERIG */
/* stiluri pentru Table */

.cart-table,
.wishlist-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    text-align: left;
    color: var(--dark-color);
}

.cart-table thead,
.wishlist-table thead {
    background-color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--light-color);
}

.cart-table th,
.cart-table td,
.wishlist-table th,
.wishlist-table td {
    padding: 0.5rem;
    /* text-align: left;
  vertical-align: middle; */
}

.cart-table th,
.wishlist-table th {
    color: var(--light-color);
    font-weight: 600;
    border-bottom: 1px solid var(--secondary-color);
}

.cart-table td,
.wishlist-table td {
    border-bottom: 1px solid var(--secondary-color);
}

.cart-table img,
.wishlist-table img {
    width: 100px;
    height: auto;
    object-fit: cover;
}

.shopping-cart__product-item__detail h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.shopping-cart__product-item__options {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.shopping-cart__product-price,
.shopping-cart__subtotal {
    font-weight: bold;
}

/* stiluri pentru butonele + si - din cart-ul de cumparaturi */

.qty-control {
    display: flex;
    align-items: center;
    justify-content: center;
    /* border: 1px solid var(--secondary-color);
  border-radius: 6px; */
    overflow: hidden;
    /* width: fit-content; */
}

.qty-control__number {
    width: 50px;
    border: none;
    text-align: center;
    font-size: 1rem;
    color: var(--dark-color);
    padding-inline: 0.5rem;
}

.qty-control__reduce,
.qty-control__increase {
    background-color: var(--primary-color);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.2s;
}

.qty-control__reduce:hover,
.qty-control__increase:hover {
    background-color: #e2e2e2;
}

.remove-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #fcebea;
    border-radius: 50%;
    transition: background 0.2s;
}

.remove-cart:hover {
    background-color: #f8d7da;
}

.remove-cart svg {
    fill: #e3342f;
}

/* sfarsit stiluri TABLE */
/* stiluri pentru partea din dreapta, TOTAL */

.checkout-form {
    width: 100%;
}

.shopping-cart__totals-wrapper,
.checkout__totals-wrapper {
    width: 100%;
    max-width: 300px;
    background: var(--light-color);
    border: 2px solid var(--secundary-color);
    flex-shrink: 0;
    align-self: flex-start;
}

.shopping-cart__totals {
    width: 100%;
}

.shopping-cart__totals h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-form);
    padding-bottom: 0.5rem;
}

.tabela-totaluri {
    width: 100%;
}

.tabela-totaluri th {
    display: block;
    white-space: nowrap;
    text-align: left;
    padding-right: 1rem;
}

.tabela-totaluri td {
    white-space: nowrap;
    text-align: left;
}

.display-only {
    border: none;
    background: transparent;
    display: inline;
    width: auto;
}

.cart-totals {
    width: 100%;
    border-collapse: collapse;
}

.cart-totals th,
.cart-totals td {
    text-align: left;
    padding: 0.3rem 0;
    font-size: 1rem;
    vertical-align: top;
}

.cart-totals th {
    font-weight: 600;
    width: 40%;
}

.cart-totals td {
    width: 60%;
}

.form-check {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    position: relative;
    gap: 10px;
}

.form-check-input {
    /* margin-right: 0.5rem; */
    transform: scale(1.1);
}

.form-check-label>p {
    font-weight: 300;
}

.cart-table__wrapper {
    width: 100%;
}

.button-wrapper {
    display: flex;
    justify-content: center;
}

/* sfarsit stiluri pentru partea din dreapta, TOTAL */

.checkbox-din-checkout {
    display: flex-start;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.checkbox-din-checkout input[type="checkbox"] {
    margin: auto;
    border: 2px solid var(--secondary-color);
}

.checkout__order-table th {
    text-align: left;
}

.checkout__order-table td {
    text-align: right;
    /* white-space: nowrap; */
}

/* sfarsit SHOPPING-CART */

.transport-span-profil {
    display: flex;
    margin: 2rem;
    justify-content: flex-end;
}

.stock-low {
    color: var(--danger-color);
}

.product-category {
    font-size: 0.7rem;
    color: var(--secondary-color);
}

/* stiluti pentru acordeon din pagina de order checkout*/

.checkout__payment-methods {
    margin-top: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;

}

.form-check:last-child {
    border-bottom: none;
}

.form-check-input_fill {
    position: absolute;
    left: 1rem;
    top: 0;
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-label {
    font-size: 0.95rem;
    color: var(--secondary-color);
    font-weight: 500;
    display: block;
    cursor: pointer;
}

.payment-method-title {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.option-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    padding-right: 1rem;
}

.form-check-input_fill:checked~.form-check-label .option-detail {
    max-height: 300px;
    margin-top: 0.5rem;
}

.policy-text {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #777;
    line-height: 1.6;
}

.policy-text a {
    color: #0066cc;
    text-decoration: underline;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-image {
    width: 80px;
}

.logo-text {
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: var(--footer-color);
}

/* START profilul utiligatorului logat */

.profile-container {
    max-width: 64rem;
    margin: 1rem auto;
    padding: 1.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profile-container h3 {
    color: var(--light-color);
    background-color: var(--secondary-color);
    padding: 0.5rem;
    font-size: large;
    font-weight: 500;
}

/* sfarsit profilul utilizatorului logat */
/* START pagina detalii produs */

.grid2 {
    display: grid;
    grid-template-columns: 300px 1fr;
    margin: 2rem auto;
    width: 90%;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.short_description {
    padding: 2rem;
}

.short_description h2 {
    font-size: 2rem;
    font-weight: 500;
}

.short_description p {
    padding-block: 20px;
}

/* SFARSIT pagina detalii produs */
/* sfarsit stiluri acordeon din pagina de order checkout */
/* START stiluri pentru PAGINATOR */

.pagination-container {
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
}

nav[role="navigation"] {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    /* width: 100%; */
}

nav[role="navigation"] .flex {
    display: flex !important;
    gap: 0.5rem;
    align-items: center;
}

nav[role="navigation"] .sm\:hidden {
    display: none !important;
}


nav[role="navigation"] .sm\:flex-1 {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

nav[role="navigation"] p.text-sm {
    color: #374151 !important;
    /* Tailwind text-gray-700 */
    font-size: 0.875rem;
    line-height: 1.25rem;
    opacity: 1 !important;
}

nav[role="navigation"] a,
nav[role="navigation"] span {
    display: inline-flex !important;
    /* padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: #ffffff;
    color: #374151;  */
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: all 0.15s ease-in-out;
    pointer-events: auto !important;
    -webkit-user-select: auto !important;
    user-select: auto !important;
    opacity: 1 !important;
}

nav[role="navigation"] a:hover {
    background-color: #f3f4f6;
    color: #6b7280;
}

.text-gray-500 {
    color: var(--border-form);
}

.text-red-500 {
    color: var(--visiniu-color);
}

nav[role="navigation"] .active span {
    background-color: var(--primary-color, #2563eb);
    color: #ffffff;
    border-color: var(--primary-color, #2563eb);
}

nav[role="navigation"] .disabled span {
    color: #d1d5db;
    border-color: #d1d5db;
    cursor: not-allowed;
    opacity: 0.5;
}

nav[role="navigation"] svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
    opacity: 1 !important;
}

/* SFARSIT stiluri pentru PAGINATOR */

.product-rating {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.back-stars {
    color: #d1d5db;
    position: relative;
    z-index: 1;
}

.front-stars {
    color: #facc15;
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    z-index: 2;
}

/* START pagina de detalii a produsului */

.product-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1rem;
}

.product-details-container .details-description {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--dark-color);
    white-space: pre-wrap;
}

.details-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    align-items: unset;
}

.details-form [type="number"] {
    width: 50px;
    border: 1px solid var(--secondary-color);
    text-align: center;
    font-size: 1rem;
    color: var(--dark-color);
    padding-inline: 0.5rem;
}

.details-form button {
    align-self: unset;
    width: 50%;
}

.detail-picture {
    position: relative;
    overflow: hidden;
}

.detail-picture img {
    width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    height: auto;
}

/* .detail-picture:hover img  {
    transform: scale(1.28);
} */

.details-inimioara {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* SFARSIT pagina de detalii a produsului */
/* stiluri pentru thankyou  */

.order-complete {
    max-width: 800px;
    margin: auto;
    padding: 2rem;
    border: 1px solid #eee;
    background: #fafafa;
    border-radius: 8px;
}

.order-complete__message {
    text-align: center;
    margin-bottom: 1rem;
}

.order-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.order-info__item {
    flex: 1 1 45%;
    background: #fff;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* .checkout-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
} */

.checkout__totals-wrapper {
    margin-top: 2rem;
    width: 90%;
    max-width: 500px;
    margin: 0 auto;
}

body .checkout__totals h3 {
    color: var(--secondary-color);
}

.checkout__totals table {
    width: 100%;
    border-collapse: collapse;
}

.checkout__totals th,
.checkout__totals td {
    padding: 0.5rem;
    text-align: left;
}

.checkout-cart-items {
    width: 100%
}

.checkout-cart-items tr:nth-child(even) {
    background: #f9f9f9;
}

/* sfarsit stiluri pentru thankyou */
/* START politica retur */

.retur {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    color: #111827;
    background: var(--light-color);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    padding: 28px;
    max-width: 900px;
    margin: 40px auto;
    line-height: 1.6;
}

.retur-section {
    margin-bottom: 24px;
}

.retur h2 {
    font-size: 18px;
    margin: 16px 0 8px;
    color: var(--primary-color);
}

.retur p {
    margin-bottom: 12px;
}

.retur-list,
.retur-steps {
    margin: 8px 0 12px 20px;
}

.retur-list li,
.retur-steps li {
    margin: 6px 0;
}

.retur-note {
    background: #fff7ed;
    border-left: 4px solid #f59e0b;
    padding: 12px 14px;
    border-radius: 8px;
    color: #92400e;
    font-size: 15px;
}

.retur-contact {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
    gap: 12px;
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px;
}

.retur-contact a {
    color: var(--primary-color);
    text-decoration: none;
}

.retur-contact a:hover {
    text-decoration: underline;
}

/* SFARSIT politica retur */

.footer .copyright {
    display: flex;
}

.footer .anpc-logos-footer {
    display: flex;
    gap: 1rem;
    padding-block: 8px;
}

.footer .copyright a {
    color: var(--border-form);
    padding-inline: 5px;
}

.footer .copyright p {
    text-align: center;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.footer-menu a {
    transition: 0.5s ease all;
    white-space: nowrap;
    color: var(--light-color);
}

.footer-menu a:hover {
    color: var(--secondary-color)
}

/* START politica de confidentialitate */

.confidentialitate {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    color: var(--dark-color);
    background: var(--light-color);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    padding: 28px;
    max-width: 900px;
    margin: 40px auto;
    line-height: 1.6;
}

.conf-section {
    margin-bottom: 24px;
}

.politica h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--primary-color);
    text-align: center;
}

.confidentialitate h2 {
    font-size: 18px;
    margin: 16px 0 8px;
    color: var(--primary-color);
}

.confidentialitate p {
    margin-bottom: 12px;
}

.conf-list {
    margin: 8px 0 12px 20px;
}

.conf-list li {
    margin: 6px 0;
}

.conf-contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px;
}

.conf-contact a {
    color: var(--primary-color);
    text-decoration: none;
}


.conf-contact a:hover {
    text-decoration: underline;
}

/* SFARSIT POLITICA DE CONFIDENTIALITATE */
/* START review */

.review-container,
.reviews-list {
    max-width: 800px;
    margin: auto;
    padding: 2rem;
}

.review-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.review-form {
    display: flex;
    flex-direction: column;
    /* gap: 1rem; */
}

.reviews {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 1rem;
}

.review {
    border-bottom: 1px solid var(--secondary-color);
}

.star-rating {
    display: flex;
    position: relative;
    font-size: 1.2rem;
    line-height: 1;
    gap: 5px;
    cursor: pointer;
}

.star {
    font-size: 2rem;
    color: var(--secondary-color);
}

.star.filled {
    color: gold;
}

.stars span {
    color: #ccc;
    font-size: 1.2rem;
}

.stars span.filled {
    color: gold;
}

.stelute {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.header-review {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* SFARSIT review */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #222;
    color: #fff;
    padding: 15px;
    z-index: 9999;
    text-align: center;
}

.cookie-banner p {
    padding-right: 0.5rem;
    margin: auto;
    font-size: 14px;
}

.cookie-buttons {
    margin-top: 10px;
}

.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
}

.cookie-modal-content {
    background: #fff;
    color: #000;
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    border-radius: 8px;
}

.cookie-modal.active {
    display: flex;
}

.logos-footer {
    display: flex;
}

.logos-footer img {
    width: auto;
    height: 45px;
    background-color: white;
    padding: 2px;
    border-radius: 5px;
}

/* SFARSIT cookies */

/* whatsapp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--success-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: transform 0.3s ease, background 0.3s ease;
}

.whatsapp-float:hover {
    background-color: var(--success-color);
    transform: scale(1.05);
}

.ri-whatsapp-fill {
    font-size: 1.5rem;
    color: var(--light-color)
}

.initial {
    place-content: flex-start;
    padding: 1rem;
}

.last-products-container {
    width: 100%;
    background-color: var(--light-color);
    padding: 1rem;

}

.last-products-container h2 {
    font-family: var(--font-titluri);
    font-size: 3rem;
    color: var(--visiniu-color);
}

.latest-product {
    display: grid;
    grid-template-columns: 3fr 5fr;
}

.latest-poza {
    width: 100px;
    height: unset;
}

.latest-text {
    position: relative;
}

.products-latest {
    width: 100%;
    grid-template-columns: repeat(auto-fit, 280px);
}

/* Responsive styles */

/* START stiluri grafic interval de preturi produse vandute */
.price-distribution-chart {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.chart-bar-wrapper {
    width: 100%;
    height: 30px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.chart-bar {
    height: 100%;
    background: linear-gradient(90deg, #4e73df 0%, #2e59d9 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.chart-bar:hover {
    background: linear-gradient(90deg, #2e59d9 0%, #224abe 100%);
    transform: scaleY(1.05);
}

.chart-bar-label {
    font-size: 0.875rem;
    color: #495057;
}

.chart-bar-container {
    transition: transform 0.2s;
}

.chart-bar-container:hover {
    transform: translateX(5px);
}

.text-sm {
    font-size: 0.875rem;
}

.price-distribution-info {
    background: #e3f2fd;
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 4px solid #2196f3;
}

.price-distribution-info p {
    margin: 0;
    font-size: 0.95rem;
}

/* SFARSIT stiluri grafic interval de preturi produse vandute */


/* START stiluri charts.js */
.chart-info {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding: 15px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.info-value {
    font-size: 18px;
    color: #1e293b;
    font-weight: 700;
}

/* Legenda */
.chart-legend {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.legend-color.low-price {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.legend-color.medium-price {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.legend-color.high-price {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.legend-text {
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

/* Wrapper pentru grafic vertical */
.vertical-chart-wrapper {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
    overflow-x: auto;
}

/* Graficul cu bare verticale */
.vertical-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 10px;
    height: 250px;
    /* padding: 20px 10px 0 10px; */
    /* min-width: 600px; */
}

/* Fiecare coloană */
.chart-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 50px;
}

/* Valoarea de deasupra barei */
.column-value {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    min-height: 20px;
}

/* Container pentru bara verticală */
.column-bar-container {
    position: relative;
    width: 100%;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, #f1f5f9 0%, transparent 100%);
    border-radius: 6px 6px 0 0;
}

/* Bara verticală */
.column-bar {
    width: 100%;
    border-radius: 6px 6px 0 0;
    transition: all 0.3s ease;
    animation: growBarVertical 0.8s ease-out forwards;
    transform-origin: bottom;
    cursor: pointer;
    position: relative;
}

@keyframes growBarVertical {
    from {
        height: 0;
    }

    to {
        height: var(--bar-height);
    }
}

.column-bar.price-low {
    background: linear-gradient(to top, var(--low-color) 0%, #34d399 100%);
    box-shadow: 0 -2px 8px rgba(16, 185, 129, 0.3);
}

.column-bar.price-medium {
    background: linear-gradient(to top, var(--medium-color) 0%, #60a5fa 100%);
    box-shadow: 0 -2px 8px rgba(59, 130, 246, 0.3);
}

.column-bar.price-high {
    background: linear-gradient(to top, var(--high-color) 0%, #fbbf24 100%);
    box-shadow: 0 -2px 8px rgba(245, 158, 11, 0.3);
}

.column-bar.price-premium {
    background: linear-gradient(to top, var(--premium-color) 0%, #e64340 100%);
    box-shadow: 0 -2px 8px rgba(245, 158, 11, 0.3);
}

.price-text-low {
    color: var(--low-color);
}

.price-text-medium {
    color: var(--medium-color);
}

.price-text-high {
    color: var(--high-color);
}

.price-text-premium {
    color: var(--premium-color);
}

/* .column-bar:hover {
    transform: scaleX(1.1);
    filter: brightness(1.1);
} */

/* Label-ul de sub bară */
.column-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    margin-top: 8px;
    text-align: center;
    writing-mode: horizontal-tb;
    max-width: 100%;
    word-wrap: break-word;
    line-height: 1.3;
    white-space: nowrap;
}

/* Rezumat */
.chart-summary {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border-radius: 8px;
    border: 1px solid #fbbf24;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
}

.summary-label {
    font-size: 13px;
    color: #78716c;
    font-weight: 500;
}

.summary-value {
    font-size: 20px;
    color: #78350f;
    font-weight: 700;
}

/* Mesaj fără date */
.no-data-message {
    padding: 40px;
    text-align: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 12px;
    border: 2px dashed #d1d5db;
}

.no-data-message p {
    color: #6b7280;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* Responsive pentru tablete */
@media (max-width: 768px) {
    .chart-info {
        flex-direction: column;
        gap: 15px;
    }

    .chart-legend {
        flex-direction: column;
        gap: 12px;
    }

    .vertical-chart {
        height: 220px;
        gap: 8px;
    }

    .column-bar-container {
        height: 180px;
    }

    .column-label {
        font-size: 10px;
        transform: rotate(-40deg);
        margin-top: 25px;
    }

    .chart-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Responsive pentru mobile */
@media (max-width: 480px) {
    .vertical-chart {
        height: 200px;
        gap: 5px;
        /* min-width: 500px; */
    }

    .column-bar-container {
        height: 160px;
    }

    .column-value {
        font-size: 12px;
    }

    .column-label {
        font-size: 9px;
    }
}

/* SFARSIT stiluri charts.js */

/* START stiluri ml */
/* SFARSIT stiluri ML */


@media (min-width: 900px) {
    .desktop-menu {
        display: flex;
    }

    #mobile-menu {
        display: none;
    }
}


@media (max-width: 899px) {
    .crame-container {
        padding: 5rem;
    }

    .cookie-banner a {
        margin: 0.5rem auto;
        display: block;
        width: 100px;
    }

    .desktop-menu {
        display: none;
    }

    #mobile-menu {
        display: grid;
    }

    #contact-form {
        grid-template-columns: 1fr;
        margin: 0 auto;
    }

    .shopping-cart {
        grid-template-columns: 1fr;
    }

    .shopping-cart__totals-wrapper {
        place-self: center;
        max-width: 90%;
        padding: unset;
    }

    .cart-table__wrapper {
        /* width: 90%; */
        place-self: center;
    }

    .cart-table {
        width: 100%;
    }
}


@media(max-width: 600px) {
    .crama {
        padding: 1rem;
    }

    .engros {
        padding: 1rem;
    }

    .crame-container {
        padding: 3rem;
    }

    .about-nume {
        font-size: 2.5rem;
    }

    main {
        padding: unset;
    }

    .cele-mai-vandute {
        background-image:
            linear-gradient(rgba(248, 242, 242, 0.6),
                /* culoare #f8f2f2 cu 60% transparență */
                rgba(248, 242, 242, 0.6)),
            url('../images/poza1-mobil.webp');
    }

    .footer .copyright {
        flex-direction: column;
        place-items: center;
    }

    .cart {
        margin: 0 auto;
    }

    .shopping-cart__subtotal {
        display: block;
    }

    .show-filtre {
        display: grid;
    }

    .product-details-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .review-container,
    .reviews-list {
        padding: 1rem;
    }

    .star {
        font-size: 1.2rem;
    }

    .details-form button {
        align-self: center;
        width: 80%;
    }

    .detail-picture img {
        width: 80%;
        height: auto;
        display: block;
        margin: auto;
    }

    .detail-picture .inimioara {
        right: 12%;
    }

    .alert {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        /* width: 90%; */
    }

    .contact-holder {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-holder-items {
        gap: unset;
    }

    .linia-verticala {
        display: none;
    }

    .about-img {
        width: 100%;
    }

    .products-latest {
        grid-template-columns: 1fr !important;
    }

    .poza-mare-logo {
        width: 200px;
    }
}

@media(max-width: 800px) {
    .crama {
        grid-template-columns: 1fr;

    }

    .crama-content h2 {
        text-align: center;
    }

    .engros {
        grid-template-columns: 1fr;

    }

    .engros-content h2 {
        text-align: center;
    }

    .engros-container {
        padding: 2rem;
    }

    .aboutus-sec {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .shopping-cart {
        margin: auto;
        width: 100%;
    }

    .cart-table__wrapper .cart-table__wrapper {
        margin: auto;
        width: 100%;
    }

    /* Ascunde antetul tabelului */
    .cart-table__wrapper .cart-table thead {
        display: none;
    }

    /* Fiecare rând devine block */
    .cart-table__wrapper .cart-table tbody tr {
        display: block;
        border-bottom: 1px solid var(--border-form);
        margin-bottom: 1rem;
        position: relative;
    }

    .cart-table__wrapper .cart-table td {
        border: none;
    }

    /* Toate celulele devin block */
    .cart-table__wrapper .cart-table tbody td:nth-child(4) {
        display: block;
    }

    /* Prima celulă - imaginea */
    .cart-table__wrapper .cart-table tbody td:nth-child(1) {
        float: left;
        margin: 0;
        padding: unset;
        padding-right: 0.5rem;
    }

    .cart-table__wrapper .cart-table tbody td:nth-child(1) img {
        width: 100px;
        height: auto;
        object-fit: cover;
        border-radius: 6px;

    }

    /* Butonul de ștergere */
    .cart-table__wrapper .cart-table td:has(form) {
        position: absolute;
        bottom: 40px;
        right: 0;
        width: auto;
        padding: 0.25rem;
    }

    .cart-table__wrapper .cart-table td:has(form) button {
        padding: 0.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 500px) {
    .crame-container {
        padding: 2rem;
    }

    .footer-menu {
        flex-direction: column;
        place-items: center;
        gap: 0.5rem;
    }

    .footer p {
        text-align: center;
    }

    .products {
        grid-template-columns: 1fr 1fr;
    }

    .product img {
        width: 80%;
        height: auto;
    }

    .product-description {
        width: 90%;
        margin: auto;
    }

    .checkout-steps {
        grid-template-columns: 1fr;
    }

    .checkout-steps__item-title {
        width: 70%;
        place-self: center;
    }

    .qty-control {
        margin-left: auto;
    }




    .checkout__totals-wrapper {
        margin: auto;
        width: 100%;
        padding: 0;
    }

    #contact-form {
        padding: 0;
    }

    .cart-table.checkout__order-table th {
        border: none;
        padding: unset;
    }

    .cart-table.checkout__order-table tr {
        margin-bottom: unset;
    }

    .wishlist-table thead {
        display: none;
    }

    .wishlist-table tr {
        display: grid;
    }

    .wishlist-table img {
        width: 130px;
        margin: auto;
    }

    .filters-active li {
        display: block;
        margin-bottom: 5px;
    }

    /* .products-latest {
        grid-template-columns: 1fr;
    } */

    /* .latest-product {
        grid-template-columns: 1fr;
        place-items: center;

    } */
    .latest-product .product-footer {
        display: grid;
    }

    .discount_span {
        white-space: unset;
    }

    .engros-container {
        padding: 1rem;
    }
}


/* START ultimele stiluri pentru grafice */

.page-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}


.server-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 1rem;
}



.stat-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 20px 25px;
    /* transition: transform 0.2s ease; */
}


/* .stat-card:hover  {
    transform: translateY(-3px);
} */


.stat-card h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #555;
}


.bar-container {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}


.bar {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-in-out;
}


.bar.used {
    background: linear-gradient(90deg, #ff6384, #ff8fa3);
}


.bar.storage {
    background: linear-gradient(90deg, #36a2eb, #5ec8ff);
}


.stat-info {
    display: flex;
    justify-content: space-evenly;
    font-size: 0.9rem;
    color: #666;
}


.estimate {
    font-size: 1rem;
    color: #444;
}


.big-number {
    display: block;
    font-size: 1.6rem;
    color: #2b7a0b;
    font-weight: bold;
    margin-top: 8px;
}

/* SFARSIT ultimele stiluri pentru grafice */
/* stiluri pentru alerte */







.alert {
    padding: 12px 20px;
    margin: 20px 0;
    border-radius: 6px;
    text-align: center;
    position: fixed;
    top: 20px;
    right: 0;
    transform: translateX(-50%);
    width: auto;
    max-width: 500px;
    z-index: 9999;
    transition: opacity 0.5s ease;
}


.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}


.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}



a {
    text-decoration: none;
    color: var(--dark-color);
}


a:hover {
    cursor: pointer;
}


.admin-container {
    display: flex;
    flex-direction: row;
    width: 100%;
}


.hidden {
    display: none;
}


.aside-admin {
    width: 200px;
    transition: width 0.3s ease;
    background-color: var(--secondary-color);
    color: var(--light-color);
    min-height: 100vh;
    /* overflow: hidden; */
}


.aside-admin.collapsed {
    width: 60px;
}


.admin-burger {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    overflow: hidden;
}


.aside-admin header i {
    color: var(--light-color);
    background: none;
    background-color: transparent;
    font-size: 1.6rem;
}


.aside-admin img {
    max-width: 100px;
    height: auto;
    transition: transform 0.3s ease;
}

/* Menu list */



.aside-admin ul {
    list-style: none;
    padding: 0;
    margin: 0;
    /* padding-right: 10px; */
}

/* Icon */



.aside-admin li i {
    font-size: 1.6rem;
    color: var(--light-color);
    flex-shrink: 0;
    padding-left: 1rem;
}


.aside-admin .sidebar-btn span {
    padding-right: 10px;
}

/* Stil de tooltip doar când sidebar-ul e collapsed */



.aside-admin.collapsed .sidebar-btn {
    position: relative;
}


.aside-admin ul li a.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    width: 100%;
    text-align: left;
    /* padding: 0.75rem 1rem; */
    transition: background 0.2s ease;
    position: relative;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
}


.aside-admin ul li a.sidebar-btn:hover {
    background: var(--dark-color);
}


.aside-admin.collapsed a.sidebar-btn span {
    opacity: 0;
    pointer-events: none;
    width: 0;
}


.aside-admin.collapsed button {
    opacity: 0;
    pointer-events: none;
    width: 0;
}

/* Tooltip */



.aside-admin.collapsed a.sidebar-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--light-color);
    padding: 0.3rem 0.6rem;
    border-radius: 0.3rem;
    white-space: nowrap;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    margin-left: 0.5rem;
    z-index: 10;
}


.aside-admin.collapsed a.sidebar-btn:hover::after {
    opacity: 1;
}


.apply-discount-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* padding: 4px;
    border: 2px solid var(--border-form); */
}

.butoane {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
}

.button-logout {
    width: 100%;
}

/* Butonul Delete */


.button.delete {
    background-color: var(--danger-color);
}


.button.delete:hover {
    background-color: var(--dark-color);
}


.butoane a.icon-button {
    min-width: unset;
    width: 36px;
}

.per_page {
    border: unset;
}

.per-page-form {
    display: block;
    white-space: nowrap;
    border: 1px solid var(--border-form);
}

.per-page-form .auto-submit {
    height: 40px;
}

/* Stiluri generale pentru tabel */



main {
    flex: 1;
    /* padding: 1rem; */
    /* max-width: 1200px; */
    margin: 0 auto;
    width: 100%;
}


h1 {
    color: var(--dark-color);
    font-size: 1.8rem;
}


.ecran-60 {
    width: 60%;
    padding: 1rem;
    /* margin: 0 auto; */
}


.ecran-80 {
    width: 80%;
    padding: 1rem;
    /* margin: 0 auto; */
}


.tabela_mare {
    width: 100%;
}


.tabela_mica {
    width: 50%;
}

/* .admin-tabela  {
    width: 100%;
} */

.tabela_mare,
.tabela_mica,
.tabela-comenzi {
    border-collapse: collapse;
    min-width: 600px;
    width: 100%;
    max-width: 1200px;
    overflow-x: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: var(--light-color);
    /* margin: 1rem auto; */
}


.tabela_mare thead,
.tabela_mica thead,
.tabela-comenzi thead {
    background-color: var(--primary-color);
    color: var(--light-color);
    white-space: nowrap;
}


.tabela_mare th,
.tabela_mare td,
.tabela_mica th,
.tabela_mica td,
.tabela-comenzi th,
.tabela-comenzi td {
    padding: 0.5rem;
    text-align: left;
}


.tabela_mare th,
.tabela_mica th,
.tabela-comenzi th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}


.tabela_mare tbody tr,
.tabela_mica tbody tr,
.tabela-comenzi tbody tr {
    border-bottom: 1px solid var(--border-form);
    transition: background-color 0.2s;
    /* white-space: nowrap; */
}


.tabela_mare tbody tr:hover,
.tabela_mica tbody tr:hover,
.tabela-comenzi tbody tr:hover {
    background-color: var(--border-form);
}


.tabela_statistici {
    min-width: unset;
}


.edit-create-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: var(--light-color);
    min-width: 300px;
}


.input-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

}


.input-form label {
    font-weight: 500;
    color: var(--dark-color);
}


.input-form input,
.input-form select,
.input-form textarea {
    padding: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
    font-size: 1rem;
    border: 1px solid var(--border-form);
    font-family: inherit;
}


.input-form textarea {
    resize: vertical;
}

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


.custom-file-upload {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}


.custom-file-upload:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
}


.custom-file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}


.file-upload-text {
    color: var(--primary-color);
    font-weight: 500;
}


.file-name {
    color: #666;
    font-size: 0.9rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}


.image-preview {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}


.preview-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    border: 2px solid #ddd;
    padding: 4px;
    object-fit: cover;
    /* Asigură că imaginea se potrivește bine în container */
}


.error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}


.product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    /* Dimensiune mică pentru div */
    height: 70px;
    overflow: hidden;
}


.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Imaginea se potrivește în div fără distorsiuni */
    border-radius: 4px;
    border: 1px solid #ddd;
}


.no-image {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

/* formularul pentru discount in admin produse */



.admin-actiuni-products {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}


.filter-header {
    font-size: 1rem;
    font-weight: 500;
    color: var(--light-color);
    margin-top: 1rem;
    text-align: center;
    border-top: 2px solid var(--light-color);
    border-bottom: 2px solid var(--light-color);
}

/* sfrsit stiluri acordeon */
/* tabela de produse variant */





.tabela_variante {
    /* width: 100%; */
    border-collapse: collapse;
    margin: auto;
    background-color: #f9f9f9;
}


.tabela_variante th,
.tabela_variante td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
    color: var(--dark-color);
}


.tabela_variante th {
    background-color: #e0e0e0;
}


.tabela_variante tr:hover {
    background-color: #f5f5f5;
}


.tabela_mare tr td .tabela_variante {
    margin-left: 20px;
}


.tabela_variante .butoane {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
}


.tabela_variante .butoane a.button,
.tabela_variante .butoane button.button {
    margin: 0;
    padding: 6px 12px;
    font-size: 14px;
}


.tabela_variante .butoane form {
    margin: 0;
    display: inline-flex;
}


.filters-active {
    margin: 10px 0;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
}


.filters-active ul {
    list-style: none;
    padding: 0;
    margin: 0;
}


.filters-active li {
    display: inline-block;
    margin-right: 10px;
    font-size: 14px;
}


.toggle-variants {
    font-weight: 500;
    padding: 0 5px;
    color: var(--primary-color);
}

/* Folosește atributul data-status în loc de valoarea din DOM */

select.status-select[data-status="draft"],
select.payment-status-select[data-payment-status="refunded"],
select.payment-status-select[data-payment-status="failed"] {
    border-color: var(--status-draft);
    border-left: 10px solid var(--status-draft);
    background-color: var(--status-draft-bg);
    padding-right: 2.5rem;
    padding: 10px;
}


select.status-select[data-status="pending"],
select.payment-status-select[data-payment-status="pending"] {
    border-color: var(--status-pending);
    border-left: 10px solid var(--status-pending);
    background-color: var(--status-pending-bg);
    padding-right: 2.5rem;
    padding: 10px;
}


select.status-select[data-status="processing"] {
    border-color: var(--status-processing);
    border-left: 10px solid var(--status-processing);
    background-color: var(--status-processing-bg);
    padding-right: 2.5rem;
    padding: 10px;
}


select.status-select[data-status="completed"],
select.payment-status-select[data-payment-status="paid"] {
    border-color: var(--status-completed);
    border-left: 10px solid var(--status-completed);
    background-color: var(--status-completed-bg);
    padding-right: 2.5rem;
    padding: 10px;
}


select.status-select[data-status="cancelled"],
select.payment-status-select[data-payment-status="unpaid"] {
    border-color: var(--status-cancelled);
    border-left: 10px solid var(--status-cancelled);
    background-color: var(--status-cancelled-bg);
    padding-right: 2.5rem;
    padding: 10px;
}



button.delete.icon-button {
    min-width: unset;
    width: 36px;
}


.review-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}


.review-numar {
    position: relative;
}



#date-form {
    display: grid;
    gap: 1rem;
    grid-template-columns: 500px 1fr;
    width: 100%;
    margin: auto;
}


#date-form h2 {
    margin-block: 1.5rem;
    color: var(--dark-color);
}


.date-input {
    margin-bottom: 1rem;
    display: grid;
}


.date-input input,
.date-input textarea {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    border: 2px solid var(--secondary-color);
    background: none;
    outline: none;
    resize: vertical;
}


.date-input label {
    padding: 0 0.25rem;
    color: var(--secondary-color);
    font-size: 1rem;
}

/* draft CRUD */



.button-plus,
.button-minus {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    padding-inline: 10px;
    font-weight: 600;
}


.button-plus:hover,
.button-minus:hover {
    background-color: var(--dark-color);
}

/* stiluri acordeon */

.sidebar {
    flex-shrink: 0;
}


.filter-form-action>a {
    width: 100%;
    text-align: center;
}

/* sfrsit stiluri acordeon */




.show-filtre {
    display: flex;
    gap: 1rem;
    width: fit-content;
    margin-bottom: 1rem;
}


.draft-products {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, 250px);
    justify-content: center;
    align-items: center;
}


.draft-products .product-description {
    width: 90%;
    margin: auto;
}


.draft-products .product {
    display: grid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}


.product-description-span {
    display: grid;
    width: 90%;
    margin: 0 auto;
    padding-top: 0.3rem;
    flex-grow: 1;
    padding-block: 0.5rem;
}

.draft-discount {
    min-height: 24px;
}



.draft-products .product .cart-form {
    width: 100%;
    margin-top: auto;
}

.draft-products .product .cart-form .button {
    width: 100%;
}

.draft-products .product img {
    width: auto;
    height: 100%;
    object-fit: contain;
}


.draft-products .product a {
    width: 90%;
    margin: auto;
}


.productActions {
    display: grid;
    /* width: 200px; */
    margin-top: auto;
    place-items: center;
    width: 100%;
}


.productActions button {
    width: 90%;
    min-width: 150px;
    text-align: center;
}


.productActions a {
    /* width: 90%; */
    min-width: 150px;
    text-align: center;
}


.order-wrap {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}


.order-filters {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
}


.order-tabela {
    display: grid;
    justify-content: center;
}


@media (max-width: 600px) {
    .tabela_variante .butoane {
        gap: 4px;
    }

    .tabela_variante .butoane a.button,
    .tabela_variante .butoane button.button {
        padding: 4px 8px;
        font-size: 12px;
    }

    .filters-active li {
        display: block;
        margin-bottom: 5px;
    }
}

/* sfarsit tabela de produse variant */




.variant-row {
    padding: 10px;
    border: 2px solid var(--secondary-color);
}


.remove-variant {
    background-color: var(--danger-color);
    color: var(--light-color);
    border: none;
    padding: 0.4rem 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 8px;
}


.remove-variant:hover {
    background-color: var(--dark-color);
}


.add-variant {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 0.4rem 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 8px auto;
    max-width: fit-content;
}

.add-variant:hover {
    background-color: var(--dark-color);
}

/* BODY */
.body-404 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a202c;
}

/* MAIN */
.error-404 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    max-width: 720px;
    margin: 0 auto;
}

/* 404 badge */
.error-badge {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

/* Title */
.error-404 h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Description */
.error-404 p {
    max-width: 520px;
    color: #4a5568;
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

/* ACTIONS */
.error-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* BUTTONS */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

/* Primary */
.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Secondary */
.btn-secondary {
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #1a202c;
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* FOOTER */
.footer-404 {
    margin-top: auto;
    width: 100%;
}

/* SUBTLE ANIMATION */
.error-404>* {
    animation: fadeUp 0.6s ease both;
}

.error-404 p {
    animation-delay: 0.1s;
}

.error-actions {
    animation-delay: 0.2s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container general */
.free-shipping-container {
    margin: 20px 0;
    padding: 15px 18px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #eee;
}

/* Mesaj text */
.free-shipping-info {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

/* Mesaj când e atins pragul */
.free-shipping-info .success {
    color: #16a34a;
    font-weight: 600;
}

/* Wrapper bară */
.progress-bar-wrapper {
    width: 100%;
    height: 10px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

/* Umplere bară */
.progress-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 20px;
    transition: width 0.4s ease, background 0.3s ease;
    background: linear-gradient(90deg, var(--visiniu-color) 0%, #ff4d4d 100%);
}

/* Când e complet */
.progress-bar-fill.complete {
    background: var(--success-color);
}

.totals-summary-container {
    max-width: 400px;
}
