@font-face {
    font-family: "IRANSans";
    font-style: normal;
    font-weight: bold;
    src: url('../../fonts/IRANSansWeb_Bold.eot');
    src: url('../../fonts/IRANSansWeb_Bold.eot?#iefix') format('embedded-opentype'),
    url('../../fonts/IRANSansWeb_Bold.woff') format('woff'),
    url('../../fonts/IRANSansWeb_Bold.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: "IRANSans";
    font-style: normal;
    font-weight: normal;
    src: url('../../fonts/IRANSansWeb.eot');
    src: url('../../fonts/IRANSansWeb.eot?#iefix') format('embedded-opentype'),
    url('../../fonts/IRANSansWeb.woff') format('woff'),
    url('../../fonts/IRANSansWeb.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: "IRANSans";
    font-style: normal;
    font-weight: 500;
    src: url('../../fonts/IRANSansWeb_Medium.eot');
    src: url('../../fonts/IRANSansWeb_Medium.eot?#iefix') format('embedded-opentype'),
    url('../../fonts/IRANSansWeb_Medium.woff') format('woff'),
    url('../../fonts/IRANSansWeb_Medium.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: "IRANSans";
    font-weight: normal;
    src: url('../../fonts/IRANSansWeb(FaNum).eot');
    src: url('../../fonts/IRANSansWeb(FaNum).eot?#iefix') format('embedded-opentype'),
    url('../../fonts/IRANSansWeb(FaNum).woff') format('woff'),
    url('../../fonts/IRANSansWeb(FaNum).ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: "BTitrBold";
    font-weight: normal;
    src: url('../../fonts/BTitrBold.eot');
    src: url('../../fonts/BTitrBold.eot?#iefix') format('embedded-opentype'),
    url('../../fonts/BTitrBold.woff') format('woff'),
    url('../../fonts/BTitrBold.ttf') format('truetype');
    font-display: swap;
}

:root {
    --primary: #ff6b35;
    --accent: #ffa500;
    --dark: #2d3748;
    --light-bg: #fafbfc;
}

body {
    font-family: 'IRANSans';
    background: var(--light-bg);
    color: #4a5568;
}

a:link {
    text-decoration: none;
    color: var(--bs-heading-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'BTitrBold';
}

.summary-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
}

.form-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.nav-pills-custom {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.nav-pills-custom .nav-link {
    color: #6c757d;
    font-weight: 600;
    border-radius: 16px;
    padding: 12px 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-pills-custom .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 16px;
}

.nav-pills-custom .nav-link:hover {
    color: #495057;
    transform: translateY(-2px);
}

.nav-pills-custom .nav-link:hover::before {
    opacity: 0.1;
}

.nav-pills-custom .nav-link.active {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    transform: translateY(-2px);
}

.nav-pills-custom .nav-link.active::before {
    opacity: 1;
}

.tab-content-custom {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tab-pane-custom {
    padding: 2.5rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.specs-table tr {
    transition: all 0.3s ease;
}

.specs-table tr:hover {
    background-color: rgba(255, 107, 53, 0.05);
}

.specs-table th,
.specs-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.specs-table th {
    background: rgba(0, 0, 0, 0.02);
    font-weight: 600;
    color: var(--dark);
    width: 30%;
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
    border-bottom: none;
}

.review-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.review-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.star-rating {
    color: #ffc107;
}

.star-rating .bi-star-fill {
    margin-left: 2px;
}

.review-date {
    color: #6c757d;
    font-size: 0.85rem;
}

.product-image-container {
    width: 100%;
    height: 400px;
    /* ارتفاع ثابت */
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* حفظ نسبت تصویر بدون برش */
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.05);
}

.accent-line {
    width: 250px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 91vh;
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255, 107, 53, 0.4);
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.4);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fff5f0, #ffe8d9);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.15) rotate(8deg);
}

.offcanvas-end {
    width: 420px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-left: none;
}

@media (max-width: 576px) {
    .offcanvas-end {
        width: 100% !important;
    }

    .product-image-container {
        height: 300px;
        /* ارتفاع کمتر در موبایل */
    }
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.4s ease;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.slider-dot.active {
    width: 36px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.toast-custom {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a202c;
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    font-size: 14px;
    font-weight: 500;
}

.p-3 {
    padding: 0.7rem !important;
}

.cartBadge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ff6b35 0%, #ffa500 100%);
    color: white;
    border: 1px black dashed;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3)
}

.text-muted {
    --bs-text-opacity: 1;
    color: var(--bs-secondary-color) !important;
}

.step-inactive {
    background: #e9ecef;
    color: #6c757d;
}

.step-active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-left: 10px;
}

.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.position-relative.z-2 {
    z-index: 2;
}

.shipping-option {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shipping-option:hover {
    border-color: var(--primary);
}

.shipping-option.selected {
    border-color: var(--primary);
    background-color: rgba(255, 107, 53, 0.05);
}