        body { font-family: 'Vazirmatn', sans-serif; scroll-behavior: smooth; }
        .product-info-item {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            font-size: 12px;
            line-height: 1.8;
            color: #57534e;
            padding: 8px 0;
            border-bottom: 1px solid #f5f5f4;
        }
        .product-info-item:last-child {
            border-bottom: 0;
            padding-bottom: 0;
        }
        .product-info-item strong {
            color: #292524;
            font-weight: 700;
            min-width: 72px;
            flex-shrink: 0;
        }
        .product-info-item span {
            text-align: left;
            flex: 1;
            word-break: break-word;
        }
        .product-detail-value {
            word-break: break-word;
        }
        .card-quantity {
            display: grid;
            grid-template-columns: 40px minmax(64px, 1fr) 40px;
            align-items: stretch;
            gap: 0;
            width: 100%;
            border: 1px solid #e7e5e4;
            border-radius: 12px;
            overflow: hidden;
            background: #fff;
        }
        .card-quantity button,
        .card-quantity input {
            min-height: 42px;
        }
        .card-quantity button {
            border: 0;
            background: #fafaf9;
            color: #175530;
            font-weight: 800;
            cursor: pointer;
        }
        .card-quantity button:disabled {
            cursor: not-allowed;
            opacity: 0.45;
        }
        .card-quantity input {
            border: 0;
            text-align: center;
            font-weight: 700;
            color: #1c1917;
            outline: none;
            width: 100%;
            padding: 0 8px;
        }
        .card-quantity input::-webkit-outer-spin-button,
        .card-quantity input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        .card-quantity input[type=number] {
            -moz-appearance: textfield;
        }
        .product-details-toggle {
            border: 1px solid #e7e5e4;
            border-radius: 16px;
            background: linear-gradient(180deg, #ffffff 0%, #fafaf9 100%);
            overflow: hidden;
        }
        .product-details-toggle > summary {
            list-style: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 14px;
            font-size: 12px;
            font-weight: 800;
            color: #1c1917;
            user-select: none;
        }
        .product-details-toggle > summary::-webkit-details-marker {
            display: none;
        }
        .product-details-toggle .toggle-chevron {
            width: 16px;
            height: 16px;
            color: #175530;
            transition: transform 180ms ease;
            flex-shrink: 0;
        }
        .product-details-toggle[open] .toggle-chevron {
            transform: rotate(180deg);
        }
        .product-details-toggle .details-shell {
            display: grid;
            grid-template-rows: 0fr;
            transition: grid-template-rows 220ms ease;
        }
        .product-details-toggle[open] .details-shell {
            grid-template-rows: 1fr;
        }
        .product-details-toggle .details-shell > div {
            overflow: hidden;
        }
        .product-details-toggle .details-inner {
            border-top: 1px solid #ece4db;
            padding: 12px 14px 14px;
        }
        .details-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
        }
        .details-grid .detail-card.emphasis {
            grid-column: 1 / -1;
        }
        @media (max-width: 640px) {
            .details-grid {
                grid-template-columns: 1fr;
            }
        }
    

        .auth-modal {
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            direction: rtl;
        }
        .auth-modal-content {
            background-color: #fff;
            padding: 30px;
            border-radius: 8px;
            width: 90%;
            max-width: 400px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            position: relative;
            font-family: tahoma, sans-serif;
        }
        .auth-close-btn {
            position: absolute;
            left: 15px;
            top: 10px;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            color: #aaa;
        }
        .auth-close-btn:hover { color: #333; }
        .form-group { margin-bottom: 15px; }
        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-size: 14px;
            color: #555;
        }
        .form-group input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
        }
        .auth-btn {
            width: 100%;
            padding: 12px;
            background-color: rgb(23, 85, 48);
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            cursor: pointer;
            transition: background 0.3s;
        }
        .auth-btn:hover { background-color: rgb(15, 60, 33); }
        .auth-switch-text {
            text-align: center;
            margin-top: 15px;
            font-size: 13px;
            color: #666;
        }
        .auth-switch-text a {
            color: rgb(23, 85, 48);
            text-decoration: none;
            font-weight: bold;
        }
  /* حذف فلش‌های پیش‌فرض در فیلدهای عددی برای خوانایی بهتر رقم */
input[type=number].card-qty-input::-webkit-inner-spin-button, 
input[type=number].card-qty-input::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    margin: 0;
}
input[type=number].card-qty-input {
    -moz-appearance: textfield;
}
/* Checkout Steps Styles */
.checkout-step { border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 10px; transition: all 0.3s; }
.step-header { padding: 10px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.step-content { padding: 15px; display: none; border-top: 1px solid #eee; }

/* States */
.step-pending { opacity: 0.6; background: #f9f9f9; cursor: not-allowed; }
.step-active { border: 2px solid #007bff; }
.step-active .step-content { display: block; }
.step-done { border: 2px solid #28a745; }
.step-done .step-header { color: #28a745; }

.status-indicator { font-weight: bold; }
.done-icon { display: none; }
.step-done .done-icon { display: inline; } 