/* Cart Page Styles moved from cart.ejs */
.cart-page {
    max-width: 1200px;
    margin: 120px auto 60px;
    padding: 0 20px;
    font-family: Helvetica, Arial, sans-serif;
    background: #fff;
}
.cart-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 30px;
}
.cart-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    border-radius: 2px;
}
.cart-title {
    font-size: 42px;
    font-weight: 900;
    color: #000;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #000 0%, #333 50%, #000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}
@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 0 transparent); }
    50% { filter: drop-shadow(0 0 8px rgba(0,0,0,0.3)); }
}
.cart-empty {
    text-align: center;
    padding: 100px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px solid #000;
    border-radius: 12px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}
.cart-empty::before {
    content: '🛒';
    font-size: 80px;
    display: block;
    margin-bottom: 20px;
    animation: emptyCartFloat 3s ease-in-out infinite;
}
@keyframes emptyCartFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.cart-empty-message {
    font-size: 24px;
    color: #000;
    margin-bottom: 30px;
    font-weight: 700;
}
.cart-items-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.cart-item-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    background: #fff;
    border: 3px solid #000;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cart-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.15);
}

.cart-item-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #000;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-item-card:hover .product-photo {
    transform: scale(1.05);
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name {
    font-size: 28px;
    font-weight: 900;
    color: #000;
    line-height: 1.2;
    margin-bottom: 15px;
}

.product-meta {
    margin-bottom: 20px;
}

.product-spec {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-spec strong {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000;
}

.product-pricing {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 700;
}

.unit-price,
.total-price {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #000;
}

.cart-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: auto;
}
.quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 3px solid #000;
    border-radius: 25px;
    width: fit-content;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.qty-btn {
    background: #fff;
    border: none;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.qty-btn:hover {
    background: #000;
    color: #fff;
    transform: scale(1.1);
}
.qty-btn:active {
    transform: scale(0.95);
}
.qty-display {
    font-size: 18px;
    font-weight: 800;
    color: #000;
    min-width: 60px;
    text-align: center;
    padding: 0 15px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}
.price {
    font-size: 22px;
    font-weight: 800;
    color: #000;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.remove-btn {
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
    border: 3px solid #ff4757;
    color: #fff;
    cursor: pointer;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}
.remove-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}
.remove-btn:hover::before {
    left: 100%;
}
.remove-btn:hover {
    background: #fff;
    color: #ff4757;
    border-color: #ff4757;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.3);
}
.remove-btn:active {
    transform: scale(0.95);
}
.cart-summary {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 3px solid #000;
    border-radius: 12px;
    padding: 50px;
    margin-top: 50px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}
.cart-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #000, #333, #000);
}
.summary-title {
    font-size: 28px;
    font-weight: 900;
    color: #000;
    margin-bottom: 35px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 20px;
}
.summary-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    border-radius: 2px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    color: #000;
    font-weight: 600;
    font-size: 17px;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}
.summary-row:hover {
    background: rgba(0,0,0,0.02);
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 6px;
}
.summary-row:last-child {
    border-bottom: none;
}
.summary-row.total {
    border-top: 3px solid #000;
    margin-top: 25px;
    padding-top: 30px;
    font-weight: 900;
    color: #000;
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, rgba(0,0,0,0.05), rgba(0,0,0,0.02));
    padding: 25px 15px;
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 8px;
}
.promo-form {
    margin: 35px 0;
    display: flex;
    gap: 0;
    border: 3px solid #000;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    position: relative;
}
.promo-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent);
    transition: left 0.5s ease;
}
.promo-form:focus-within::before {
    left: 100%;
}
.promo-input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    font-size: 16px;
    outline: none;
    font-weight: 600;
    background: #fff;
    transition: all 0.3s ease;
}
.promo-input:focus {
    background: #f8f9fa;
}
.promo-input::placeholder {
    color: #999;
    font-weight: 500;
}
.promo-submit {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: #fff;
    border: none;
    padding: 18px 35px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}
