
@font-face {
    font-family: 'Samim';
    src: url('/fonts/dist/Samim.woff2') format('woff2'),
         url('/fonts/dist/Samim.woff') format('woff');
    font-weight: normal;
}

@font-face {
    font-family: 'Samim';
    src: url('/fonts/dist/Samim-Bold.woff2') format('woff2'),
         url('/fonts/dist/Samim-Bold.woff') format('woff');
    font-weight: bold;
}


body {
        font-family: 'Samim', sans-serif;

    background:linear-gradient(180deg,#fbfdff 0%,#f3f7ff 100%);
      /*  background: linear-gradient(135deg, #eef2f7, #d9e2ec);*/

}
.container,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    max-width: 1500px !important;
}

/* فقط برای فیلدهای متنی و textarea */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}


.navbar-brand {
    font-weight: 800;
    letter-spacing: -.5px;
}

.category-card img {
    height: 140px;
    object-fit: cover;
}

.product-card img {
    height: 220px;
    object-fit: cover;
}

.badge-sale {
    position: absolute;
    top: .75rem;
    left: .75rem;
}

.rating i {
    font-size: .9rem;
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .15) 60%, rgba(0, 0, 0, 0) 100%);
}

/*.brand-strip img{  filter:grayscale(100%); opacity:.8; transition:.2s; }*/
.brand-strip img:hover {
    filter: none;
    opacity: 1;
}

.hover-lift {
    transition: transform .2s ease, box-shadow .2s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, .08);
}

.fs-7 {
    font-size: .875rem;
}

/* --- Mega Menu --- */
.mega-menu {
    position: absolute;
    top: 100%;
    right: 0; /* به جای left */
    left: auto; /* جلوگیری از تداخل */
    transform: none;
    width: 1300px; /* عرض دلخواه */
    max-width: 93vw; /* ریسپانسیو */
    background: #fff;
    display: none;
    z-index: 1000;
    border-radius: 8px;
    text-align: right; /* متن‌ها راست‌چین */
}


/* Hover to show */
.mega-parent:hover .mega-menu {
    display: block;
}

/* Items inside mega menu */
.mega-menu .dropdown-item {
    padding: 6px 0;
    font-size: 14px;
    color: #333;
    white-space: nowrap; /* جلوگیری از افتادن متن‌ها روی هم */
}

.mega-menu h6 {
    margin-bottom: 10px;
    font-size: 15px;
    color: #444;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* Fix nav links */
.nav-link {
    color: #333;
    font-size: 15px;
}

.nav-link:hover {
    color: #d32f2f; /* رنگ قرمز شبیه دیجیکالا */
}

/* زیرمنوها */
.submenu {
    margin-right: 15px; /* کمی جلوتر */
    border-right: 2px solid #eee;
    padding-right: 10px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.submenu a {
    display: block;
    font-size: 13px;
    color: #666;
    padding: 3px 0;
    text-decoration: none;
}

.submenu a:hover {
    color: #d32f2f; /* رنگ قرمز دیجیکالا */
}

.carousel-item img {
    height: 60vh; /* متناسب با ارتفاع صفحه */
    object-fit: cover; /* عکس کراپ میشه بدون کشیدگی */
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4); /* پس‌زمینه نیمه شفاف */
}

.carousel-caption {
    bottom: 20%; /* متن کمی بالاتر از پایین */
    text-align: right; /* مثل دیجی‌کالا راست‌چین */
}

.carousel-caption h2 {
    font-size: 2rem;
    font-weight: bold;
}

.carousel-caption p {
    font-size: 1rem;
}


.story-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.story-container::-webkit-scrollbar {
    display: none; /* مخفی کردن اسکرول بار */
}

.story {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    margin: 7px;
    border: 3px solid #d22c4e; /* حلقه داخلی سفید */
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 3px #fff; /* حلقه بیرونی قرمز */
}

.story img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scroll-btn {
    background: transparent; /* بدون بک‌گراند */
    border: none;
    font-size: 40px; /* بزرگ‌تر شدن فلش */
    cursor: pointer;
    color: #333; /* رنگ فلش */
    padding: 0 10px;
    transition: 0.2s;
}

.scroll-btn:hover {
    color: #e1306c; /* تغییر رنگ در حالت هاور */
}


.story img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%); /* کمتر از 100% */
    transition: 0.3s ease-in-out;
}

