/*  General */
body {
    margin: 0;
    font-family: 'Karla', sans-serif;
    background: radial-gradient(circle at top left, rgba(138, 43, 226, 0.2), transparent 50%),
            radial-gradient(circle at bottom right, rgba(255, 20, 147, 0.2), transparent 60%),
            linear-gradient(180deg, #160034, #0b001e);
        background-attachment: fixed;
        background-size: cover;
        color: white;
}

img {
    height: auto;
}

input[type="checkbox"],
input[type="range"] {
    accent-color: #a2ff86;
}

/* navbar */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(270.4deg, rgba(106, 50, 170, 0.264) 2.53%, rgba(38, 0, 91, 0.8) 100%);
    padding: 1rem 2rem;

    gap: 1rem;
}

.header-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}

.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
}

.header-left {
    flex: 1;
}

.header-left .gt-logo {
    height: 4.5vw;
    max-width: 160px;
}

.header-center {
    flex: 2;
    justify-content: center;
}

.header-center input {
    width: 100%;
    max-width: 400px;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    border: none;
    font-size: 1rem;
    background-color: #320059;
    color: #fff;
}

.header-center input::placeholder {
    color: #aaa;
}

.header-right {
    flex: 2;
    justify-content: flex-end;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: nowrap;
}
.gt-logo {
    height: 48px;
    width: auto;
}

/* ===== USER RANK - HEADER ===== */

.user-rank {
    text-align: center;
    padding: 0rem 1rem ;
}

.rank-header {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: nowrap;
}

.rank-label {
    font-size: 0.85rem;
    color: #ffffff;
    white-space: nowrap;
}

.badge-rank {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    color: white;
    text-transform: uppercase;
    text-align: center;
    min-width: 3rem;
    max-width: 4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;
}

