/* ===========================
   LED STIL - COMMERCE STYLESHEET
   Payment Styles Only
   Product page styles moved to product-page-modern.css
   Cart styles moved to modern.css
   =========================== */

/* ========== PAYMENT PAGE ==========*/
.payment-page {
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--neutral-100);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeIn 1s ease-in-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--neutral-800);
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--neutral-600);
    text-shadow: none;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--neutral-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Delivery Section */
.delivery-section {
    padding: 80px 0;
    background-color: var(--neutral-50);
}

.delivery-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.delivery-card {
    background: var(--neutral-100);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-md);
    position: relative;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.delivery-card:nth-child(1) { animation-delay: 0.1s; }
.delivery-card:nth-child(2) { animation-delay: 0.2s; }
.delivery-card:nth-child(3) { animation-delay: 0.3s; }
.delivery-card:nth-child(4) { animation-delay: 0.4s; }

.delivery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-300);
}

.delivery-icon {
    width: 80px;
    height: 80px;
    background: var(--neutral-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: var(--neutral-700);
    box-shadow: var(--shadow-md);
}

.delivery-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 12px;
}

.delivery-time {
    color: var(--primary-600);
    font-weight: 500;
    margin-bottom: 20px;
}

.delivery-details {
    list-style: none;
    padding: 0;
    margin: 0;
     padding: var(--space-xl) var(--space-lg) 0;
}

.delivery-details li {
    padding: 6px 0;
    border-bottom: 1px solid var(--neutral-200);
    color: var(--neutral-700);
}

.delivery-details li:last-child {
    border-bottom: none;
}

.delivery-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-600);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.delivery-badge.free {
    background: var(--success-600);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 18px;
    }

    .delivery-section,
    .delivery-info,
    .payment-section {
        padding: 60px 0;
    }

    .delivery-options {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .delivery-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 400px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .delivery-card {
        padding: 25px 15px;
    }
}

/* =====================
   CART PAGE (CATEGORY TEMPLATE BASE)
   ===================== */

.cart-shell {
    background: var(--neutral-50);
    padding: 0 0 var(--space-2xl);
}

/* =====================
   ENTRANCE ANIMATIONS
   ===================== */

.cart-header,
.cart-item,
.cart-summary-card,
.cart-help-card,
.cart-empty,
.cart-loading,
.cart-sidebar {
    animation: fadeInUp 0.6s ease-out both;
}

.cart-header {
    animation-delay: 0.05s;
}

.cart-item:nth-child(odd) {
    animation-delay: 0.08s;
}

.cart-item:nth-child(even) {
    animation-delay: 0.14s;
}

.cart-summary-card {
    animation-delay: 0.12s;
}

.cart-help-card {
    animation-delay: 0.18s;
}

.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg) 0;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.cart-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-lg);
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid var(--neutral-200);
}

.cart-title {
    margin: 0;
    font-size: var(--text-3xl);
    font-weight: var(--font-semibold);
    color: var(--primary-800);
    letter-spacing: -0.02em;
}

.cart-subtitle {
    margin: var(--space-xs) 0 0;
    color: var(--neutral-600);
    font-size: var(--text-base);
}

.cart-header__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--neutral-200);
    color: var(--primary-700);
    text-decoration: none;
    background: #ffffff;
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
}

.cart-header__link:hover {
    border-color: var(--primary-400);
    background: var(--accent-light);
}

.cart-loading {
    padding: var(--space-2xl) 0;
    text-align: center;
    color: var(--neutral-600);
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--space-xl);
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    gap: var(--space-lg);
    padding: var(--space-lg);
    align-items: stretch;
    border-radius: 16px;
    border: 1px solid var(--neutral-200);
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.cart-item:hover {
    border-color: var(--primary-400);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.cart-item__media {
    width: 110px;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    border: 1px solid var(--neutral-200);
    background: var(--neutral-100);
    overflow: hidden;
}

.cart-item__media a {
    display: block;
    width: 100%;
    height: 100%;
}

.cart-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    justify-content: space-between;
}

.cart-item__title {
    margin: 0;
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--primary-800);
    line-height: 1.35;
}

