.theme-static-page {
    padding: 2.25rem;
    max-width: 70rem;
    margin: 0 auto;
}

.cart-count,
[data-cart-count] {
    min-width: 1.25rem;
    text-align: center;
}

.theme-cart-list {
    display: grid;
    gap: 1rem;
}

.theme-cart-item,
.theme-cart-summary {
    padding: 1.4rem;
}

.theme-cart-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    align-items: center;
}

.theme-cart-media {
    height: 140px;
    border-radius: 1rem;
    overflow: hidden;
    background: #f8fafc;
}

.theme-cart-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme-cart-copy h2 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.theme-cart-copy p {
    color: #64748b;
    margin-bottom: 0;
}

.theme-delivery-policy {
    display: grid;
    gap: 0.25rem;
    margin-top: 0.85rem;
    padding: 0.85rem;
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 0.75rem;
    background: rgba(16, 185, 129, 0.07);
    color: #0f766e;
    line-height: 1.65;
}

.theme-delivery-policy span,
.theme-delivery-policy em {
    color: #475569;
    font-style: normal;
}

.theme-delivery-policy em {
    color: #b45309;
}

.theme-cart-actions {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.theme-cart-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    padding: 0.35rem;
    border-radius: 0.85rem;
}

.theme-cart-qty button {
    border: 0;
    background: #fff;
    width: 34px;
    height: 34px;
    border-radius: 0.6rem;
    font-weight: 800;
}

.theme-remove-btn {
    border: 0;
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    width: 42px;
    height: 42px;
    border-radius: 0.75rem;
}

.theme-cart-summary h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.theme-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.theme-cart-summary p {
    color: #64748b;
    line-height: 1.8;
    margin: 1rem 0 1.2rem;
}

.theme-cart-summary .theme-btn-primary,
.theme-cart-summary .theme-btn-secondary,
.theme-cart-clear-form {
    width: 100%;
    margin-bottom: 0.75rem;
}

.theme-cart-clear-form button {
    border: 0;
}

.product-details-section {
    overflow-x: hidden;
}

.product-details-section > .container > .row {
    align-items: flex-start;
}

.product-details-section .product-gallery,
.product-details-section .product-info-main {
    width: 100%;
    max-width: 100%;
}

.product-details-section .product-main-image {
    width: 100%;
    max-height: min(68vh, 620px);
    overflow: hidden;
    border-radius: 0.75rem;
    background: #f8fafc;
}

.product-details-section .product-main-image img {
    width: 100%;
    height: 100%;
    max-height: min(68vh, 620px);
    object-fit: contain;
    display: block;
}

.product-details-section .product-info-main {
    text-align: start;
}

.product-details-section .product-title {
    font-size: clamp(1.6rem, 4vw, 2.35rem);
    line-height: 1.25;
    margin-bottom: 0.85rem;
    overflow-wrap: anywhere;
}

.product-details-section .product-rating-section .d-flex,
.product-details-section .product-actions-section .d-flex,
.product-details-section .product-meta,
.product-details-section .social-share {
    flex-wrap: wrap;
}

