/* ============================================
   CART PAGE STYLING - PROFESSIONAL DESIGN
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Cart Container */
.cart-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.cart-header {
    text-align: center;
    margin-bottom: 40px;
}

.cart-header h1 {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 10px;
}

.cart-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Cart Content Grid */
.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

/* Cart Items Section */
.cart-items {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    min-height: 300px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.empty-cart p {
    color: #666;
    margin-bottom: 30px;
}

.btn-shop {
    display: inline-block;
    background: #e63946;
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-shop:hover {
    background: #c02a35;
}

/* Cart Item Card */
.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #000;
}

.cart-item-price {
    font-size: 1rem;
    color: #e63946;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #fff5f5;
    border-radius: 6px;
    border: 1px solid #ffe0e0;
}

.cart-item-price i {
    font-size: 0.9rem;
    color: #ff6b6b;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #e63946;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #e63946;
    font-weight: bold;
}

.qty-btn:hover {
    background: #e63946;
    color: #fff;
    transform: scale(1.05);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-btn i {
    font-size: 0.85rem;
    pointer-events: none;
}

.qty-display {
    font-size: 1.2rem;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
    color: #000;
    padding: 0 5px;
}

/* Cutting Selection */
.cutting-selection {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cutting-selection label {
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cutting-selection label i {
    color: #e63946;
}

.cutting-dropdown {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: #333;
}

.cutting-dropdown:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.cutting-dropdown:hover {
    border-color: #e63946;
}

.cutting-dropdown:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Required Badge */
.required-badge {
    display: inline-block;
    background: #e63946;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Size Validation Message */
.size-validation {
    margin-top: 5px;
    padding: 8px 12px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 6px;
}

.size-validation i {
    color: #ffc107;
}

/* Price Info Display */
.price-info {
    margin-top: 12px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
    animation: fadeInScale 0.3s ease;
}

.price-info i {
    font-size: 1.2rem;
    color: #4caf50;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Size Select Styling */
.size-select {
    font-size: 0.95rem;
}

.size-select option {
    padding: 8px;
    font-weight: 500;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.item-subtotal {
    font-size: 1.3rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
}

.btn-remove {
    background: #fff;
    border: 1px solid #ff4444;
    color: #ff4444;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-remove:hover {
    background: #ff4444;
    color: #fff;
}

/* Cart Summary */
.cart-summary {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 120px;
}

.cart-summary h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #000;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
}

.summary-row:last-of-type {
    border-bottom: 2px solid #ddd;
    margin-bottom: 15px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    padding: 20px 0;
}

.delivery-note {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #666;
    border-left: 4px solid #e63946;
}

/* Customer Information Form */
.customer-info-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    border: 2px solid #dee2e6;
}

.customer-info-form h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #e63946;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #adb5bd;
}

.btn-checkout {
    width: 100%;
    background: #25D366;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-checkout:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-checkout i {
    font-size: 1.3rem;
}

.btn-continue {
    width: 100%;
    background: #fff;
    color: #e63946;
    border: 2px solid #e63946;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
}

.btn-continue:hover {
    background: #e63946;
    color: #fff;
}

/* Cart Badge (Navbar) */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e63946;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 7px;
    border-radius: 50%;
    display: none;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 100px;
    right: -400px;
    background: #fff;
    color: #000;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transition: right 0.3s ease;
    border-left: 4px solid #25D366;
}

.cart-notification.show {
    right: 20px;
}

.cart-notification i {
    color: #25D366;
    font-size: 1.5rem;
}

.cart-notification.error {
    border-left: 4px solid #e63946;
}

.cart-notification.error i {
    color: #e63946;
}

.cart-notification.success {
    border-left: 4px solid #28a745;
}

.cart-notification.success i {
    color: #28a745;
}

.cart-notification span {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 900px) {
    .cart-container {
        margin: 30px auto;
    }
    
    .cart-content {
        gap: 25px;
    }
    
    .cart-summary {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .cart-header h1 {
        font-size: 2rem;
    }
    
    .cart-header p {
        font-size: 1rem;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px 15px;
    }
    
    .cart-item-image {
        width: 100%;
        height: 200px;
        margin-bottom: 15px;
    }
    
    .cart-item-details {
        width: 100%;
    }
    
    .cart-item-details h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .cart-item-price {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .quantity-controls {
        width: 100%;
        justify-content: center;
        padding: 10px 15px;
        margin-bottom: 15px;
    }
    
    .qty-btn {
        width: 40px;
        height: 40px;
    }
    
    .qty-display {
        min-width: 50px;
        font-size: 1.3rem;
    }
    
    .cart-item-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .item-subtotal {
        font-size: 1.4rem;
        margin: 0;
    }
    
    .btn-remove {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .cart-summary {
        padding: 25px 20px;
    }
    
    .cart-notification {
        right: -300px;
        max-width: 280px;
    }
    
    .cart-notification.show {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .cart-container {
        margin: 10px auto;
        padding: 0 10px;
    }
    
    .cart-header {
        margin-bottom: 20px;
    }
    
    .cart-header h1 {
        font-size: 1.8rem;
    }
    
    .cart-items,
    .cart-summary {
        padding: 15px;
        border-radius: 10px;
    }
    
    .cart-item {
        padding: 15px 10px;
    }
    
    .cart-item-image {
        height: 180px;
    }
    
    .cart-item-details h3 {
        font-size: 1.1rem;
    }
    
    .cart-item-price {
        font-size: 1.1rem;
    }
    
    .quantity-controls {
        padding: 8px 12px;
    }
    
    .qty-btn {
        width: 38px;
        height: 38px;
    }
    
    .qty-display {
        min-width: 45px;
        font-size: 1.2rem;
    }
    
    .item-subtotal {
        font-size: 1.2rem;
    }
    
    .btn-remove {
        padding: 8px 16px;
        font-size: 0.95rem;
    }
    
    .cart-summary h2 {
        font-size: 1.5rem;
    }
    
    .summary-row {
        font-size: 0.95rem;
    }
    
    .summary-total {
        font-size: 1.3rem;
    }
    
    .customer-info-form {
        padding: 20px 15px;
    }
    
    .customer-info-form h3 {
        font-size: 1.1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .btn-checkout {
        font-size: 1rem;
        padding: 14px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .cart-header h1 {
        font-size: 1.5rem;
    }
    
    .cart-item-image {
        height: 150px;
    }
    
    .quantity-controls {
        gap: 8px;
        padding: 6px 10px;
    }
    
    .qty-btn {
        width: 34px;
        height: 34px;
    }
    
    .qty-display {
        min-width: 35px;
        font-size: 1.1rem;
    }
    
    .cart-item-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-remove {
        width: 100%;
    }
}
/* ============================================
   UNIVERSAL HEALTH BENEFITS CARD
   ============================================ */

.health-benefits-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Base Info Box */
.info-box.health {
    background: linear-gradient(135deg, #1d8b99, #15c39a);
    border-radius: 16px;
    padding: 30px;
    max-width: 100%;
    position: relative;
    overflow: hidden;

    /* 3D & Animation */
    transform-style: preserve-3d;
    animation: float3D 6s ease-in-out infinite, glowShift 8s linear infinite;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

/* Floating 3D Motion */
@keyframes float3D {
    0% {
        transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateY(0);
    }

    50% {
        transform: perspective(1000px) rotateX(6deg) rotateY(-6deg) translateY(-12px);
    }

    100% {
        transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateY(0);
    }
}

/* Background Color Shift */
@keyframes glowShift {
    0% {
        background: linear-gradient(135deg, #0e9eb1, #f0fdfa);
    }

    50% {
        background: linear-gradient(135deg, #d76004, #22d3ee);
    }

    100% {
        background: linear-gradient(135deg, #09b70f, #f0fdfa);
    }
}

/* Light Sweep Effect */
.info-box.health::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.45),
            transparent);
    animation: sweep 5s ease-in-out infinite;
}

@keyframes sweep {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(120%);
    }
}

/* Heading Animation */
.info-box.health h4 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #0f172a;
    animation: textFloat 4s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

/* Text Soft Motion */
.info-box.health p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #191a18;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Strong Highlight */
.info-box.health strong {
    color: #0d0d0c;
    font-weight: 700;
}

/* Text Float Animation */
@keyframes textFloat {
    0% {
        transform: translateZ(0);
    }

    50% {
        transform: translateZ(20px);
    }

    100% {
        transform: translateZ(0);
    }
}

/* Responsive for health card */
@media (max-width: 768px) {
    .health-benefits-container {
        margin: 30px auto;
        padding: 0 15px;
    }

    .info-box.health {
        padding: 22px;
        animation-duration: 7s, 10s;
    }

    .info-box.health h4 {
        font-size: 1.25rem;
    }

    .info-box.health p {
        font-size: 0.98rem;
    }
}

@media (max-width: 480px) {
    .health-benefits-container {
        margin: 25px auto;
    }

    .info-box.health {
        padding: 18px;
        border-radius: 14px;
    }

    .info-box.health h4 {
        font-size: 1.1rem;
    }

    .info-box.health p {
        font-size: 0.92rem;
        line-height: 1.6;
    }
}