/* === Shazde Font (For Headings) === */
@font-face {
    font-family: 'Shazde';
    src: url('../fonts/Shazde-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Shazde';
    src: url('../fonts/Shazde-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Shazde';
    src: url('../fonts/Shazde-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Shazde';
    src: url('../fonts/Shazde-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Shazde';
    src: url('../fonts/Shazde-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Shazde';
    src: url('../fonts/Shazde-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Shazde';
    src: url('../fonts/Shazde-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Shazde';
    src: url('../fonts/Shazde-UltraBold.woff2') format('woff2');
    font-weight: 950;
    font-style: normal;
}

/* === IranYekanX Font (For Body) === */
@font-face {
    font-family: 'IranYekanX';
    src: url('../fonts/IranYekanX/woff2/IRANYekanX-Thin.woff2') format('woff2'),
        url('../fonts/IranYekanX/woff/IRANYekanX-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'IranYekanX';
    src: url('../fonts/IranYekanX/woff2/IRANYekanX-UltraLight.woff2') format('woff2'),
        url('../fonts/IranYekanX/woff/IRANYekanX-UltraLight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'IranYekanX';
    src: url('../fonts/IranYekanX/woff2/IRANYekanX-Light.woff2') format('woff2'),
        url('../fonts/IranYekanX/woff/IRANYekanX-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'IranYekanX';
    src: url('../fonts/IranYekanX/woff2/IRANYekanX-Regular.woff2') format('woff2'),
        url('../fonts/IranYekanX/woff/IRANYekanX-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'IranYekanX';
    src: url('../fonts/IranYekanX/woff2/IRANYekanX-Medium.woff2') format('woff2'),
        url('../fonts/IranYekanX/woff/IRANYekanX-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'IranYekanX';
    src: url('../fonts/IranYekanX/woff2/IRANYekanX-DemiBold.woff2') format('woff2'),
        url('../fonts/IranYekanX/woff/IRANYekanX-DemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'IranYekanX';
    src: url('../fonts/IranYekanX/woff2/IRANYekanX-Bold.woff2') format('woff2'),
        url('../fonts/IranYekanX/woff/IRANYekanX-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'IranYekanX';
    src: url('../fonts/IranYekanX/woff2/IRANYekanX-ExtraBold.woff2') format('woff2'),
        url('../fonts/IranYekanX/woff/IRANYekanX-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'IranYekanX';
    src: url('../fonts/IranYekanX/woff2/IRANYekanX-Black.woff2') format('woff2'),
        url('../fonts/IranYekanX/woff/IRANYekanX-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'IranYekanX';
    src: url('../fonts/IranYekanX/woff2/IRANYekanX-ExtraBlack.woff2') format('woff2'),
        url('../fonts/IranYekanX/woff/IRANYekanX-ExtraBlack.woff') format('woff');
    font-weight: 950;
    font-style: normal;
}

@font-face {
    font-family: 'IranYekanX';
    src: url('../fonts/IranYekanX/woff2/IRANYekanX-Heavy.woff2') format('woff2'),
        url('../fonts/IranYekanX/woff/IRANYekanX-Heavy.woff') format('woff');
    font-weight: 1000;
    font-style: normal;
}

/* === Root Variables === */
:root {
    --color-primary: #000000;
    --color-secondry: #ddba83;
    --color-light-bg: #F9FAFB;
    --color-beige: #F5F3ED;
    --color-gold: #B89B16;
    --color-white: #FFFFFF;
    --color-text: #333333;
    --color-text-muted: #6C757D;

    --font-family-body: 'IranYekanX', 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-heading: 'Shazde', 'IranYekanX', 'Vazirmatn', sans-serif;
    --transition: all 0.3s ease;
}

/* === Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-body);
    color: var(--color-text);
    line-height: 1.7;
    direction: rtl;
    overflow-x: hidden;
}

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

.fs-xs {
    font-size: 0.625rem;
    /* 10px */
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* === Start Top Banner === */
.top-banner {
    background: var(--color-primary) !important;
    font-size: 1rem;
}

.top-banner i {
    font-size: 1rem;
}

.topbar-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* === End Top Banner === */


/* === Start Navigation === */

.dashboard-card {
    border-radius: 0px !important;
    border: 1px solid #dee2e6 !important;
}

.inner-card-body {
    border-radius: 0px !important;
    border: none !important;
    padding: 0px !important;
}

.navbar {
    padding: 6px 0;
}

.navbar-logo {
    height: 45px !important;
    width: auto;
    object-fit: contain;
}

.nav-link {
    color: var(--color-text) !important;
    font-weight: 500;
    padding: 8px 12px !important;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    background-color: #e2e2e8 !important;
}

.nav-link:active {
    background-color: #000000;
    color: #ffffff;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--color-primary);
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}


.logout-btn-custom {
    text-align: right !important;
    display: block !important;
    border: none !important;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 0px;
}

.logout-btn-custom:hover {
    background-color: #dc3545 !important;
    color: #fff !important;
}

.card-body .card-text {
    font-size: 14px;

}

/* === End Navigation === */


/* === Start Hero Section === */
.hero-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 112px);
    /* 100vh minus topbar (42px) and navbar (70px) */
    min-height: calc(100vh - 112px);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

/* Hero Video */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: 3rem;
    color: var(--color-primary);
}

.hero-section .container,
.hero-section .row {
    position: relative;
    z-index: 2;
}

/* Hero Button */
.hero-btn {
    border-radius: 0 !important;
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: white !important;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: var(--transition);
}

/* === End Hero Section === */


/* === Start Category Cards === */
.category-card {
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    height: 250px;
    position: relative;
}

.category-image {
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.category-content {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 1;
    height: 100%;
}

.category-content h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--color-primary);
}

.category-icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* === End Category Cards === */



/* Products Section Container */
.products-section .container {
    overflow: hidden;
}

/* === Product Cards === */

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--color-light-bg);
}

.product-image .badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    /* فاصله داخل بج */
    font-size: 10px;
    /* اندازه فونت */
    font-weight: 400;
    /* ضخامت فونت */
    border-radius: 0px;
    /* گردی بیشتر */
    letter-spacing: 1px;
    /* فاصله بین حروف */
}

.product-image .badge.bg-danger {
    background-color: #ffffff !important;
    /* رنگ پس‌زمینه قرمز */
    border-color: #FFD6DB !important;
    /* رنگ خط قرمز */
    border: 1px solid;
    /* خط دور با ضخامت 1px */
    color: #BF5668;
    /* رنگ متن سفید */
}

.product-image .badge.bg-success {
    background-color: #ffffff !important;
    /* رنگ پس‌زمینه قرمز */
    border-color: #CDF0D2 !important;
    /* رنگ خط قرمز */
    border: 1px solid;
    /* خط دور با ضخامت 1px */
    color: #41996D;
    /* رنگ متن سفید */
}

.product-image .badge.bg-dark {
    background-color: #ffffff !important;
    /* رنگ پس‌زمینه قرمز */
    border-color: #DDDEE8 !important;
    /* رنگ خط قرمز */
    border: 1px solid;
    /* خط دور با ضخامت 1px */
    color: #666882;
    /* رنگ متن سفید */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* Gallery hover effect */
.product-image .product-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image .product-image-hover {
    opacity: 1;
}

/* Out of stock overlay */
.out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

/* Apply grayscale to all images in out-of-stock card */
.product-card.out-of-stock .product-image img {
    filter: grayscale(100%);
}

/* Apply opacity ONLY to the main image to avoid overriding hover image visibility */
.product-card.out-of-stock .product-image .product-image-main {
    opacity: 0.8;
}

/* Ensure hover image remains hidden for out-of-stock items */
.product-card.out-of-stock .product-image .product-image-hover {
    display: none !important;
}

.product-title {
    font-family: var(--font-family-body);
    padding: 0px;
    color: var(--color-text);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.product-weight,
.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-size: 14px;
    color: var(--color-primary);

}

.text-gray-small {
    font-size: 0.75rem;
    color: var(--bs-dark-border-subtle) !important;
}

/* === End Swiper Customization === */


/* === WooCommerce Product Loop (Shop Page) === */

/* Breadcrumb Navigation */
.woocommerce .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0.5rem;
    font-size: 12px;
}

.woocommerce .breadcrumb-item {
    color: var(--color-text-muted);
    padding: 0px;
}

.woocommerce .breadcrumb-item a {
    text-decoration: underline !important;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.woocommerce .breadcrumb-item a:hover {
    color: var(--color-primary);
}

.woocommerce .breadcrumb-item.active {
    color: var(--color-primary);
    font-weight: 500;
}

.woocommerce .breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    padding: 0 8px;
    color: var(--color-text-muted);
}

/* PLP Title */
.woocommerce .plp-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.3;
}

/* Category/Subcategory Buttons */
.woocommerce .btn-subcategory {
    background: var(--color-white);
    border: 1px solid #E5E7EB;
    border-radius: 0px;
    padding: 6px 12px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    min-width: 96px;
}

.woocommerce .btn-subcategory:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.woocommerce .subcategory-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
}

.woocommerce .subcategory-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    transition: var(--transition);
}

.woocommerce .subcategory-subtitle {
    font-size: 12px;
    font-weight: 300;
    color: var(--color-text-muted);
    text-transform: capitalize;
    transition: var(--transition);
}

.woocommerce .btn-subcategory:hover .subcategory-title,
.woocommerce .btn-subcategory:hover .subcategory-subtitle {
    color: var(--color-white);
}

@media (max-width: 767px) {
    .woocommerce .plp-title {
        font-size: 1.5rem;
    }

    .woocommerce .breadcrumb {
        font-size: 0.85rem;
    }

    .woocommerce .btn-subcategory {
        padding: 0.6rem 1rem;
    }

    .woocommerce .subcategory-title {
        font-size: 0.85rem;
    }

    .woocommerce .subcategory-subtitle {
        font-size: 0.7rem;
    }
}

/* Products Grid */
.woocommerce .products.row {
    margin: 0 -8px;
    display: flex;
    flex-wrap: wrap;
}

/* Product column wrapper */
.woocommerce .products>div[class*="col-"] {
    padding: 0 8px;
    margin-bottom: 24px;
}

/* Product card link wrapper */
.woocommerce .product-card {
    display: block;
    text-decoration: none;
    height: 100%;
    transition: var(--transition);
}

.woocommerce .product-card:hover {
    text-decoration: none;
}

/* Product image container */
.woocommerce .product-card:hover .product-image .product-image-hover {
    opacity: 1;
}

/* Ensure WooCommerce attachment images don't have extra spacing */
.woocommerce .product-card .product-image .attachment-woocommerce_thumbnail {
    margin: 0;
    padding: 0;
}

/* Out of stock overlay for WooCommerce products */
.woocommerce .product-card .product-image .out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

.woocommerce .product-card.out-of-stock .product-image img {
    filter: grayscale(100%);
    opacity: 0.8;
}

/* Product info container */
.woocommerce .product-card .product-info {
    padding: 8px 4px 4px 4px;
    gap: 4px;
}

.woocommerce .product-card .product-title {
    font-family: var(--font-family-body);
    padding: 0 !important;
    color: #495465;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    transition: var(--transition);
}


/* Product meta (price and weight) */
.woocommerce .product-card .product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

/* Product meta wrapper for price and weight in loop */
.woocommerce .product-meta-price-weight {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.woocommerce .product-card .product-price,
.woocommerce .product-meta-price-weight .price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-size: 14px;
    color: var(--color-primary);
    flex-wrap: wrap;
}

.woocommerce .product-card .product-price .fw-bold,
.woocommerce .product-meta-price-weight .price .fw-bold {
    font-size: 14px;
    font-weight: 700 !important;
}

.woocommerce .product-card .product-price .text-muted,
.woocommerce .product-meta-price-weight .price .text-muted {
    color: var(--color-text-muted);
}

.woocommerce .product-card .product-price .small,
.woocommerce .product-meta-price-weight .price .small {
    font-size: 0.85em;
}

.woocommerce .product-card .product-weight,
.woocommerce .product-meta-price-weight .product-weight {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.woocommerce .product-card .product-weight .fw-semibold,
.woocommerce .product-meta-price-weight .product-weight .fw-semibold {
    color: var(--color-primary);
    font-weight: 600 !important;
}

.woocommerce .product-card .product-weight .text-muted,
.woocommerce .product-meta-price-weight .product-weight .text-muted {
    color: var(--color-text-muted);
}

.woocommerce .product-card .product-weight .small,
.woocommerce .product-meta-price-weight .product-weight .small {
    font-size: 0.85em;
}

/* Remove default WooCommerce styles */
.woocommerce .products .button {
    display: none;
}

.woocommerce .products .price {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .woocommerce .product-card .product-title {
        font-size: 0.9rem;
        padding: 0.35rem 0;
    }

    .woocommerce .product-card .product-price,
    .woocommerce .product-meta-price-weight .price {
        font-size: 0.85rem;
    }

    .woocommerce .product-card .product-weight,
    .woocommerce .product-meta-price-weight .product-weight {
        font-size: 0.75rem;
    }

    .woocommerce .product-meta-price-weight {
        gap: 0.35rem;
    }
}

/* === PLP (Product Listing Page) Specific Styles === */
.woocommerce ul.products {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
    list-style: none;
    padding: 0;
}

.woocommerce ul.products li.product {
    padding: 0.5rem;
    margin: 0;
}

/* Ensure product info has proper spacing in PLP */
.woocommerce ul.products .product-card .product-info {
    padding: 0.75rem 0 0;
}

/* PLP product title styling */
.woocommerce ul.products .product-card .woocommerce-loop-product__title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    transition: var(--transition);
}

.woocommerce ul.products .product-card:hover .woocommerce-loop-product__title {
    color: var(--color-gold);
}

/* Ensure price and weight container has proper width in PLP */
.woocommerce ul.products .product-meta-price-weight {
    margin-top: 0.5rem;
}

/* PLP pagination spacing */
.woocommerce nav.woocommerce-pagination {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}


/* === Start Collection Cards === */
.collection-card {
    overflow: hidden;
    background: var(--color-white);
    transition: var(--transition);
    cursor: pointer;
    height: 428px;
    gap: 4px;
    display: flex;
    flex-direction: column;
}

.collection-image {
    flex: 1;
    overflow: hidden;
    background: var(--color-light-bg);
    min-height: 0;
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.collection-card:hover .collection-image img {
    transform: scale(1.05);
}

.collection-info {
    flex-shrink: 0;
}

.collection-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}

/* === End Collection Cards === */


/* === Start Feature Boxes === */
.feature-box {
    padding: 8px;
    transition: var(--transition);
}

/* === Collection Banner (PLP) === */
.collection-banner-section {
    overflow: hidden;
}

.collection-banner-fullwidth {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 300px;
    height: 300px;
}

.collection-banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 1rem;
}

.collection-banner-overlay h1 {
    color: var(--color-primary) !important;
}

.collection-banner-overlay p {
    color: var(--color-primary) !important;
    font-size: 14px !important;
}

/* Collection Breadcrumb */
.collection-breadcrumb .woocommerce-breadcrumb.breadcrumb-white {
    font-size: 0.875rem;
    color: var(--color-text);
}

.collection-breadcrumb .breadcrumb-item,
.collection-breadcrumb .breadcrumb-item a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.collection-breadcrumb .breadcrumb-item a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.collection-breadcrumb .breadcrumb-separator {
    color: var(--color-text-muted);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .collection-banner-fullwidth {
        min-height: 280px;
        height: 280px;
    }

    .collection-banner-overlay h1 {
        font-size: 1.5rem !important;
    }

    .collection-banner-overlay p {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 767.98px) {
    .collection-banner-fullwidth {
        min-height: 250px;
        height: 250px;
        background-size: cover !important;
    }

    .collection-banner-overlay {
        padding: 1.5rem 1rem;
    }

    .collection-banner-overlay h1 {
        font-size: 1.25rem !important;
    }

    .collection-banner-overlay p {
        font-size: 0.85rem !important;
    }

    .collection-banner-overlay .lead {
        font-size: 0.9rem !important;
    }

    .collection-breadcrumb {
        margin-bottom: 0.75rem !important;
    }
}

@media (max-width: 575.98px) {
    .collection-banner-fullwidth {
        min-height: 200px;
        height: 200px;
    }

    .collection-banner-overlay h1 {
        font-size: 1.1rem !important;
    }

    .collection-banner-overlay p {
        font-size: 0.8rem !important;
        display: none;
        /* Hide description on very small screens */
    }
}

.feature-icon {
    color: var(--color-primary);
}

.feature-svg {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.feature-box h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

.about-section-container {
    background-color: #f5e8d5;
    padding: 32px 24px 16px 24px;
}

/* === End Feature Boxes === */


/* === Start Blog Cards === */
.blog-card {
    overflow: hidden;
    background: var(--color-white);
    transition: var(--transition);
    height: 100%;
    cursor: pointer;
}

.blog-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-light-bg);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 8px 0px 0px 0px;
}

.blog-content h6 {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 4px;
    line-height: 1.5;
}

/* === End Blog Cards === */


/* === Start Footer === */
.footer {
    background-color: var(--color-light-bg) !important;
}

.footer-top {
    background-color: var(--color-light-bg);
}

.footer-logo {
    max-width: 112px !important;
    height: auto !important;
}

.footer h6 {
    font-weight: 700;
    color: var(--color-primary);
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a {
    transition: var(--transition);
}

.footer ul li a:hover {
    color: var(--color-primary) !important;
    padding-right: 0.5rem;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-links a {
    transition: var(--transition);
    display: inline-block;
}

.social-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.trust-badges {
    display: flex;
    gap: 0.5rem;
}

.trust-badge {
    width: 80px;
    height: auto;
    object-fit: contain;
}

.contact-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}


/* Breadcrumb */
.pdp-container .breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.pdp-container .breadcrumb-item {
    color: #929CAA;
    font-size: 1rem;
    font-weight: 500;
}

.pdp-container .breadcrumb-item a {
    color: #929CAA;
    text-decoration: none;
    font-weight: 500;
}

.pdp-container .breadcrumb-item.active {
    color: #929CAA;
}

.pdp-container .breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    color: #929CAA;
}

/* Product Images */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.main-image {
    width: 100%;
    aspect-ratio: 1;
    background-color: #fff;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

.image-thumbnails {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.thumbnail {
    aspect-ratio: 1;
    background-color: #fff;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: var(--color-text);
}

.thumbnail.active {
    border-color: var(--color-primary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    padding: 8px 4px 4px 4px;
    gap: 4px;
}

.product-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-id-label {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
}

.product-id {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
}

.product-rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.product-rating {
    color: #495465;
    font-size: 1rem;
    font-weight: 600;
}

.product-reviews {
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 400;
}

.product-slider-title {
    font-family: var(--font-family-body);
    color: #495465;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.25;
    margin: 0;
}

.product-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-discount {
    background-color: #DA2452;
    color: #fff;
    padding: 2px 12px;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 400;
}

.price-old {
    color: #495465;
    font-size: 1.25rem;
    text-decoration: line-through;
}

.product-price-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-current {
    color: var(--color-primary);
    font-size: 28px;
    font-weight: 700;
}

.price-currency {
    color: #354050;
    font-size: 1.25rem;
}

/* Product Options */
.product-option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.option-title {
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.option-guide-link {
    color: var(--color-primary);
    text-decoration: underline !important;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.option-guide-link:hover {
    color: #2A62E6;
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-option {
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #BCC2CC;
    color: #1C2636;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-option:hover {
    border-color: var(--color-text);
    background-color: #e6e8ea;
}

.btn-option.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-add-to-cart {
    flex: 1;
    padding: 12px 16px;
    background-color: var(--color-primary) !important;
    color: #fff !important;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
    background-color: #1C2636 !important;
}

/* Ensure button never turns green */
.btn-add-to-cart.btn-success,
.btn-add-to-cart.bg-success {
    background-color: var(--color-primary) !important;
    color: #fff !important;
}

.btn-favorite {
    padding: 12px;
    background-color: #fff;
    border: 1px solid #BCC2CC;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-favorite:hover {
    border-color: var(--color-text);
    background-color: #e6e8ea;
}

/* Price Formula */
.price-formula {
    padding: 12px 16px;
    background-color: #F9FAFB;
    border: 1px solid #DFE1E5;
    border-radius: 8px;
    color: #354050;
    font-size: 1rem;
    text-align: center;
}

/* Product Features */
.product-features {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.feature-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}

.feature-item img {
    opacity: 0.48;
}

.feature-item span {
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

/* Product Tabs */
.product-tabs {
    margin-top: 16px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.product-tabs .nav-tabs {
    border-bottom: 1px solid var(--color-primary);
    display: flex;
    flex-wrap: nowrap;
    /* مهم: جلوگیری از رفتن آیتم‌ها به خط بعد */
    overflow-x: auto;
    /* در صورت کمبود فضا اسکرول افقی می‌دهد */
    white-space: nowrap;
    /* جلوگیری از شکستن متن */
    scrollbar-width: none;
    /* Firefox */
}

.product-tabs .nav-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.product-tabs .nav-link {
    display: flex;
    gap: 8px;
    padding: 8px 12px !important;
    border: none;
    border-bottom: 2px solid transparent;
    color: #677283;
    font-size: 16px;
    font-weight: 400;
    background-color: transparent;
}

.product-tabs .nav-link:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.product-tabs .nav-link.active {
    color: #2A62E6;
    font-weight: 700;
    border-bottom-color: var(--color-primary);
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background-color: #F9FAFB;
    border: 1px solid #DFE1E5;
    border-radius: 9999px;
    color: #495465;
    font-size: 0.875rem;
    font-weight: 500;
}

.tab-content-inner {
    padding: 16px 0px;
}

.tab-content-inner p {
    color: #495465;
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 16px;
}

/* Guide Links */
/* Guide Links Wrapper (Outside tabs) */
.guide-links-wrapper {
    background: #FFFFFF;
    /*padding: 24px;
    margin-top: 2rem;*/
}

.guide-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.guide-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/*.guide-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}*/

.guide-link:hover {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary) 0%, #1C2636 100%);
    color: white;
}

/*.guide-link:hover::before {
    transform: scaleY(1);
}*/

.guide-link img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(0) saturate(100%);
}

.guide-link:hover img {
    filter: brightness(0) saturate(100%) invert(1);
}

.guide-link span {
    flex: 1;
    line-height: 1.4;
}

/* Mobile responsive for guide links */
@media (max-width: 768px) {
    .guide-links-wrapper {
        padding: 0px;
    }

    .guide-links {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .guide-link {
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    .guide-link img {
        width: 24px;
        height: 24px;
    }
}

/* Product Tags (Outside tabs) */
.product-tags-section {
    background: #f8f9fa;
    padding: 24px;
    margin-top: 2rem;
}

.tags-title {
    color: var(--color-primary);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-link {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e9ecef;
    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-link:hover {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 26, 43, 0.15);
}

/* Mobile responsive for tags */
@media (max-width: 768px) {
    .product-tags-section {
        padding: 16px;
    }

    .tag-link {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Similar Products Section */
.similar-products-section {
    padding: 48px 0;
    background-color: #fff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.link-btn-underline {
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.section-title {
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.btn-view-all {
    color: #2A62E6;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    opacity: 0.8;
}

.products-carousel {
    overflow-x: auto;
}

/* SEO Content Section */
.seo-content-section {
    padding: 48px 0;
}

.seo-title {
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.seo-text {
    color: #495465;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.seo-section {
    margin-top: 24px;
    margin-bottom: 24px;
}

.seo-subtitle {
    color: var(--color-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.btn-read-more {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: transparent;
    border: none;
    color: #2A62E6;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    opacity: 0.8;
}

/* === Cart Page Styles === */
.lemira-cart-page {
    padding: 2rem 0;
}

/* Cart Tabs */
.lemira-cart-page .nav-tabs {
    border-bottom: 2px solid #E5E7EB;
}

.lemira-cart-page .nav-tabs .nav-link {
    color: var(--color-text-muted);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.lemira-cart-page .nav-tabs .nav-link:hover {
    color: var(--color-primary);
    border-bottom-color: #BCC2CC;
}

.lemira-cart-page .nav-tabs .nav-link.active {
    color: var(--color-primary);
    font-weight: 600;
    border-bottom-color: var(--color-primary);
    background: transparent;
}

/* Cart Product Rows */
.lemira-cart-product-row {
    transition: all 0.3s ease;
}

.lemira-cart-product-row:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.lemira-cart-product-row h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.lemira-cart-product-row h4 a {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

.lemira-cart-product-row h4 a:hover {
    color: var(--color-primary);
}

.lemira-cart-product-row .btn-link {
    background: transparent;
    border: none;
    padding: 0;
    line-height: 1;
    transition: var(--transition);
}

.lemira-cart-product-row .btn-link:hover svg {
    stroke: #dc3545;
}

/* Quantity & Price Row */
.lemira-cart-product-row .bg-light {
    background: var(--color-light-bg) !important;
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem !important;
    white-space: nowrap;
}

.lemira-cart-product-row .text-muted.small {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.lemira-cart-product-row .fw-semibold {
    font-weight: 600;
}

.lemira-cart-product-row .fw-bold {
    font-weight: 700;
    font-size: 1rem;
}

/* Products Section Heading */
.lemira-cart-page section h3 {
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: 700;
}

/* Address Section */
.lemira-address-section {
    background: var(--color-white);
}

.lemira-address-section h3 {
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.lemira-address-section .border-bottom {
    border-color: #E5E7EB !important;
}


.btn-discount-style {
    /* بازنویسی استایل‌های اصلی برای ظاهر سیاه و سفید */
    background-color: #ffffff !important;
    border: 1px solid #333333 !important;
    color: #333333 !important;

    /* رفع مشکل شکستن خط و عمودی شدن دکمه */
    white-space: nowrap !important;

    /* *** حل مشکل کشیدگی عمودی (کلیدی‌ترین بخش) *** */
    /* مطمئن می‌شویم که ارتفاع و عرض از محتوا تبعیت کنند و توسط والد کشیده نشوند. */
    height: auto !important;
    width: fit-content !important;

    /* حذف border-radius */
    border-radius: 0 !important;

    /* پدینگ و ابعاد */
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;

    /* تنظیمات پایه */
    cursor: pointer;
    line-height: 1;
    text-decoration: none;
    text-align: center;

    /* transition برای افکت هاور */
    transition: all 0.2s ease;
}

/* افکت هاور */
.btn-discount-style:hover {
    background-color: #f7f7f7 !important;
    border-color: #000000 !important;
    color: #000000 !important;
}


.address-edit-btn {
    /* بازنویسی رنگ بوت‌استرپ */
    background-color: #ffffff !important;
    border: 1px solid #333333 !important;
    color: #333333 !important;

    /* رفع مشکل کشیدگی/شکستن متن */
    white-space: nowrap !important;
    width: fit-content !important;
    height: auto !important;

    /* بازنویسی border-radius و font-size */
    border-radius: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;

    /* تراز محتوای داخلی فلکس در مرکز */
    justify-content: center !important;

    /* مهم: تضمین پدینگ متناسب (8px بالا و پایین، 16px چپ و راست) */
    padding: 8px 16px !important;
}

.address-edit-btn:hover {
    background-color: #f7f7f7 !important;
    border-color: #000000 !important;
    color: #000000 !important;
}





.lemira-address-section .btn-link {
    color: var(--color-text-dark, #333333);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px !important;
    border-radius: 0px;
    border: 1px solid var(--color-border-dark, #333333);
    background-color: white;
    white-space: nowrap;

}

.lemira-address-section .btn-link:hover {
    color: var(--color-secondry);
    text-decoration: none;
}

.lemira-address-section .btn-link svg {
    flex-shrink: 0;
}

.lemira-address-section .text-dark {
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.lemira-address-section .text-muted.small {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.lemira-address-section .text-muted.small svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.lemira-address-section .alert {
    background-color: #ffffff !important;
    border-radius: 0px !important;
    padding: 0px !important;
    border: none !important;
    display: flex;
    align-items: center;
}

.lemira-address-section .bg-light {
    background-color: var(--color-light-bg) !important;
    border-radius: 8px;
}

.lemira-address-section #address-editor {
    margin-top: 1rem;
}

.lemira-address-section .btn-outline-secondary {
    background-color: transparent;
    border: 1px solid var(--color-primary);
    /* همان رنگ آبی دکمه اعمال تخفیف */
    color: var(--color-primary);
    /* رنگ متن */
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 0px;
    /* مشابه دکمه اعمال تخفیف */
    white-space: nowrap;
    /* جلوگیری از شکستن متن */
    text-align: center;
    /* متن در وسط دکمه */
}

.lemira-address-section .btn-outline-secondary:hover {
    background-color: #e2e2e8;
    ;
    color: var(--color-primary);
}

/* Coupon Section */
.lemira-coupon-section {
    background: var(--color-white);
}

.lemira-coupon-section h3 {
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.lemira-coupon-section .form-control {
    border-radius: 0px;
    border-color: #E5E7EB;
}

.lemira-coupon-section .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(18, 26, 43, 0.1);
}

.lemira-coupon-section .form-control::placeholder {
    color: #9CA3AF;
}

.lemira-coupon-section .btn {
    white-space: nowrap;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 0px;
}

.lemira-coupon-section .btn-dark:hover {
    background-color: #e2e2e8;
    ;
    color: var(--color-primary);
}


/* Shipping Section */



.form-check {
    display: flex;
    align-items: center;
    gap: 12px;
    /* فاصله بین radio و متن */
    padding: 12px 16px !important;
}

.form-check:has(.form-check-input:checked) {
    background-color: #e2e2e8;
}

.form-check .form-check-input {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    width: 20px;
    /* سایز مناسب برای دکمه رادیو */
    height: 20px;
    /* سایز مناسب برای دکمه رادیو */
    margin-right: 0px;
    /* فاصله از متن */
}

.form-check .form-check-label {
    font-size: 14px;
    /* اندازه متن */
    line-height: 20px;
    /* تنظیم ارتفاع خط برای همراستایی با دکمه رادیو */
}




.lemira-shipping-section {
    background: var(--color-white);
}

.lemira-shipping-section h3 {
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.lemira-shipping-section .border {
    border-color: var(--color-primary) !important;
    border: solid 2px !important;
    border-radius: 0px !important;
}

.lemira-payment-methods .form-check {
    border-color: var(--color-primary) !important;
    border: solid 2px !important;
    border-radius: 0px !important;
}

.lemira-shipping-methods .shipping-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lemira-shipping-methods .form-check,
.lemira-shipping-methods label {
    cursor: pointer;
    transition: all 0.3s ease;
}

.lemira-shipping-methods .form-check:hover,
.lemira-shipping-methods label:hover {
    background-color: #F9FAFB;
}

.lemira-shipping-methods .form-check-input:checked~span,
.lemira-shipping-methods .form-check-input:checked+.form-check-label {
    background-color: rgba(18, 26, 43, 0.05);
}

.lemira-shipping-methods .form-check-input {
    margin-top: 0;
    cursor: pointer;
}

/* Update Cart Actions */
.lemira-cart-update-actions {
    background: var(--color-white);
}

.lemira-cart-update-actions .btn {
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.lemira-cart-update-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lemira-cart-update-actions svg {
    flex-shrink: 0;
}


/* Cart Totals */
.lemira-cart-totals {
    position: relative;
    z-index: 1;
}

.lemira-cart-totals .card {
    border-radius: 0px !important;
    box-shadow: none;
    border: 1px solid #E5E7EB;
    align-self: flex-start;
}

.lemira-cart-totals .card-body {
    padding: 24px;
}

/* Checkout Button */
.lemira-proceed-to-checkout {
    padding: 0;
}

.checkout-button {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 16px !important;
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
    border: none !important;
    font-size: 1.125rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.coupon-code-button {
    color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

.coupon-code-button:hover {
    color: var(--color-white) !important;
    border-color: var(--color-primary) !important;
    background: var(--color-primary) !important;
}

.lemira-proceed-to-checkout .checkout-button:hover {
    background: #333 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: var(--color-white);
}

/* Cart Item Meta (Variations) */
.lemira-cart-item .woocommerce-product-attributes,
.lemira-cart-item .variation {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

.lemira-cart-item .woocommerce-product-attributes dt,
.lemira-cart-item .woocommerce-product-attributes dd,
.lemira-cart-item .variation dt,
.lemira-cart-item .variation dd {
    display: inline;
    margin: 0;
}

.lemira-cart-item .woocommerce-product-attributes dt,
.lemira-cart-item .variation dt {
    font-weight: 600;
    margin-left: 0.25rem;
}

/* Cart Remove Button */
.lemira-cart-item a.remove {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.lemira-cart-item a.remove:hover {
    opacity: 0.7;
}

.lemira-cart-item a.remove img {
    display: block;
    pointer-events: none;
}

/* Trust Badges Styling */
.trust-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.trust-badges a,
.trust-badges img {
    max-width: 80px;
    height: auto;
    display: inline-block;
}

.trust-badges a img {
    width: 100%;
    height: auto;
}

.trust-badge {
    max-width: 80px;
    height: auto;
}

/* WooCommerce Messages */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

/* Hide default WooCommerce styles */
.woocommerce table.shop_table,
.woocommerce form .form-row {
    border: none;
}

.woocommerce .shipping-calculator-form {
    padding: 0;
}

/* Shipping Calculator Styling */
.woocommerce-shipping-calculator {
    padding: 0 !important;
    background: transparent !important;
    margin: 0 !important;
    display: block !important;
}

.woocommerce-shipping-calculator .shipping-calculator-form {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.woocommerce-shipping-calculator .form-row {
    margin-bottom: 1rem !important;
    display: block !important;
    visibility: visible !important;
}

.woocommerce-shipping-calculator label,
.woocommerce-shipping-calculator .form-label {
    font-weight: 500 !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    visibility: visible !important;
}

.woocommerce-shipping-calculator select,
.woocommerce-shipping-calculator input[type="text"],
.woocommerce-shipping-calculator .form-control,
.woocommerce-shipping-calculator .form-select {
    width: 100% !important;
    padding: 0.75rem !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 6px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: white !important;
}

.woocommerce-shipping-calculator button {
    margin-top: 1rem !important;
    display: block !important;
    visibility: visible !important;
}

/* Force visibility in collapse */
#address-editor .woocommerce-shipping-calculator,
#address-editor .shipping-calculator-form,
#address-editor .form-row,
#address-editor p,
#address-editor label,
#address-editor input,
#address-editor select,
#address-editor button {
    display: block !important;
    visibility: visible !important;
}

/* Responsive Cart */
@media (max-width: 768px) {
    .lemira-cart-item {
        padding: 1rem !important;
    }

    .lemira-product-thumbnail img {
        max-width: 80px;
    }

    .lemira-cart-totals .card {
        position: static !important;
        top: auto !important;
        margin-top: 2rem;
    }

    .lemira-shipping-methods .form-check,
    .lemira-shipping-methods label {
        align-items: flex-start !important;
    }

    .lemira-address-section,
    .lemira-coupon-section,
    .lemira-shipping-section {
        margin-bottom: 1.5rem !important;
    }

    .lemira-cart-update-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Desktop sticky positioning */
@media (min-width: 769px) {
    .lemira-cart-totals .card {
        position: sticky;
        top: 20px;
    }
}

/* === Checkout Page Styles === */
.lemira-checkout-page {
    padding: 2rem 0;
}

.payment-icon {
    width: 32px;
    object-fit: contain;
    margin-left: 8px;
}

/* Checkout Tabs */
.lemira-checkout-page .nav-tabs {
    border-bottom: 2px solid #E5E7EB;
}

.lemira-checkout-page .nav-tabs .nav-link {
    border-radius: 0px !important;
    color: var(--color-text-muted);
    font-weight: 500;
    padding: 8px 12px !important;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.lemira-checkout-page .nav-tabs .nav-link:hover {
    border-radius: 0px !important;
    color: var(--color-primary);
    border-bottom-color: #BCC2CC;
}

.lemira-checkout-page .nav-tabs .nav-link.active {
    color: var(--color-primary);
    font-weight: 700;
    border-bottom-color: var(--color-primary);
    background: #e2e2e8;
    border-radius: 0px;
}

#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment {
    background-color: #ffffff !important;
}

/* Payment Methods Section */
.lemira-payment-section h3 {
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.lemira-payment-method {
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    border-color: #E5E7EB !important;
}

.lemira-payment-method:hover {
    background-color: #F9FAFB;
}

.lemira-payment-method .form-check-input {
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.lemira-payment-method .form-check-input:checked~.form-check-label {
    font-weight: 600;
}

.lemira-payment-box {
    background: var(--color-light-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem !important;
    width: 100%;
}

/* Order Notes Section */
.lemira-order-notes-section h3 {
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.lemira-order-notes-section textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    min-height: 100px;
    resize: vertical;
}

.lemira-order-notes-section textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(18, 26, 43, 0.1);
}

/* Place Order Button */
.lemira-place-order-btn {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lemira-place-order-btn:hover {
    background: #333 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lemira-place-order-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Hide default WooCommerce checkout elements */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
    display: none;
}

.woocommerce-checkout .wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Terms and Conditions */
.woocommerce-terms-and-conditions-wrapper {
    margin: 1rem 0;
}

.woocommerce-terms-and-conditions-wrapper .form-check-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.woocommerce-terms-and-conditions {
    max-height: 200px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--color-light-bg);
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* Payment Method Icons */
.lemira-payment-method img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Checkout Messages */
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info {
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* === Address Modal Styles === */
#addressModal .modal-dialog {
    max-width: 500px;
}

#addressModal .modal-header {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
}

#addressModal .modal-title {
    font-weight: 600;
    color: var(--color-primary);
}

#addressModal .modal-body {
    padding: 1.5rem;
}

/* Force shipping calculator visibility in modal */
#addressModal .woocommerce-shipping-calculator {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#addressModal .shipping-calculator-form {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#addressModal .woocommerce-shipping-calculator .form-row {
    margin-bottom: 1rem;
    display: block !important;
    visibility: visible !important;
}

#addressModal .woocommerce-shipping-calculator .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
    display: block !important;
    visibility: visible !important;
}

#addressModal .woocommerce-shipping-calculator .form-label .required {
    color: #dc3545;
    font-weight: 600;
    margin-right: 2px;
}

#addressModal .woocommerce-shipping-calculator .form-control,
#addressModal .woocommerce-shipping-calculator .form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
}

#addressModal .woocommerce-shipping-calculator .form-control:focus,
#addressModal .woocommerce-shipping-calculator .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(18, 26, 43, 0.1);
}

#addressModal .btn-dark {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

#addressModal .btn-dark:hover {
    background-color: #0d131f;
    border-color: #0d131f;
}

/* Shipping Calculator in Collapsed Section */
.woocommerce-shipping-calculator .form-label .required {
    color: #dc3545;
    font-weight: 600;
    margin-right: 2px;
}

/* === Address Modal - Mobile Fullpage === */
@media (max-width: 767.98px) {
    #addressModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: 100vh;
    }

    #addressModal .modal-content {
        height: 100vh;
        border-radius: 0;
        border: none;
        display: flex;
        flex-direction: column;
    }

    #addressModal .modal-header {
        flex-shrink: 0;
        border-radius: 0;
    }

    #addressModal .modal-step-indicator {
        flex-shrink: 0;
    }

    #addressModal .modal-body {
        flex: 1;
        overflow-y: auto;
        padding: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    #addressModal .modal-step {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    #addressModal .step-content {
        flex: 1;
        overflow-y: auto;
        margin-bottom: 1rem;
    }

    #addressModal .step-actions {
        flex-shrink: 0;
        margin-top: auto;
        padding-top: 1rem;
        background-color: white;
        position: sticky;
        bottom: 0;
    }

    /* Map container in step 1 */
    #addressModal #modal-map-container {
        height: 100%;
        min-height: 300px;
    }

    #addressModal #modal-map-container .lemira-map-container {
        height: 100%;
    }

    /* Form in step 2 */
    #addressModal #address-edit-form {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    #addressModal #address-edit-form>div:not(:last-child) {
        flex: 1;
        overflow-y: auto;
    }

    #addressModal #address-edit-form>div:last-child {
        flex-shrink: 0;
        position: sticky;
        bottom: 0;
        background-color: white;
    }
}


/* === Guide Modals (All) === */
#sizeGuideModal .modal-header,
#weightGuideModal .modal-header,
#purchaseGuideModal .modal-header,
#priceCalculatorModal .modal-header,
#shippingGuideModal .modal-header,
#returnPolicyModal .modal-header {
    /*background: linear-gradient(135deg, var(--color-primary) 0%, #1C2636 100%);
    color: white;
    border-bottom: none;*/
    padding-left: 24px;
}

#sizeGuideModal .modal-title,
#weightGuideModal .modal-title,
#purchaseGuideModal .modal-title,
#priceCalculatorModal .modal-title,
#shippingGuideModal .modal-title,
#returnPolicyModal .modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#sizeGuideModal .modal-title i,
#weightGuideModal .modal-title i,
#purchaseGuideModal .modal-title i,
#priceCalculatorModal .modal-title i,
#shippingGuideModal .modal-title i,
#returnPolicyModal .modal-title i {
    font-size: 1.75rem;
}

#sizeGuideModal .btn-close,
#weightGuideModal .btn-close,
#purchaseGuideModal .btn-close,
#priceCalculatorModal .btn-close,
#shippingGuideModal .btn-close,
#returnPolicyModal .btn-close {
    color: var(--color-primary)
}

#sizeGuideModal .modal-body,
#weightGuideModal .modal-body,
#purchaseGuideModal .modal-body,
#priceCalculatorModal .modal-body,
#shippingGuideModal .modal-body,
#returnPolicyModal .modal-body {
    padding: 1rem;
    background-color: #f9fafb;
}

.size-guide-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.size-guide-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.size-table {
    margin-bottom: 0;
    text-align: center;
}

.size-table thead {
    background-color: var(--color-primary);
    color: white;
}

.size-table th {
    font-weight: 600;
    padding: 1rem;
}

.size-table td {
    padding: 0.75rem;
    vertical-align: middle;
}

.size-table tbody tr:hover {
    background-color: #f8f9fa;
}

.measurement-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.method-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-right: 4px solid var(--color-primary);
}

.method-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.method-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.method-steps {
    margin: 0;
    padding-right: 1.25rem;
    color: #354050;
}

.method-steps li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.method-steps li:last-child {
    margin-bottom: 0;
}

#sizeGuideModal .alert,
#weightGuideModal .alert {
    border-radius: 8px;
}

#sizeGuideModal .alert ul,
#weightGuideModal .alert ul {
    padding-right: 1.25rem;
    margin-top: 0.5rem;
}

#sizeGuideModal .alert li,
#weightGuideModal .alert li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

#sizeGuideModal .alert li:last-child,
#weightGuideModal .alert li:last-child {
    margin-bottom: 0;
}

#sizeGuideModal .modal-footer,
#weightGuideModal .modal-footer,
#purchaseGuideModal .modal-footer,
#priceCalculatorModal .modal-footer,
#shippingGuideModal .modal-footer,
#returnPolicyModal .modal-footer {
    /*border-top: none;
    padding: 1rem 2rem;
    background-color: #f9fafb;*/
}

.text-justify {
    text-align: justify;
    line-height: 1.8;
    color: #354050;
}

/* Mobile responsive */
@media (max-width: 768px) {

    #sizeGuideModal .modal-body,
    #weightGuideModal .modal-body,
    #purchaseGuideModal .modal-body,
    #priceCalculatorModal .modal-body,
    #shippingGuideModal .modal-body,
    #returnPolicyModal .modal-body {
        padding: 1rem;
    }

    .size-guide-section {
        padding: 1rem;
    }

    .method-card {
        flex-direction: column;
        text-align: center;
    }

    .method-number {
        margin: 0 auto;
    }

    .size-table {
        font-size: 0.875rem;
    }

    .size-table th,
    .size-table td {
        padding: 0.5rem;
    }
}


/* === Product Images Sticky - Responsive Override === */
/* Disable sticky on tablets and mobile devices */
@media (max-width: 991px) {
    .product-images {
        position: relative;
        top: auto;
    }
}

/* === Blog & Archive Pages === */
.single-post-page .post-header {
    background-color: #f8f9fa;
}

.single-post-page .post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary);
}

.single-post-page .post-meta {
    font-size: 0.95rem;
}

.single-post-page .post-meta a {
    color: inherit;
    text-decoration: none;
}

.single-post-page .post-meta a:hover {
    color: var(--color-primary);
}

.single-post-page .post-categories .badge {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.single-post-page .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.single-post-page .entry-content h2,
.single-post-page .entry-content h3,
.single-post-page .entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.single-post-page .entry-content p {
    margin-bottom: 1.5rem;
}

.single-post-page .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.single-post-page .author-box {
    border: 1px solid #e9ecef;
}

.single-post-page .author-avatar img {
    width: 80px;
    height: 80px;
}

.single-post-page .post-nav-link {
    transition: all 0.3s ease;
}

.single-post-page .post-nav-link:hover {
    background-color: #f8f9fa;
    border-color: var(--color-primary) !important;
}

/* Archive Page Styles */
.archive-page .archive-title,
.category-page .category-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.archive-page .post-item,
.category-page .post-item {
    transition: all 0.3s ease;
}

.archive-page .post-item:hover,
.category-page .post-item:hover {
    transform: translateY(-5px);
}

.archive-page .post-title a,
.category-page .post-title a {
    transition: color 0.3s ease;
}

.archive-page .post-title a:hover,
.category-page .post-title a:hover {
    color: var(--color-primary) !important;
}

.archive-page .post-thumbnail img,
.category-page .post-thumbnail img {
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.archive-page .post-thumbnail:hover img,
.category-page .post-thumbnail:hover img {
    transform: scale(1.05);
}

/* Blog Sidebar Widgets */
.blog-sidebar .widget {
    margin-bottom: 2rem;
}

.blog-sidebar .widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.blog-sidebar .widget ul li a {
    transition: all 0.3s ease;
}

.blog-sidebar .widget ul li a:hover {
    color: var(--color-primary);
    padding-right: 5px;
}

/* 404 Page Styles */
.error-404-page .error-illustration svg {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.error-404-page .error-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.error-404-page .category-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.error-404-page .category-card:hover {
    transform: translateY(-5px);
    background-color: white !important;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Pagination Styles */
.pagination-wrapper .page-numbers {
    display: inline-flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-wrapper .page-numbers li {
    display: inline-block;
}

.pagination-wrapper .page-numbers a,
.pagination-wrapper .page-numbers span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-wrapper .page-numbers a:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.pagination-wrapper .page-numbers .current {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Responsive Blog Styles */
@media (max-width: 991px) {

    .single-post-page .post-title,
    .archive-page .archive-title,
    .category-page .category-title {
        font-size: 2rem;
    }

    .blog-sidebar {
        margin-top: 3rem;
    }

    .single-post-page .entry-content {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {

    .single-post-page .post-title,
    .archive-page .archive-title,
    .category-page .category-title {
        font-size: 1.5rem;
    }

    .error-404-page .error-actions .btn {
        width: 100%;
    }
}

/* === Order Details & Thank You Page === */
.lemira-order-header-section .order-status-flow-container {
    margin: 0 0 20px 0;
    padding: 20px 0 0 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 20px;
}

.order-status-flow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.order-status-flow::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ddd;
    z-index: 0;
    margin: 0 10%;
    /* Adjust margin to control line width */
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex-grow: 1;
    z-index: 1;
}

.status-dot-container {
    position: relative;
}

.status-dot {
    width: 20px;
    height: 20px;
    background-color: #ddd;
    border-radius: 50%;
    border: 2px solid #ddd;
    transition: background-color 0.3s, border-color 0.3s;
}

.status-label {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* Active state */
.status-step.active .status-dot {
    background-color: #fff;
    border-color: #c89979;
}

/* Completed state */
.status-step.completed .status-dot {
    background-color: #c89979;
    border-color: #c89979;
}

.status-step.completed::before {
    background-color: #c89979;
}

.lemira-order-status-summary {
    border-radius: 0;
    box-shadow: none !important;
    margin-bottom: 0 !important;
}

.lemira-order-status-summary .card-body {
    padding: 1rem 0 0 0;
}

.lemira-order-status-summary .detail-item {
    display: flex;
    flex-direction: column;
}

.lemira-order-status-summary .detail-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.lemira-order-status-summary .detail-value {
    font-size: 1rem;
    color: #212529;
}

.lemira-order-status-summary .order-status-badge {
    font-size: 0.9rem;
    padding: 0.5em 0.75em;
}

@media (max-width: 767.98px) {
    .lemira-order-status-summary .detail-item {
        margin-bottom: 1rem;
    }

    .lemira-order-status-summary .row>.col-md-4:last-child .detail-item {
        margin-bottom: 0;
    }
}

.lemira-order-updates .timeline {
    position: relative;
    padding-left: 40px;
    border-left: 2px solid #e9ecef;
}

.lemira-order-updates .timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.lemira-order-updates .timeline-item:last-child {
    margin-bottom: 0;
}

.lemira-order-updates .timeline-icon {
    position: absolute;
    left: -21px;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: #c89979;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.lemira-order-updates .timeline-content {
    position: relative;
    border-radius: 8px;
}

.lemira-order-updates .timeline-content .card-body {
    padding: 1.25rem;
}

.lemira-order-updates .timeline-description p:last-child {
    margin-bottom: 0;
}

.lemira-order-items-card .product-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.25rem;
}

.lemira-order-item {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.lemira-order-item:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.lemira-order-totals-card .list-group-item {
    border-color: #e9ecef;
}

.lemira-address-card {
    border-radius: 8px;
}

.lemira-address-card .address-details {
    margin-top: 1rem;
}

.lemira-address-card .address-field {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #495057;
}

.lemira-address-card .address-field:last-child {
    margin-bottom: 0;
}

.lemira-address-card .address-field-label {
    display: flex;
    align-items: center;
    color: #212529;
}

.lemira-address-card .address-field-label i {
    color: #c89979;
    font-size: 1.1rem;
}

.lemira-address-card .address-field-value {
    color: #495057;
    font-weight: bold;
}

.lemira-address-card .card-title i {
    color: #c89979;
}

/* Variation Styles */
.lemira-order-item .wc-item-meta {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.lemira-order-item .wc-item-meta li {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.lemira-order-item .wc-item-meta .wc-item-meta-label {
    font-weight: normal;
    color: #6c757d;
    margin-right: 0.5em;
}

.lemira-order-item .wc-item-meta p {
    margin: 0;
    font-weight: bold;
    color: #495057;
}

/* Thank You Page Styles */
.lemira-thank-you-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.lemira-thank-you-page {
    padding: 3rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    max-width: 600px;
    width: 100%;
}

.lemira-thank-you-icon {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.lemira-thank-you-icon.success {
    color: #28a745;
}

.lemira-thank-you-icon.error {
    color: #dc3545;
}

.lemira-thank-you-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.lemira-thank-you-title.error-title {
    color: #dc3545;
}

.lemira-thank-you-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.lemira-thank-you-subtitle .order-number {
    font-weight: bold;
    color: #c89979;
}

.lemira-thank-you-actions {
    margin-top: 2.5rem;
}

/* ================================
   Address Modal - Step Indicator
   ================================ */

.modal-step-indicator {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.modal-step-indicator .step-item {
    position: relative;
}

.modal-step-indicator .step-number {
    width: 40px;
    height: 40px;
    background-color: #e9ecef;
    color: #6c757d;
    border: 2px solid #dee2e6;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-step-indicator .step-number.active {
    background-color: var(--color-secondry);
    color: #ffffff;
    border-color: var(--color-secondry);
    box-shadow: 0 0 0 4px rgb(221 186 131 / 30%);
}

.modal-step-indicator .step-text {
    color: #6c757d;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.modal-step-indicator .step-item:has(.step-number.active) .step-text {
    color: var(--color-secondry);
}

.modal-step-indicator .step-divider {
    border-color: #dee2e6 !important;
}

.btn-address {
    background-color: var(--color-secondry);
    border-color: var(--color-secondry);
    color: #ffffff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-address:hover {
    background-color: var(--color-secondry);
    border-color: var(--color-secondry);
    color: #ffffff;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Modal Step Content */
.modal-step {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-actions {
    background-color: #f8f9fa;
    margin: 0 -1rem -1rem;
    padding: 1rem 1rem 0;
}

/* Loading button state */
#save-address-btn .spinner-border {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* Smooth transitions */
.modal-step {
    transition: all 0.3s ease;
}

/* ================================
   Custom Side Cart
   ================================ */

/* Overlay */
.lemira-sidecart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lemira-sidecart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Side Cart Container */
.lemira-sidecart {
    position: fixed;
    top: 0;
    left: -420px;
    width: 420px;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    direction: rtl;
}

.lemira-sidecart.active {
    left: 0;
}

/* Header */
.lemira-sidecart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.lemira-sidecart-header h5 {
    font-size: 14px;
    color: var(--color-primary);
}

.lemira-sidecart-count {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

#lemiraCloseSidecart {
    transition: transform 0.2s ease;
}

#lemiraCloseSidecart:hover {
    transform: rotate(90deg);
}

/* Body */
.lemira-sidecart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #ffffff;
}

.lemira-sidecart-body::-webkit-scrollbar {
    width: 6px;
}

.lemira-sidecart-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.lemira-sidecart-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.lemira-sidecart-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Cart Items */
.lemira-sidecart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lemira-sidecart-item {
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
    border-radius: 0 !important;
    ;
}

.lemira-sidecart-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 0px;
    overflow: hidden;
    background: #f8f9fa;
}

.lemira-sidecart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lemira-sidecart-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lemira-sidecart-item-price {
    font-size: 0.85rem;
}

.lemira-sidecart-item-quantity .btn-group {
    direction: ltr;
}

.lemira-sidecart-item-quantity .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.lemira-sidecart-item-subtotal {
    font-size: 0.9rem;
    margin-right: auto;
}

.lemira-remove-item {
    transition: all 0.2s ease;
    opacity: 0.6;
}

.lemira-remove-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Empty Cart */
.lemira-sidecart-empty {
    padding: 3rem 1rem;
}

.lemira-sidecart-empty img {
    max-width: 120px;
    opacity: 0.4;
}

/* Footer */
.lemira-sidecart-footer {
    padding: 16px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.lemira-sidecart-subtotal {
    font-size: 14px;
}

.lemira-sidecart-footer .btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
}

.lemira-sidecart-footer .btn-primary {
    border-radius: 0px !important;
    background: var(--color-primary);
    border: none;
}

.lemira-sidecart-footer .btn-primary:hover {
    background-color: #1C2636 !important;
    ;
}

/* Loading Overlay */
.lemira-sidecart-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Prevent body scroll when cart is open */
body.lemira-sidecart-open {
    overflow: hidden;
}

/* Notification */
.lemira-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 1rem 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    direction: rtl;
}

.lemira-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.lemira-notification-success {
    border-right: 4px solid #28a745;
}

.lemira-notification-error {
    border-right: 4px solid #dc3545;
}

.lemira-notification-warning {
    border-right: 4px solid #ffc107;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lemira-sidecart {
        width: 100%;
        max-width: 100%;
        left: -100%;
    }

    .lemira-sidecart.active {
        left: 0;
    }

    .lemira-sidecart-item-image {
        width: 60px;
        height: 60px;
    }

    .lemira-notification {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }
}

.product-pdp {
    display: flex;
    flex-direction: column;
    /* چون عمودی چیده شده */
    gap: 16px;
}

span.payment-icon {
    display: none;
}