:root {
        --shop-primary: #f97316;
        --shop-primary-dark: #ea580c;
        --shop-primary-soft: #fff7ed;
        --shop-primary-border: #fed7aa;
        --shop-text: #1f2937;
        --shop-muted: #6b7280;
        --shop-border: #e5e7eb;
        --shop-surface: #ffffff;
        --shop-background: #f8fafc;
        --shop-success: #16a34a;
        --shop-danger: #dc2626;
        --shop-radius-lg: 24px;
        --shop-radius-md: 18px;
        --shop-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
    }

    .shop-page {
        background: var(--shop-background);
        min-height: 100vh;
        padding-bottom: 3rem;
    }

    .shop-page-shell {
        width: min(100% - 1.5rem, 1320px);
        margin-inline: auto;
    }

    .shop-hero {
        position: relative;
        overflow: hidden;
        background: var(--shop-surface);
        border: 1px solid rgba(229, 231, 235, 0.9);
        border-radius: 0 0 var(--shop-radius-lg) var(--shop-radius-lg);
        box-shadow: var(--shop-shadow);
    }

    .shop-cover {
        position: relative;
        height: 190px;
        overflow: hidden;
        background:
            radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 30%),
            linear-gradient(135deg, #fb923c 0%, #f97316 45%, #c2410c 100%);
    }

    .shop-cover::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.46) 100%);
        pointer-events: none;
    }

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

    .shop-cover-pattern {
        position: absolute;
        inset: 0;
        opacity: 0.18;
        background-image:
            linear-gradient(45deg, rgba(255,255,255,.25) 25%, transparent 25%),
            linear-gradient(-45deg, rgba(255,255,255,.25) 25%, transparent 25%);
        background-size: 36px 36px;
        background-position: 0 0, 0 18px;
    }

    .shop-profile {
        position: relative;
        padding: 0 1rem 1.25rem;
    }

    .shop-profile-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .shop-brand-block {
        text-align: center;
    }

    .shop-logo-shell {
        position: relative;
        z-index: 2;
        width: 106px;
        height: 106px;
        margin: -53px auto 0;
        padding: 5px;
        border-radius: 50%;
        background: var(--shop-surface);
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    }

    .shop-logo-image,
    .shop-logo-fallback {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        object-fit: cover;
        border: 1px solid var(--shop-border);
    }

    .shop-logo-fallback {
        color: #fff;
        font-size: 2.25rem;
        font-weight: 900;
        background: linear-gradient(135deg, var(--shop-primary), var(--shop-primary-dark));
    }

    .shop-name {
        color: var(--shop-text);
        font-size: clamp(1.45rem, 4vw, 2rem);
        font-weight: 900;
        line-height: 1.45;
        margin: 0.85rem 0 0.25rem;
    }

    .shop-tagline {
        color: var(--shop-primary-dark);
        font-size: 0.9rem;
        font-weight: 700;
        margin-bottom: 0;
    }

    .shop-badges {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.55rem;
        margin-top: 0.95rem;
    }

    .shop-meta-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        min-height: 34px;
        padding: 0.4rem 0.75rem;
        color: var(--shop-muted);
        font-size: 0.78rem;
        font-weight: 700;
        background: #f9fafb;
        border: 1px solid var(--shop-border);
        border-radius: 999px;
        white-space: nowrap;
    }

    .shop-meta-badge i {
        color: var(--shop-primary);
        font-size: 0.95rem;
    }

    .shop-meta-badge.is-verified {
        color: #15803d;
        background: #f0fdf4;
        border-color: #bbf7d0;
    }

    .shop-meta-badge.is-verified i {
        color: var(--shop-success);
    }

    .shop-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .shop-primary-button,
    .shop-outline-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        min-height: 46px;
        padding: 0.7rem 1.15rem;
        border-radius: 14px;
        font-size: 0.9rem;
        font-weight: 800;
        transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    }

    .shop-primary-button {
        color: #fff;
        background: linear-gradient(135deg, var(--shop-primary), var(--shop-primary-dark));
        border: 0;
        box-shadow: 0 10px 22px rgba(249, 115, 22, 0.24);
    }

    .shop-primary-button:hover,
    .shop-primary-button:focus {
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 13px 28px rgba(249, 115, 22, 0.3);
    }

    .shop-outline-button {
        color: var(--shop-primary-dark);
        background: var(--shop-primary-soft);
        border: 1px solid var(--shop-primary-border);
    }

    .shop-outline-button:hover,
    .shop-outline-button:focus {
        color: #fff;
        background: var(--shop-primary);
        border-color: var(--shop-primary);
    }

    .shop-details-collapse {
        border-top: 1px solid var(--shop-border);
        background: #fffaf6;
    }

    .shop-details-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem 1rem;
    }

    .shop-info-card {
        height: 100%;
        padding: 1rem;
        background: var(--shop-surface);
        border: 1px solid var(--shop-border);
        border-radius: var(--shop-radius-md);
    }

    .shop-info-title {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        color: var(--shop-text);
        font-size: 0.95rem;
        font-weight: 900;
        margin-bottom: 0.8rem;
    }

    .shop-info-title i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        color: var(--shop-primary-dark);
        background: var(--shop-primary-soft);
        border-radius: 10px;
    }

    .shop-description {
        color: var(--shop-muted);
        font-size: 0.86rem;
        line-height: 2;
        margin: 0;
        text-align: justify;
    }

    .shop-contact-list {
        display: grid;
        gap: 0.75rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .shop-contact-item {
        display: flex;
        align-items: flex-start;
        gap: 0.65rem;
        color: var(--shop-muted);
        font-size: 0.83rem;
        line-height: 1.8;
    }

    .shop-contact-item i {
        color: var(--shop-primary);
        font-size: 1rem;
        margin-top: 0.18rem;
    }

    .shop-contact-label {
        color: var(--shop-text);
        font-weight: 800;
        margin-left: 0.25rem;
    }

    .shop-contact-link {
        color: var(--shop-text);
        font-weight: 800;
        text-decoration: none;
    }

    .shop-contact-link:hover {
        color: var(--shop-primary-dark);
    }

    .shop-products-section {
        margin-top: 1.25rem;
    }

    .shop-products-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem;
        margin-bottom: 1rem;
        background: var(--shop-surface);
        border: 1px solid var(--shop-border);
        border-radius: var(--shop-radius-md);
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    }

    .shop-products-heading {
        display: flex;
        align-items: center;
        gap: 0.7rem;
        min-width: 0;
    }

    .shop-products-heading-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        color: #fff;
        background: linear-gradient(135deg, var(--shop-primary), var(--shop-primary-dark));
        border-radius: 13px;
        box-shadow: 0 8px 18px rgba(249, 115, 22, 0.2);
    }

    .shop-products-title {
        color: var(--shop-text);
        font-size: 1rem;
        font-weight: 900;
        margin: 0;
    }

    .shop-products-subtitle {
        color: var(--shop-muted);
        font-size: 0.72rem;
        margin: 0.15rem 0 0;
    }

    .shop-sort-button {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        min-height: 40px;
        padding: 0.55rem 0.8rem;
        color: var(--shop-text);
        font-size: 0.78rem;
        font-weight: 800;
        background: #fff;
        border: 1px solid var(--shop-border);
        border-radius: 12px;
    }

    .shop-sort-button:hover,
    .shop-sort-button:focus {
        color: var(--shop-primary-dark);
        background: var(--shop-primary-soft);
        border-color: var(--shop-primary-border);
    }

    .shop-sort-menu {
        min-width: 170px;
        padding: 0.45rem;
        border: 1px solid var(--shop-border);
        border-radius: 14px;
        box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
    }

    .shop-sort-menu .dropdown-item {
        padding: 0.65rem 0.75rem;
        font-size: 0.8rem;
        font-weight: 700;
        border-radius: 9px;
    }

    .shop-sort-menu .dropdown-item:hover,
    .shop-sort-menu .dropdown-item:focus {
        color: var(--shop-primary-dark);
        background: var(--shop-primary-soft);
    }

    .shop-products-grid {
        --bs-gutter-x: 0.7rem;
        --bs-gutter-y: 0.9rem;
    }

    /* کارت محصول هماهنگ با کارت‌های هوم‌پیج جدید */
    .home-product-card {
        position: relative;
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden;
        background: #fff;
        border: 1px solid #e8ebef;
        border-radius: 18px;
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.045);
        transition:
            transform 0.22s ease,
            box-shadow 0.22s ease,
            border-color 0.22s ease;
    }

    .home-product-card:hover {
        transform: translateY(-4px);
        border-color: var(--shop-primary-border);
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
    }

    .home-product-card__link {
        display: flex;
        flex: 1;
        flex-direction: column;
        min-width: 0;
        color: inherit;
        text-decoration: none;
    }

    .home-product-card__media {
        position: relative;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        background: #fff;
        border-bottom: 1px solid #f1f3f5;
    }

    .home-product-card__image {
        display: block;
        width: 100%;
        height: 100%;
        padding: 0.7rem;
        object-fit: contain;
        transition: transform 0.28s ease;
    }

    .home-product-card:hover .home-product-card__image {
        transform: scale(1.04);
    }

    .home-product-card__placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        color: #cbd5e1;
        background: linear-gradient(145deg, #f8fafc, #fff7ed);
    }

    .home-product-card__badges {
        position: absolute;
        top: 0.6rem;
        right: 0.6rem;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        pointer-events: none;
    }

    .home-product-card__badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        min-height: 27px;
        padding: 0.28rem 0.55rem;
        color: #fff;
        font-size: 0.64rem;
        font-weight: 900;
        line-height: 1;
        border-radius: 999px;
        box-shadow: 0 7px 16px rgba(15, 23, 42, 0.13);
    }

    .home-product-card__badge--discount {
        background: #ef4444;
    }

    .home-product-card__badge--quote {
        color: #9a3412;
        background: #ffedd5;
        border: 1px solid #fdba74;
        box-shadow: none;
    }

    .home-product-card__body {
        display: flex;
        flex: 1;
        flex-direction: column;
        min-width: 0;
        padding: 0.72rem;
    }

    .home-product-card__shop {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        min-width: 0;
        margin-bottom: 0.45rem;
        color: #8a94a3;
        font-size: 0.67rem;
        font-weight: 700;
    }

    .home-product-card__shop i {
        flex: 0 0 auto;
        color: var(--shop-primary);
        font-size: 0.76rem;
    }

    .home-product-card__shop-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .home-product-card__title {
        display: -webkit-box;
        min-height: 2.9rem;
        overflow: hidden;
        color: #263238;
        font-size: 0.82rem;
        font-weight: 850;
        line-height: 1.75;
        margin: 0;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .home-product-card__meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        min-height: 28px;
        margin-top: 0.55rem;
    }

    .home-product-card__availability {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.66rem;
        font-weight: 800;
        white-space: nowrap;
    }

    .home-product-card__availability::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
    }

    .home-product-card__availability--in-stock {
        color: #15803d;
    }

    .home-product-card__availability--in-stock::before {
        background: #22c55e;
        box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
    }

    .home-product-card__availability--out-of-stock {
        color: #b91c1c;
    }

    .home-product-card__availability--out-of-stock::before {
        background: #ef4444;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.11);
    }

    .home-product-card__price-state {
        color: #9a3412;
        font-size: 0.64rem;
        font-weight: 800;
        white-space: nowrap;
    }

    .home-product-card__footer {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 0.65rem;
        min-height: 55px;
        margin-top: auto;
        padding-top: 0.65rem;
        border-top: 1px solid #f2f3f5;
    }

    .home-product-card__price-box {
        min-width: 0;
        margin-right: auto;
        text-align: left;
    }

    .home-product-card__old-price {
        display: block;
        min-height: 1rem;
        color: #a3aab5;
        font-size: 0.65rem;
        line-height: 1.2;
        text-decoration: line-through;
        white-space: nowrap;
    }

    .home-product-card__price-row {
        display: flex;
        align-items: baseline;
        justify-content: flex-end;
        gap: 0.25rem;
        direction: rtl;
        white-space: nowrap;
    }

    .home-product-card__price {
        color: #e85d04;
        font-size: 0.92rem;
        font-weight: 950;
        letter-spacing: -0.025em;
    }

    .home-product-card__currency {
        color: #6b7280;
        font-size: 0.62rem;
        font-weight: 750;
    }

    .home-product-card__quote {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.12rem;
        color: #9a3412;
    }

    .home-product-card__quote strong {
        font-size: 0.76rem;
        font-weight: 900;
    }

    .home-product-card__quote small {
        color: #9ca3af;
        font-size: 0.61rem;
    }

    .home-product-card__arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        color: #fff;
        background: linear-gradient(135deg, var(--shop-primary), var(--shop-primary-dark));
        border-radius: 11px;
        box-shadow: 0 7px 15px rgba(249, 115, 22, 0.2);
        transition: transform 0.2s ease;
    }

    .home-product-card:hover .home-product-card__arrow {
        transform: translateX(-2px);
    }

    .shop-empty-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 320px;
        padding: 2rem 1rem;
        text-align: center;
        background: var(--shop-surface);
        border: 1px dashed var(--shop-primary-border);
        border-radius: var(--shop-radius-lg);
    }

    .shop-empty-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 82px;
        height: 82px;
        margin-bottom: 1rem;
        color: var(--shop-primary);
        font-size: 2.2rem;
        background: var(--shop-primary-soft);
        border-radius: 24px;
    }

    .shop-empty-title {
        color: var(--shop-text);
        font-size: 1rem;
        font-weight: 900;
        margin-bottom: 0.4rem;
    }

    .shop-empty-text {
        color: var(--shop-muted);
        font-size: 0.82rem;
        margin: 0;
    }

    .shop-mobile-offcanvas {
        height: min(78vh, 650px) !important;
        border-radius: 24px 24px 0 0;
    }

    .shop-mobile-offcanvas .offcanvas-header {
        padding: 1rem 1.15rem;
        background: #fffaf6;
        border-bottom: 1px solid var(--shop-border);
        border-radius: 24px 24px 0 0;
    }

    .shop-mobile-offcanvas .offcanvas-title {
        color: var(--shop-text);
        font-size: 1rem;
        font-weight: 900;
    }

    .shop-mobile-offcanvas .offcanvas-body {
        padding: 1rem;
    }

    .shop-mobile-section-label {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        color: var(--shop-primary-dark);
        font-size: 0.78rem;
        font-weight: 900;
        margin-bottom: 0.65rem;
    }

    .shop-mobile-contact-card {
        padding: 0.9rem;
        background: #f8fafc;
        border: 1px solid var(--shop-border);
        border-radius: 18px;
    }

    .shop-mobile-contact-row {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .shop-mobile-contact-row + .shop-mobile-contact-row {
        margin-top: 0.8rem;
        padding-top: 0.8rem;
        border-top: 1px solid var(--shop-border);
    }

    .shop-mobile-contact-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        color: var(--shop-primary-dark);
        background: var(--shop-primary-soft);
        border-radius: 11px;
    }

    .shop-mobile-contact-caption {
        display: block;
        color: var(--shop-muted);
        font-size: 0.68rem;
        margin-bottom: 0.15rem;
    }

    .shop-mobile-contact-value {
        display: block;
        color: var(--shop-text);
        font-size: 0.8rem;
        font-weight: 800;
        line-height: 1.8;
        text-decoration: none;
    }

    @media (min-width: 576px) {
        .shop-products-grid {
            --bs-gutter-x: 1rem;
            --bs-gutter-y: 1rem;
        }

        .home-product-card__body {
            padding: 0.85rem;
        }

        .home-product-card__title {
            font-size: 0.87rem;
        }
    }

    @media (min-width: 768px) {
        .shop-page {
            padding-top: 1.5rem;
        }

        .shop-hero {
            border-radius: var(--shop-radius-lg);
        }

        .shop-cover {
            height: 300px;
        }

        .shop-profile {
            padding: 0 1.5rem 1.4rem;
        }

        .shop-profile-grid {
            grid-template-columns: auto minmax(0, 1fr) auto;
            align-items: end;
            gap: 1.25rem;
        }

        .shop-brand-block {
            display: contents;
            text-align: right;
        }

        .shop-logo-shell {
            width: 132px;
            height: 132px;
            margin: -66px 0 0;
            grid-column: 1;
        }

        .shop-brand-content {
            grid-column: 2;
            padding-bottom: 0.15rem;
        }

        .shop-name {
            margin-top: 0;
        }

        .shop-badges {
            justify-content: flex-start;
        }

        .shop-actions {
            grid-column: 3;
            min-width: 170px;
            padding-bottom: 0.1rem;
        }

        .shop-details-grid {
            grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
            gap: 1rem;
            padding: 1.25rem 1.5rem 1.5rem;
        }

        .shop-products-section {
            margin-top: 1.5rem;
        }

        .shop-products-toolbar {
            padding: 1rem 1.15rem;
        }

        .shop-products-title {
            font-size: 1.08rem;
        }

        .shop-products-subtitle {
            font-size: 0.76rem;
        }
    }

    @media (min-width: 1200px) {
        .shop-cover {
            height: 340px;
        }

        .shop-profile {
            padding-inline: 2rem;
        }

        .shop-details-grid {
            padding-inline: 2rem;
        }

        .home-product-card {
            border-radius: 19px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .home-product-card,
        .home-product-card__image,
        .home-product-card__arrow,
        .shop-primary-button,
        .shop-outline-button {
            transition: none;
        }
    }
