:root {
    --primary: #8B4513;
    --primary-dark: #6B3410;
    --accent: #D4A574;
    --dark: #1A1A1A;
    --gray: #6B6B6B;
    --gray-light: #ADADAD;
    --light: #F5F5F5;
    --white: #FFFFFF;
    --success: #28a745;
    --danger: #dc3545;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --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: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.6;
    background: #FAF8F5;
}

/* Navbar */
.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--gray);
    margin: 0 0.5rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.btn-cart {
    position: relative;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-cart.active {
    background: var(--accent);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Cart Section */
.cart-section {
    padding: 120px 0 60px;
    min-height: 100vh;
}

.cart-header {
    text-align: center;
    margin-bottom: 3rem;
}

.cart-title {
    font-size: 3rem;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 900;
    margin-bottom: 1rem;
}

.cart-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
}

/* Empty Cart */
.empty-cart {
    background: var(--white);
    padding: 5rem 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.empty-cart-icon {
    font-size: 6rem;
    color: var(--gray-light);
    margin-bottom: 2rem;
}

.empty-cart h3 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.empty-cart p {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.btn-primary-custom {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

/* Cart Items */
.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.cart-item:hover {
    box-shadow: var(--shadow-md);
}

.item-image {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.item-info {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.item-info span {
    color: var(--accent);
    font-weight: 600;
}

.item-price {
    font-size: 1.125rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.25rem;
}

.qty-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.qty-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 2px solid var(--light);
    border-radius: 10px;
    font-size: 1.125rem;
    font-weight: 600;
}

.item-total {
    text-align: right;
    min-width: 100px;
}

.total-label {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.total-price {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 700;
    margin: 0;
}

.item-remove {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--danger);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.item-remove:hover {
    transform: scale(1.2);
}

/* Cart Summary */
.cart-summary {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 700;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-size: 1.125rem;
    color: var(--dark);
}

.discount-row {
    color: var(--success);
}

.discount-amount {
    font-weight: 600;
}

.summary-divider {
    border-color: var(--light);
    margin: 1.5rem 0;
}

.total-row {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

.delivery-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(139, 69, 19, 0.05);
    border-radius: 10px;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: var(--gray);
}

.delivery-info i {
    color: var(--accent);
    font-size: 1.25rem;
}

.btn-checkout {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-checkout:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-continue-shopping {
    width: 100%;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 1rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.btn-continue-shopping:hover {
    background: rgba(139, 69, 19, 0.05);
    color: var(--primary);
}

/* Promo Section */
.promo-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light);
}

.promo-title {
    font-size: 1.125rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.promo-input-group {
    display: flex;
    gap: 0.75rem;
}

.promo-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--light);
    border-radius: 10px;
    font-size: 1rem;
}

.promo-input:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-apply-promo {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-apply-promo:hover {
    background: var(--primary);
}

.promo-message {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    min-height: 20px;
}

.promo-message.success {
    color: var(--success);
}

.promo-message.error {
    color: var(--danger);
}

/* Recommended Section */
.recommended-section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 900;
}

.recommended-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.recommended-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.recommended-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.recommended-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.recommended-card:hover .recommended-image img {
    transform: scale(1.1);
}

.recommended-content {
    padding: 1.5rem;
    text-align: center;
}

.recommended-content h4 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.recommended-price {
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 1rem;
}

.btn-add-cart {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-brand .brand-name {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-tagline {
    font-size: 1rem;
    opacity: 0.9;
}

.footer-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    color: var(--accent);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

/* Responsive */
@media (max-width: 991px) {
    .cart-summary {
        position: static;
    }
}

@media (max-width: 767px) {
    .cart-section {
        padding: 100px 0 40px;
    }
    
    .cart-title {
        font-size: 2rem;
    }
    
    .cart-item {
        flex-wrap: wrap;
        padding: 1.5rem;
    }
    
    .item-image {
        width: 100px;
        height: 100px;
    }
    
    .item-details {
        flex: 1;
        min-width: 200px;
    }
    
    .item-quantity,
    .item-total {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .promo-input-group {
        flex-direction: column;
    }
}