.story img:hover {
    filter: grayscale(0%); /* روی هاور تصویر کامل رنگی */
}


/*-------------------------------------*/
.product-card img.product-img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: #fff;
    /*  object-fit: cover;
      object-position: center;
      */
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-img {
    transition: transform 0.4s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

/* دکمه‌ها روی عکس و سمت راست */
.product-actions {
    transform: translateX(60px);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 5; /* پایین‌تر از badge */
}

.product-card:hover .product-actions {
    transform: translateX(0);
    opacity: 1;
}

.product-actions button {
    width: 40px;
    height: 40px;
    font-size: 1.4rem; /* آیکون داخل دکمه بزرگ‌تر */
}


/* badge همیشه بالاتر از همه */
.product-card .badge {
    z-index: 10;
    position: absolute;
}


.badge {
    direction: rtl;
    text-align: right;
}

.custom-badge {
    min-width: 80px; /* حداقل عرض */
    text-align: right; /* متن بچسبد به راست */
    direction: rtl; /* متن فارسی/عدد درست نمایش داده شود */
    justify-content: flex-end; /* اگر فلکس شد هم بچسبد راست */
}


/*------------------------------------*/
.bg-box-brand {
    background: linear-gradient(225deg, #5b5792, #8f539b 41.68%, #c54790);
}
.bg-box-brand2 {
    background: linear-gradient(225deg, #d22c78, #ef3f72 41.68%, #f56a7b);
}

.bg-box-re {
    background: linear-gradient(225deg, #d22c78, #ef3f72 41.68%, #f56a7b);
}
.bg-box-header {
    background: linear-gradient(225deg, #d22c78, #ef3f72 41.68%, #f56a7b);
}

.bg-box-h3 {
    background: linear-gradient(225deg, #2cd2b0, #38eecc 41.68%, #56efc7);
}

:root {
    /* رنگ‌های گرادیان اصلی شما */
    --g1: #d22c4e;
    --g2: #ee384e;
    --g3: #ef5662;

    /* رنگ تکمیلی / متن */
    --text-on-gradient: #ffffff;
    --muted: #f4f4f4;
    --dark: #222222;
}

/* پایه دکمه */
.btn-custom,
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    direction: rtl; /* راست‌چین */
    cursor: pointer;
    border-radius: 12px;
    padding: .5rem 1rem;
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* دکمه گرادیانی (پررنگ) */
.btn-custom {
    color: var(--text-on-gradient);
    background-image: linear-gradient(225deg, var(--g1), var(--g2) 41.68%, var(--g3));
    box-shadow: 0 6px 18px rgba(210, 44, 78, 0.18);
    border: 0;
    font-size: 0.95rem;
}

/* آیکون داخل دکمه */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transform: translateX(-2px);
    opacity: .95;
}

/* اثر hover / focus / active برای btn-custom */
.btn-custom:hover,
.btn-custom:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 15px rgba(210, 44, 78, 0.22);
    outline: none;
}

.btn-custom:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* نسخه‌ی Outline (مثل نمونهٔ اولیه‌ت) */
.btn-outline {
    background: transparent;
    color: var(--g2);
    border: 2px solid rgba(238, 56, 78, 0.12);
    padding: .45rem .85rem;
    border-radius: 10px;
    font-size: 0.88rem;
    box-shadow: none;
}

/* افکت hover برای outline — تبدیل به گرادیان ملایم */
.btn-outline:hover,
.btn-outline:focus {
    color: var(--text-on-gradient);
    background-image: linear-gradient(225deg, rgba(210, 44, 78, 0.98), rgba(238, 56, 78, 0.98) 41.68%, rgba(239, 86, 98, 0.98));
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(239, 86, 98, 0.14);
}

/* حالت غیرفعال */
.btn-custom[aria-disabled="true"],
.btn-outline[aria-disabled="true"],
.btn-custom.disabled,
.btn-outline.disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* دسترسی: نشانگر فوکوس واضح */
.btn-custom:focus-visible,
.btn-outline:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.12);
    outline-offset: 3px;
}

/* اندازهٔ کوچک در موبایل (اختیاری) */
@media (max-width: 480px) {
    .btn-custom, .btn-outline {
        font-size: 0.9rem;
        padding: .45rem .9rem;
        border-radius: 10px;
    }
}




/*-----------------------------------*/
.content-wrapper {
    max-width: 1500px; /* حداکثر پهنا برای محتوای محصول */
    margin: 0 auto;     /* وسط‌چین کردن */
    padding-left: 16px;
    padding-right: 16px;
}
@media (min-width: 992px) {
    .content-wrapper {
        padding-left: 32px;
        padding-right: 32px;
    }
}
.product-box {
    background: #ffffff; /* یا رنگ خیلی ملایم برای تفاوت با کل صفحه اگر بخوای */
    /* اگر می‌خوای محتوا سفید باشه، این خط رو کامنت کن یا تغییر بده به #fff */
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(50,50,93,0.06);
}
.thumbnail-img {
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}
.price {
    font-size: 1.9rem;
    color: #e63946;
    font-weight: 700;
}
.old-price {
    text-decoration: line-through;
    color: #8b8b8b;
    margin-right: 10px;
}
.badge-stock {
    background: #2dce89;
    color: white;
}
.specs dt {
    width: 35%;
}
.specs dd {
    margin-left: 0;
}
.nav-tabs .nav-link {
    border-radius: 8px 8px 0 0;
}

/*---------------------------*/

.custom-h1 {
    font-size: 1.2rem;
    line-height: 2.5rem;
}
/*---------------------------*/
.color-option {
    appearance: none;
    -webkit-appearance: none;
    width: 35px;
    height: 35px;
    border: 5px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    position: relative;
    margin: 5px;
    box-shadow: 0 0 0 3px #ddd7c6;
}

.color-option:checked {
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #00c3bf;
}
.color-option:checked::after {
    content: "✔";
    color: #00c3bf;
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/*----------------------------*/
.breadcrumb-item a {
    color: #a6a6ac;
    text-decoration: none;
}
.breadcrumb-item a:hover {
    color: #a6a6ac;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #a6a6ac;
    text-decoration: none;
}

.breadcrumb {
    font-size: 0.875rem;
}

.breadcrumb-item a {
    font-size: 0.875rem;
}

/*--------------------------*/
/* برای تصاویر اصلی اسلایدر */
#mainCarousel .carousel-item img {
    width: 100%;
    height: 400px; /* ارتفاع ثابت به دلخواه */
    object-fit: contain; /* تصویر را کامل داخل کادر می‌آورد بدون کشیدگی */
    background: #fff; /* پس‌زمینه سفید */
    border-radius: 12px;
}

/* برای تصاویر کوچک (thumbnail) */
.thumbnail-img {
    width: 120px;
    height: 80px;
    object-fit: contain; /* تناسب حفظ شود */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    padding: 2px;
    transition: transform 0.2s;
}

.thumbnail-img:hover {
    transform: scale(1.05);
    border-color: #999;
}

.text-Seller{
    color: #00c3bf;
    font-size: 0.975rem;
    margin-top: 15px;
    margin-bottom: 15px;
}

.floating-box {
    background-color: rgba(221, 215, 198, 0.3) !important;
    border: 1px solid #ddd7c6;
    border-radius: 12px;
    position: sticky;    /* به جای fixed */
    top: 130px;          /* فاصله از بالا وقتی اسکرول میکنی */
    width: 100%;         /* کل عرض ستون col-lg-3 */
    background: #fff;
    padding: 16px;
    z-index: 100;        /* لازم باشه روی محتوا بمونه */
}

/* موبایل و تبلت */
@media (max-width: 992px) {
    .floating-box {
        position: static;  /* توی موبایل دیگه نچسبه */
        top: auto;
    }
}


.title-underline {
    display: inline-block;
    border-bottom: 3px solid #d22c78; /* ضخامت و رنگ خط */
    padding-bottom: 7px;          /* فاصله متن تا خط */
}



button.btn.btn-danger.btn-lg.flex-grow-1 {
    font-size: 15px;
}

@media (max-width: 992px) {
    button.btn.btn-danger.btn-lg.flex-grow-1 {
        font-size: 12px;
    }
}


.size-option input[type="radio"] {
    display: none; /* مخفی کردن دکمه رادیو اصلی */
}

.size-option label {
    display: inline-block;
    padding: 8px 25px 8px 15px; /* فاصله بیشتر در سمت راست برای تیک */
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    margin: 5px;
    transition: all 0.2s ease;
    position: relative; /* لازم برای اینکه ::after درست کار کنه */
}

.size-option input[type="radio"]:checked + label {
    border-color: #00bcd4;
    color: #00bcd4;
    font-weight: bold;
    position: relative;
}

.size-option input[type="radio"]:checked + label::after {
    content: "✓";
    font-size: 14px;
    position: absolute;
    right: 8px;   /* تیک سمت راست */
    top: 50%;
    transform: translateY(-50%);
    color: #00bcd4;
}


/* کروم، سافاری، اج */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* فایرفاکس */
input[type=number] {
    -moz-appearance: textfield;
}

.hidden {
    display: none !important;
}


.full-width-alert {
    width: 100%;
    display: block;
    box-sizing: border-box;
    text-align: right !important; /* راست‌چین کردن متن */
    padding: 1rem; /* دلخواه، فاصله متن از لبه */
}

/*----------------------------------*/
/* کانتینر مخصوص سبد خرید */
.cart-wrapper {
    width: calc(100% - 200px);
    margin: 0 auto;
    max-width: 1600px;
}

/* کارت محصول */
.cart-item img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.price {
    color: #d32f2f;
    font-weight: bold;
}

.discount {
    font-size: 0.9rem;
    color: #666;
    text-decoration: line-through;
}

.summary-box {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    background: #fff;
    margin-top: 20px;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.btn-confirm {
    background-color: #ef394e;
    color: #fff;
    font-weight: bold;
    border: none;
    transition: 0.3s;
}
.btn-confirm:hover {
    background-color: #d32f2f;
}

/* حالت موبایل و تبلت */
@media (max-width: 1200px) {
    .cart-wrapper {
        width: 100%;
        padding: 0 15px;
    }
}

@media (min-width: 1200px) {
    .cart-wrapper .container {
        max-width: calc(100% - 400px);
    }
}


/*-----------btn login-----------*/


.btn-outline-secondary {
    border: none !important;
    border-radius: 5px !important;
    background-color: transparent !important;
    color: #333 !important;
    box-shadow: none !important;
    padding-right:5px !important;
    padding-left: 15px !important;
}

/* حالت‌های hover, focus, active, show */
.btn-outline-secondary:focus,
.btn-outline-secondary:active,
.btn-outline-secondary.show {
    background-image:
            linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
            linear-gradient(225deg, var(--g1), var(--g2) 10.68%, var(--g3)) !important;
    color: #333 !important;
    border: none !important;
    box-shadow: none !important;

}
.btn-outline-secondary:hover
{
    background-color: #fff !important;
    color: #333 !important;
    border: none !important;
    box-shadow: none !important;

}

.btn-outline-secondary:not(:hover):not(:focus):not(.show) {
    background-color: transparent !important; /* رنگ پایه */
    color: #333 !important;
}

ul.dropdown-menu.dropdown-menu-end.shadow-sm.border-0.rounded-3.mt-2.show
{
    width: 240px !important;
}


.dropdown-menu li {
    padding: 0.2rem 0.5rem; /* بالا-پایین، چپ-راست */
}


.btn.auth-btn i {
    font-size: 1.6rem !important;
}

.btn.auth-btn span {
    font-size: 0.8rem !important;
}



.dropdown-menu {
    border-radius: 0.5rem;
    padding: 0.5rem 0;
}

.dropdown-item:hover {
    background-color: #fff !important;
}
.dropdown-item:focus {
    background-color: #fff !important;
    color:#333 !important;
}

/*-----auth-----*/
.center-wrapper {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    width: 80%;
    max-width: 400px;
    padding: 40px 30px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.login-icon {
    font-size: 60px;
    color: #d22c78;
    margin-bottom: 15px;
}

.btn-custom {
    background: linear-gradient(90deg, #d22c78, #ef3f72, #f56a7b);
    border: none;
    border-radius: 15px;
    padding: 12px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.input-group {
    border: 1px solid #ced4da;
    border-radius: 15px;
    overflow: hidden;
    height: 45px;
}

.input-group-text {
    background-color: #fff;
    border: none;
    color: #d22c78;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}

.code-inpu-email-mobile {
    border: none !important;
    outline: none !important;
    height: 100%;
    font-size: 16px;
    text-align: center;
    direction: ltr;
    background-color: #fff !important;
    color: #000 !important;
}

.code-inpu-email-mobile:focus {
    box-shadow: none;
}

.input-group:focus-within {
    border-color: #d22c78;
    box-shadow: 0 0 6px rgba(210, 44, 120, 0.4);
}

.password-wrapper {
    position: relative;
}

.toggle-pass {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #d22c78;
    font-size: 1.2rem;
}

#responseMessage.success {
    color: green;
}

#responseMessage.error {
    color: red;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* برای ورودی‌های کد هر دو فرم */
.code-input,
.code-input2 {
    width: 50px;
    height: 50px;
    font-size: 22px;
    border-radius: 10px;
    text-align: center !important;
    direction: ltr;
    background-color: #fff !important;
    color: #000 !important;
    border: 1px solid #ced4da !important;
    padding: 0 !important;
    transition: all 0.2s ease;
}

.code-input:focus,
.code-input2:focus {
    border-color: #d22c78 !important;
    box-shadow: 0 0 6px rgba(210, 44, 120, 0.4);
    outline: none;
}

#verify-form .code-input:not(:last-child),
#verify-form2 .code-input2:not(:last-child) {
    margin-right: 4px;
}

/*-----product-----*/
#cartMessageBox {
    display: none; /* ابتدا مخفی */
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 25px;
    z-index: 9999;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.15) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.box-alert {
    background-color: #fff;
    width: 300px;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    font-family: "IRANSans", sans-serif;
    font-size: 15px;
    color: #333;
}



/*----------------------*/
.option-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    border: 2px solid #ddd;
    border-radius: 14px;
    padding: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* حالت هاور */
.option-box:hover {
    border-color: rgba(0, 195, 191, 0.2);
    box-shadow: 0 0 6px rgba(0, 195, 191, 0.2);
}

/* ظاهر رادیوباتن سفارشی */
.option-box input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    border: 2px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    margin-top: 4px;
    transition: all 0.2s ease;
}

/* رنگ دایره در حالت انتخاب‌شده */
.option-box input[type="radio"]:checked {
    border-color: rgba(0, 195, 191, 0.3);
    background-color: #00c3bf;
}

/* نقطه سفید وسط در حالت انتخاب */
.option-box input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* بوردر کل باکس در حالت انتخاب‌شده */
.option-box:has(input[type="radio"]:checked) {
    border-color: rgba(0, 195, 191, 0.3);
    box-shadow: 0 0 8px rgba(0, 195, 191, 0.3);
}

.option-content {
    line-height: 1.6;
}


/*----------------------*/
/* ظاهر کلی جدول */
#multi-attr table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    border-collapse: collapse;
}

/* هدر جدول */
#multi-attr th {
    color: var(--text-on-gradient);
    background-image: linear-gradient(225deg, rgba(210, 44, 78, 0.98), rgba(238, 56, 78, 0.98) 41.68%, rgba(239, 86, 98, 0.98));
    text-align: center;
    vertical-align: middle;
}

/* سلول‌ها */
#multi-attr td {
    vertical-align: middle;
    text-align: center;
    padding: 8px;
}

