/* ===========================================
   استایل‌های فروشگاه - بهینه‌سازی شده
   =========================================== */

/* ===========================================
   فونت Estedad
   =========================================== */
@font-face {
    font-family: 'Estedad';
    src: url('../../font/Estedad-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('../../font/Estedad-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('../../font/Estedad-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('../../font/Estedad-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables - استفاده از رنگ‌بندی قالب سایت */
:root {
    --shop-primary: var(--primary-color, #667eea);
    --shop-primary-hover: var(--secondary-color, #764ba2);
    --shop-success: #198754;
    --shop-danger: #dc3545;
    --shop-warning: #ffc107;
    --shop-info: #0dcaf0;
    --shop-light: #f8f9fa;
    --shop-dark: #212529;
    --shop-border-radius: 0.5rem;
    --shop-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shop-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shop-shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* فرمت اعداد با جداکننده و LTR */
.number-format {
    direction: ltr;
    text-align: left;
    display: inline-block;
    unicode-bidi: embed;
}

/* ===========================================
   فونت و لینک‌ها
   =========================================== */
.shop-content,
.shop-content *,
.shop-navbar,
.shop-navbar * {
    font-family: Estedad, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* استثنا: حفظ فونت Font Awesome برای آیکن‌ها - با specificity بالا */
.shop-content .fas,
.shop-content .far,
.shop-content .fab,
.shop-content .fa,
.shop-content i[class*="fa-"],
.shop-content i[class^="fa-"],
.shop-content i[class*=" fa-"],
.shop-navbar .fas,
.shop-navbar .far,
.shop-navbar .fab,
.shop-navbar .fa,
.shop-navbar i[class*="fa-"],
.shop-navbar i[class^="fa-"],
.shop-navbar i[class*=" fa-"],
.shop-content i.fas,
.shop-content i.far,
.shop-content i.fab,
.shop-content i.fa,
.shop-navbar i.fas,
.shop-navbar i.far,
.shop-navbar i.fab,
.shop-navbar i.fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    speak: none !important;
}

/* برای آیکن‌های regular (far) */
.shop-content .far,
.shop-navbar .far,
.shop-content i.far,
.shop-navbar i.far {
    font-weight: 400 !important;
}

/* برای آیکن‌های brands (fab) */
.shop-content .fab,
.shop-navbar .fab,
.shop-content i.fab,
.shop-navbar i.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* اطمینان از اینکه ::before برای آیکن‌ها کار می‌کند */
.shop-content .fas::before,
.shop-content .far::before,
.shop-content .fab::before,
.shop-content .fa::before,
.shop-content i[class*="fa-"]::before,
.shop-navbar .fas::before,
.shop-navbar .far::before,
.shop-navbar .fab::before,
.shop-navbar .fa::before,
.shop-navbar i[class*="fa-"]::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.shop-content .far::before,
.shop-navbar .far::before {
    font-weight: 400 !important;
}

.shop-content .fab::before,
.shop-navbar .fab::before {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* حذف underline از لینک‌ها در shop - با specificity بالاتر بدون !important */
.shop-content a,
.shop-content a:hover,
.shop-content a:focus,
.shop-content a:active,
.shop-content a:visited,
.shop-content a:link,
.shop-navbar a,
.shop-navbar a:hover,
.shop-navbar a:focus,
.shop-navbar a:active,
.shop-navbar a:visited,
.shop-navbar a:link {
    text-decoration: none;
}

/* استثنا: فقط برای breadcrumb و prose در hover underline نمایش داده شود */
.shop-content .breadcrumb-item a:hover,
.shop-content .prose a:hover {
    text-decoration: underline;
}

/* ===========================================
   کارت محصول
   =========================================== */
.product-card {
    position: relative;
    background: #fff;
    border-radius: var(--shop-border-radius);
    overflow: hidden;
    transition: var(--shop-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shop-shadow-hover);
    border-color: var(--primary-color, #667eea);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* نسبت 1:1 */
    overflow: hidden;
    background: var(--shop-light);
}

.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--shop-transition);
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--shop-light);
}

.product-title {
    color: var(--shop-dark);
    font-weight: 600;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3em;
    transition: var(--shop-transition);
}

.product-title:hover {
    color: var(--primary-color, #667eea);
}

/* ===========================================
   تصاویر محصول (صفحه جزئیات)
   =========================================== */
.product-main-image {
    position: relative;
    background: var(--shop-light);
    border-radius: var(--shop-border-radius);
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumbnails {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color, #667eea) transparent;
}

.product-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.product-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.product-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-color, #667eea);
    border-radius: 3px;
}

.product-thumb {
    border: 2px solid transparent;
    transition: var(--shop-transition);
    opacity: 0.7;
}

.product-thumb:hover,
.product-thumb.active {
    opacity: 1;
    border-color: var(--primary-color, #667eea);
    transform: scale(1.05);
}

/* ===========================================
   انیمیشن‌ها
   =========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }

/* ===========================================
   دکمه‌ها - استفاده از رنگ‌بندی قالب سایت
   =========================================== */
.shop-content .btn-primary,
.shop-navbar .btn-primary {
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    border: none;
    color: white;
    transition: var(--shop-transition);
    font-weight: 600;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shop-content .btn-primary:hover,
.shop-navbar .btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color, #764ba2) 0%, var(--primary-color, #667eea) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shop-shadow-hover);
}

.add-to-cart-btn {
    transition: var(--shop-transition);
}

.add-to-cart-btn:hover {
    transform: scale(1.1);
    color: var(--primary-color, #667eea);
}

.variant-btn {
    transition: var(--shop-transition);
    border-width: 2px;
}

.variant-btn:hover {
    border-color: var(--primary-color, #667eea);
    background: rgba(102, 126, 234, 0.1);
}

.variant-btn.active {
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    color: #fff;
    border: none;
}

/* ===========================================
   فیلترها
   =========================================== */
.price-filter-form input[type="number"] {
    transition: var(--shop-transition);
}

.price-filter-form input[type="number"]:focus {
    border-color: var(--primary-color, #667eea);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* ===========================================
   نوار ناوبری
   =========================================== */
.shop-navbar {
    z-index: 998 !important; /* زیر header اصلی (999) و منوی اصلی (1099) */
    top: 85px; /* ارتفاع header اصلی */
}

@media (max-width: 991px) {
    .shop-navbar {
        top: 0; /* در موبایل navbar فروشگاه در بالای صفحه */
        z-index: 997 !important; /* زیر header (999) */
    }
}

/* ===========================================
   ستون کناری فیلترها (Sidebar Filters)
   =========================================== */
.shop-sidebar-filter {
    z-index: 996 !important; /* زیر navbar فروشگاه (998) و header (999) */
    top: 145px; /* header (85px) + navbar فروشگاه (~60px) */
}

@media (max-width: 991px) {
    .shop-sidebar-filter {
        top: 85px; /* فقط header در موبایل */
        z-index: 995 !important; /* زیر navbar (997) و header (999) */
    }
}

.navbar-brand {
    font-size: 1.5rem;
    transition: var(--shop-transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* ===========================================
   تب‌ها
   =========================================== */
.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    transition: var(--shop-transition);
    color: var(--shop-dark);
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: var(--primary-color, #667eea);
    color: var(--primary-color, #667eea);
}

.nav-tabs .nav-link.active {
    border-bottom-color: var(--primary-color, #667eea);
    color: var(--primary-color, #667eea);
    background: transparent;
}

/* ===========================================
   نظرات
   =========================================== */
.review-item {
    animation: slideIn 0.3s ease-out;
}

.review-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ===========================================
   صفحه‌بندی
   =========================================== */
.pagination .page-link {
    color: var(--primary-color, #667eea);
    transition: var(--shop-transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    color: #fff;
    border: none;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    border: none;
    color: white;
}

/* ===========================================
   Loading Overlay
   =========================================== */
#loading-overlay {
    backdrop-filter: blur(2px);
    animation: fadeIn 0.2s ease-out;
}

/* ===========================================
   Breadcrumb
   =========================================== */
.breadcrumb {
    background: transparent;
    padding: 0.75rem 0;
}

.breadcrumb-item a {
    color: var(--primary-color, #667eea);
    text-decoration: none;
    transition: var(--shop-transition);
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* ===========================================
   Prose (برای محتوای HTML)
   =========================================== */
.prose {
    color: var(--shop-dark);
    line-height: 1.8;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--shop-dark);
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul, .prose ol {
    margin-bottom: 1rem;
    padding-right: 1.5rem;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--shop-border-radius);
    margin: 1rem 0;
}

.prose a {
    color: var(--primary-color, #667eea);
    text-decoration: none;
}

.prose a:hover {
    text-decoration: underline;
}

/* ===========================================
   Responsive Design
   =========================================== */
@media (max-width: 768px) {
    .product-main-image {
        min-height: 300px;
    }
    
    .product-thumbnails {
        gap: 0.25rem;
    }
    
    .product-thumb {
        min-width: 60px;
        height: 60px;
    }
}

/* ===========================================
   Accessibility
   =========================================== */
.product-card:focus-within {
    outline: 2px solid var(--primary-color, #667eea);
    outline-offset: 2px;
}

/* ===========================================
   یکپارچه‌سازی ارتفاع‌ها و رنگ‌بندی
   =========================================== */

/* یکپارچه‌سازی ارتفاع هدرها - همه 52px */
.shop-content .card-header,
.shop-navbar .card-header {
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 15px 20px;
}

.shop-content .card-header h5,
.shop-navbar .card-header h5 {
    min-height: auto;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

/* هدرهای کارت با gradient */
.shop-content .card-header:not(.cart-items-header):not(.cart-summary-header),
.shop-navbar .card-header:not(.cart-items-header):not(.cart-summary-header) {
    background: linear-gradient(135deg, var(--secondary-color, #764ba2), var(--primary-color, #667eea));
    color: white;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    font-weight: 600;
}

/* card-title در card-body */
.shop-content .card-body .card-title,
.shop-navbar .card-body .card-title {
    min-height: auto;
    display: block;
    margin-bottom: 1rem;
    color: var(--shop-dark);
    font-weight: 600;
}

/* رنگ‌بندی text-primary - استفاده از رنگ قالب */
.shop-content .text-primary,
.shop-navbar .text-primary {
    color: var(--primary-color, #667eea) !important;
}

/* رنگ‌بندی bg-primary - استفاده از gradient قالب */
.shop-content .bg-primary,
.shop-navbar .bg-primary {
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%) !important;
    color: white !important;
    border: none !important;
}

/* رنگ‌بندی border-primary */
.shop-content .border-primary,
.shop-navbar .border-primary {
    border-color: var(--primary-color, #667eea) !important;
}

/* رنگ‌بندی btn-outline-primary */
.shop-content .btn-outline-primary,
.shop-navbar .btn-outline-primary {
    border-color: var(--primary-color, #667eea);
    color: var(--primary-color, #667eea);
}

.shop-content .btn-outline-primary:hover,
.shop-navbar .btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    border: none;
    color: white;
}

/* یکپارچه‌سازی ارتفاع کلیدها */
.shop-content .btn,
.shop-navbar .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    line-height: 1.5;
}

.shop-content .btn-sm,
.shop-navbar .btn-sm {
    min-height: 32px;
    padding: 0.375rem 0.75rem;
}

.shop-content .btn-lg,
.shop-navbar .btn-lg {
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* کلیدهای outline */
.shop-content .btn-outline-primary,
.shop-content .btn-outline-secondary,
.shop-content .btn-outline-danger,
.shop-navbar .btn-outline-primary,
.shop-navbar .btn-outline-secondary,
.shop-navbar .btn-outline-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
}

/* کلید جستجو */
.shop-search-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* کلید variant */
.variant-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* کلید add-to-cart */
.add-to-cart-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===========================================
   Performance Optimizations
   =========================================== */
.product-image-wrapper img,
.product-thumb {
    will-change: transform;
}

/* Lazy loading placeholder */
img[loading="lazy"] {
    background: var(--shop-light);
    min-height: 200px;
}

/* ===========================================
   Checkout Page Styles
   =========================================== */

/* Checkout Container */
.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Checkout Section Headers */
.checkout-section-header {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color, #1f2937);
}

.checkout-section-header i {
    color: var(--shop-primary);
    font-size: 1.5rem;
}

/* Checkout Cards */
.checkout-card {
    background: white;
    border-radius: var(--shop-border-radius);
    box-shadow: var(--shop-shadow);
    padding: 1.5rem;
    transition: var(--shop-transition);
    border: 1px solid var(--border-color, #e5e7eb);
}

.checkout-card:hover {
    box-shadow: var(--shop-shadow-hover);
}

/* Address Selection */
.address-option {
    position: relative;
    padding: 1.25rem;
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: var(--shop-border-radius);
    cursor: pointer;
    transition: var(--shop-transition);
    background: white;
    margin-bottom: 0.75rem;
}

.address-option:hover {
    border-color: var(--shop-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.address-option.selected {
    border-color: var(--shop-primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.address-option input[type="radio"] {
    margin-left: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: var(--shop-primary);
}

.address-option-content {
    display: inline-block;
    vertical-align: top;
    width: calc(100% - 2.5rem);
}

.address-option-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-color, #1f2937);
    margin-bottom: 0.5rem;
}

.address-option-details {
    font-size: 0.875rem;
    color: var(--text-gray, #6b7280);
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

.address-option-phone {
    font-size: 0.875rem;
    color: var(--text-gray-light, #9ca3af);
    margin-top: 0.5rem;
}

.address-option-default-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--shop-primary) 0%, var(--shop-primary-hover) 100%);
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Shipping Method Selection */
.shipping-option {
    position: relative;
    padding: 1.25rem;
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: var(--shop-border-radius);
    cursor: pointer;
    transition: var(--shop-transition);
    background: white;
    margin-bottom: 0.75rem;
}

.shipping-option:hover {
    border-color: var(--shop-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.shipping-option.selected {
    border-color: var(--shop-primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.shipping-option input[type="radio"] {
    margin-left: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: var(--shop-primary);
}

.shipping-option-content {
    display: inline-block;
    vertical-align: top;
    width: calc(100% - 2.5rem);
}

.shipping-option-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-color, #1f2937);
    margin-bottom: 0.5rem;
}

.shipping-option-description {
    font-size: 0.875rem;
    color: var(--text-gray, #6b7280);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.shipping-option-delivery {
    font-size: 0.875rem;
    color: var(--text-gray, #6b7280);
    margin-bottom: 0.75rem;
}

.shipping-option-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--shop-primary);
    margin-top: 0.5rem;
}

/* Textarea */
.checkout-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: var(--shop-border-radius);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: var(--shop-transition);
    background: var(--bg-light, #f9fafb);
}

.checkout-textarea:focus {
    outline: none;
    border-color: var(--shop-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Wallet Option */
.wallet-option {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 2px solid var(--shop-primary);
    border-radius: var(--shop-border-radius);
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--shop-transition);
}

.wallet-option:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.wallet-option input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: var(--shop-primary);
    margin-left: 0.75rem;
}

.wallet-option-content {
    display: inline-block;
    vertical-align: top;
    width: calc(100% - 2.5rem);
}

.wallet-option-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-color, #1f2937);
    margin-bottom: 0.5rem;
}

.wallet-option-balance {
    font-size: 0.875rem;
    color: var(--text-gray, #6b7280);
}

/* Order Summary */
.order-summary {
    background: white;
    border-radius: var(--shop-border-radius);
    box-shadow: var(--shop-shadow);
    padding: 1.5rem;
    position: sticky;
    top: 5rem;
}

.order-summary-header {
    min-height: 52px;
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color, #1f2937);
    border-bottom: 2px solid var(--border-color, #e5e7eb);
    padding-bottom: 1rem;
}

.order-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    font-size: 0.875rem;
}

.order-item-name {
    color: var(--text-gray, #6b7280);
    flex: 1;
    margin-left: 0.5rem;
    line-height: 1.5;
}

.order-item-price {
    font-weight: 700;
    color: var(--text-color, #1f2937);
    white-space: nowrap;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 0.9375rem;
}

.order-summary-label {
    color: var(--text-gray, #6b7280);
}

.order-summary-value {
    font-weight: 700;
    color: var(--text-color, #1f2937);
}

.order-summary-discount {
    color: var(--shop-success);
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin: 1rem 0;
    border-top: 2px solid var(--border-color, #e5e7eb);
    border-bottom: 2px solid var(--border-color, #e5e7eb);
    font-size: 1.25rem;
}

.order-summary-total-label {
    font-weight: 700;
    color: var(--text-color, #1f2937);
}

.order-summary-total-value {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--shop-primary) 0%, var(--shop-primary-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Checkout Button */
.checkout-submit-btn {
    width: 100%;
    min-width: 200px;
    min-height: 48px;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--shop-success) 0%, #157347 100%);
    border: none;
    border-radius: var(--shop-border-radius);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--shop-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(25, 135, 84, 0.2);
}

@media (min-width: 768px) {
    .checkout-submit-btn {
        width: auto;
    }
}

.checkout-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(25, 135, 84, 0.3);
    background: linear-gradient(135deg, #157347 0%, #0d5130 100%);
}

.checkout-submit-btn:active {
    transform: translateY(0);
}

.checkout-submit-btn i {
    font-size: 1.125rem;
}

/* Security Badge */
.checkout-security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-gray, #6b7280);
    background: var(--bg-light, #f9fafb);
    border-radius: var(--shop-border-radius);
}

.checkout-security-badge i {
    color: var(--shop-success);
    font-size: 1rem;
}

/* Add Address Link */
.add-address-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    color: var(--shop-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--shop-transition);
    border-radius: var(--shop-border-radius);
}

.add-address-link:hover {
    color: var(--shop-primary-hover);
    background: rgba(102, 126, 234, 0.1);
}

.add-address-link i {
    font-size: 0.875rem;
}

/* Empty State */
.checkout-empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-gray, #6b7280);
}

.checkout-empty-state-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 38px;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--shop-primary) 0%, var(--shop-primary-hover) 100%);
    border: none;
    border-radius: var(--shop-border-radius);
    color: white;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--shop-transition);
    box-shadow: var(--shop-shadow);
}

.checkout-empty-state-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shop-shadow-hover);
}

/* Responsive */
@media (max-width: 1024px) {
    .order-summary {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }
}

@media (max-width: 640px) {
    .checkout-card {
        padding: 1rem;
    }
    
    .checkout-section-header {
        font-size: 1.125rem;
        min-height: 48px;
    }
    
    .address-option,
    .shipping-option {
        padding: 1rem;
    }
    
    .order-summary {
        padding: 1rem;
    }
}

/* ===========================================
   Print Styles
   =========================================== */
@media print {
    .navbar,
    .breadcrumb,
    .btn,
    .add-to-cart-btn,
    .variant-btn,
    .checkout-submit-btn {
        display: none !important;
    }
    
    .product-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .order-summary {
        position: relative;
        top: 0;
    }
}
