/* ============================================
   Checkout Page - Professional Design
   Modern, Clean & Responsive
   ============================================ */

/* ============================================
   Main Container & Layout
   ============================================ */

.checkout-main {
    direction: rtl;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
    padding-bottom: 4rem;
    width: 100%;
    overflow-x: hidden;
}

.checkout-container {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (min-width: 640px) {
    .checkout-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media (min-width: 1024px) {
    .checkout-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.checkout-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Page Header
   ============================================ */

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

.checkout-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.checkout-header-icon svg {
    color: #ffffff;
    width: 32px;
    height: 32px;
}

.checkout-page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.checkout-page-subtitle {
    color: #6b7280;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.6;
}

/* ============================================
   Steps Indicator - Modern Design
   ============================================ */

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    flex: 1;
    max-width: 140px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkout-step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    font-weight: 700;
    background: #f3f4f6;
    color: #9ca3af;
    border: 3px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.checkout-step.active .checkout-step-number {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #ffffff;
    border-color: #1f2937;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.25);
    transform: scale(1.1);
    animation: pulse 2s infinite;
}

.checkout-step.completed .checkout-step-number {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-color: #10b981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.checkout-step.completed .checkout-step-number::after {
    content: '✓';
    font-size: 1.75rem;
    font-weight: 700;
}

.checkout-step-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #9ca3af;
    text-align: center;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.checkout-step.active .checkout-step-label {
    color: #1f2937;
    font-weight: 700;
    transform: translateY(-2px);
}

.checkout-step.completed .checkout-step-label {
    color: #10b981;
}

.checkout-step-line {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin: 0 0.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.checkout-step.completed + .checkout-step-line {
    background: linear-gradient(90deg, #10b981 0%, #e5e7eb 100%);
}

.checkout-step.active + .checkout-step-line {
    background: linear-gradient(90deg, #1f2937 0%, #e5e7eb 100%);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(31, 41, 55, 0.25);
    }
    50% {
        box-shadow: 0 8px 32px rgba(31, 41, 55, 0.4);
    }
}

/* ============================================
   Section Headers & Cards
   ============================================ */

#checkout-items,
.checkout-summary-card,
.checkout-form-card {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.5rem;
}

#checkout-items:hover,
.checkout-summary-card:hover,
.checkout-form-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.checkout-section-header {
    padding: 1.75rem 2rem;
    border-bottom: 1px solid #f3f4f6;
    background: linear-gradient(to bottom, #fafbfc 0%, #ffffff 100%);
}

.checkout-section-body {
    padding: 2rem;
}

.checkout-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
    letter-spacing: -0.01em;
}

.checkout-section-title svg {
    color: #1f2937;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.checkout-section-title span {
    flex: 1;
}

.checkout-section-subtitle {
    font-size: 0.9375rem;
    color: #6b7280;
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-weight: 500;
}

/* ============================================
   Empty Cart Message - Professional Design
   ============================================ */

#empty-cart-message {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease;
}

#empty-cart-message::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

#empty-cart-message::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.05) 0%, transparent 70%);
    animation: rotate 25s linear infinite reverse;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#empty-cart-message > * {
    position: relative;
    z-index: 1;
}

#empty-cart-message .inline-flex {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 
                0 4px 16px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: float 3s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

#empty-cart-message .inline-flex svg {
    width: 64px;
    height: 64px;
    color: #60a5fa;
    filter: drop-shadow(0 2px 8px rgba(96, 165, 250, 0.3));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

#empty-cart-message h2 {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

#empty-cart-message p {
    color: #64748b;
    font-size: 1.25rem;
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#empty-cart-message a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    color: #ffffff;
    padding: 1.25rem 2.5rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3),
                0 4px 12px rgba(37, 99, 235, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#empty-cart-message a::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;
}

#empty-cart-message a:hover::before {
    left: 100%;
}

#empty-cart-message a:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4),
                0 6px 16px rgba(37, 99, 235, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
}

#empty-cart-message a:active {
    transform: translateY(-1px) scale(0.98);
}

#empty-cart-message a svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

#empty-cart-message a:hover svg {
    transform: translateX(4px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Cart Items List
   ============================================ */

#cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item-card {
    background: #ffffff;
    border: 2px solid #f3f4f6;
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    gap: 1.5rem;
    align-items: center;
    animation: slideIn 0.4s ease;
    position: relative;
    overflow: hidden;
}

.cart-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-item-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-color: #1f2937;
    transform: translateY(-2px);
}

.cart-item-card:hover::before {
    opacity: 1;
}

.cart-item-card img {
    width: 140px;
    height: 140px;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    border: 2px solid #f3f4f6;
    transition: all 0.3s ease;
}

.cart-item-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.cart-item-card .flex-1 {
    flex: 1;
    min-width: 0;
}

.cart-item-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.cart-item-card .flex.items-center.gap-2 {
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.9375rem;
}

