/* ==========================================================================
   RonikaPlus - Ultra Flat Navy Blue Edition (آبی نفتی)
   Pure White Background | Sharp Corners (4px) | Zero Motion
   100% RTL Strict E-Commerce Styling
   ========================================================================== */

/* --------------------------------------------------------------------------
   Root Variables
   -------------------------------------------------------------------------- */
:root {
    --bg-page: #ffffff;
    --bg-surface: #ffffff;
    --text-primary: #1e2024;
    --text-secondary: #424750;
    --text-muted: #81858b;
    --text-light: #a1a3a8;
    /* Navy Blue Palette */
    --navy-primary: #0f2a4a;
    --navy-hover: #163b66;
    --navy-dark: #0a1c33;
    --navy-light-bg: #f2f5f9;
    /* Accent & Borders */
    --border-hairline: #f0f0f1;
    --border-subtle: #dbe2ea;
    --border-strong: #c2cbd6;
    /* Sharp Radius */
    --radius-sm: 4px;
    --radius-btn: 4px;
    --radius-card: 4px;
    /* Shadows */
    --shadow-soft: 0 1px 3px rgba(15, 42, 74, 0.05);
    --shadow-pop: 0 6px 18px rgba(15, 42, 74, 0.08);
}
.serachResult {
    display: block;
    position: absolute;
    background: white;
    z-index: 2000;
    border: 1px var(--bg-dark-3);
    border-radius: 2px;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    /* border-color: #86b7fe; */
    outline: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}
/* --------------------------------------------------------------------------
   Typography & Global Reset
   -------------------------------------------------------------------------- */
@font-face {
    font-family: iransan;
    src: url(/Yekan.woff);
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

html {
    direction: rtl;
    text-align: right;
    scroll-behavior: auto !important;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: iransan, Tahoma, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.text-muted-custom {
    color: var(--text-muted) !important;
}

.border-hairline {
    border: 1px solid var(--border-hairline) !important;
}

.bg-white {
    background: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Panels, Boxes & Flat Surfaces
   -------------------------------------------------------------------------- */
.glass-panel,
.flat-panel,
.card,
.panel,
.box,
.modal-content,
.offcanvas,
.toast,
.alert {
    background: #ffffff !important;
    border: 1px solid var(--border-hairline) !important;
    border-radius: var(--radius-card) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* --------------------------------------------------------------------------
   Navbar & RTL Menus
   -------------------------------------------------------------------------- */
.navbar,
.navbar-custom {
    background: #ffffff !important;
    border-bottom: 2px solid var(--navy-primary) !important;
    direction: rtl !important;
    text-align: right !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.navbar-brand {
    color: var(--navy-primary) !important;
    font-weight: 900;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
}

    .navbar-brand:hover,
    .nav-link:hover,
    .nav-link:focus {
        color: var(--navy-primary) !important;
    }

.navbar-toggler {
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-sm) !important;
}

    .navbar-toggler:focus {
        box-shadow: none !important;
    }

/* RTL Dropdown */
.dropdown-menu {
    background: #ffffff !important;
    min-width: 220px;
    padding: 4px 0;
    direction: rtl !important;
    text-align: right !important;
    right: 0 !important;
    left: auto !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-pop) !important;
}

.dropdown-item {
    padding: 9px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary) !important;
    direction: rtl !important;
    text-align: right !important;
    border-radius: 0 !important;
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background: var(--navy-light-bg) !important;
        color: var(--navy-primary) !important;
    }

/* Submenu RTL */
.dropdown-submenu {
    position: relative;
    direction: rtl !important;
    text-align: right !important;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        right: 100% !important;
        left: auto !important;
        margin-top: 0;
        display: none;
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }

    .dropdown-submenu > .submenu-toggle::before {
        content: "‹";
        float: left;
        color: var(--text-muted);
        font-size: 16px;
        line-height: 1;
    }

/* Desktop Hover */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu,
    .navbar .dropdown-menu li:hover > .dropdown-menu {
        display: block;
    }
}

/* Mobile Dropdown */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #ffffff !important;
        padding: 14px;
        border-radius: var(--radius-card) !important;
        margin-top: 8px;
        border: 1px solid var(--border-hairline) !important;
        box-shadow: var(--shadow-pop) !important;
    }

    .dropdown-menu {
        position: static !important;
        width: 100%;
        margin-top: 4px;
        box-shadow: none !important;
        border: none !important;
        padding-right: 10px;
    }

    .dropdown-submenu > .dropdown-menu {
        right: 0 !important;
        margin-top: 4px;
        padding-right: 10px;
        display: none;
    }

        .dropdown-submenu > .dropdown-menu.show {
            display: block;
        }

    .dropdown-submenu > .submenu-toggle::before {
        content: "+";
    }
}

