/* Shopping Cart - Global Styles */

.shopping-cart-page {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.cart-main {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.cart-header {
    background: linear-gradient(135deg, #8F4319 0%, #B45309 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.cart-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.cart-title i { font-size: 1.5rem; }

.cart-subtitle { opacity: 0.9; font-size: 1rem; margin: 0; }

.cart-items { padding: 2rem; }

.empty-cart { text-align: center; padding: 3rem 2rem; }
.empty-cart-icon { font-size: 4rem; color: #8F4319; margin-bottom: 1.5rem; }
.empty-cart h3 { font-size: 1.5rem; color: #212529; margin-bottom: 1rem; }
.empty-cart p { color: #6c757d; margin-bottom: 2rem; }

.btn-primary {
    background: linear-gradient(135deg, #8F4319 0%, #B45309 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(143, 67, 25, 0.3); color: white; text-decoration: none; }

/* Button color override (brand: #CF5C09) */
.btn-primary,
.btn-apply-coupon,
.btn-checkout {
  background: #CF5C09 !important;
  border-color: #CF5C09 !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-apply-coupon:hover,
.btn-checkout:hover {
  background: #CF5C09 !important;
  filter: brightness(0.95);
}

/* Cart Items */
.cart-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.cart-item:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.1); border-color: #8F4319; }

.cart-item-image { flex-shrink: 0; width: 120px; height: 80px; border-radius: 8px; overflow: hidden; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-content { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cart-item-info { flex: 1; }

.cart-item-title h4 { font-size: 1.1rem; font-weight: 600; color: #212529; margin-bottom: 0.5rem; line-height: 1.3; }
.cart-item-title:hover h4 { color: #8F4319; }

.cart-item-description { color: #6c757d; font-size: 0.9rem; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.cart-item-price { text-align: right; min-width: 100px; }
.price-current { font-size: 1.25rem; font-weight: 700; color: #8F4319; display: block; }
.price-original { font-size: 0.9rem; color: #6c757d; text-decoration: line-through; display: block; }
.price-free {
    color: #059669;
    font-weight: 600;
    font-size: 1rem;
}

.cart-item-actions { flex-shrink: 0; }
.btn-remove { background: #dc3545; color: white; border: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; }
.btn-remove:hover { background: #c82333; transform: scale(1.1); }

/* Cart Sidebar */
.cart-sidebar { position: sticky; top: 2rem; }

.cart-summary { background: white; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); padding: 2rem; border: 1px solid #e9ecef; }

.summary-title { font-size: 1.5rem; font-weight: 700; color: #212529; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; padding-bottom: 1rem; border-bottom: 2px solid #f8f9fa; }
.summary-title i { color: #8F4319; }

.summary-details { margin-bottom: 2rem; }

.coupon-success, .coupon-error { padding: 1rem; border-radius: 8px; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; }
.coupon-success { background: rgba(40, 167, 69, 0.1); color: #155724; border: 1px solid rgba(40, 167, 69, 0.2); }
.coupon-error { background: rgba(220, 53, 69, 0.1); color: #721c24; border: 1px solid rgba(220, 53, 69, 0.2); }

.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid #f8f9fa; font-size: 1rem; }
.summary-row:last-of-type { border-bottom: none; }
.summary-row.total { font-size: 1.25rem; font-weight: 700; color: #8F4319; border-top: 2px solid #f8f9fa; padding-top: 1rem; margin-top: 0.5rem; }
.summary-row small { color: #6c757d; font-weight: 400; }

/* Coupon Section */
.coupon-section { margin-bottom: 2rem; }
.coupon-form { margin: 0; }
.coupon-input-group { display: flex; gap: 0.5rem; }
.coupon-input { flex: 1; padding: 0.875rem 1rem; border: 2px solid #e9ecef; border-radius: 8px; font-size: 0.9rem; transition: all 0.3s ease; }
.coupon-input:focus { outline: none; border-color: #8F4319; box-shadow: 0 0 0 3px rgba(143, 67, 25, 0.1); }
.btn-apply-coupon { background: #8F4319; color: white; border: none; padding: 0.875rem 1.25rem; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 0.5rem; }
.btn-apply-coupon:hover { background: #B45309; transform: translateY(-1px); }

/* Checkout Form */
.checkout-form { margin: 0; }
.gift-option { margin-bottom: 1.5rem; }
.gift-checkbox { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; padding: 1rem; border: 2px solid #e9ecef; border-radius: 8px; transition: all 0.3s ease; }
.gift-checkbox:hover { border-color: #8F4319; }
.gift-checkbox input[type="checkbox"] { display: none; }
.gift-checkbox .checkmark { width: 20px; height: 20px; border: 2px solid #8F4319; border-radius: 4px; position: relative; transition: all 0.3s ease; }
.gift-checkbox input[type="checkbox"]:checked + .checkmark::after { content: '✓'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #8F4319; font-weight: bold; font-size: 0.8rem; }
.gift-checkbox i { color: #8F4319; font-size: 1.1rem; }
.gift-email-section { margin-bottom: 1.5rem; }
.gift-email-input { position: relative; }
.gift-email-input input { width: 100%; padding: 1rem; border: 2px solid #e9ecef; border-radius: 8px; font-size: 0.9rem; transition: all 0.3s ease; }
.gift-email-input input:focus { outline: none; border-color: #8F4319; box-shadow: 0 0 0 3px rgba(143, 67, 25, 0.1); }
.gift-message { font-size: 0.8rem; margin-top: 0.5rem; display: block; }

.btn-checkout { width: 100%; background: linear-gradient(135deg, #8F4319 0%, #B45309 100%); color: white; border: none; padding: 1.25rem; border-radius: 12px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
.btn-checkout:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(143, 67, 25, 0.3); }
.btn-checkout:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Responsive Design */
@media (max-width: 1200px) {
    .cart-container { grid-template-columns: 1fr 350px; gap: 1.5rem; }
}

@media (max-width: 992px) {
    .cart-container { grid-template-columns: 1fr; gap: 1.5rem; }
    .cart-sidebar { position: static; }
}

@media (max-width: 768px) {
    .shopping-cart-page { padding: 1rem 0; }
    .cart-container { padding: 0 0.5rem; }
    .cart-header { padding: 1.5rem; }
    .cart-title { font-size: 1.5rem; }
    .cart-items { padding: 1.5rem; }
    .cart-item { flex-direction: column; gap: 1rem; }
    .cart-item-content { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .cart-item-price { text-align: left; min-width: auto; }
    .cart-summary { padding: 1.5rem; }
    .coupon-input-group { flex-direction: column; }
    .btn-apply-coupon { justify-content: center; }
} 