.promo-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.promo-submit:hover::before {
    left: 100%;
}
.promo-submit:hover {
    background: linear-gradient(135deg, #333 0%, #000 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.checkout-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: #fff;
    padding: 25px;
    border: 3px solid #000;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 35px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}
.checkout-btn:hover::before {
    left: 100%;
}
.checkout-btn:hover {
    background: #fff;
    color: #000;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}
.checkout-btn:active {
    transform: translateY(-1px);
}
.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 2px solid transparent;
    padding: 15px 20px;
    border-radius: 8px;
    position: relative;
}
.continue-shopping::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(0,0,0,0.05);
    transition: width 0.3s ease;
    z-index: -1;
}
.continue-shopping:hover::before {
    width: 100%;
}
.continue-shopping:hover {
    color: #000;
    text-decoration: none;
    border-color: #000;
    transform: translateY(-2px);
}
.flash-message {
    padding: 25px 30px;
    margin-bottom: 35px;
    font-size: 16px;
    font-weight: 700;
    animation: flashSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid;
    border-radius: 12px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.flash-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: flashShine 2s ease-in-out infinite;
}
@keyframes flashShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}
.flash-success {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    color: #000;
    border-color: #000;
}
.flash-error {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: #fff;
    border-color: #000;
}
@keyframes flashSlideIn {
    from { 
        opacity: 0; 
        transform: translateY(-20px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}
.loading-state {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}
.loading-state::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.cart-item:hover .product-image {
    transform: scale(1.05);
}
.cart-item:hover .product-details h3 {
    color: #333;
}
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-table::-webkit-scrollbar {
    height: 8px;
}
.cart-table::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.cart-table::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 4px;
}
.cart-table::-webkit-scrollbar-thumb:hover {
    background: #333;
}
.size-guide-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #000;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.size-guide-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cart-dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(0,0,0,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23cart-dots)"/></svg>');
    opacity: 0.5;
}
.size-guide-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}
.size-guide-section .size-guide-icon {
    width: 24px;
    height: 24px;
    color: #000;
    stroke-width: 2.5;
}
.size-guide-header span {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.size-guide-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}
.size-guide-section .size-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 20px;
    border: 2px solid #000;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 140px;
    justify-content: center;
}
.size-guide-section .size-guide-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
    transition: left 0.5s ease;
}
.size-guide-section .size-guide-link:hover::before {
    left: 100%;
}
.size-guide-section .size-guide-link:hover {
    background: #000;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.size-guide-section .link-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
}
.size-guide-section .size-guide-link:hover .link-icon {
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .cart-item-card {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .product-name {
        font-size: 22px;
    }

    .product-pricing {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .cart-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .remove-btn {
        width: 100%;
        justify-content: center;
    }

    .remove-btn span {
        display: inline-block;
        margin-left: 8px;
    }

    .cart-page {
        margin: 100px auto 40px;
        padding: 0 15px;
    }

    .cart-title {
        font-size: 28px;
    }

    .cart-summary {
        padding: 25px;
    }
    .summary-title {
        font-size: 20px;
    }
    .qty-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    .qty-display {
        min-width: 40px;
        height: 35px;
        font-size: 14px;
    }
    .price {
        font-size: 16px;
    }
    .remove-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    .checkout-btn {
        padding: 18px;
        font-size: 16px;
    }
    .size-guide-section {
        padding: 20px;
        margin: 20px 0;
    }
    .size-guide-header span {
        font-size: 16px;
    }
    .size-guide-links {
        flex-direction: column;
        align-items: center;
    }
    .size-guide-section .size-guide-link {
        width: 100%;
        max-width: 200px;
    }
}
@media (max-width: 480px) {
    .cart-table,
    .cart-table thead,
    .cart-table tbody,
    .cart-table th,
    .cart-table td,
    .cart-table tr {
        display: block;
    }
    .cart-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .cart-item {
        border: 2px solid #000;
        margin-bottom: 15px;
        padding: 20px;
    }
    .cart-item td {
        border: none;
        padding: 10px 0;
        position: relative;
        padding-left: 50%;
    }
    .cart-item td:before {
        content: attr(data-label);
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 700;
        color: #000;
        text-transform: uppercase;
        font-size: 12px;
        letter-spacing: 0.5px;
    }
    .product-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .quantity-control {
        margin-left: 0;
    }
}