.product-details-section .price-current {
    font-size: clamp(1.45rem, 4vw, 2.15rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.product-details-section .price-old {
    display: inline-block;
    margin-inline-end: 0.5rem;
}

.product-details-section .stock-status .badge {
    white-space: normal;
    line-height: 1.4;
}

.product-details-section .quantity-selector {
    flex: 0 0 150px;
    min-width: 150px;
}

.product-details-section .quantity-input {
    min-width: 3.25rem;
    text-align: center;
}

.product-details-section .add-to-cart-btn {
    min-width: 11rem;
}

.product-details-section .btn {
    min-height: 2.75rem;
    white-space: normal;
}

.site-footer {
    overflow: hidden;
}

.site-footer .newsletter-section,
.site-footer .footer-main,
.site-footer .footer-bottom {
    width: 100%;
}

.site-footer .newsletter-inner {
    align-items: center;
    flex-wrap: wrap;
}

.site-footer .newsletter-content,
.site-footer .newsletter-form {
    flex: 1 1 18rem;
    min-width: 0;
}

.site-footer .newsletter-input-group {
    width: 100%;
}

.site-footer .footer-widget {
    text-align: start;
    max-width: 100%;
}

.site-footer .footer-links,
.site-footer .footer-contact {
    display: grid;
    gap: 0.55rem;
}

.site-footer .footer-bottom-inner {
    flex-wrap: wrap;
}

[dir="rtl"] .site-header,
[dir="rtl"] .main-navigation,
[dir="rtl"] .site-footer,
[dir="rtl"] .product-details-section {
    text-align: right;
}

[dir="rtl"] .header-main-inner,
[dir="rtl"] .header-top-inner,
[dir="rtl"] .nav-inner,
[dir="rtl"] .newsletter-inner,
[dir="rtl"] .footer-bottom-inner {
    direction: rtl;
}

@media (min-width: 992px) {
    .product-details-section > .container > .row > .col-lg-6:first-child {
        flex: 0 0 52%;
        max-width: 52%;
    }

    .product-details-section > .container > .row > .col-lg-6:last-child {
        flex: 0 0 48%;
        max-width: 48%;
    }
}

@media (max-width: 991px) {
    .header-top-inner,
    .header-main-inner,
    .nav-inner,
    .newsletter-inner,
    .footer-bottom-inner {
        flex-wrap: wrap;
        min-height: auto;
    }

    .header-main-inner {
        padding: 0.85rem 0;
    }

    .site-logo,
    .header-actions {
        flex: 1 1 auto;
    }

    .header-actions {
        justify-content: flex-end;
    }

    .header-search {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        width: 100%;
    }

    .main-menu {
        gap: 0.85rem;
    }

    .nav-highlight {
        width: 100%;
    }

    .product-details-section .product-main-image,
    .product-details-section .product-main-image img {
        max-height: 56vh;
    }
}

@media (max-width: 767px) {
    .theme-cart-item {
        grid-template-columns: 1fr;
    }

    .theme-cart-media {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .product-details-section {
        padding-top: 1.5rem !important;
    }

    .product-details-section .product-actions-section .d-flex {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.75rem !important;
    }

    .product-details-section .quantity-selector,
    .product-details-section .add-to-cart-btn {
        width: 100%;
        min-width: 0;
    }

    .site-footer .newsletter-inner,
    .site-footer .footer-bottom-inner {
        display: grid;
        gap: 1rem;
    }

    .site-footer .newsletter-content,
    .site-footer .newsletter-form {
        width: 100%;
    }
}

.theme-static-page h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    margin: 0.75rem 0 1.25rem;
    font-family: var(--font-heading);
}

.theme-static-content {
    color: #475569;
    line-height: 2;
}

.theme-static-content img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
}

.theme-account-shell .theme-surface {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 26px;
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.06);
}

.theme-account-shell .theme-kicker,
.theme-empty-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 700;
}

.theme-account-shell .theme-card-title {
    font-size: 1.45rem;
    font-family: var(--font-heading);
    margin: 0;
}

.theme-account-shell .theme-btn-primary,
.theme-account-shell .theme-btn-secondary,
.theme-empty-actions .theme-btn-primary,
.theme-empty-actions .theme-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.2rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
}

.theme-account-shell .theme-btn-primary,
.theme-empty-actions .theme-btn-primary {
    background: var(--color-primary);
    color: #fff;
    border: none;
}

.theme-account-shell .theme-btn-secondary,
.theme-empty-actions .theme-btn-secondary {
    background: #fff;
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.theme-account-shell .theme-pagination .pagination {
    justify-content: center;
    gap: 0.35rem;
}

.theme-account-shell .theme-pagination .page-link {
    border: none;
    background: #fff;
    color: #334155;
    border-radius: 14px;
    padding: 0.8rem 1rem;
}

.theme-account-shell .theme-pagination .page-item.active .page-link {
    background: var(--color-primary);
    color: #fff;
}

.theme-account-shell .theme-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.theme-account-nav {
    padding: 1.4rem;
    position: sticky;
    top: 100px;
}

.theme-account-user {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.theme-account-avatar {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.theme-account-user small {
    display: block;
    color: #64748b;
}

.theme-account-links {
    display: grid;
    gap: 0.45rem;
}

.theme-account-links a {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    color: #334155;
    text-decoration: none;
    font-weight: 700;
}

.theme-account-links a.is-active,
.theme-account-links a:hover {
    background: #f8fafc;
    color: var(--color-primary);
}

.theme-stat-card {
    padding: 1.2rem;
}

.theme-stat-card strong {
    display: block;
    font-size: 2rem;
    font-family: var(--font-heading);
}

.theme-stat-card span,
.theme-muted,
.theme-order-row small,
.theme-order-card small,
.theme-field-label {
    color: #64748b;
}

.theme-text-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
}

.theme-order-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.theme-order-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.theme-status-pill {
    display: inline-flex;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.theme-order-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.theme-order-card small {
    display: block;
    margin-top: 0.25rem;
}

.theme-field-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.theme-input {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 16px;
    background: #fff;
}

.theme-setting-check {
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #fff;
    height: 100%;
}

.theme-empty-state-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.06);
}

.theme-empty-eyebrow {
    margin-bottom: 1rem;
}

.theme-empty-icon {
    width: 88px;
    height: 88px;
    border-radius: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    font-size: 2.6rem;
    margin-bottom: 1.25rem;
}

.theme-empty-state-card h2 {
    font-size: clamp(1.55rem, 3vw, 2.3rem);
    margin-bottom: 0.85rem;
    font-family: var(--font-heading);
}

.theme-empty-state-card p {
    color: #64748b;
    max-width: 38rem;
    margin: 0 auto 1.35rem;
    line-height: 1.9;
}

.theme-empty-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 991px) {
    .theme-order-card {
        grid-template-columns: 1fr;
    }

    .theme-account-nav {
        position: static;
    }
}