/* ورودی عددی اصلی */
#multi-attr input[type="number"] {
    width: 100px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 5px;
}

/* ساختار دوتایی ورودی‌ها */
.table td .double-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: nowrap; /* جلوگیری از افتادن زیر هم */
}

/* هر ورودی داخل double-input */
.table td .double-input input {
    flex: 1 1 48%;
    min-width: 120px; /* حداقل عرض تا فشرده نشود */
    height: 34px;
    font-size: 13px;
    text-align: center;
    border-radius: 8px;
}

/* ورودی‌های غیرفعال */
.table td input[disabled] {
    background-color: #f8f9fa !important;
    color: #555 !important;
    border: 1px solid #ddd;
}

/* در موبایل جدول اسکرول‌پذیر شود */
@media (max-width: 768px) {
    #multi-attr table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* کمی افزایش عرض ورودی‌ها برای خوانایی بهتر */
    .table td .double-input input {
        min-width: 140px;
        font-size: 14px;
    }

    #multi-attr th, #multi-attr td {
        font-size: 13px;
        white-space: nowrap;
    }
}

/*--------------------------*/
.open-btn {
    background:#ff4b5c;
    color:#fff;
    border:none;
    padding:12px 25px;
    border-radius:6px;
    cursor:pointer;
    font-size:16px;
}
/* فقط برای فرم مودال آدرس */
.add-address-form .form-control,
.add-address-form .form-select,
.add-address-form textarea {
    border-radius: 8px !important;
    border: 1px solid #cfcfcf !important;
    transition: all .25s ease-in-out !important;
    background: #fff !important;
}