/* --------------------------------------------------------------------------
   Forms & Controls
   -------------------------------------------------------------------------- */
input,
select,
textarea,
.form-control,
.form-select {
    background: #ffffff !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-primary) !important;
    padding: 8px 12px;
    font-size: 14px;
    box-shadow: none !important;
}

    input:focus,
    select:focus,
    textarea:focus,
    .form-control:focus,
    .form-select:focus {
        outline: none !important;
        border-color: var(--navy-primary) !important;
        box-shadow: 0 0 0 1px var(--navy-primary) !important;
    }

.form-check-input:focus {
    box-shadow: none !important;
}

.form-check-input:checked {
    background-color: var(--navy-primary) !important;
    border-color: var(--navy-primary) !important;
}

/* --------------------------------------------------------------------------
   Buttons (Navy Solid & Sharp)
   -------------------------------------------------------------------------- */
.btn,
 
.btn-primary,
.btn-secondary,
.btn-glow,
.btn-purple,
.btn-red {
    background-color: var(--navy-primary) !important;
    background: var(--navy-primary) !important;
    border: 1px solid var(--navy-primary) !important;
    color: #ffffff !important;
    border-radius: var(--radius-btn) !important;
    padding: 9px 18px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: none !important;
    text-shadow: none !important;
}

    .btn:hover,
 
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-glow:hover,
    .btn-purple:hover,
    .btn-red:hover {
        background-color: var(--navy-hover) !important;
        background: var(--navy-hover) !important;
        border-color: var(--navy-hover) !important;
        color: #ffffff !important;
    }

    .btn:active,
    button:active {
        background-color: var(--navy-dark) !important;
        border-color: var(--navy-dark) !important;
    }

/* Outline Buttons */
.btn-outline,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-light-custom {
    background: #ffffff !important;
    border: 1px solid var(--navy-primary) !important;
    color: var(--navy-primary) !important;
    border-radius: var(--radius-btn) !important;
    padding: 8px 16px;
    font-weight: 500;
    font-weight: 500;
}

    .btn-outline:hover,
    .btn-outline-primary:hover,
    .btn-outline-secondary:hover,
    .btn-outline-light-custom:hover {
        background: var(--navy-primary) !important;
        color: #ffffff !important;
    }

.btn:disabled,
button:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* --------------------------------------------------------------------------
   Section Titles
   -------------------------------------------------------------------------- */
.section-title {
    position: relative;
    margin-bottom: 22px;
    padding-right: 12px;
    font-weight: 900;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.swiper {
    padding: 10px 4px 46px;
}

.swiper-wrapper {
    height: auto !important;
}

    .section-title::before {
        content: "";
        width: 4px;
        height: 20px;
        border-radius: 2px;
        background: var(--navy-primary) !important;
        flex: 0 0 auto;
    }

    .section-title::after {
        content: "";
        height: 1px;
        flex: 1;
        background: var(--border-hairline) !important;
    }

/* --------------------------------------------------------------------------
   Product Cards
   -------------------------------------------------------------------------- */
.product-card,
.product-card-lg {
    background: #ffffff !important;
    border: 1px solid var(--border-hairline) !important;
    border-radius: var(--radius-card) !important;
    overflow: hidden;
    box-shadow: none !important;
    min-height: 430px;
    position: relative;
    direction: rtl;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card-lg {
    min-height: 480px;
}

    .product-card:hover,
    .product-card-lg:hover {
        border-color: var(--border-subtle) !important;
        box-shadow: var(--shadow-soft) !important;
    }

.product-thumb-wrap {
    position: relative;
    overflow: hidden;
    background: #ffffff !important;
    padding: 16px;
}

.product-thumb {
    width: 100%;
    height: 220px;
    object-fit: contain;
    display: block;
    background: #ffffff;
}

.product-body {
    padding: 14px;
    text-align: right;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 6px;
    display: inline-block;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary) !important;
    line-height: 1.6;
    min-height: 44px;
}

.product-rating {
    color: #f1a90e;
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .product-rating span {
        color: var(--text-muted);
    }

.price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    margin-bottom: 52px;
}

.price-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.old-price {
    color: var(--text-light);
    font-size: 0.82rem;
    text-decoration: line-through;
}

.product-price {
    color: var(--text-primary) !important;
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 0;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--navy-primary) !important;
}