/* Mobile-first storefront hardening shared by all merchant themes. */
:where(.theme-surface,
    .theme-empty-state-card,
    .theme-account-shell .theme-surface,
    .atelier-product-card,
    .aura-product-card,
    .bazaar-product-card,
    .book-card,
    .bookstore-product-card,
    .gourmet-product-card,
    .habitat-product-card,
    .minimal-product-card,
    .organic-product-card,
    .pulse-product-card,
    .techhub-product-card,
    .product-card,
    .product-card-luxe) {
    border-radius: 8px !important;
}

:where(.theme-shell, .theme-catalog-shell, .theme-product-shell, .theme-account-shell) {
    overflow-x: clip;
}

:where(.theme-search-form button,
    .theme-btn-primary,
    .theme-btn-secondary,
    .theme-empty-actions .theme-btn-primary,
    .theme-empty-actions .theme-btn-secondary,
    .bazaar-header__action,
    .bazaar-header__search-shell button,
    .gourmet-action,
    .gourmet-search button,
    .minimal-action,
    .minimal-search button,
    .techhub-action-pill,
    .techhub-search-bar button,
    .add-to-cart-btn,
    .quick-action-btn,
    .action-btn,
    .btn) {
    min-height: 44px;
}

:where(.theme-display,
    .theme-product-copy h1,
    .theme-empty-state-card h2,
    .product-name,
    .bazaar-product-card__title,
    .atelier-product-body h3,
    .aura-product-body h3,
    .gourmet-product-card h3,
    .minimal-product-card h3,
    .techhub-product-card h3) {
    overflow-wrap: anywhere;
}

:where(.atelier-product-media,
    .aura-product-media,
    .bazaar-product-card__media,
    .bookstore-product-card__media,
    .gourmet-product-media,
    .habitat-product-media,
    .minimal-product-media,
    .organic-product-media,
    .pulse-product-media,
    .techhub-product-card__media,
    .product-image-wrapper,
    .theme-product-media) {
    background: #f8fafc;
}

:where(.atelier-product-media,
    .aura-product-media,
    .bazaar-product-card__media,
    .bookstore-product-card__media,
    .gourmet-product-media,
    .habitat-product-media,
    .minimal-product-media,
    .organic-product-media,
    .pulse-product-media,
    .techhub-product-card__media,
    .product-image-wrapper) {
    aspect-ratio: 4 / 5;
    height: auto !important;
    min-height: 0;
}