.cart-item__title a {
    color: inherit;
    text-decoration: none;
}

.cart-item__title a:hover {
    color: var(--primary-600);
}

.cart-item__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
}

.cart-item__price {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--primary-700);
}

.cart-item__min {
    font-size: var(--text-sm);
    color: var(--neutral-500);
}

.cart-item__controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-sm);
    align-self: end;
    justify-self: end;
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--neutral-200);
    background: var(--neutral-50);
}

.cart-qty__btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid var(--neutral-200);
    background: #ffffff;
    color: var(--primary-700);
    cursor: pointer;
}

.cart-qty__btn:hover {
    border-color: var(--primary-400);
    color: var(--primary-600);
}

.cart-qty__input {
    width: 54px;
    text-align: center;
    border-radius: 7px;
    border: 1px solid var(--neutral-200);
    font-weight: var(--font-semibold);
    color: var(--primary-800);
    background: #ffffff;
    font-size: var(--text-sm);
}

.cart-item__subtotal {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--primary-800);
}

.cart-remove {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: #fff2f2;
    color: var(--error);
    cursor: pointer;
}

.cart-remove:hover {
    background: var(--error);
    color: #ffffff;
}

.cart-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    position: sticky;
    top: 96px;
    align-self: start;
}

.cart-summary-card,
.cart-help-card {
    border-radius: 16px;
    border: 1px solid var(--neutral-200);
    background: #ffffff;
    padding: var(--space-lg);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.cart-summary__title {
    margin: 0 0 var(--space-md);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--primary-800);
}

.cart-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 0 var(--space-md);
    border-bottom: 1px solid var(--neutral-200);
    color: var(--neutral-700);
    font-size: var(--text-base);
    line-height: 1.4;
}

.cart-total__value {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--primary-800);
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: var(--font-semibold);
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.cart-btn--primary {
    background: var(--primary-600);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(74, 111, 165, 0.28);
}

.cart-btn--primary:hover {
    background: var(--primary-700);
    box-shadow: 0 12px 22px rgba(74, 111, 165, 0.32);
    transform: translateY(-1px);
}

.cart-btn--ghost {
    background: #ffffff;
    color: var(--primary-700);
    border-color: var(--neutral-200);
}

.cart-btn--ghost:hover {
    background: var(--accent-light);
    border-color: var(--primary-400);
}

.cart-help__title {
    margin: 0 0 var(--space-sm);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--primary-800);
}

.cart-help__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-help__link {
    color: var(--primary-600);
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: var(--text-sm);
}

.cart-help__link:hover {
    background: var(--accent-light);
}

.cart-empty {
    background: #ffffff;
    border: 1px solid var(--neutral-200);
    border-radius: 18px;
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.cart-empty__icon {
    font-size: 3rem;
    color: var(--primary-600);
    margin-bottom: var(--space-sm);
}

.cart-empty__title {
    margin: 0 0 var(--space-xs);
    font-size: var(--text-lg);
    color: var(--primary-800);
}

.cart-empty__text {
    margin: 0 0 var(--space-lg);
    color: var(--neutral-600);
    font-size: var(--text-sm);
}

@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        position: static;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cart-header,
    .cart-item,
    .cart-summary-card,
    .cart-help-card,
    .cart-empty,
    .cart-loading,
    .cart-sidebar {
        animation: none;
    }
}

@media (max-width: 768px) {
    .cart-shell {
        padding: var(--space-xl) 0;
    }

    .cart-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-title {
        font-size: var(--text-2xl);
    }

    .cart-item {
        grid-template-columns: 1fr;
        padding: var(--space-md);
    }

    .cart-item__media {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .cart-item__controls {
        align-items: flex-start;
    }

    .cart-qty {
        width: 100%;
        justify-content: space-between;
    }

    .cart-qty__input {
        width: 72px;
    }
}

@media (max-width: 520px) {
    .cart-container {
        padding: 0 var(--space-md);
    }

    .cart-summary__title,
    .cart-help__title {
        text-align: center;
    }

    .cart-summary__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}