.cart-item-card .flex.items-center.gap-2 svg {
    width: 16px;
    height: 16px;
}

.cart-item-card .flex.items-center.gap-4 {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   Quantity Controls
   ============================================ */

.qty-btn {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #374151;
    user-select: none;
}

.qty-btn:hover {
    background: #1f2937;
    border-color: #1f2937;
    color: #ffffff;
    transform: scale(1.1);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-value {
    min-width: 60px;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    padding: 0 0.5rem;
}

/* ============================================
   Remove Item Button
   ============================================ */

.remove-item-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    border: 2px solid rgba(220, 38, 38, 0.2);
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9375rem;
    font-weight: 600;
}

.remove-item-btn:hover {
    background: #dc2626;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
    border-color: #dc2626;
}

.remove-item-btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* ============================================
   Order Summary Section
   ============================================ */

.checkout-summary-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checkout-summary-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    transition: all 0.2s ease;
}

.checkout-summary-item:not(:last-child) {
    border-bottom: 1px solid #f3f4f6;
}

.checkout-summary-item:hover {
    background: #fafbfc;
    margin: 0 -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border-radius: 0.5rem;
}

.checkout-summary-total {
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 2px solid #e5e7eb;
    border-bottom: none !important;
    background: linear-gradient(to right, #fafbfc 0%, transparent 100%);
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.checkout-summary-label {
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkout-summary-label svg {
    width: 18px;
    height: 18px;
}

.checkout-summary-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.checkout-summary-value-large {
    font-size: 1.875rem;
    font-weight: 800;
    color: #ec4899;
    letter-spacing: -0.02em;
}

/* ============================================
   Customer Form
   ============================================ */

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
}

.checkout-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .checkout-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.checkout-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkout-form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #374151;
}

.checkout-form-label svg {
    color: #1f2937;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.checkout-form-label .text-red-500 {
    color: #ef4444;
    font-weight: 700;
}

.checkout-form-input,
.checkout-form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    color: #1f2937;
    background: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkout-form-input:focus,
.checkout-form-textarea:focus {
    outline: none;
    border-color: #1f2937;
    box-shadow: 0 0 0 4px rgba(31, 41, 55, 0.1);
    background: #ffffff;
}

.checkout-form-input::placeholder,
.checkout-form-textarea::placeholder {
    color: #9ca3af;
}

.checkout-form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* ============================================
   Action Buttons
   ============================================ */

.checkout-form-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

@media (min-width: 640px) {
    .checkout-form-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

.checkout-action-btn {
    width: 100%;
    padding: 1.125rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.checkout-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.checkout-action-btn:hover::before {
    width: 400px;
    height: 400px;
}

.checkout-action-btn span,
.checkout-action-btn svg {
    position: relative;
    z-index: 1;
}

.checkout-action-btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.checkout-btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
}

.checkout-btn-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.checkout-btn-email {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: #ffffff;
}

.checkout-btn-email:hover {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.checkout-action-btn:active {
    transform: translateY(0);
}

/* ============================================
   Responsive Design - Professional & Complete
   ============================================ */

/* Tablet Large (768px and below) */
@media (max-width: 768px) {
    .checkout-main {
        padding-bottom: 2rem;
    }
    
    .checkout-page-header {
        margin-bottom: 2rem;
    }
    
    .checkout-page-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
    
    .checkout-page-subtitle {
        font-size: clamp(1rem, 2vw, 1.125rem);
    }
    
    .checkout-steps {
        padding: 1.5rem 1rem;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .checkout-step {
        flex: 0 0 auto;
        min-width: 100px;
    }
    
    .checkout-step-number {
        width: 48px;
        height: 48px;
        font-size: 1.125rem;
    }
    
    .checkout-step-label {
        font-size: 0.75rem;
    }
    
    .checkout-step-line {
        margin: 0 0.25rem;
        height: 3px;
        min-width: 20px;
    }
    
    .checkout-section-header {
        padding: 1.5rem 1.25rem;
    }
    
    .checkout-section-body {
        padding: 1.5rem 1.25rem;
    }
    
    .checkout-section-title {
        font-size: 1.25rem;
        flex-wrap: wrap;
    }
    
    .checkout-summary-content {
        padding: 1.5rem 1.25rem;
    }
    
    .checkout-summary-total {
        margin-left: -1.25rem;
        margin-right: -1.25rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    .checkout-form {
        padding: 1.5rem 1.25rem;
    }
    
    .checkout-form-actions {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .checkout-action-btn {
        padding: 1rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .cart-item-card {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .cart-item-card img {
        width: 100%;
        height: 200px;
        margin-bottom: 0;
    }
    
    .cart-item-card .flex.items-center.gap-4 {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .qty-btn {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }
    
    .remove-item-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
    }
}

/* Mobile Large (640px and below) */
@media (max-width: 640px) {
    main {
        padding-bottom: 1.5rem;
    }
    
    main .text-center {
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    main .text-center h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 0.5rem;
    }
    
    main .text-center p {
        font-size: clamp(0.9375rem, 2.5vw, 1rem);
    }
    
    .checkout-steps {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem 0.75rem;
    }
    
    .checkout-step {
        max-width: 100%;
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
    }
    
    .checkout-step-number {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        flex-shrink: 0;
    }
    
    .checkout-step-label {
        font-size: 0.875rem;
        text-align: right;
    }
    
    .checkout-step-line {
        width: 4px;
        height: 40px;
        margin: 0.5rem 0;
        min-width: 4px;
    }
    
    .checkout-section-header {
        padding: 1.25rem 1rem;
    }
    
    .checkout-section-body {
        padding: 1.25rem 1rem;
    }
    
    .checkout-section-title {
        font-size: 1.125rem;
    }
    
    .checkout-summary-content {
        padding: 1.25rem 1rem;
    }
    
    .checkout-summary-total {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .checkout-form {
        padding: 1.25rem 1rem;
        gap: 1.25rem;
    }
    
    .checkout-form-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .checkout-action-btn {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
    
    .checkout-action-btn svg {
        width: 18px;
        height: 18px;
    }
    
    #empty-cart-message {
        padding: 3rem 1.5rem;
        border-radius: 1.5rem;
        margin: 1.5rem 0;
    }
    
    #empty-cart-message .inline-flex {
        width: 100px;
        height: 100px;
        margin-bottom: 1.5rem;
    }
    
    #empty-cart-message .inline-flex svg {
        width: 52px;
        height: 52px;
    }
    
    #empty-cart-message h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    #empty-cart-message p {
        font-size: 1.0625rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    
    #empty-cart-message a {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }
    
    #empty-cart-message a svg {
        width: 20px;
        height: 20px;
    }
    
    .cart-item-card {
        padding: 1rem;
    }
    
    .cart-item-card img {
        height: 180px;
    }
    
    .cart-item-card h3 {
        font-size: 1.125rem;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .checkout-page-title {
        font-size: 1.5rem;
    }
    
    .checkout-header-icon {
        width: 48px;
        height: 48px;
    }
    
    .checkout-header-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .checkout-steps {
        padding: 1rem 0.5rem;
        gap: 0.75rem;
    }
    
    .checkout-step-number {
        width: 40px;
        height: 40px;
        font-size: 0.9375rem;
    }
    
    .checkout-step-label {
        font-size: 0.8125rem;
    }
    
    .checkout-section-header {
        padding: 1rem 0.75rem;
    }
    
    .checkout-section-body {
        padding: 1rem 0.75rem;
    }
    
    .checkout-section-title {
        font-size: 1rem;
        gap: 0.5rem;
    }
    
    .checkout-section-title svg {
        width: 20px;
        height: 20px;
    }
    
    .checkout-summary-content {
        padding: 1rem 0.75rem;
    }
    
    .checkout-summary-total {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        padding-top: 1rem;
    }
    
    .checkout-summary-value {
        font-size: 1.125rem;
    }
    
    .checkout-summary-value-large {
        font-size: 1.5rem;
    }
    
    .checkout-form {
        padding: 1rem 0.75rem;
    }
    
    .checkout-form-input,
    .checkout-form-textarea {
        padding: 0.875rem 1rem;
        font-size: 16px; /* Prevent iOS zoom */
    }
    
    .checkout-action-btn {
        padding: 0.875rem;
        font-size: 0.875rem;
    }
    
    .cart-item-card {
        padding: 0.875rem;
    }
    
    .cart-item-card img {
        height: 160px;
    }
    
    .qty-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .qty-value {
        min-width: 50px;
        font-size: 1rem;
    }
    
    .remove-item-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    #empty-cart-message {
        padding: 2.5rem 1rem;
        border-radius: 1.25rem;
        margin: 1rem 0;
    }
    
    #empty-cart-message .inline-flex {
        width: 90px;
        height: 90px;
        margin-bottom: 1.25rem;
    }
    
    #empty-cart-message .inline-flex svg {
        width: 48px;
        height: 48px;
    }
    
    #empty-cart-message h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    #empty-cart-message p {
        font-size: 1rem;
        margin-bottom: 1.75rem;
        padding: 0 0.5rem;
    }
    
    #empty-cart-message a {
        padding: 0.9375rem 1.75rem;
        font-size: 0.9375rem;
        width: 100%;
        max-width: 100%;
    }
    
    #empty-cart-message a svg {
        width: 18px;
        height: 18px;
    }
}

/* Large Desktop (1280px and above) */
@media (min-width: 1280px) {
    .checkout-steps {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .checkout-summary-section {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================
   Loading States & Animations
   ============================================ */

.checkout-section-body {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.hidden {
    display: none !important;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .checkout-action-btn,
    .qty-btn,
    .remove-item-btn {
        display: none;
    }
    
    #checkout-items,
    .checkout-summary-card,
    .checkout-form-card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}