.stock-status {
    font-size: 0.82rem;
    color: #029a43;
    white-space: nowrap;
}

.badge,
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: var(--navy-primary) !important;
    color: #ffffff !important;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-sm) !important;
    box-shadow: none !important;
}

.product-actions {
    position: absolute;
    left: 10px;
    top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 1;
    z-index: 2;
}

.icon-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm) !important;
    background: #ffffff !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-secondary) !important;
    box-shadow: none !important;
    cursor: pointer;
}

    .icon-btn:hover {
        color: #ffffff !important;
        background: var(--navy-primary) !important;
        border-color: var(--navy-primary) !important;
    }

/* دکمه پایین کارت */
.product-card .btn,
.product-card .btn-primary,
.product-card-lg .btn,
.product-card-lg .btn-primary {
    position: absolute;
    left: 12px;
    right: 12px;
    width: calc(100% - 24px) !important;
    bottom: 12px;
    border-radius: var(--radius-btn) !important;
}

/* --------------------------------------------------------------------------
   Hero & Sliders
   -------------------------------------------------------------------------- */
.hero-slider .carousel-item img {
    width: 100%;
    object-fit: contain;
    border-radius: var(--radius-card);
    display: block;
    background: #ffffff;
}

.hero-caption {
    background: #ffffff !important;
    border: 1px solid var(--border-hairline) !important;
    border-radius: var(--radius-card) !important;
    padding: 22px;
    box-shadow: var(--shadow-soft) !important;
}

    .hero-caption h2,
    .hero-caption p {
        color: var(--text-primary) !important;
    }

.feature-box {
    background: #ffffff !important;
    border: 1px solid var(--border-hairline) !important;
    border-radius: var(--radius-card) !important;
    padding: 20px;
    text-align: center;
    height: 100%;
}

    .feature-box:hover {
        border-color: var(--border-subtle) !important;
    }

/* --------------------------------------------------------------------------
   Swiper Slider
   -------------------------------------------------------------------------- */
.swiper {
    padding: 8px 2px 40px;
}

.swiper-main {
    height: 400px;
    border-radius: var(--radius-card);
    margin-bottom: 12px;
    border: 1px solid var(--border-hairline);
    background: #ffffff;
}

.swiper-thumbs {
    height: 80px;
    cursor: pointer;
}

    .swiper-thumbs .swiper-slide {
        border-radius: var(--radius-sm);
        border: 1px solid var(--border-hairline);
        overflow: hidden;
        background: #ffffff;
    }

    .swiper-thumbs .swiper-slide-thumb-active {
        border-color: var(--navy-primary) !important;
    }

.swiper-button-next,
.swiper-button-prev {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm) !important;
    background: #ffffff !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
    box-shadow: var(--shadow-soft) !important;
}

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        background: var(--navy-primary) !important;
        border-color: var(--navy-primary) !important;
        color: #ffffff !important;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 13px;
        font-weight: 900;
    }

.swiper-pagination-bullet {
    background: var(--border-subtle) !important;
    opacity: 1;
    border-radius: 2px;
}

.swiper-pagination-bullet-active {
    background: var(--navy-primary) !important;
}

/* --------------------------------------------------------------------------
   Tabs & Pagination
   -------------------------------------------------------------------------- */
.nav-tabs {
    border-bottom: 1px solid var(--border-hairline) !important;
    margin-bottom: 20px;
}

    .nav-tabs .nav-link {
        color: var(--text-muted) !important;
        border: none !important;
        border-bottom: 2px solid transparent !important;
        font-weight: 500;
        padding: 10px 16px;
        background: transparent !important;
        border-radius: 0 !important;
    }

        .nav-tabs .nav-link.active {
            color: var(--navy-primary) !important;
            border-bottom: 2px solid var(--navy-primary) !important;
        }

.pagination-custom .page-link,
.custom-pagination .page-link,
.page-link {
    background: #ffffff !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm) !important;
    margin: 0 2px;
    font-weight: 800;
    box-shadow: none !important;
}

    .pagination-custom .page-link:hover,
    .custom-pagination .page-link:hover,
    .page-link:hover {
        background: var(--navy-light-bg) !important;
        border-color: var(--navy-primary) !important;
        color: var(--navy-primary) !important;
    }