:where(.atelier-product-media img,
    .aura-product-media img,
    .bazaar-product-card__media img,
    .bookstore-product-card__media img,
    .gourmet-product-media img,
    .habitat-product-media img,
    .minimal-product-media img,
    .organic-product-media img,
    .pulse-product-media img,
    .techhub-product-card__media img,
    .product-image,
    .theme-product-media img) {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(.atelier-product-card,
    .aura-product-card,
    .bazaar-product-card,
    .bookstore-product-card,
    .gourmet-product-card,
    .habitat-product-card,
    .minimal-product-card,
    .organic-product-card,
    .pulse-product-card,
    .techhub-product-card,
    .product-card,
    .product-card-luxe) {
    contain: layout paint;
}

:where(.theme-filter-link,
    .theme-toolbar,
    .theme-product-actions,
    .theme-highlight-grid div,
    .bazaar-product-card__footer,
    .atelier-card-actions,
    .aura-price-row,
    .product-price,
    .product-rating) {
    min-width: 0;
}

@media (hover: none) {
    :where(.product-actions, .product-quick-actions) {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 991.98px) {
    :where(.theme-catalog-shell, .theme-product-shell, .theme-account-shell) {
        padding-top: 1.25rem !important;
        padding-bottom: 1.5rem !important;
    }

    :where(.theme-catalog-hero,
        .theme-product-stage,
        .theme-product-story .theme-surface,
        .theme-empty-state-card,
        .theme-account-shell .theme-surface) {
        padding: 1rem !important;
    }

    :where(.theme-display, .theme-product-copy h1) {
        font-size: clamp(1.55rem, 8vw, 2.35rem) !important;
        line-height: 1.08 !important;
    }

    :where(.theme-copy, .theme-product-lead, .theme-story-content, .theme-empty-state-card p) {
        line-height: 1.75;
    }

    .theme-filter-panel {
        position: static !important;
        margin-bottom: 1rem;
    }

    .theme-filter-block h3 {
        margin-bottom: 0.75rem;
    }

    .theme-filter-block + .theme-filter-block {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .theme-sort-list {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scroll-snap-type: x proximity;
    }

    .theme-filter-block:first-child {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(8.75rem, 1fr));
        gap: 0.5rem;
    }

    .theme-filter-block:first-child h3 {
        grid-column: 1 / -1;
    }

    .theme-filter-link {
        flex: 0 0 auto;
        align-items: center;
        border: 1px solid rgba(15, 23, 42, 0.08);
        background: #fff;
        min-height: 44px;
        scroll-snap-align: start;
    }

    .theme-toolbar,
    .theme-product-meta,
    .theme-product-actions,
    .bazaar-product-card__footer,
    .atelier-card-actions,
    .aura-price-row,
    .product-price,
    .product-rating {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.65rem;
        align-items: stretch !important;
    }

    :where(.theme-search-form,
        .bazaar-header__search-shell,
        .gourmet-search,
        .minimal-search,
        .techhub-search-bar) {
        border-radius: 8px !important;
        padding: 0.65rem !important;
    }

    :where(.theme-btn-primary,
        .theme-btn-secondary,
        .bazaar-product-card__cta,
        .add-to-cart-btn,
        .btn-block) {
        width: 100%;
    }

    :where(.bazaar-header__pulse-inner,
        .bazaar-header__core-inner,
        .gourmet-header__top-inner,
        .gourmet-header__main-inner,
        .minimal-header__inner,
        .techhub-signal-bar__inner,
        .techhub-header-main__inner) {
        gap: 0.75rem !important;
    }

    :where(.bazaar-header__actions,
        .gourmet-header__actions,
        .minimal-actions,
        .techhub-header-actions,
        .bazaar-header__departments-inner,
        .gourmet-course-rail,
        .minimal-chip-row,
        .techhub-chip-row) {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scrollbar-width: thin;
    }

    :where(.bazaar-header__action,
        .gourmet-action,
        .minimal-action,
        .techhub-action-pill,
        .bazaar-header__department-chip,
        .gourmet-course-chip,
        .minimal-chip,
        .techhub-chip-link) {
        flex: 0 0 auto;
        border-radius: 8px !important;
        white-space: nowrap;
    }

    :where(.bazaar-header__ticker, .signal-metrics, .gourmet-header__meta) {
        display: none !important;
    }

    :where(.theme-product-media) {
        min-height: 0 !important;
        aspect-ratio: 1 / 1;
        border-radius: 8px !important;
    }
}

@media (max-width: 575.98px) {
    :where(.theme-static-page,
        .theme-empty-state-card,
        .theme-account-nav,
        .theme-stat-card,
        .atelier-product-body,
        .aura-product-body,
        .product-info,
        .product-card-info,
        .bazaar-product-card__body) {
        padding: 0.9rem !important;
    }

    :where(.container) {
        --bs-gutter-x: 1rem;
    }

    :where(.theme-highlight-grid) {
        grid-template-columns: 1fr !important;
    }

    :where(.theme-empty-actions,
        .theme-product-actions) {
        display: grid !important;
        grid-template-columns: 1fr;
    }

    :where(.theme-empty-actions a,
        .theme-product-actions a,
        .theme-product-actions button) {
        width: 100%;
    }

    .toast-notification {
        right: 1rem;
        left: 1rem;
        min-width: 0;
    }

    [dir="rtl"] .toast-notification {
        right: 1rem;
        left: 1rem;
    }
}
