:root {
    /* --primary-color: #007bff; */
    --primary-color: #005B53;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #ffffff;
    --dark-color: #333333;
    --dark-light-color: #8A8A8A;
    --status-cancelled-bg: #f8d7da;

    --border-form: #c7c5c5;
    --font-text: "Jost", sans-serif;
    --footer-color: black;
    --visiniu-color: #600e1c;
    --fundal-color: #F8F9F9;

    --font-base: 'Plus Jakarta Sans', sans-serif;

    /* culori pentru grafice */
    --low-color: #10b981;
    --medium-color: #3b82f6;
    --high-color: #f59e0b;
    --premium-color: #E53935;
    --button-color: #005B53;
    --button-hover: #7EBAB5;

    --verde-deschis: #76BEB4;
    --verde-inchis: #005B53;
}


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

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.layout-app {
    display: grid;
    place-items: center;
    padding: 20px;
}

.log-reg-container {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.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(--verde-inchis);
    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(--verde-inchis);
    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(--verde-inchis);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Butoane */

/* Link-uri */

/* 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 {
        max-width: 100%;
        padding: 30px 20px;
    }
}

/* Checkbox styling  */

.login-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--verde-inchis);
    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;
}
.login-action {
    display: grid;
    place-items: center;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.login-action button,
.login-action a {
    width: 100%;
}
/* 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%; */
    width: auto;
    display: flex;
    align-items: center;
    /* dacă ai elemente în interiorul form-ului */
    margin: 0;
    flex: 1;
}

.search-input {
    width: 100%;
}

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

#cart-icon {
    position: relative;
}

.cart-number,
.wishlist-number {
    position: absolute;
    background-color: var(--verde-deschis);
    border-radius: 50%;
    left: 15px;
    top: -5px;
    width: 25px;
    height: 25px;
    text-align: center;
    color: black;
    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);
    z-index: 1;
    background: none;
    outline: none;
    resize: vertical;
    border-radius: 4px;
}

.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;
}

/* 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(--button-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;
    border-radius: 4px;
}

.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 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: -14px;
    font-family: 'Times New Roman', Times, serif;
}

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

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

/* sfrsit stiluri acordeon */

.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, 300px);
    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;  */
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.product-actions-overlay {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 10px 0;
}

/* Butoanele din overlay */
.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-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(--primary-color);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.action-btn:hover i {
    /* transform: rotate(360deg); */
    background-color: var(--primary-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: 1.3rem;
    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(--primary-color);
    font-weight: 700;
    display: block;
    white-space: nowrap;
    font-size: 1.3rem;
}

.product-description-span-titlu {
    color: black;
    font-size: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* maxim 3 rânduri */
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* font-weight: 600; */
}

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

.cart-form {
    display: contents;
}


.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: 3fr 1fr;
    padding-bottom: 10px;
    gap: 1rem;
    width: 100%
}

.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;
}

/* 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;
}

.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;
}

.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 */

/* .stock-low {
    color: var(--danger-color);
    background-color: var(--status-cancelled-bg);
} */

/* 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;
}

.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: 200px;
}

.logo-text {
    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 stiluri pentru PAGINATOR */

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;
    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: var(--button-hover);
}

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

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

nav[role="navigation"] .active span {
    background-color: var(--primary-color, #2563eb);
    color: var(--light-color);
    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 */

/* 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;
} */

.order-item-variant {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 2px;
}

.order-item-variant .variant-code {
    display: inline-block;
    font-weight: 600;
    color: #374151;
    margin-right: 8px;
}

.order-item-variant .variant-attributes {
    display: inline-block;
    color: #6b7280;
}

.order-item-quantity {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 4px;
}

/* Pentru a afișa codul și atributele pe aceeași linie */
.order-item-variant .variant-code::after {
    content: '|';
    margin: 0 6px;
    color: #d1d5db;
}

@media (max-width: 768px) {
    .order-item-variant {
        font-size: 0.75rem;
    }

    .order-item-variant .variant-code::after {
        content: '';
        display: block;
        margin: 0;
    }
}
/* 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 h2 {
    font-size: 18px;
    margin: 16px 0 8px;
    color: var(--primary-color);
}

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

/* 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;
}

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

.review-container {
    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; */
}

.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;
}