.badge-rank.gold {
    background: linear-gradient(135deg, #f0b400, #a97600);
}

.badge-rank.silver {
    background: linear-gradient(135deg, #c0c0c0, #999999);
}

.badge-rank.diamond {
    background: linear-gradient(135deg, #a2ff86, #63c472);
}

.badge-rank.legend {
    background: linear-gradient(135deg, #9f5cff, #6f1aff);
}

.badge-rank.unranked {
    background-color: #aaa;
}

.rank-info {
    display: flex;
    justify-content: space-between;
    padding: 0.2rem 0;
    font-size: 0.75rem;
    color: #aaa;
}

.rank-progress {
    width: 100%;
    height: 6px;
    background-color: #333;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #ff66cc;
}

.week-start,
.week-end {
    display: inline-block;
    line-height: 1.1;
    font-size: 0.75rem;
    color: #aaa;
}

.progress-bar {
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, #ff66cc, #ff99cc);
    transition: width 0.3s ease;
}


.user-name {
    font-weight: bold;
    color: white;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    white-space: nowrap;
}

/* Bara de stoc */
.stock-bar {
    position: relative;
    background-color: #444;
    height: 8px;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.stock-fill {
    height: 100%;
    background: linear-gradient(90deg, #a2ff86, #ff66cc);
    border-radius: 4px 0 0 4px;
    transition: width 0.4s ease;
}

.stock-text {
    position: absolute;
    top: -20px;
    right: 0;
    font-size: 0.75rem;
    color: #ccc;
}

/* Card actions */
.card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    margin-top: auto;
}

.card-actions button {
    /* flex: 1; */
    padding: 0.5rem;
    border-radius: 6px;
    /* border: none; */
    font-size: 0.7rem;
    cursor: pointer;
    text-align: center;
    /* line-height: 1.2; */
    min-height: 44px;
    /* white-space: normal; */
   
}

.card-actions button:first-child {
    background: transparent;
    color: #fff;
    border: 1px solid #E40674;
    transition: background 0.2s, color 0.2s;
}

.card-actions button:first-child:hover {
    background-color: #fff;
    color: #1a002f;
}

.card-actions button:last-child {
    background: #E40674;
    color: #fff;
    transition: background 0.2s;
}

.card-actions button:last-child:hover:not(:disabled) {
    background: #E40674;
}

.card-actions button:disabled {
    background-color: #888;
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.out-of-stock-btn {
    background-color: #555;
    color: #ccc;
    font-style: italic;
    border: none;
    min-height: 44px;
    text-align: center;
    line-height: 1.2;
    white-space: normal;
}


/* Puncte */
.user-points {
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
    gap: 0.3rem;
}

/* Avatar */


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

.user-menu li {
    padding: 0.75rem 1rem;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 0.95rem;
}

.user-menu li:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-menu.hidden {
    display: none;
}

.user-area {
    position: relative;
}

.coming-soon{
text-decoration: none;
color: #fff;
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(122, 92, 255, 0.06);
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: background .2s, box-shadow .2s, border-color .2s;
    
}

.user-pill:hover {
    background: rgba(122, 92, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
}

.user-pill:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(122, 92, 255, .45);
}

.user-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
}

.user-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-pill .chevron {
    font-size: .9rem;
    opacity: .9;
    transition: transform .15s;
}

.user-pill[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

.user-menu {
    position: absolute;
    top: 11vh;
    right: 6vw;
    background: #1a0033;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 240px;
    padding: .5rem 0;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .35);
}

.user-menu li {
    padding: .8rem 1rem;
    color: #fff;
    cursor: pointer;
    font-size: .95rem;
    transition: background .15s;
}

.user-menu li:hover {
    background: rgba(255, 255, 255, 0.06);
}

.user-menu.hidden {
    display: none;
}

.user-menu-identity {
    font-weight: 600;
    opacity: .9;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}


@media (max-width: 768px) {

    /* aranjare dreapta stabilă */
    .header-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: .75rem;
        flex-wrap: wrap;
        min-width: 0;
    }

    .header-left .gt-logo {
        height: 48px !important;
        max-width: 160px;
    }
    
    .header-right>* {
        position: static !important;
        flex: 0 0 auto;
        min-width: 0;
    }

    .user-rank {
        display: flex;
        align-items: center;
        margin-right: .25rem;
    }

    .rank-header {
        display: flex;
        align-items: center;
        gap: 0;
    }

    .user-rank .rank-label,
    .user-rank .rank-info,
    .user-rank .rank-progress {
        display: none !important;
    }


    .user-rank .badge-rank {
        max-width: none;
        line-height: 1.1;
        margin-right: .375rem;
        padding: 3px 10px;
    }


    .user-points {
        display: inline-flex;
        align-items: center;
        position: static !important;
        white-space: nowrap;
        margin-bottom: 4px;
    }

 
    .user-pill {
        display: flex;
        align-items: center;
        gap: .5rem;
        padding: 4px 8px;
        border-width: 1px;
        max-width: 140px;
        overflow: hidden;
        position: relative;
        z-index: 3001;
        cursor: pointer;
    }

    .user-pill .user-name,
    .user-pill .chevron {
        display: none;
    }

    .user-pill .user-avatar {
        width: 34px;
        height: 34px;
        border-radius: 50%;
    }

    .user-avatar img,
    .user-pill img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


    .cart-wrapper {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
        position: relative;
        z-index: 2000;
    }

    .cart-wrapper .cart-icon {
        width: 28px;
        height: 28px;
        display: block;
    }

   .cart-badge {
        top: 21px !important;
        right: 18px !important;
        transform: translate(35%, -35%);
      
   }

   .cart-panel {
       z-index: 1500;
        width: 17rem !important;
   }

    .header-center {
        width: 100%;
    }

    .header-center input {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .user-menu-identity {
        display: block;
    }
}

@media (min-width: 769px) {
    .user-menu-identity {
        display: none;
    }
}

@media (max-width: 480px) {


    .user-rank .badge-rank {
        margin-right: .5rem;
        font-size: .65rem;
        padding: 3px 7px;
        min-width: 1.5rem;
    }


    .user-points {
        font-size: .9rem;
        display: inline-flex;
        align-items: center;
    }

    .header-right {
        gap: .6rem;
    }
}

@media (max-width: 400px) {
            .user-rank {
                margin-inline-end: 12vw !important;
            }
        
            .user-points {
                position: static !important;
                margin: 0;
                white-space: nowrap;
            }
        }




/* Buton filtre (pentru mobil) */
.filter-toggle-btn {
    display: none;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(90deg, #998FFD 0%, #473DA6 100%);
    color: #fff;
    border: 1px solid #5A13FF;
    padding: .6rem 1rem;
    margin: 1rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(90, 19, 255, .25);
}


.filter-toggle-btn:hover {
    filter: brightness(1.08);
}

/*Layout principal */
.shop-main {
    display: flex;
    padding: 2rem;
    gap: 2rem;
}

.shop-sidebar {
    width: 280px;
    background-color: #1f004d;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    font-family: 'Spartan';
}

/* Filtre */
.filter-section {
    margin-bottom: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.filter-header .arrow {
    display: inline-block;
    width: .55rem;
    height: .55rem;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-135deg);
    /* sus */
    transition: transform .2s ease;
    margin-left: .5rem;
    opacity: .9;
}

.filter-section.collapsed .filter-header .arrow {
    transform: rotate(45deg);
}

.filter-body {
    margin-top: 0.8rem;
}

.filter-section.collapsed .filter-body {
    display: none;
}

.filter-section.collapsed .arrow {
    transform: rotate(-90deg);
}

.price-inputs {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
    justify-content: space-between;
}

.price-inputs input {
    width: 80px;
    padding: 0.3rem;
    border-radius: 6px;
    border: none;
    font-size: 0.9rem;
}

.price-slider-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


#price-slider {
    margin: 1rem 0;
}

.noUi-target {
    background: #333;
    border-radius: 5px;
    border: none;
    height: 6px;
}

.noUi-connect {
    background: linear-gradient(to right, #a2ff86, #ff66cc);
}


.noUi-horizontal .noUi-handle {
    background: white;
    border: 2px solid #a2ff86;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    top: -5px;
    right: -7px;
    cursor: pointer;
    box-shadow: none;
}

.noUi-tooltip {
    display: none;
   
}

.noUi-handle:hover .noUi-tooltip,
.noUi-handle:focus .noUi-tooltip,
.noUi-active .noUi-tooltip {
    display: block;
}

.noUi-handle::before,
.noUi-handle::after {
    display: none;
}


.rewards-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.reward-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    background: linear-gradient(360deg, rgba(173, 168, 255, 0.5) -2.75%, rgba(90, 19, 255, 0.5) 100%);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    border: 2px solid;
    border-image-source: linear-gradient(316.15deg, rgba(205, 171, 254, 0.37) 23.54%, rgba(81, 3, 195, 0.48) 76.26%);
    backdrop-filter: blur(14px);
    box-shadow: 0px 10px 30px 0px #0000000A;
    height: auto;   
    max-height: unset;
    align-self: flex-start;
}

.img-wrapper {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    padding: 10px;
}

.img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.reward-card h3 {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.4;
    margin-top: 0.8rem;
    height: 2.8em;
    overflow: hidden;
    display: box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
}

.short-desc {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #ccc;
    height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
}

/* card actions */
.card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    margin-top: auto;
}

.card-actions button {
    flex: 1;
    padding: 0.5rem;
    border-radius: 6px;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
    min-height: 44px;
    white-space: normal;
}

.card-actions button:first-child {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    transition: background 0.2s, color 0.2s;
}

.card-actions button:first-child:hover {
    background-color: #fff;
    color: #1a002f;
}

.card-actions button:last-child {
    background: #ff005c;
    color: #fff;
    transition: background 0.2s;
}

.card-actions button:last-child:hover:not(:disabled) {
    background: #ff3377;
}

.card-actions button:disabled {
    background-color: #888;
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.out-of-stock-btn {
    background-color: #555;
    color: #ccc;
    font-style: italic;
    border: none;
    min-height: 44px;
    text-align: center;
    line-height: 1.2;
    white-space: normal;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--Primary-950, #0E0024);
    padding: 2rem;
    border-radius: 10px;
    max-width: 40rem;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid var(--Primary-900, #3F00B0)
}

.modal-content img {
    display: block;
    max-width: 100%;
    max-height: 180px;
    margin: 0 auto 1rem;
    object-fit: contain;
    border-radius: 8px;
    background-color: white;
    padding: 10px;
}

.modal.hidden {
    display: none;
}

#product-modal h3,
#modal-price {
    font-family: 'Spartan';
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #fff;
    background: var(--Neutral-950, #333333);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.close-btn:hover {
    background: #ea6491;
}


.modal-title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: left;
    font-weight: bold;
    color: white;
}

.modal-image-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.modal-image-wrapper img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    background: linear-gradient(360deg, rgba(173, 168, 255, 0.5) -2.75%, rgba(90, 19, 255, 0.5) 100%);
    border-radius: 8px;
    padding: 10px;
}

.modal-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 0.5rem;
}

.modal-description {
    font-size: 0.95rem;
    margin: 1rem 0 0.5rem;
    color: #ddd;
}

.modal-specs {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.modal-price-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 1.3rem;
    font-weight: bold;
    color: #a2ff86;
}

.quantity-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.quantity-row button {
    width: 32px;
    height: 32px;
    font-size: 1.4rem;
    border: none;
    background-color: #3f165b;
    color: white;
    border-radius: 50%;
    cursor: pointer;
}

.quantity-row button:hover {
    background-color: #a2ff86;
    color: #1e002f;
}

.modal-add-btn {
    background-color: #ff007a;
    border: none;
    padding: 0.8rem 1rem;
    width: 100%;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-add-btn:hover {
    background-color: #ff3399;
}

.quantity-row button:disabled {
    background-color: #555;
    color: #aaa;
    cursor: not-allowed;
    opacity: 0.6;
}

.modal-columns {
    display: flex;
    gap: 2rem;
    flex-direction: row;
    flex-wrap: wrap;
}

.modal-left {
    flex: 2;
    min-width: 300px;
    max-height: 40vh;
    overflow-y: auto;
    padding-right: 1rem;
}

.modal-left::-webkit-scrollbar {
    width: 6px;
}

.modal-left::-webkit-scrollbar-thumb {
    background-color: #4A00E4;
    border-radius: 10px;
}

.modal-right {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
}

.modal-price-box {
    background: var(--Colors-Primary-800, #4A00E4);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    color: white;
}

.price-value {
    font-size: 1.6rem;
    font-weight: bold;
    display: block;
}

.price-label {
    font-size: 0.85rem;
    color: #ccc;
    margin-top: 0.2rem;
}

.modal-stock label,
.quantity-row label {
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    display: block;
    color: #eee;
}

.quantity-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.quantity-controls button {
    width: 32px;
    height: 32px;
    font-size: 1.4rem;
    background: var(--Primary-950, #0E0024);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--Border-Primary-Default, #5300FF)
}

.quantity-controls button:hover {
    background-color: var(--Colors-Primary-800, #4A00E4);
    color: white;
}

.modal-specs ul {
    list-style: disc;
    padding-left: 1.2rem;
    color: #ccc;
}

.modal-specs li {
    margin-bottom: 0.3rem;
}


/* Pret + rank*/
.price-rank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.2rem 0;
}



/* Culoare pret*/
.price-cost {
    font-weight: bold;
    font-size: 1rem;
}

.price-cost.not-enough {
    color: #ff4d4f;
}

/*Cos de cumparaturi */

.cart-panel {
    display: none;
    position: absolute;
    top: 100px;
    right: 2rem;
    width: 25rem;
    background: var(--Primary-950, #0E0024);
    padding: 1.2rem;
    border-radius: 18px;
    border: 2px solid #2c014a;
    z-index: 100;
    color: white;
    box-shadow: 0px 30px 40px 0px #00000026;
}

#cart-panel.open {
    display: block;
}

.cart-panel h2 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.cart-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-item {
    background-color: transparent;
    border-radius: 12px;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--Primary-500, #5A13FF)
}

.cart-item-img img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details strong {
    font-size: 0.95rem;
    display: block;
    color: white;
}

.cart-item-details .category {
    font-size: 0.75rem;
    color: #c9c9c9;
    margin-top: 2px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.quantity-control button {
    background: #3f165b;
    color: #fff;
    border: none;
    width: 24px;
    height: 24px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}

.quantity-control button:hover {
    background: #a2ff86;
    color: #1e002f;
}

.cart-item-price {
    text-align: right;
    font-weight: bold;
    font-size: 0.9rem;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
}

.cart-item-price .remove-item {
    background: none;
    border: none;
    font-size: 20px;
    color: #ff4d6d;
    cursor: pointer;
    margin-top: 6px;
}

.cart-panel button {
    background-color: #ff007a;
    border: none;
    padding: 0.8rem 1rem;
    width: 100%;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.cart-panel button.increase,
.cart-panel button.decrease {
    padding: 0rem;
    background-color: transparent;
    flex: 0.2;
    border-radius: 999px;
    border: 2px solid #5300FF;
}

.cart-panel button:hover {
    background-color: #ff3399;
}

#cart-total {
    font-weight: bold;
    font-size: 1rem;
    color: #fff;
    text-align: right;
    margin-bottom: 1rem;
}

#cart-panel h2+p {
    color: #aaa;
    margin-bottom: 1rem;
}




.favorite-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: radial-gradient(circle at center, rgba(30, 77, 21, 0.15), rgba(255, 255, 255, 0.05));
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: all 0.5s ease;
    backdrop-filter: blur(39px);
}

.favorite-btn i {
    font-size: 1.2rem;
    color: white;
    transition: color 0.3s ease;
}

.favorite-btn.active i {
    color: #ff005c;
}

/* Mesaj cos gol */
#cart-panel.open.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #aaa;
    text-align: center;
    padding: 2rem 1rem;
}

.cart-panel.empty-cart img,
.cart-panel.empty-cart svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
    margin-bottom: 1rem;
}

/* Badge și icon */
.cart-wrapper {
    position: relative;
    display: inline-block;
}

.cart-icon {
    width: 1.8rem;
    height: 1.8rem;
    cursor: pointer;
    background: #8174ff;
    border-radius: 50%;
    padding: 0.4rem;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff007a;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
    display: none;
}

#checkout-btn:disabled {
    background-color: #999;
    color: #333;
    cursor: not-allowed;
    opacity: 0.6;
}



/* FOOTER */
.main-footer {
    background: var(--Colors-Primary-950, #0E0024);
    border-top: 1px solid var(--Colors-Primary-500, #5A13FF);
    padding: 3rem 2rem 2rem;
    color: #ddd;
    font-size: 0.9rem;
    border-top: 1px solid #2b005a;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column {
    flex: 1 1 200px;
    min-width: 200px;
}

.footer-column h4 {
    color: #fff;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.footer-column ul li:hover {
    text-decoration: underline;
}

.footer-logo {
    width: 140px;
    margin-bottom: 1rem;
}

.footer-description {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.footer-socials a {
    display: inline-block;
    margin-right: 10px;
}

.footer-socials img {
    width: 28px;
    height: 28px;
    transition: transform 0.2s;
    object-fit: cover;
    border-radius: 4px;
}

.footer-socials img:hover {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #aaa;
}

.footer-bottom .footer-rights {
    display: flex;
    gap: 1.5rem;
}
.link-footer{
color: #ddd;
font-size: 0.9rem;
text-decoration: none;
}

.close-btn-mobile {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #222;
    border: 2px solid #555;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
    z-index: 1000;
}

.close-btn-mobile:hover {
    background-color: #444;
}


/* Paginare */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination button {
    background-color: #320059;
    color: #fff;
    border: 1px solid #ff005c;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.pagination button:hover {
    background-color: #ff005c;;
    color: #000;
    transform: scale(1.05);
}

.pagination button.active {
    background-color: #ff005c;
    color: #1a003d;
}

.category-tag {
    display: inline-block;
    background: linear-gradient(90deg, #998FFD 0%, #473DA6 100%);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    width: fit-content;
    opacity: 1;

}

/* Responsive */

@media screen and (min-width: 993px) {
    .header-container {
        flex-direction: row;
    }
}

@media screen and (max-width: 992px) {
    .main-header {
            padding: 1rem;
        }

        .header-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;

        grid-template-areas:
            "left . right"
            "search search search";
        align-items: center;
        gap: 12px;
        width: 100%;
        }

    .header-left {
        grid-area: left;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .gt-logo {
        height: 40px;
        max-width: 160px;
    }

    .header-right {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.8rem;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        grid-area: right;
    }

    .user-rank {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .user-points,
    .user-name,
    .user-avatar-wrapper,
    .cart-wrapper {
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    .user-points{
        margin-bottom: 4px;
            }

    .user-name {
        font-size: 0.9rem;
        font-weight: bold;
        white-space: nowrap;
        grid-area: search;
        width: 100%;
    }

    .header-center {
        width: 100%;
        order: 3;
        grid-area: search;
    }

    .header-center input {
        width: 100%;
        padding: 0.6rem 1rem;
        border-radius: 25px;
        font-size: 1rem;
        background-color: #320059;
        color: white;
        border: none;
        min-width: 0;
        max-width: none;
    }

    .header-center input::placeholder {
        color: #aaa;
    }
    .user-pill .user-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
    }
}

@media screen and (max-width: 768px) {

    .close-btn-mobile {
        display: block;
    }

    .footer-columns {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-bottom .footer-rights {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
    }

    .shop-main {
        flex-direction: column;
    }

 
    .filter-toggle-btn {
        display: inline-flex;
    }

    .shop-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        height: 100vh;
        background-color: #1f004d;
        z-index: 999;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        font-family: 'Spartan';
    }

    .shop-sidebar.active {
        display: block;
        transform: translateX(0);
        z-index: 99999;
    }

  .clear-history-btn {
    margin-right: 8vw !important;
  }

    .rewards-grid {
        grid-template-columns: 1fr;
    }
    .header-right {
    display: flex;
    align-items: center;
    gap: .8rem;
    justify-content: flex-end;
    min-width: 0;
    flex-wrap: nowrap;
    }

    .header-center input {
        max-width: 100%;
        font-size: 1rem;
    }

    .user-name {
        display: none;
    }

    .user-area,
    .cart-wrapper,
    .user-rank {
        min-width: 0;
    }
  .user-pill {
      padding: 0;
      border: none;
      background: none;
      max-width: 180px;
      overflow: hidden;
      
  }
    .user-pill .user-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

    }
    

    .user-pill .user-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
    }
}

@media screen and (max-width: 576px) {
    .user-rank {
        padding: 0;
        font-size: 0.75rem;
    }
    .header-container{
        gap: 0.5rem !important;
    }

    .rank-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .progress-bar {
        height: 4px;
    }

    .badge-rank {
        font-size: 0.65rem;
        padding: 2px 8px;
    }

    .main-footer{
        text-align: center !important;
    }

        }

                @media screen and (max-width: 361px) {
    .user-rank .badge-rank {
        display: none;
    }
        .cart-panel{
            right: 0.1vw !important;
        }

    }
                

/* Animatie btn favorite */

@keyframes flip-heart {
    0% {
        transform: rotateZ(0deg) scale(1);
    }

    50% {
        transform: rotateZ(180deg) scale(1.2);
    }

    100% {
        transform: rotateZ(360deg) scale(1);
    }
}

.favorite-btn i.animate {
    animation: flip-heart 0.4s ease-in-out;
    backface-visibility: hidden;
}


.header-container {
    flex-direction: row;
    gap: 2rem;
}

.header-right {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
    flex-wrap: nowrap;
}

.header-center input {
    max-width: 400px;
    color: #fff;
}

.gt-logo {
    height: 48px;
}

.badge-rank {
    font-size: 0.7rem;
    padding: 4px 12px;
}

.progress-bar {
    height: 4px;
}

.user-name {
    display: flex;
}

.card-actions button:first-child {
    border: 1px solid #fff;
}

.card-actions button:last-child {
    background: #ff005c;
}

.card-actions button:last-child:hover:not(:disabled) {
    background: #ff3377;
}

.user-pill {
    background: rgba(100, 85, 255, 0.15);
    border: 1px solid #7a5cff;
    padding: 0.4rem 0.8rem;
}


.shop-sidebar {
    width: 280px;
    padding-top: 50px;
}

.footer-bottom .footer-rights {
    gap: 0.8rem;
}


.hidden {
    display: none !important;
}


.img-wrapper {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.img-wrapper img {
    max-height: 100%;
    object-fit: contain;
}


.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal:not(.hidden) {
    display: flex;
}

.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    cursor: pointer;
}

.history-content {
    max-width: 900px;
    width: 92%;
    border: 2px solid var(--Primary-900, #3F00B0);
    background: var(--Primary-950, #0E0024);
    border-radius: 12px;
    padding: 1.2rem;
    max-height: 90vh;
    overflow-y: auto;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .8rem;
}

.history-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.history-order {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #3F00B0;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.history-order-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .6rem;
    font-weight: 600;
}

.history-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: .6rem;
}

.history-row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: .8rem;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: .5rem .6rem;
}

.history-row img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
}

.history-row .hr-name {
    font-weight: 600;
    margin-left: 2vw;
}

.history-row .hr-meta {
    color: #bbb;
    font-size: .85rem;
    margin-top: 2px;
    margin-left: 2vw;
}

.history-order-foot {
    margin-top: .6rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    font-weight: 700;
}

.history-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #cfcfcf;
}

.history-header-right {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.clear-history-btn {
    background: transparent;
    border: 1px solid #5A13FF;
    color: #fff;
    padding: .35rem .6rem;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 3vw;
}

.clear-history-btn:hover {
    background: rgba(90, 19, 255, .12);
}