.add-address-form .form-control:focus,
.add-address-form .form-select:focus,
.add-address-form textarea:focus {
    border-color: #ff4b5c !important;
    box-shadow: 0 0 0 .25rem rgba(255,75,92,0.25) !important;
}

/* دکمه فقط داخل این فرم */
.add-address-form ~ .modal-footer .btn-success {
    width: 100%;
    background: #ff4b5c !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: bold;
}

.add-address-form ~ .modal-footer .btn-success:hover {
    background: #e33f50 !important;
    width: 100%;
}















.custom-select {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    position: relative;
    user-select: none;
    font-family: sans-serif;
}

.custom-select .selected {
    padding: 8px 12px;
    background: #f5f5f5;
    cursor: pointer;
    border-radius: 4px;
}

.custom-select .options {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
    border-top: none;
    display: none;
    position: absolute;
    width: 100%;
    background: #fff;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
}

.custom-select .options li {
    padding: 8px 12px;
    cursor: pointer;
}

.custom-select .options li:hover {
    background-color: rgba(239, 126, 143, 0.73);
    color: #000;
}

.custom-select.open .options {
    display: block;
}

.custom-select .options .search-input {
    width: 100%;
    box-sizing: border-box;
    border: none;
    outline: none;
}









.address-header h6 {
    font-size: 16px;
    color: #333;
}

.address-header .btn {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 14px;
    transition: 0.3s;
}


.address-header .btn.btn-outline-info:hover {
    color: #ffffff !important;
    border-color: #0dcaf0 !important;
}

.selected-address{
    border-color: rgba(0, 195, 191, 0.3);
    box-shadow: 0 0 8px rgba(0, 195, 191, 0.3);
}