:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #f8fafc;
    --gray: #94a3b8;
    --dark-gray: #64748b;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
       font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #334155;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.company-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.company-logo img {
    height: 50px;
    width: auto;
}

.company-logo h1 {
    font-size: 24px;
    color: var(--primary);
    font-weight: 600;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    background: #d1fae5;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert i {
    font-size: 20px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

h2 {
    color: var(--primary);
    font-size: 28px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary);
}

.btn {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(44, 62, 80, 0.1);
}

.btn-danger {
    background: var(--accent);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-highlight {
    animation: highlight 0.3s ease;
}

@keyframes highlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.click-effect {
    transform: scale(0.95);
}

.cart-empty {
    text-align: center;
    padding: 50px 0;
    background: #f9f9f9;
    border-radius: var(--border-radius);
}

.cart-empty i {
    font-size: 50px;
    color: var(--gray);
    margin-bottom: 20px;
}

.cart-empty p {
    font-size: 18px;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

@media (max-width: 992px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }
}

.cart-items {
    background: white;
    border-radius: var(--border-radius);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background: var(--primary);
    color: white;
    padding: 15px;
    text-align: left;
}

.cart-table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.cart-table tr:hover {
    background: rgba(0, 86, 179, 0.03);
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-info {
    flex: 1;
}

.product-name {
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.2rem;
    font-size: 0.95rem; /* Maintained product name size */
}

/* Product Specifications Styling */
.specs-list {
    margin-top: 0.3rem;
}

.spec-item {
    margin-bottom: 0.2rem;
    line-height: 1.3;
    font-size: 0.65rem; /* Made about half of product name size */
}

.spec-key {
    font-weight: 500;
    color: #555;
}

.spec-value {
    color: #666;
}

.spec-text {
    color: #666;
    font-size: 0.65rem; /* Made about half of product name size */
    margin-top: 0.2rem;
    line-height: 1.3;
}

.no-specs {
    color: #999;
    font-style: italic;
    font-size: 0.65rem; /* Made about half of product name size */
    margin-top: 0.2rem;
}

/* Product Image Styling */
.product-image-placeholder {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 4px;
    color: #ccc;
}

.product-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Quantity Control Improvements */
.quantity-control {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.quantity-btn:hover {
    background: #eee;
}

.quantity-input {
    width: 40px;
    height: 28px;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0 5px;
    -moz-appearance: textfield;
    font-size: 0.9rem;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.remove-btn {
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    padding: 5px;
}

.remove-btn:hover {
    color: #b91c1c;
    transform: scale(1.1);
}

.cart-summary {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.summary-title {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e2e8f0;
}

.total-row {
    font-weight: 600;
    font-size: 18px;
    color: var(--primary);
}

.checkout-btn {
    display: block;
    width: 100%;
    background: var(--secondary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    margin-top: 20px;
    text-decoration: none;
}

.checkout-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* Payment Methods */
.payment-methods {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
}

.payment-methods p {
    font-size: 0.85rem;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.payment-icons {
    display: flex;
    gap: 15px;
}

.payment-icons i {
    font-size: 1.5rem;
    color: var(--dark-gray);
    transition: var(--transition);
}

.payment-icons i:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .cart-table {
        display: block;
        overflow-x: auto;
    }

    .cart-table th,
    .cart-table td {
        padding: 10px;
        font-size: 14px;
    }

    .product-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .product-image,
    .product-image-placeholder {
        width: 60px;
        height: 60px;
    }

    .cart-actions {
        flex-direction: column;
        gap: 10px;
    }

    .product-name {
        font-size: 0.9rem; /* Slightly smaller on mobile */
    }

    .spec-item,
    .spec-text,
    .no-specs {
        font-size: 0.6rem; /* Even smaller on mobile */
    }
}