.pagination-custom .page-item.active .page-link,
.custom-pagination .page-item.active .page-link,
.page-item.active .page-link {
    background: var(--navy-primary) !important;
    border-color: var(--navy-primary) !important;
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Categories
   -------------------------------------------------------------------------- */
.category-card {
    border: 1px solid var(--border-hairline) !important;
    background: #ffffff !important;
    border-radius: var(--radius-card) !important;
    overflow: hidden;
}

.category-img {
    width: 100%;
    object-fit: cover;
}

.category-link {
    aspect-ratio: 1 / 1;
    display: block;
    position: relative;
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 42, 74, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-title {
    color: #ffffff;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 4px 10px;
    border: 1px solid #ffffff;
    border-radius: var(--radius-sm);
}

.catTitle {
    color: var(--text-primary) !important;
    font-weight: 600;
    text-align: center;
    padding: 8px;
}

/* --------------------------------------------------------------------------
   Cart, Quantity & Wishlist
   -------------------------------------------------------------------------- */
.cart-link {
    position: relative;
    display: inline-block;
}

.cart-badge {
    position: absolute;
    top: -5px;
    left: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: var(--radius-sm);
    background: var(--navy-primary) !important;
    color: #ffffff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    font-weight: 700;
}

.cart-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-hairline);
}

.cart-summary {
    position: sticky;
    top: 90px;
    background: #ffffff;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-card);
    padding: 20px;
}

.quantity-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #ffffff;
}

    .quantity-box a {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--text-primary);
        background: var(--navy-light-bg);
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
    }

        .quantity-box a:hover {
            background: var(--navy-primary);
            color: #ffffff;
        }

.quantity-number {
    min-width: 36px;
    text-align: center;
    font-weight: 700;
}

.btn-wishlist {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn-wishlist:hover {
        color: var(--navy-primary);
        border-color: var(--navy-primary);
    }

    .btn-wishlist.active {
        background: var(--navy-primary) !important;
        border-color: var(--navy-primary) !important;
        color: #ffffff !important;
    }

/* --------------------------------------------------------------------------
   Back to Top
   -------------------------------------------------------------------------- */
#btnBackToTop {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm) !important;
    background: var(--navy-primary) !important;
    color: #ffffff !important;
    border: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Reviews, Comments & Countdown
   -------------------------------------------------------------------------- */
.stars-display .star {
    color: #ccc;
}

    .stars-display .star.active {
        color: #fbbf24;
    }

.comment-item {
    background: #ffffff;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-card);
    padding: 16px;
}

.countdown-box {
    padding: 24px;
    border-radius: var(--radius-card);
    background: #ffffff;
    border: 1px solid var(--border-hairline);
}

.countdown-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-primary);
}

.countdown-timer {
    font-size: 2.4rem;
    font-weight: 900;
    direction: ltr;
    color: var(--navy-primary);
}

/* --------------------------------------------------------------------------
   Responsive & Print
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    .hero-slider .carousel-item img {
        height: 200px;
    }

    .product-thumb {
        height: 170px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .price-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 991.98px) {
    .hero-slider .carousel-item img {
        height: 280px;
    }
}

@media print {
    .navbar,
    .navbar-custom,
    #btnBackToTop,
    footer,
    .dontPrint {
        display: none !important;
    }
}




.category-img {
    width: 100%;
    object-fit: cover; /* تصویر بدون دفرمه شدن، باکس رو پر می‌کنه */
    transition: transform 0.4s ease;
}

.category-link {
    aspect-ratio: 1 / 1; /* ایجاد باکس کاملاً مربعی برای هماهنگی بیشتر */
}

/* افکت زوم هنگام هاور کردن روی تصویر */
.category-card:hover .category-img {
    transform: scale(1.1);
}

/* استایل‌های اورلی (Overlay) روی تصویر برای نمایش متن */
.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-title {
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 5px 10px;
    border: 1px solid #fff;
    border-radius: 5px;
}

@media (min-width: 992px) {
    .row-cols-lg-8 {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
    }

        .row-cols-lg-8 > * {
            width: 100%;
        }
}


.circle {
    background: var(--primary-purple-light);
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
    border-radius: 100%;
    box-shadow: 0px 0px 5px black;
}

.goForward {
    z-index: 4;
    position: absolute;
    width: 80%;
    left: 10%;
    top: 10%;
}


.cart-link {
    position: relative;
    display: inline-block;
}

.cart-badge {
    position: absolute;
    top: -6px;
    left: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: gray;
    color: white;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    font-weight: bold;
}