.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;
    overflow: hidden;
}

/* SFARSIT review */

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

.product .latest-poza {
    height: 98%;
    padding: 3px;
}

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

.latest-poza a {
    width: 95%;
    height: 95%;
    display: block;
}

.latest-text {
    position: relative;
    display: grid;
}



/* Responsive styles */

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

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

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


/* START stiluri charts.js */

/* 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;
}


/* Responsive pentru tablete */
@media (max-width: 768px) {

    .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) {

    .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;
    }


}


@media(max-width: 600px) {

    main {
        padding: unset;
    }

    .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;
    }

    .star {
        font-size: 1.2rem;
    }

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

}

@media(max-width: 800px) {

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

}

@media (max-width: 500px) {

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

    .footer p {
        text-align: center;
    }

    .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;
    }

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

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

    .discount_span {
        white-space: unset;
    }

}


/* START ultimele stiluri pentru grafice */

.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;
}

.stat-card-title-wrap {
    display: flex;
}

.stat-card-title-wrap i {
    margin-left: auto;
    color: var(--light-color);
    padding: 0.75rem;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* shadow-lg */
    border-radius: 9999px;
    /* background-color: var(--info-color); */
    font-size: 2.5rem;
}

.stat-card-title-wrap p {
    font-size: 1.2rem;
    font-weight: 600;
}

.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);
}

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


.hidden {
    display: none;
}

.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-light-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);
    border-radius: 4px
}

.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;
}

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

.product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
}

.no-image {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}
/* sfarsit stiluri acordeon */

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



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

/* draft CRUD */

/* 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;
}

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

@media (max-width: 600px) {

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

/* sfarsit tabela de produse variant */

/* 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: var(--light-color);
}

.btn-primary:hover {
    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;
}

/* ============================================
   SECȚIUNI UNIFORM - TITLURI
   ============================================ */

/* Container general pentru orice secțiune cu titlu + conținut */
.section-wrapper {
    width: 100%;
    background-color: var(--light-color);
    padding: 1rem;
}

/* Titlu cu efect background */
.section-title-wrapper {
    position: relative;
    padding: 1rem;
    width: 100%;
    overflow: hidden;
    text-align: center;
}

.section-title-wrapper .title-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Textul principal */
.section-title-wrapper .main-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-color);
    font-family: var(--font-heading);
    position: relative;
    z-index: 2;
    margin: 0;
    text-align: center;
}

/* Textul din spate (efect gradient) */
.section-title-wrapper .bg-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(1.8rem, 6vw, 4rem);
    font-weight: 900;
    font-family: var(--font-heading);
    white-space: nowrap;
    z-index: 1;
    background: linear-gradient(to top, transparent 0%, rgba(107, 193, 122, 0.3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    width: 100%;
    text-align: center;
}

/* ============================================
   CONȚINUT SECȚIUNI
   ============================================ */

/* Grid pentru produse */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

/* Grid pentru branduri */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    align-items: center;
    justify-items: center;
}

.brands-grid img {
    display: block;
    max-width: 100%;
    height: auto;
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.brands-grid img:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* Grid pentru features */
.features-grid {
    --min-col-width: clamp(150px, 20%, 280px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--min-col-width), 1fr));
    gap: clamp(10px, 2vw, 20px);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Buton "Mergi la SHOP" */
.section-action {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}
/* Responsive pentru branduri */
@media (max-width: 767px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 5px;
    }

    .brands-grid img {
        max-width: 180px;
        margin: 0 auto;
    }

    .section-title-wrapper .bg-title {
        top: 5px;
    }
}
