
/* ===============================================
   CART PAGE - MODERN STYLES
   =============================================== */

:root {
    --primary-color: #d4af37;
    --secondary-color: #000000;
    --background-color: #f5f5f5;
    --dark-gray: #333333;
    --title-color: #2b2b2b;
    --subtitle-color: #666666;
    --success-color: #28a745;
    --danger-color: #dc3545;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

/* ===============================================
   GENERAL STYLES
   =============================================== */

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

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--background-color) !important;
    color: var(--title-color);
    overflow-x: hidden;
    transition: background var(--transition-medium);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* ===============================================
   CART SECTION
   =============================================== */

.produse-zone {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    padding: 40px 0;
    min-height: 70vh;
}

.produse-header {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.produse-header h3 {
    margin: 0;
    color: var(--title-color);
    font-size: 1.5rem;
}

.produse-header button {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.produse-header button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.produse-header button.save {
    border-color: var(--success-color);
    color: var(--success-color);
}

.produse-header button.save:hover {
    background: var(--success-color);
    color: white;
}

/* ===============================================
   CART ITEMS / CARDS
   =============================================== */

.produse-list {
    margin-top: 1.5rem;
}

.card {
    background: white;
    border: none !important;
    border-radius: var(--border-radius-lg) !important;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-img {
    max-width: 220px;
    max-height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    color: var(--title-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.card-text {
    color: var(--subtitle-color);
    font-size: 0.95rem;
}

.card-cantitate {
    color: var(--dark-gray);
    font-size: 0.9rem;
    font-weight: 600;
}

.pret-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.card-price {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.card-price-original {
    font-size: 0.9rem;
    margin: 0;
}

/* ===============================================
   QUANTITY CONTROLS
   =============================================== */

.cantitate {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.cantitate p {
    margin: 0;
    font-weight: 600;
    color: var(--dark-gray);
}

.cantitate-input {
    width: 60px;
    text-align: center;
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.cantitate-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.cantitate-input::-webkit-outer-spin-button,
.cantitate-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.scade-btn,
.creste-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: var(--border-radius-sm);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.scade-btn:hover,
.creste-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.elimina {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.elimina:hover {
    background: var(--danger-color);
    color: white;
    transform: translateY(-2px);
}

/* ===============================================
   ORDER SUMMARY
   =============================================== */

.comanda {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 20px;
}

.tarife_subtotal {
    margin-bottom: 1rem;
}

.tarife_subtotal h3 {
    margin-bottom: 1rem;
    color: var(--title-color);
    font-size: 1.3rem;
}

.tarife_subtotal p {
    font-size: 0.95rem;
    color: var(--dark-gray);
    margin: 0.5rem 0;
}

.divider {
    height: 1px;
    background: #e0e0e0;
    margin: 1rem 0;
}

.divider2 {
    height: 1px;
    background: #e0e0e0;
    margin: 1.5rem 0;
}

.pret_total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--title-color);
}

/* ===============================================
   PROMO CODE
   =============================================== */

.promo-code {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.promo-code_text {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.promo-code_text:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.aplica {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.aplica:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ===============================================
   CHECKOUT BUTTON
   =============================================== */

.finalizeaza-comanda-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-sm);
}

.finalizeaza-comanda-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.finalizeaza-comanda-btn:active {
    transform: translateY(0);
}

/* ===============================================
   PAYMENT INFO
   =============================================== */

.informatii-plata {
    margin-top: 1.5rem;
}

.informatii-plata p {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.informatii-plata i {
    color: var(--primary-color);
}

/* ===============================================
   BADGES
   =============================================== */

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ===============================================
   RESPONSIVE
   =============================================== */

@media (max-width: 768px) {
    .produse-zone {
        padding: 20px 0;
    }
    
    .produse-header {
        padding: 1rem;
    }
    
    .card-img {
        max-width: 150px;
        max-height: 150px;
    }
    
    .comanda {
        position: static;
        margin-top: 2rem;
    }
}
