/* NahanPardaz integration rules for the Demo02 theme. */
.theme-site .storefront-main-offset {
    padding-top: 7.5rem;
}

.theme-site .storefront-main:focus {
    outline: none;
}

.theme-site .navbar .container {
    width: min(100% - 2rem, 1320px);
}

.theme-site .nav-wrapper {
    min-height: 2.75rem;
}

.theme-site .logo {
    flex: 0 0 auto;
    gap: .65rem;
    text-decoration: none;
}

.theme-site .logo > img {
    display: block;
    width: 2.625rem;
    height: 2.625rem;
    flex: 0 0 2.625rem;
    object-fit: contain;
}

.theme-site .logo-icon {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid var(--border-neon);
    border-radius: 50%;
    color: var(--accent-cyan);
    font-size: 1rem;
}

.theme-site .logo-copy {
    display: grid;
    line-height: 1.3;
}

.theme-site .logo-copy small {
    color: var(--text-secondary);
    font-size: .68rem;
    font-weight: 400;
    text-shadow: none;
}

.theme-site .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.theme-site .nav-menu .nav-item {
    position: relative;
}

.theme-site .nav-menu .nav-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.theme-site .nahan-nav-dropdown > summary {
    cursor: pointer;
    list-style: none;
}

.theme-site .nahan-nav-dropdown > summary::-webkit-details-marker {
    display: none;
}

.theme-site .nahan-nav-submenu {
    position: absolute;
    z-index: 2;
    top: 100%;
    right: 0;
    min-width: 12rem;
    margin: 0;
    padding: .5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-nav-menu);
    list-style: none;
}

.theme-site .nahan-nav-submenu .nav-link {
    display: flex;
    padding: .55rem 0;
}

.theme-site .nav-actions {
    flex: 0 1 auto;
}

.theme-site .storefront-search {
    display: flex;
    align-items: center;
    gap: .45rem;
    width: min(16rem, 24vw);
    min-width: 8rem;
    padding: .25rem .55rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    color: var(--text-secondary);
}

.theme-site .storefront-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
}

.theme-site .storefront-search button {
    flex: 0 0 auto;
    padding: .35rem .55rem;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--accent-cyan);
    color: var(--bg-primary);
    font: inherit;
    cursor: pointer;
}

.theme-site .nahan-account-menu {
    position: relative;
    color: var(--text-primary);
}

.theme-site .nahan-account-menu > summary {
    display: flex;
    align-items: center;
    gap: .4rem;
    max-width: 10rem;
    cursor: pointer;
    list-style: none;
}

.theme-site .nahan-account-menu > summary::-webkit-details-marker {
    display: none;
}

.theme-site .nahan-account-menu > nav {
    position: absolute;
    z-index: 4;
    top: calc(100% + .75rem);
    left: 0;
    display: grid;
    min-width: 13rem;
    max-height: min(75vh, 32rem);
    overflow: auto;
    padding: .5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-nav-menu);
    box-shadow: var(--shadow-lg);
}

.theme-site .nahan-account-menu > nav a,
.theme-site .nahan-account-menu > nav button {
    padding: .6rem .7rem;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    text-align: right;
    text-decoration: none;
    cursor: pointer;
}

.theme-site .nahan-account-menu > nav a:hover,
.theme-site .nahan-account-menu > nav button:hover {
    background: var(--bg-hover);
}

.theme-site .nahan-icon-link,
.theme-site .nahan-auth-link {
    flex: 0 0 auto;
}

.theme-site .storefront-action-link {
    display: inline-flex;
    position: relative;
    align-items: center;
    gap: .35rem;
    color: var(--text-primary);
    text-decoration: none;
}

.theme-site .storefront-wishlist-action,
.theme-site .storefront-cart-action {
    width: 2.5rem;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    justify-content: center;
}

.theme-site .storefront-wishlist-action svg,
.theme-site .storefront-cart-action svg {
    flex: 0 0 1.25rem;
}

.theme-site .storefront-badge {
    position: absolute;
    top: -.4rem;
    right: -.45rem;
    display: grid;
    min-width: 1.1rem;
    height: 1.1rem;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    font-size: .68rem;
}

.theme-site .nahan-icon-link {
    position: relative;
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-primary);
    text-decoration: none;
}

.theme-site .nahan-count {
    position: absolute;
    top: -.35rem;
    right: -.3rem;
    display: grid;
    min-width: 1.15rem;
    height: 1.15rem;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    font-size: .68rem;
}

.nahan-home-hero {
    min-height: min(48rem, 100svh);
}

.nahan-home-hero .container {
    align-items: center;
}

.nahan-home-visual {
    display: grid;
    place-items: center;
    min-height: 22rem;
    border: 1px solid rgba(0, 255, 255, .2);
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at 50% 45%, rgba(0, 255, 255, .12), transparent 62%);
}

.nahan-home-visual img {
    display: block;
    width: min(88%, 28rem);
    max-height: 27rem;
    object-fit: contain;
    filter: drop-shadow(0 0 2rem rgba(0, 255, 255, .18));
}

.nahan-visual-caption {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--accent-cyan);
}

.nahan-home .features,
.nahan-home .portfolio {
    padding-block: clamp(4rem, 8vw, 7rem);
}

.nahan-home-categories {
    background: linear-gradient(180deg, transparent, rgba(0, 255, 255, .025), transparent);
}

.nahan-home .nahan-category-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.nahan-home .nahan-category-card {
    display: block;
    min-height: 12rem;
    color: var(--text-primary);
    text-align: right;
    text-decoration: none;
}

.nahan-home .nahan-category-card .feature-icon {
    display: grid;
    place-items: center;
    color: var(--accent-cyan);
}

.nahan-home .nahan-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 1.25rem;
}

.nahan-home .nahan-product-card {
    display: flex;
    min-height: 15rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.nahan-home .nahan-product-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-neon);
    box-shadow: var(--shadow-glow-cyan);
}

.nahan-product-icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--accent-cyan);
    font-size: 1.2rem;
}

.nahan-product-category {
    color: var(--accent-cyan);
    font-size: .82rem;
}

.nahan-home .nahan-product-card h3 {
    margin: .45rem 0;
    color: var(--text-primary);
}

.nahan-home .nahan-product-card p {
    margin: 0 0 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.nahan-card-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: auto;
    color: var(--accent-cyan);
    font-size: .9rem;
}

.nahan-section-action {
    margin-top: 2rem;
    text-align: center;
}

.nahan-empty-note {
    padding: 1.25rem;
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-align: center;
}

.nahan-home-cta .section-badge {
    display: inline-block;
    margin-bottom: 1rem;
}

.theme-site .footer-top {
    align-items: start;
}

.theme-site .footer-col {
    min-width: 0;
}

.theme-site .footer-contact {
    display: grid;
    gap: .8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.theme-site .footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
}

.theme-site .footer-contact i {
    margin-top: .35rem;
    color: var(--accent-cyan);
}

.theme-site .nahan-footer-newsletter {
    display: flex;
    max-width: 20rem;
    gap: .4rem;
    margin-top: .8rem;
}

.theme-site .nahan-footer-newsletter input {
    min-width: 0;
    flex: 1;
    padding: .65rem .8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    font: inherit;
}

.theme-site .nahan-footer-newsletter button {
    width: 2.7rem;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--accent-cyan);
    color: var(--bg-primary);
    cursor: pointer;
}

.theme-site .footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

@media (max-width: 600px) {
    .theme-site .navbar .container {
        width: calc(100% - 1.25rem);
        padding-inline: 0;
    }

    .nahan-home-hero {
        min-height: auto;
        padding-top: 8rem;
        padding-bottom: 5rem;
    }

    .nahan-home-visual {
        min-height: 15rem;
    }

    .nahan-home-visual img {
        max-height: 18rem;
    }

    .theme-site .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Apply Demo02's dark teal and cyan palette to all existing Storefront views. */
.storefront-shell.theme-site {
    color-scheme: dark;
    --store-primary: #00ffff;
    --store-primary-strong: #00d8c8;
    --store-secondary: #cff2f8;
    --store-secondary-deep: #e2e8f0;
    --store-accent: #00ffff;
    --store-blue: #0fcfff;
    --store-gradient: linear-gradient(135deg, #00fff2 0%, #3aff75af 100%);
    --store-background: #010f0d;
    --store-surface: #09161a;
    --store-surface-soft: #0d1f26;
    --store-surface-muted: #0d1f26;
    --store-text: #e2e8f0;
    --store-muted: #a7bac1;
    --store-border: #273d49;
    --store-line: #273d49;
    --store-on-dark: #010f0d;
    --store-success: #00d138;
    --store-shadow-sm: 0 2px 8px rgba(0, 0, 0, .24);
    --store-shadow-md: 0 8px 32px rgba(0, 0, 0, .34);
    --store-radius-sm: 6px;
    --store-radius-md: 10px;
    --store-radius-lg: 16px;
    --storefront-ink: #e2e8f0;
    --storefront-accent: #00ffff;
    background: var(--store-background);
    color: var(--store-text);
}

.theme-site .storefront-container {
    width: min(calc(100% - 2rem), 1240px);
}

.theme-site .storefront-main {
    min-height: 55vh;
    background: transparent;
}

.theme-site .storefront-topbar {
    color: var(--text-primary);
    background: var(--bg-secondary);
    border-color: var(--border);
}

.theme-site .storefront-topbar-label,
.theme-site .storefront-eyebrow {
    color: var(--accent-cyan);
}

.theme-site .storefront-section-heading h1,
.theme-site .storefront-section-heading h2,
.theme-site .storefront-catalog-heading h1,
.theme-site .storefront-blog-heading h1,
.theme-site .storefront-product-detail-content h1,
.theme-site .storefront-content-article h1 {
    color: var(--text-primary);
}

.theme-site .storefront-section-heading p,
.theme-site .storefront-catalog-heading p,
.theme-site .storefront-blog-heading p,
.theme-site .storefront-account-muted,
.theme-site .storefront-content-summary {
    color: var(--text-secondary);
}

.theme-site .storefront-auth-page,
.theme-site .storefront-account-page,
.theme-site .storefront-cart-page,
.theme-site .storefront-checkout-page,
.theme-site .storefront-wishlist-page,
.theme-site .storefront-catalog-page,
.theme-site .storefront-blog-page,
.theme-site .storefront-product-detail-page,
.theme-site .storefront-invoice-page,
.theme-site .storefront-content-page {
    color: var(--store-text);
    background: transparent;
}

.theme-site .storefront-content-article {
    color: var(--store-text);
    background: linear-gradient(155deg, rgba(15, 36, 41, .97), rgba(7, 18, 23, .96));
    border-color: var(--store-border);
    box-shadow: var(--store-shadow-sm);
}

.theme-site .storefront-content-body { color: var(--store-text); overflow-wrap: anywhere; }
.theme-site .storefront-content-body h2,
.theme-site .storefront-content-body h3,
.theme-site .storefront-content-body h4 { color: var(--text-primary); }
.theme-site .storefront-content-body p,
.theme-site .storefront-content-body li,
.theme-site .storefront-content-body blockquote { color: var(--text-secondary); }
.theme-site .storefront-content-cover { margin: 1.5rem 0 2rem; overflow: hidden; border: 1px solid var(--store-border); border-radius: 18px; background: #0b1b20; }
.theme-site .storefront-content-cover img { display: block; width: 100%; max-height: 560px; object-fit: cover; }

.theme-site .storefront-catalog-intro,
.theme-site .storefront-auth-card,
.theme-site .storefront-account-card,
.theme-site .storefront-account-summary-card,
.theme-site .storefront-product-filter-panel,
.theme-site .storefront-catalog-filter-drawer,
.theme-site .storefront-blog-card,
.theme-site .storefront-blog-comment-card,
.theme-site .storefront-blog-related-card,
.theme-site .storefront-product-review-card,
.theme-site .storefront-address-card,
.theme-site .storefront-cart-item,
.theme-site .storefront-cart-summary,
.theme-site .storefront-checkout-section,
.theme-site .storefront-checkout-address,
.theme-site .storefront-checkout-shipping-method,
.theme-site .storefront-empty-state,
.theme-site .storefront-loading-state,
.theme-site .storefront-invoice,
.theme-site .storefront-preview-toolbar,
.theme-site .storefront-preview-card {
    color: var(--store-text);
    background: var(--store-surface);
    border-color: var(--store-border);
    box-shadow: var(--store-shadow-sm);
}

.theme-site .storefront-catalog-product-card,
.theme-site .storefront-product-card,
.theme-site .storefront-wishlist-item,
.theme-site .storefront-category-card {
    color: var(--store-text);
    background: var(--store-surface);
    border-color: var(--store-border);
    box-shadow: var(--store-shadow-sm);
}

.theme-site .storefront-catalog-product-card:hover,
.theme-site .storefront-product-card:hover,
.theme-site .storefront-category-card:hover,
.theme-site .storefront-blog-card:hover,
.theme-site .storefront-preview-card:hover {
    border-color: var(--border-neon);
    box-shadow: var(--shadow-glow-cyan);
}

.theme-site .storefront-catalog-product-media,
.theme-site .storefront-catalog-product-placeholder,
.theme-site .storefront-product-media,
.theme-site .storefront-wishlist-item-media,
.theme-site .storefront-product-detail-media,
.theme-site .storefront-product-detail-image-fallback,
.theme-site .storefront-product-detail-image {
    background: linear-gradient(145deg, #0d1f26, #09161a);
}

.theme-site .storefront-catalog-product-placeholder {
    color: var(--accent-cyan);
}

.theme-site .storefront-catalog-product-placeholder::before {
    border-color: rgba(0, 255, 255, .24);
}

.theme-site .storefront-product-info h3,
.theme-site .storefront-product-info h3 a,
.theme-site .storefront-blog-card h2 a,
.theme-site .storefront-blog-related-card h3 a,
.theme-site .storefront-account-review-list h2 a,
.theme-site .storefront-empty-state h2,
.theme-site .storefront-product-detail-content h1,
.theme-site .storefront-product-information h2,
.theme-site .storefront-product-detail-description h2 {
    color: var(--text-primary);
}

.theme-site .storefront-product-meta,
.theme-site .storefront-catalog-product-meta,
.theme-site .storefront-blog-card-meta,
.theme-site .storefront-blog-article-meta,
.theme-site .storefront-product-detail-meta,
.theme-site .storefront-product-detail-short-description,
.theme-site .storefront-product-review-summary,
.theme-site .storefront-product-selection-hint,
.theme-site .storefront-product-identity-placeholder,
.theme-site .storefront-catalog-product-description,
.theme-site .storefront-empty-state p,
.theme-site .storefront-loading-state p {
    color: var(--text-secondary);
}

.theme-site .storefront-button-primary {
    color: #010f0d;
    background: var(--gradient-primary);
    border-color: rgba(0, 255, 255, .42);
}

.theme-site .storefront-button-primary:hover {
    color: #010f0d;
    background: linear-gradient(135deg, #00ffff 0%, #00d138 100%);
}

.theme-site .storefront-button-secondary,
.theme-site .storefront-button-ghost,
.theme-site .storefront-link-button,
.theme-site .storefront-clear-search,
.theme-site .storefront-text-link,
.theme-site .storefront-product-link,
.theme-site .storefront-blog-card-more {
    color: var(--accent-cyan);
}

.theme-site .storefront-button-secondary,
.theme-site .storefront-button-ghost {
    background: var(--bg-card);
    border-color: var(--border);
}

.theme-site .storefront-button-secondary:hover,
.theme-site .storefront-button-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    border-color: var(--border-neon);
}

.theme-site .storefront-breadcrumbs,
.theme-site .storefront-breadcrumbs a,
.theme-site .storefront-result-summary,
.theme-site .storefront-section-caption,
.theme-site .storefront-blog-results-bar {
    color: var(--text-secondary);
}

.theme-site .storefront-catalog-total,
.theme-site .storefront-product-badge,
.theme-site .storefront-badge,
.theme-site .storefront-badge-static {
    color: #010f0d;
    background: var(--accent-cyan);
    border-color: rgba(0, 255, 255, .4);
}

.theme-site .storefront-badge.is-approved {
    color: #010f0d;
    background: #00d138;
}

.theme-site .storefront-table-wrap {
    border: 1px solid var(--store-border);
    border-radius: var(--radius-md);
    background: var(--store-surface);
}

.theme-site .storefront-table {
    color: var(--store-text);
}

.theme-site .storefront-table th {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.theme-site .storefront-table th,
.theme-site .storefront-table td {
    border-color: var(--store-border);
}

.theme-site .storefront-table tbody tr:hover {
    background: rgba(0, 255, 255, .035);
}

.theme-site .storefront-auth-field,
.theme-site .storefront-form label,
.theme-site .storefront-account-form label,
.theme-site .storefront-account-filter-form label,
.theme-site .storefront-checkout-section label,
.theme-site .storefront-blog-toolbar label,
.theme-site .storefront-catalog-search-form label,
.theme-site .storefront-catalog-sort-form label,
.theme-site .storefront-preview-input {
    color: var(--text-secondary);
}

.theme-site input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.theme-site select,
.theme-site textarea {
    color: var(--store-text);
    background-color: var(--store-surface-muted);
    border-color: var(--store-border);
}

.theme-site input::placeholder,
.theme-site textarea::placeholder {
    color: #8ca2aa;
    opacity: 1;
}

.theme-site input:focus-visible,
.theme-site select:focus-visible,
.theme-site textarea:focus-visible,
.theme-site button:focus-visible,
.theme-site a:focus-visible,
.theme-site summary:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

.theme-site input[type="checkbox"],
.theme-site input[type="radio"] {
    accent-color: var(--accent-cyan);
}

.theme-site .storefront-alert-info {
    color: #cff2f8;
    background: rgba(15, 207, 255, .1);
    border-color: rgba(15, 207, 255, .36);
}

.theme-site .storefront-alert-success {
    color: #b5ffd1;
    background: rgba(0, 209, 56, .1);
    border-color: rgba(0, 209, 56, .34);
}

.theme-site .storefront-alert-warning {
    color: #ffe6a6;
    background: rgba(255, 190, 40, .1);
    border-color: rgba(255, 190, 40, .35);
}

.theme-site .storefront-alert-danger,
.theme-site .storefront-auth-message-error {
    color: #ffc4cb;
    background: rgba(255, 66, 95, .1);
    border-color: rgba(255, 66, 95, .38);
}

.theme-site .storefront-alert-info,
.theme-site .storefront-alert-success,
.theme-site .storefront-alert-warning,
.theme-site .storefront-alert-danger {
    border-radius: var(--radius-md);
}

.theme-site .storefront-product-variant-value,
.theme-site .storefront-product-gallery-thumbnail,
.theme-site .storefront-pagination-link {
    color: var(--store-text);
    background: var(--store-surface);
    border-color: var(--store-border);
}

.theme-site .storefront-product-variant-value.is-selected,
.theme-site .storefront-pagination-link.is-current {
    color: #010f0d;
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.theme-site .storefront-product-variant-value:disabled,
.theme-site .storefront-product-variant-value.is-unavailable {
    color: var(--text-dim);
    background: var(--bg-secondary);
}

.theme-site .storefront-account-navigation {
    padding: .6rem;
    background: var(--store-surface);
    border-color: var(--store-border);
}

.theme-site .storefront-account-content {
    min-width: 0;
}

.theme-site .storefront-account-records {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1rem;
}

.theme-site .storefront-account-record {
    min-width: 0;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--store-border);
    border-radius: var(--radius-lg);
    background: var(--store-surface);
    box-shadow: var(--store-shadow-sm);
}

.theme-site .storefront-account-record h2 {
    margin-top: 0;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.theme-site .storefront-account-record p {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 1rem;
    margin-block: .65rem 0;
    color: var(--text-secondary);
}

.theme-site .storefront-account-record strong,
.theme-site .storefront-account-record code {
    color: var(--accent-cyan);
    overflow-wrap: anywhere;
}

.theme-site .storefront-account-record small {
    display: block;
    margin-top: .65rem;
    color: var(--text-dim);
}

.theme-site .storefront-account-navigation a {
    color: var(--text-secondary);
}

.theme-site .storefront-account-navigation a:hover,
.theme-site .storefront-account-navigation a.is-active {
    color: var(--accent-cyan);
    background: var(--bg-hover);
}

.theme-site .storefront-account-summary-card strong,
.theme-site .storefront-product-price strong,
.theme-site .storefront-rating,
.theme-site .storefront-product-availability.is-available {
    color: var(--accent-cyan);
}

.theme-site .storefront-cart-total,
.theme-site .storefront-checkout-section,
.theme-site .storefront-product-information,
.theme-site .storefront-product-detail-description,
.theme-site .storefront-blog-article-body,
.theme-site .storefront-blog-comments {
    border-color: var(--store-border);
}

.theme-site .storefront-blog-article-body a,
.theme-site .storefront-content-body a,
.theme-site .storefront-blog-article-categories a,
.theme-site .storefront-blog-article-tags a {
    color: var(--accent-cyan);
}

.theme-site .storefront-blog-article-body blockquote {
    border-inline-start-color: var(--accent-cyan);
    background: var(--bg-card);
}

.theme-site .storefront-blog-card-placeholder,
.theme-site .storefront-category-card-sand .storefront-category-art,
.theme-site .storefront-category-card-teal .storefront-category-art,
.theme-site .storefront-category-card-coral .storefront-category-art {
    color: var(--text-secondary);
    background: linear-gradient(145deg, #0d1f26, #09161a);
}

/* Blog listing follows the Demo02 blog.html structure and visual language. */
.theme-site .page-hero-blog {
    padding: clamp(4.5rem, 8vw, 6.5rem) 0 3.5rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 255, 255, .055), rgba(0, 255, 136, .045));
}

.theme-site .nahan-blog-hero .section-title {
    max-width: 60rem;
    margin: .8rem auto 1rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.theme-site .nahan-blog-hero .section-description {
    max-width: 48rem;
    margin: 0 auto;
    line-height: 2;
}

.theme-site .nahan-blog-directory {
    padding-block: 3.5rem 5rem;
}

.theme-site .blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(15rem, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
    direction: rtl;
}

.theme-site .blog-main { min-width: 0; }

.theme-site .nahan-blog-controls {
    display: grid;
    gap: 1rem;
    margin-block-end: 1.25rem;
}

.theme-site .blog-search label,
.theme-site .nahan-blog-select-filters label {
    display: block;
    margin-block-end: .45rem;
    color: var(--text-secondary);
    font-size: .85rem;
}

.theme-site .nahan-blog-search-row {
    position: relative;
    display: flex;
}

.theme-site .nahan-blog-search-row input {
    width: 100%;
    min-height: 3rem;
    padding: .65rem 1rem .65rem 3.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
}

.theme-site .nahan-blog-search-row button {
    position: absolute;
    left: .35rem;
    top: 50%;
    display: grid;
    width: 2.3rem;
    height: 2.3rem;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    color: #041416;
    background: var(--gradient-primary);
    cursor: pointer;
}

.theme-site .category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.theme-site .filter-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .55rem .9rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: .82rem;
    text-decoration: none;
    transition: color var(--transition-base), background var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.theme-site .filter-btn:hover,
.theme-site .filter-btn.active {
    color: #041416;
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-2px);
}

.theme-site .nahan-blog-select-filters {
    display: flex;
    align-items: end;
    gap: .75rem;
    max-width: 38rem;
}

.theme-site .nahan-blog-select-filters label { flex: 1; }
.theme-site .nahan-blog-select-filters select { min-height: 2.8rem; }

.theme-site .blog-results-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem 1rem;
    margin-block: 0 1rem;
    color: var(--text-secondary);
    font-size: .86rem;
}

.theme-site .blog-results-bar a { color: var(--accent-cyan); }
.theme-site .blog-results-sort { margin-inline-start: auto; }

.theme-site .blog-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.35rem;
    align-items: stretch;
}

.theme-site .blog-card {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(16rem, 320px) minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.theme-site .blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow-cyan);
}

.theme-site .blog-card-image {
    position: relative;
    display: grid;
    width: 320px;
    max-width: 100%;
    min-height: 250px;
    height: 100%;
    overflow: hidden;
    place-items: center;
    background: linear-gradient(145deg, #0d1f26, #09161a);
    text-decoration: none;
}

.theme-site .blog-card-image .storefront-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.theme-site .blog-image-placeholder { color: var(--accent-cyan); font-size: 2.4rem; opacity: .65; }

.theme-site .blog-image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 250px;
    place-items: center;
}

.theme-site .blog-category-badge {
    position: absolute;
    inset-block-start: .8rem;
    inset-inline-start: .8rem;
    z-index: 1;
    max-width: calc(100% - 1.6rem);
    padding: .35rem .75rem;
    overflow: hidden;
    color: #041416;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: .75rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-site .blog-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 1.2rem;
}

.theme-site .blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem 1rem;
    margin-block-end: .75rem;
    color: var(--text-secondary);
    font-size: .77rem;
}

.theme-site .blog-meta-item { display: inline-flex; align-items: center; gap: .4rem; overflow-wrap: anywhere; }
.theme-site .blog-meta-item i { color: var(--accent-cyan); }
.theme-site .blog-meta a { color: var(--accent-cyan); text-decoration: none; }

.theme-site .blog-card-title {
    display: -webkit-box;
    margin: 0 0 .65rem;
    overflow: hidden;
    color: var(--text-primary);
    font-size: 1.12rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.theme-site .blog-card-title a { color: inherit; text-decoration: none; transition: color var(--transition-base); }
.theme-site .blog-card-title a:hover { color: var(--accent-cyan); }

.theme-site .blog-card-excerpt {
    display: -webkit-box;
    flex: 1;
    margin: 0 0 .8rem;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: .87rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.theme-site .blog-card-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-block-end: .7rem; }
.theme-site .blog-card-tags .tag { padding: .25rem .6rem; font-size: .72rem; }

.theme-site .blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .65rem;
    margin-block-start: auto;
    padding-block-start: .8rem;
    border-block-start: 1px solid var(--border);
}

.theme-site .blog-author-name { display: inline-flex; align-items: center; gap: .4rem; color: var(--text-secondary); font-size: .78rem; overflow-wrap: anywhere; }
.theme-site .blog-author-name i { color: var(--accent-cyan); }

.theme-site .blog-read-more {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: .45rem;
    padding: .42rem .75rem;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    border-radius: var(--radius-full);
    font-size: .78rem;
    text-decoration: none;
    transition: color var(--transition-base), background var(--transition-base);
}

.theme-site .blog-read-more:hover { color: #041416; background: var(--accent-cyan); }

.theme-site .blog-sidebar { position: sticky; inset-block-start: calc(var(--nahan-menu-top, 6rem) + 1rem); }

.theme-site .sidebar-widget {
    margin-block-end: 1rem;
    padding: 1.2rem;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.theme-site .widget-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 .7rem;
    color: var(--accent-cyan);
    font-size: 1.03rem;
}

.theme-site .categories-list { margin: 0; padding: 0; list-style: none; }
.theme-site .categories-list li { padding-block: .55rem; border-block-end: 1px solid var(--border); }
.theme-site .categories-list li:last-child { border: 0; }
.theme-site .categories-list a { display: flex; justify-content: space-between; align-items: center; gap: .6rem; color: var(--text-secondary); text-decoration: none; }
.theme-site .categories-list a:hover,
.theme-site .categories-list a.active { color: var(--accent-cyan); }
.theme-site .category-count { display: grid; min-width: 1.8rem; height: 1.8rem; place-items: center; color: var(--accent-cyan); background: rgba(0, 255, 255, .1); border-radius: 50%; font-size: .78rem; }
.theme-site .tags-cloud { display: flex; flex-wrap: wrap; gap: .45rem; }
.theme-site .tags-cloud .tag { padding: .35rem .7rem; color: var(--text-secondary); background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-full); font-size: .77rem; text-decoration: none; transition: transform var(--transition-base), background var(--transition-base); }
.theme-site .tags-cloud .tag:hover { transform: translateY(-2px); background: var(--gradient-primary); color: #041416; }
.theme-site .tags-cloud .tag.active { color: #041416; background: var(--gradient-primary); border-color: transparent; }

.theme-site .pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; margin-block-start: 2rem; }
.theme-site .page-btn { display: grid; min-width: 2.7rem; height: 2.7rem; padding-inline: .65rem; place-items: center; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); font-weight: 700; text-decoration: none; transition: transform var(--transition-base), color var(--transition-base), background var(--transition-base); }
.theme-site .page-btn:hover,
.theme-site .page-btn.active { color: #041416; background: var(--gradient-primary); border-color: transparent; transform: translateY(-2px); }

.theme-site .nahan-blog-empty { padding: clamp(2rem, 6vw, 4rem); text-align: center; }
.theme-site .nahan-blog-empty-icon { display: inline-grid; width: 4rem; height: 4rem; margin-block-end: .5rem; place-items: center; color: var(--accent-cyan); background: rgba(0, 255, 255, .08); border-radius: 50%; font-size: 1.6rem; }
.theme-site .nahan-blog-empty h2 { margin: .4rem 0; color: var(--text-primary); }
.theme-site .nahan-blog-empty p { color: var(--text-secondary); }

@media (max-width: 1024px) {
    .theme-site .blog-layout { grid-template-columns: minmax(0, 1fr); }
    .theme-site .blog-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .theme-site .sidebar-widget { margin: 0; }
    .theme-site .blog-card { grid-template-columns: minmax(0, 1fr); }
    .theme-site .blog-card-image { width: 100%; height: 250px; }
}

@media (max-width: 760px) {
    .theme-site .page-hero-blog { padding-block: 3.7rem 2.8rem; }
    .theme-site .nahan-blog-directory { padding-block: 2.5rem 3.5rem; }
    .theme-site .blog-grid { grid-template-columns: minmax(0, 1fr); }
    .theme-site .blog-sidebar { grid-template-columns: minmax(0, 1fr); }
    .theme-site .blog-card-image,
    .theme-site .blog-image-placeholder { min-height: 220px; height: 220px; }
    .theme-site .blog-results-sort { margin-inline-start: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .theme-site .nahan-blog-hero [data-aos],
    .theme-site .nahan-blog-directory [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    .theme-site .blog-card,
    .theme-site .blog-card-image .storefront-image,
    .theme-site .filter-btn,
    .theme-site .blog-read-more,
    .theme-site .page-btn,
    .theme-site .tags-cloud .tag {
        scroll-behavior: auto;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.theme-site .storefront-category-art::before,
.theme-site .storefront-category-art::after {
    border-color: rgba(0, 255, 255, .16);
}

.theme-site .storefront-product-detail-image-fallback,
.theme-site .storefront-product-detail-image-fallback span,
.theme-site .storefront-catalog-product-placeholder span {
    color: var(--text-secondary);
}

.theme-site .storefront-empty-state,
.theme-site .storefront-loading-state {
    border-radius: var(--radius-lg);
}

.theme-site .storefront-loading-state {
    color: var(--accent-cyan);
    background: var(--bg-card);
    border-color: var(--border-neon);
    box-shadow: var(--shadow-glow-cyan);
}

.theme-site .storefront-not-found-orbit {
    color: var(--accent-cyan);
    border-color: var(--border-neon);
}

.theme-site .storefront-invoice {
    color: #e2e8f0;
    background: #09161a;
    border-color: var(--store-border);
}

.theme-site .nahan-theme-footer {
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.theme-site .nahan-theme-footer .footer-title,
.theme-site .nahan-theme-footer .footer-logo {
    color: var(--text-primary);
}

.theme-site .nahan-theme-footer a {
    color: var(--text-secondary);
}

.theme-site .nahan-theme-footer a:hover {
    color: var(--accent-cyan);
}

.theme-site .nahan-theme-footer .footer-bottom {
    border-top: 1px solid var(--border);
}

/* Storefront footer follows Demo02's dark, cyan-accented footer with four real columns. */
.theme-site .nahan-theme-footer {
    padding: clamp(2.75rem, 6vw, 4rem) 0 1.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.theme-site .nahan-theme-footer .footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: clamp(1.5rem, 3vw, 3.25rem);
    margin-bottom: 0;
}

.theme-site .nahan-theme-footer .footer-col { min-width: 0; }

.theme-site .nahan-theme-footer .footer-brand { max-width: 24rem; }

.theme-site .nahan-theme-footer .footer-logo {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 0 0 1rem;
    color: var(--accent-green);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.5;
}

.theme-site .nahan-theme-footer .footer-logo i {
    color: var(--accent-green);
    font-size: 1.7rem;
}

.theme-site .nahan-theme-footer .footer-description {
    max-width: 24rem;
    margin: 0 0 .8rem;
    color: var(--text-footer2);
    font-size: .92rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.theme-site .nahan-theme-footer .footer-title {
    margin: .2rem 0 1rem;
    color: var(--accent-cyan);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.6;
}

.theme-site .nahan-theme-footer .footer-links,
.theme-site .nahan-theme-footer .footer-contact {
    display: grid;
    gap: .7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.theme-site .nahan-theme-footer .footer-links li { min-width: 0; margin: 0; }

.theme-site .nahan-theme-footer .footer-links a {
    display: inline-flex;
    min-height: 1.8rem;
    align-items: center;
    color: var(--text-footer2);
    font-size: .92rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
    text-decoration: none;
    transition: color .18s ease, transform .18s ease;
}

.theme-site .nahan-theme-footer .footer-links a:hover,
.theme-site .nahan-theme-footer .footer-links a:focus-visible {
    color: var(--accent-cyan);
    transform: translateX(-3px);
}

.theme-site .nahan-theme-footer .footer-contact {
    gap: .55rem;
    margin-top: 1.1rem;
    color: var(--text-footer2);
    font-size: .9rem;
    line-height: 1.8;
}

.theme-site .nahan-theme-footer .footer-contact > span {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: .65rem;
    overflow-wrap: anywhere;
}

.theme-site .nahan-theme-footer .footer-contact i {
    flex: 0 0 1rem;
    margin-top: .35rem;
    color: var(--accent-cyan);
    text-align: center;
}

.theme-site .nahan-theme-footer .footer-contact a {
    min-width: 0;
    color: inherit;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.theme-site .nahan-theme-footer .footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.2rem;
}

.theme-site .nahan-theme-footer .footer-social a {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    color: var(--accent-cyan);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 1.05rem;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.theme-site .nahan-theme-footer .footer-social a:hover {
    color: var(--bg-primary);
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.theme-site .nahan-theme-footer .footer-divider {
    height: 2px;
    margin: 2.6rem 0 1.25rem;
    border-radius: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.theme-site .nahan-theme-footer .footer-bottom {
    display: flex;
    min-height: 3rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-inline-start: 4.5rem;
    color: var(--text-footer);
    font-size: .85rem;
    line-height: 1.7;
}

.theme-site .nahan-theme-footer .footer-newsletter-title {
    margin: 1.4rem 0 .4rem;
    color: var(--accent-cyan);
    font-size: .95rem;
}

.theme-site .nahan-theme-footer .nahan-footer-newsletter { display: block; max-width: 21rem; margin-top: 1rem; }

.theme-site .nahan-theme-footer .nahan-footer-newsletter form {
    display: flex;
    height: 2.65rem;
    gap: .35rem;
    padding: .25rem;
    margin-top: .7rem;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    border-radius: 2rem;
}

.theme-site .nahan-theme-footer .nahan-footer-newsletter input {
    min-width: 0;
    flex: 1;
    padding-inline: .7rem;
    color: var(--text-primary);
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
}

.theme-site .nahan-theme-footer .nahan-footer-newsletter input::placeholder { color: var(--text-secondary); }

.theme-site .nahan-theme-footer .nahan-footer-newsletter button {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    place-items: center;
    padding: 0;
    color: var(--bg-primary);
    background: var(--accent-cyan);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

/* Keep viewport controls outside the storefront shell's horizontal clipping boundary. */
.theme-site-controls > #backToTop {
    position: fixed;
    inset-block-end: max(1.25rem, calc(env(safe-area-inset-bottom) + .75rem));
    inset-inline-start: clamp(1rem, 2vw, 1.5rem);
    z-index: 1050;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 1px solid var(--border-neon);
    cursor: pointer;
    pointer-events: none;
}

.theme-site-controls > #backToTop.visible {
    pointer-events: auto;
}

.theme-site-controls > #backToTop:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

.theme-site-controls > #progressBar {
    position: fixed;
    z-index: 1001;
}

@media (max-width: 1024px) {
    .theme-site .nahan-theme-footer .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.25rem 2rem;
    }
}

@media (max-width: 600px) {
    .theme-site .nahan-theme-footer { padding-block: 2.5rem 1.25rem; }

    .theme-site .nahan-theme-footer .footer-top {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .theme-site .nahan-theme-footer .footer-brand { max-width: none; }

    .theme-site .nahan-theme-footer .footer-title { margin-bottom: .75rem; }

    .theme-site .nahan-theme-footer .footer-divider { margin: 2rem 0 1rem; }

    .theme-site .nahan-theme-footer .footer-bottom {
        min-height: 3.5rem;
        flex-direction: column;
        justify-content: center;
        gap: .2rem;
        padding-inline-start: 4rem;
        text-align: center;
    }
}

@media (max-width: 820px) {
    .theme-site .storefront-catalog-grid,
    .theme-site .storefront-wishlist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .theme-site .storefront-product-filter-panel {
        background: var(--bg-nav-menu);
    }
}

@media (max-width: 560px) {
    .theme-site .storefront-catalog-grid,
    .theme-site .storefront-wishlist-grid {
        grid-template-columns: 1fr;
    }

    .theme-site .storefront-table-wrap {
        overflow-x: auto;
    }

    .theme-site .storefront-table {
        min-width: 36rem;
    }
}

@media print {
    .theme-site .storefront-invoice {
        color: #111827;
        background: #fff;
        border-color: #d1d5db;
    }
}

/* Demo02's index.html uses a fixed matrix canvas and gradient overlay behind content. */
.theme-site {
    position: relative;
    isolation: isolate;
    /* Keep a visible theme-colored backdrop present before the matrix canvas paints. */
    --matrix-bg:
        radial-gradient(ellipse at 20% 30%, rgba(140, 0, 255, .1) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 20%, rgba(249, 116, 22, .12) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 82%, rgba(0, 255, 180, .06) 0%, transparent 46%);
}

.theme-site > .matrix-background,
.theme-site > .matrix-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.theme-site > .matrix-background {
    z-index: 0;
    opacity: .15;
}

.theme-site > .matrix-overlay {
    z-index: 1;
}

.theme-site > :not(.matrix-background):not(.matrix-overlay) {
    position: relative;
    z-index: 2;
}

.theme-site > header.navbar {
    position: fixed;
    z-index: 1000;
}

.theme-site > header.navbar#navbar {
    z-index: 1100;
}

.theme-site .nahan-home-no-banner {
    padding-top: 0;
}

.theme-site .nahan-home-banner-slide[hidden] {
    display: none !important;
}

.theme-site .nahan-banner-text-only {
    grid-template-columns: minmax(0, 1fr);
}

.theme-site .nahan-home-banner-slide .hero-visual {
    display: grid;
    place-items: center;
    min-height: 20rem;
}

.theme-site .nahan-home-banner-slide .hero-visual img {
    display: block;
    width: min(100%, 38rem);
    max-height: min(55vh, 34rem);
    border: 1px solid rgba(0, 255, 255, .18);
    border-radius: var(--radius-xl);
    object-fit: contain;
    background: rgba(0, 255, 255, .025);
    box-shadow: 0 0 2.5rem rgba(0, 255, 255, .12);
}

.theme-site .nahan-banner-controls {
    display: flex;
    grid-template-columns: none;
    justify-content: center;
    align-items: center;
    gap: .85rem;
    margin-top: -3rem;
    padding-bottom: 1rem;
}

.theme-site .nahan-banner-arrow,
.theme-site .nahan-banner-indicator {
    display: grid;
    place-items: center;
    border: 1px solid var(--border-neon);
    background: var(--bg-card);
    color: var(--accent-cyan);
    cursor: pointer;
}

.theme-site .nahan-banner-arrow {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
}

.theme-site .nahan-banner-arrow:hover,
.theme-site .nahan-banner-indicator.active {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

.theme-site .nahan-banner-indicators {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.theme-site .nahan-banner-indicator {
    width: .65rem;
    height: .65rem;
    padding: 0;
    border-radius: 50%;
}

.theme-site .nahan-banner-indicator.active {
    width: 1.5rem;
    border-radius: var(--radius-full);
}

@media (max-width: 768px) {
    .theme-site .nahan-banner-controls {
        margin-top: -1rem;
    }

    .theme-site .nahan-home-banner-slide .hero-visual {
        min-height: 14rem;
    }

    .theme-site .nahan-home-banner-slide .hero-visual img {
        max-height: 38vh;
    }
}

/* Storefront header. These component-specific selectors stay isolated from the legacy theme navigation. */
.theme-site > .storefront-navbar#navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-block: .75rem;
    background: color-mix(in srgb, var(--bg-secondary) 94%, transparent);
    border-block-end: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.theme-site > .storefront-navbar#navbar.scrolled {
    padding-block: .55rem;
    background: color-mix(in srgb, var(--bg-secondary) 97%, transparent);
}

.theme-site .storefront-navbar > .container {
    width: min(calc(100% - 2rem), 1320px);
}

.theme-site .storefront-nav-wrapper {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) minmax(12rem, 15rem) max-content;
    grid-template-areas: "brand navigation search actions";
    gap: clamp(.7rem, 1.15vw, 1.15rem);
    align-items: center;
    min-height: 3rem;
}

.theme-site .storefront-brand {
    grid-area: brand;
    display: flex;
    align-items: center;
    justify-self: start;
    gap: .6rem;
    min-width: 0;
    color: var(--text-primary);
    text-decoration: none;
    text-shadow: none;
}

.theme-site .storefront-brand > img,
.theme-site .storefront-brand-mark {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
    place-items: center;
    object-fit: contain;
}

.theme-site .storefront-brand-mark {
    border: 1px solid var(--border-neon);
    border-radius: 50%;
    color: var(--accent-cyan);
    font-size: 1rem;
}

.theme-site .storefront-brand-copy {
    display: grid;
    min-width: 0;
    line-height: 1.3;
}

.theme-site .storefront-brand-name {
    overflow: hidden;
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-site .storefront-brand-copy small {
    overflow: hidden;
    color: var(--text-secondary);
    font-size: .68rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-site .storefront-primary-nav {
    grid-area: navigation;
    min-width: 0;
}

.theme-site .storefront-nav-menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: clamp(.45rem, .85vw, .85rem);
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.theme-site .storefront-nav-item { position: relative; flex: 0 0 auto; }

.theme-site .storefront-nav-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .2rem;
    color: var(--text-secondary);
    font-size: .9rem;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}

.theme-site .storefront-nav-link:hover,
.theme-site .storefront-nav-link:focus-visible { color: var(--accent-cyan); }

.theme-site .storefront-nav-dropdown > summary {
    cursor: pointer;
    list-style: none;
}

.theme-site .storefront-nav-dropdown > summary::-webkit-details-marker { display: none; }

.theme-site .storefront-nav-submenu {
    position: absolute;
    z-index: 2;
    top: 100%;
    right: 0;
    min-width: 12rem;
    margin: 0;
    padding: .5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-nav-menu);
    list-style: none;
}

.theme-site .storefront-nav-submenu .storefront-nav-link { display: flex; padding: .55rem 0; }

.theme-site .storefront-nav-search {
    grid-area: search;
    min-width: 0;
}

.theme-site .storefront-nav-search .storefront-search {
    display: flex;
    width: 100%;
    min-width: 0;
    height: 2.65rem;
    gap: .35rem;
    align-items: center;
    padding: .2rem .25rem .2rem .8rem;
    border: 1px solid var(--border);
    border-radius: 2rem;
    background: var(--bg-card);
    color: var(--text-secondary);
}

.theme-site .storefront-nav-search .storefront-search:focus-within {
    border-color: var(--border-neon);
    box-shadow: 0 0 0 2px rgba(0, 255, 255, .12);
}

.theme-site .storefront-nav-search .storefront-search input {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    padding: 0;
    color: var(--text-primary);
    font-size: .82rem;
}

.theme-site .storefront-nav-search .storefront-search input::placeholder { color: var(--text-dim); }

.theme-site .storefront-nav-search .storefront-search button {
    position: static;
    display: grid;
    width: 2.15rem;
    height: 2.15rem;
    min-width: 2.15rem;
    min-height: 2.15rem;
    flex: 0 0 2.15rem;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border-neon);
    border-radius: 50%;
    background: var(--bg-hover);
    color: var(--accent-cyan);
    cursor: pointer;
    filter: none;
    transform: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
    order: -1;
}

.theme-site .storefront-nav-search .storefront-search button:hover {
    border-color: var(--accent-cyan);
    background: var(--accent-cyan);
    color: var(--bg-primary);
    filter: none;
    transform: none;
}

.theme-site .storefront-nav-search .storefront-search button:focus,
.theme-site .storefront-nav-search .storefront-search button:active,
.theme-site .storefront-nav-search .storefront-search button:focus-visible {
    filter: none;
    transform: none;
}

.theme-site .storefront-nav-search .storefront-search button:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

.theme-site .storefront-nav-search .storefront-search button > svg {
    position: static;
    display: block;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: none;
    transition: none;
}

.theme-site .storefront-nav-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: .4rem;
    min-width: 0;
}

.theme-site .storefront-nav-actions .nahan-account-menu > summary {
    display: flex;
    align-items: center;
    gap: .4rem;
    max-width: 8rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.theme-site .storefront-nav-actions .nahan-account-menu > summary span { overflow: hidden; text-overflow: ellipsis; }

.theme-site .storefront-nav-actions .nahan-auth-link,
.theme-site .storefront-nav-actions .storefront-action-link { min-height: 2.4rem; }

.theme-site .storefront-nav-actions .nahan-auth-link {
    display: grid;
    width: 2.4rem;
    min-width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    padding: 0;
    border-color: var(--border);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1;
}

.theme-site .storefront-nav-actions .storefront-wishlist-action,
.theme-site .storefront-nav-actions .storefront-cart-action {
    width: 2.4rem;
    min-width: 2.4rem;
    height: 2.4rem;
    min-height: 2.4rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-primary);
}

.theme-site .storefront-nav-actions .storefront-wishlist-action svg,
.theme-site .storefront-nav-actions .storefront-cart-action svg { width: 1.22rem; height: 1.22rem; }

.theme-site .storefront-nav-actions .storefront-badge {
    top: -.15rem;
    right: -.15rem;
    min-width: 1rem;
    height: 1rem;
    padding-inline: .2rem;
    border: 1px solid var(--bg-secondary);
    border-radius: 1rem;
    font-size: .58rem;
    line-height: 1;
    white-space: nowrap;
}

.theme-site .storefront-nav-actions .storefront-wishlist-action {
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.theme-site .storefront-nav-actions .storefront-wishlist-action:hover {
    border-color: rgba(255, 117, 145, .58);
    background: rgba(255, 117, 145, .09);
    color: #ff829a;
    box-shadow: 0 0 0 3px rgba(255, 117, 145, .08);
    transform: translateY(-1px);
}

.theme-site .storefront-nav-actions .storefront-wishlist-action:focus-visible {
    outline: 2px solid #ff829a;
    outline-offset: 3px;
}

.theme-site .storefront-nav-actions .storefront-wishlist-action.is-active {
    border-color: rgba(255, 117, 145, .42);
    color: #ff7892;
}

.theme-site .storefront-nav-actions .storefront-wishlist-action svg {
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.7;
    transition: fill .18s ease, transform .18s ease;
}

.theme-site .storefront-nav-actions .storefront-wishlist-action:hover svg { transform: scale(1.06); }
.theme-site .storefront-nav-actions .storefront-wishlist-action.is-active svg { fill: currentColor; }

.theme-site .storefront-nav-actions .storefront-wishlist-action .storefront-badge {
    inset-block-start: -.18rem;
    inset-inline-end: -.2rem;
    inset-inline-start: auto;
    display: grid;
    min-width: 1.08rem;
    height: 1.08rem;
    padding-inline: .22rem;
    border: 2px solid var(--bg-secondary);
    border-radius: 999px;
    background: #f05f7b;
    color: #fff;
    font-size: .59rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}

.theme-site .storefront-nav-toggle { display: none; }

@media (max-width: 1100px) {
    .theme-site > .storefront-navbar#navbar,
    .theme-site > .storefront-navbar#navbar.scrolled { padding-block: .45rem; }

    /* backdrop-filter would trap the fixed mobile menu inside the short header box. */
    .theme-site > .storefront-navbar#navbar { backdrop-filter: none; -webkit-backdrop-filter: none; }

    .theme-site .storefront-navbar > .container { width: calc(100% - 1.5rem); padding-inline: 0; }

    .theme-site .storefront-nav-wrapper {
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-areas: "brand actions menu" "search search search";
        gap: .45rem .65rem;
        padding-block: .25rem;
    }

    .theme-site .storefront-primary-nav {
        position: fixed;
        inset-block: var(--nahan-menu-top, 5rem) 0;
        inset-inline-start: 0;
        z-index: 1101;
        width: min(22rem, calc(100vw - 1.25rem));
        overflow-y: auto;
        padding: 1rem 1.15rem max(1rem, env(safe-area-inset-bottom));
        border-inline-start: 1px solid var(--border);
        border-radius: 1rem 0 0 1rem;
        background: var(--bg-nav-menu);
        box-shadow: var(--shadow-lg);
        visibility: hidden;
        transform: translateX(105%);
        transition: transform .25s ease, visibility .25s;
    }

    .theme-site .storefront-primary-nav.is-open {
        visibility: visible;
        transform: translateX(0);
    }

    .theme-site .storefront-nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: .25rem;
    }

    .theme-site .storefront-nav-link {
        display: flex;
        width: 100%;
        min-height: 2.9rem;
        align-items: center;
        padding: .65rem .35rem;
        border-radius: .5rem;
        font-size: 1rem;
        white-space: normal;
    }

    .theme-site .storefront-nav-link:hover { background: color-mix(in srgb, var(--accent-cyan) 10%, transparent); }

    .theme-site .storefront-nav-dropdown[open] .storefront-nav-submenu {
        position: static;
        margin-block-start: .25rem;
        padding-inline: .8rem;
        border-radius: .6rem;
        box-shadow: none;
    }

    .theme-site .storefront-nav-toggle {
        grid-area: menu;
        display: flex;
        width: 2.4rem;
        height: 2.4rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .28rem;
        padding: .35rem;
        border: 1px solid var(--border);
        border-radius: .65rem;
        background: var(--bg-card);
        color: var(--text-primary);
        cursor: pointer;
    }

    .theme-site .storefront-nav-toggle span {
        display: block;
        width: 1.15rem;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transition: transform .2s ease, opacity .2s ease;
    }

    .theme-site .storefront-nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(.4rem) rotate(45deg); }
    .theme-site .storefront-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .theme-site .storefront-nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-.4rem) rotate(-45deg); }

    .theme-site .storefront-nav-actions { gap: .35rem; }
    .theme-site .storefront-nav-actions .nahan-account-menu > summary span { display: none; }

    .theme-site .storefront-nav-search {
        width: min(100%, 38rem);
        justify-self: center;
    }

    .theme-site .storefront-nav-search .storefront-search { position: static; width: 100%; }

    .theme-site .storefront-nav-search .storefront-search:focus-within {
        position: static;
        width: 100%;
        margin: 0;
    }

    .theme-site .storefront-nav-search .storefront-search input,
    .theme-site .storefront-nav-search .storefront-search button { display: block; }
}

@media (max-width: 520px) {
    .theme-site > .storefront-navbar#navbar,
    .theme-site > .storefront-navbar#navbar.scrolled { padding-block: .3rem; }

    .theme-site .storefront-navbar > .container { width: calc(100% - 1.25rem); }

    .theme-site .storefront-nav-wrapper { gap: .35rem .45rem; }

    .theme-site .storefront-brand { gap: .4rem; }

    .theme-site .storefront-brand > img,
    .theme-site .storefront-brand-mark { width: 2.2rem; height: 2.2rem; flex-basis: 2.2rem; }

    .theme-site .storefront-brand-name { font-size: .98rem; }
    .theme-site .storefront-brand-copy small { display: none; }

    .theme-site .storefront-nav-actions { gap: .2rem; }

    .theme-site .storefront-nav-actions .nahan-auth-link,
    .theme-site .storefront-nav-actions .storefront-action-link,
    .theme-site .storefront-nav-actions .storefront-wishlist-action,
    .theme-site .storefront-nav-actions .storefront-cart-action {
        width: 2.2rem;
        min-width: 2.2rem;
        height: 2.2rem;
        min-height: 2.2rem;
        padding: 0;
    }

    .theme-site .storefront-nav-toggle { width: 2.2rem; height: 2.2rem; }
    .theme-site .storefront-nav-search .storefront-search { height: 2.55rem; }
}

@media (max-width: 360px) {
    .theme-site .storefront-nav-wrapper { column-gap: .3rem; }
    .theme-site .storefront-brand-name { font-size: .9rem; }
    .theme-site .storefront-brand > img,
    .theme-site .storefront-brand-mark { width: 2rem; height: 2rem; flex-basis: 2rem; }
    .theme-site .storefront-nav-actions .nahan-auth-link,
    .theme-site .storefront-nav-actions .storefront-action-link,
    .theme-site .storefront-nav-actions .storefront-wishlist-action,
    .theme-site .storefront-nav-actions .storefront-cart-action,
    .theme-site .storefront-nav-toggle { width: 2rem; min-width: 2rem; height: 2rem; min-height: 2rem; }
}

/* Product catalog: compact, card-led presentation for the Nahan Pardaz catalog. */
.theme-site .nahan-products-page { color: var(--text-primary); }
.theme-site .nahan-products-hero { position: relative; overflow: hidden; padding: 3.25rem 0 4.5rem; border-bottom: 1px solid rgba(84,227,207,.12); background: radial-gradient(ellipse at 50% 0,rgba(0,255,220,.12),transparent 65%),linear-gradient(180deg,rgba(7,22,27,.92),rgba(7,17,22,.35)); }
.theme-site .nahan-products-hero-content { position: relative; z-index: 1; text-align: center; }
.theme-site .nahan-products-hero .storefront-breadcrumbs { text-align: right; }
.theme-site .nahan-products-hero h1 { margin: 1.4rem 0 .8rem; color: var(--text-primary); font-size: clamp(2.2rem,5vw,4rem); font-weight: 900; line-height: 1.45; }
.theme-site .nahan-products-hero > .storefront-container > p { max-width: 720px; margin: 0 auto; color: var(--text-secondary); font-size: 1.1rem; line-height: 2; }
.theme-site .nahan-product-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 2rem; }
.theme-site .nahan-product-categories a { padding: .55rem 1.1rem; border: 1px solid var(--store-border); border-radius: 999px; background: rgba(10,30,34,.72); color: var(--text-secondary); transition: .2s ease; }
.theme-site .nahan-product-categories a:hover,.theme-site .nahan-product-categories a.is-selected { border-color: rgba(84,227,207,.6); background: rgba(84,227,207,.12); color: #8af7e4; box-shadow: 0 0 22px rgba(0,255,220,.1); }
.theme-site .nahan-products-results { padding-top: 3.25rem; padding-bottom: 5rem; }
.theme-site .nahan-products-results-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.theme-site .nahan-products-results-heading h2 { margin: .25rem 0 0; color: var(--text-primary); font-size: 1.65rem; }
.theme-site .nahan-products-count { color: var(--text-secondary); }
.theme-site .nahan-products-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.theme-site .nahan-products-grid .storefront-catalog-product-card { overflow: hidden; border-radius: 22px; background: linear-gradient(155deg,rgba(15,36,41,.97),rgba(7,18,23,.96)); transition: transform .25s ease,border-color .25s ease,box-shadow .25s ease; }
.theme-site .nahan-products-grid .storefront-catalog-product-card:hover { transform: translateY(-6px); }
.theme-site .nahan-products-grid .storefront-catalog-product-media { min-height: 270px; max-height: 340px; background: radial-gradient(ellipse at 50% 65%,rgba(17,210,190,.13),transparent 65%),linear-gradient(145deg,#0d1f26,#09161a); }
.theme-site .nahan-products-grid .storefront-catalog-product-image { object-fit: contain; padding: 1.1rem; transition: transform .35s ease; }
.theme-site .nahan-products-grid .storefront-catalog-product-card:hover .storefront-catalog-product-image { transform: scale(1.035); }
.theme-site .nahan-products-grid .storefront-product-info { padding: 1.25rem; }
.theme-site .nahan-products-grid .storefront-catalog-product-description { min-height: 3.2em; line-height: 1.8; }
.theme-site .nahan-product-card-actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.theme-site .nahan-product-card-cart-form { margin: 0; }
.theme-site .nahan-product-card-cart-form .storefront-button { white-space: nowrap; }
.theme-site .nahan-products-empty { margin: 2rem 0; padding: 3rem 1.5rem; text-align: center; }
.theme-site .nahan-products-empty .storefront-button { display: inline-flex; margin-top: 1rem; }

/* NahanPardaz wishlist cards keep the Demo02 palette and use consistent product media sizing. */
.theme-site .nahan-wishlist-page {
    min-height: 55vh;
    padding-block: 1.75rem 4.5rem;
}

.theme-site .nahan-wishlist-page .storefront-wishlist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.theme-site .nahan-wishlist-page .storefront-wishlist-item {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 1rem;
    height: 100%;
    padding: .85rem;
    overflow: hidden;
    border: 1px solid rgba(84, 227, 207, .16);
    border-radius: 1.1rem;
    background: linear-gradient(155deg, rgba(15, 36, 41, .97), rgba(7, 18, 23, .96));
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.theme-site .nahan-wishlist-page .storefront-wishlist-item:hover {
    transform: translateY(-3px);
    border-color: rgba(84, 227, 207, .42);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .2), 0 0 20px rgba(84, 227, 207, .06);
}

.theme-site .nahan-wishlist-page .storefront-wishlist-item-media {
    aspect-ratio: 4 / 3;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(84, 227, 207, .1);
    border-radius: .8rem;
}

.theme-site .nahan-wishlist-page .storefront-wishlist-item-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .8rem;
}

.theme-site .nahan-wishlist-page .storefront-wishlist-item-content {
    align-items: stretch;
    gap: .8rem;
    padding: .1rem .25rem .25rem;
}

.theme-site .nahan-wishlist-page .storefront-wishlist-item-content h2 {
    min-height: 3rem;
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.theme-site .nahan-wishlist-page .storefront-wishlist-item-content h2 a:hover { color: var(--accent-cyan); }
.theme-site .nahan-wishlist-page .storefront-wishlist-item-content .storefront-product-price { margin-top: auto; }

.theme-site .nahan-wishlist-page .nahan-wishlist-remove {
    display: inline-flex;
    min-height: 2.65rem;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-color: rgba(255, 117, 145, .34);
    color: #ff91a6;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.theme-site .nahan-wishlist-page .nahan-wishlist-remove:hover {
    border-color: rgba(255, 117, 145, .65);
    background: rgba(255, 117, 145, .1);
    color: #ffb4c2;
}

.theme-site .nahan-wishlist-page > .storefront-empty-state {
    display: grid;
    justify-items: center;
    gap: .6rem;
    max-width: 46rem;
    margin: 2.5rem auto;
    padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
    text-align: center;
}

.theme-site .nahan-wishlist-empty-icon {
    display: grid;
    width: 4rem;
    height: 4rem;
    place-items: center;
    border: 1px solid rgba(255, 117, 145, .28);
    border-radius: 50%;
    background: rgba(255, 117, 145, .08);
    color: #ff829a;
    font-size: 1.6rem;
}

.theme-site .nahan-wishlist-page > .storefront-empty-state h2 { margin: .25rem 0; }
.theme-site .nahan-wishlist-page > .storefront-empty-state p { max-width: 34rem; color: var(--text-secondary); }
.theme-site .nahan-wishlist-page > .storefront-empty-state .storefront-button { margin-top: .4rem; }

@media (max-width: 900px) {
    .theme-site .nahan-wishlist-page .storefront-wishlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .theme-site .nahan-wishlist-page { padding-block: 1rem 3rem; }
    .theme-site .nahan-wishlist-page .storefront-wishlist-grid { grid-template-columns: minmax(0, 1fr); }
    .theme-site .nahan-wishlist-page .storefront-wishlist-item { grid-template-columns: minmax(0, 1fr); }
    .theme-site .nahan-wishlist-page .storefront-wishlist-item-media { aspect-ratio: 4 / 3; }
}

/* The existing product detail component supplies live gallery, variants, reviews and cart actions. */
.theme-site .nahan-single-product { padding-top: 1.25rem; padding-bottom: 4rem; }
.theme-site .nahan-single-product > .storefront-product-detail-page { display: grid; gap: 1.5rem; padding-bottom: 0; }
.theme-site .nahan-single-product > .storefront-product-detail-page > .storefront-product-detail-description { grid-column: 1 / -1; width: 100%; box-sizing: border-box; padding: clamp(1.25rem,3vw,2rem); border: 1px solid var(--store-border); border-radius: 18px; background: rgba(9,25,29,.7); color: var(--store-text); line-height: 2; }
.theme-site .nahan-single-product .storefront-product-detail-description-content > :first-child { margin-top: 0; }
.theme-site .nahan-single-product .storefront-product-detail-description-content > :last-child { margin-bottom: 0; }
.theme-site .nahan-single-product .storefront-product-detail-thumbnail-fallback { display: grid; width: 100%; height: 100%; min-height: 4.5rem; place-items: center; padding: .25rem; box-sizing: border-box; text-align: center; font-size: .65rem; }
.theme-site .nahan-single-product .storefront-product-detail { gap: clamp(2rem,5vw,5rem); align-items: start; padding-bottom: 0; }
.theme-site .nahan-single-product .storefront-product-detail-media { padding: 1rem; border: 1px solid var(--store-border); border-radius: 24px; background: radial-gradient(ellipse at 50% 60%,rgba(19,210,190,.1),transparent 68%),linear-gradient(145deg,#0d1f26,#09161a); box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.theme-site .nahan-single-product .storefront-product-gallery-main { min-height: 390px; }
.theme-site .nahan-single-product .storefront-product-detail-image { width: 100%; height: min(55vw,520px); min-height: 350px; border-radius: 16px; object-fit: contain; }
.theme-site .nahan-single-product .storefront-product-detail-content { padding: clamp(1.25rem,3vw,2.25rem); border: 1px solid var(--store-border); border-radius: 24px; background: linear-gradient(155deg,rgba(15,36,41,.94),rgba(7,18,23,.93)); box-shadow: var(--store-shadow-sm); }
.theme-site .nahan-single-product .storefront-product-detail-content h1 { margin: .55rem 0 1rem; font-size: clamp(1.8rem,3vw,2.7rem); line-height: 1.5; }
.theme-site .nahan-single-product .storefront-product-detail-short-description { line-height: 2; }
.theme-site .nahan-product-rating { display: inline-flex; align-items: center; gap: .45rem; margin: .25rem 0 1rem; color: #ffd875; }
.theme-site .nahan-product-rating span:last-child { color: var(--text-secondary); font-size: .9rem; }
.theme-site .nahan-product-discount { padding: .25rem .55rem; border-radius: 999px; background: rgba(0,209,56,.12); color: #72f3a1; font-size: .78rem; font-weight: 700; }
.theme-site .nahan-single-product .storefront-product-purchase-context { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1.5rem; padding: 1.2rem; border: 1px solid rgba(84,227,207,.17); border-radius: 18px; background: rgba(0,255,220,.035); }
.theme-site .nahan-single-product .storefront-product-purchase-context > .storefront-product-price { width: 100%; margin: 0; }
.theme-site .nahan-single-product .storefront-add-to-cart-form { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; width: 100%; margin: 0; }
.theme-site .nahan-single-product .storefront-add-to-cart-form label { display: grid; gap: .35rem; color: var(--text-secondary); }
.theme-site .nahan-single-product .storefront-add-to-cart-form input { width: 6rem; }
.theme-site .nahan-product-consultation { display: inline-flex; align-items: center; gap: .5rem; }
.theme-site .nahan-single-product .storefront-product-information,.theme-site .nahan-single-product .storefront-product-detail-description { margin-top: 1.4rem; padding: 1.4rem; border: 1px solid var(--store-border); border-radius: 18px; background: rgba(9,25,29,.7); }
.theme-site .nahan-single-product .storefront-product-information h2,.theme-site .nahan-single-product .storefront-product-detail-description h2 { margin-top: 0; }
.theme-site .nahan-single-product .storefront-related-products { margin-top: 0; padding-top: 0; }
.theme-site .nahan-single-product .storefront-related-products .storefront-catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.theme-site .nahan-single-product .storefront-related-products .storefront-catalog-product-media { aspect-ratio: 4 / 4.65; }
.theme-site .nahan-single-product .storefront-related-products .storefront-catalog-product-image { padding: .8rem; object-fit: contain; }
.theme-site .nahan-single-product .storefront-related-products .storefront-catalog-product-media:hover .storefront-catalog-product-image { transform: none; }
@media (max-width: 900px) {
    .theme-site .nahan-products-grid,.theme-site .nahan-single-product .storefront-related-products .storefront-catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .theme-site .nahan-single-product .storefront-product-detail { grid-template-columns: minmax(0,1fr); }
    .theme-site .nahan-single-product .storefront-product-detail-image { height: min(70vw,500px); }
}
@media (max-width: 560px) {
    .theme-site .nahan-products-hero { padding: 2rem 0 3rem; }
    .theme-site .nahan-products-hero > .storefront-container > p { font-size: 1rem; }
    .theme-site .nahan-products-results { padding-top: 2.25rem; }
    .theme-site .nahan-products-results-heading { align-items: start; flex-direction: column; }
    .theme-site .nahan-products-grid,.theme-site .nahan-single-product .storefront-related-products .storefront-catalog-grid { grid-template-columns: 1fr; }
    .theme-site .nahan-products-grid .storefront-catalog-product-media { min-height: 250px; }
    .theme-site .nahan-product-card-actions { align-items: stretch; flex-direction: column; }
    .theme-site .nahan-product-card-cart-form .storefront-button { width: 100%; }
    .theme-site .nahan-single-product .storefront-product-detail-image { min-height: 270px; height: 75vw; }
}

/* Published Content items with ContentTypeId 4 are presented as company projects. */
.theme-site .nahan-projects-page { color: var(--text-primary); }
.theme-site .nahan-projects-hero { position: relative; overflow: hidden; padding: 2.5rem 0 5rem; border-bottom: 1px solid rgba(84,227,207,.12); background: radial-gradient(ellipse at 50% 0,rgba(0,255,220,.13),transparent 67%),linear-gradient(180deg,rgba(7,22,27,.9),transparent); }
.theme-site .nahan-projects-hero-copy { max-width: 820px; margin: 2rem auto 0; text-align: center; }
.theme-site .nahan-projects-hero-copy h1 { margin: 1rem 0 .65rem; color: var(--text-primary); font-size: clamp(2.4rem,5.5vw,4.4rem); font-weight: 900; line-height: 1.4; }
.theme-site .nahan-projects-hero-copy p { max-width: 700px; margin: 0 auto; color: var(--text-secondary); font-size: 1.1rem; line-height: 2; }
.theme-site .nahan-projects-content { padding-top: 3.25rem; padding-bottom: 5rem; }
.theme-site .nahan-projects-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.theme-site .nahan-projects-heading h2 { margin: .3rem 0 0; color: var(--text-primary); font-size: 1.7rem; }
.theme-site .nahan-projects-count { color: var(--text-secondary); }
.theme-site .nahan-projects-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.theme-site .nahan-project-card { overflow: hidden; border: 1px solid var(--store-border); border-radius: 22px; background: linear-gradient(155deg,rgba(15,36,41,.97),rgba(7,18,23,.96)); box-shadow: var(--store-shadow-sm); transition: transform .25s ease,border-color .25s ease,box-shadow .25s ease; }
.theme-site .nahan-project-card:hover { transform: translateY(-6px); border-color: var(--border-neon); box-shadow: var(--shadow-glow-cyan); }
.theme-site .nahan-project-cover { position: relative; display: grid; min-height: 220px; aspect-ratio: 16/9; overflow: hidden; place-items: center; background: radial-gradient(ellipse at 50% 60%,rgba(19,210,190,.16),transparent 68%),linear-gradient(145deg,#0d1f26,#09161a); }
.theme-site .nahan-project-cover img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .4s ease; }
.theme-site .nahan-project-card:hover .nahan-project-cover img { transform: scale(1.045); }
.theme-site .nahan-project-cover-placeholder { display: grid; width: 100%; height: 100%; min-height: 220px; place-items: center; color: rgba(84,227,207,.7); font-size: 3rem; }
.theme-site .nahan-project-cover-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4,15,18,.67); opacity: 0; transition: opacity .25s ease; }
.theme-site .nahan-project-cover-overlay span { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border: 1px solid rgba(84,227,207,.45); border-radius: 999px; color: #9ff9e9; background: rgba(8,27,29,.8); transform: translateY(8px); transition: transform .25s ease; }
.theme-site .nahan-project-card:hover .nahan-project-cover-overlay,.theme-site .nahan-project-card:focus-within .nahan-project-cover-overlay { opacity: 1; }
.theme-site .nahan-project-card:hover .nahan-project-cover-overlay span,.theme-site .nahan-project-card:focus-within .nahan-project-cover-overlay span { transform: translateY(0); }
.theme-site .nahan-project-card-body { padding: 1.25rem; }
.theme-site .nahan-project-card-body h3 { margin: 0 0 .55rem; font-size: 1.2rem; line-height: 1.7; }
.theme-site .nahan-project-card-body h3 a { color: var(--text-primary); }
.theme-site .nahan-project-card-body p { min-height: 3.4em; margin: 0; color: var(--text-secondary); line-height: 1.8; }
.theme-site .nahan-project-detail-link { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1rem; color: var(--accent-cyan); font-weight: 700; }
.theme-site .nahan-project-detail-link:hover { color: #9ff9e9; }
.theme-site .nahan-projects-empty { padding: 3rem 1.5rem; text-align: center; }
.theme-site .nahan-project-article .storefront-blog-article-header { text-align: right; }
.theme-site .nahan-project-article .storefront-blog-article-header h1 { color: var(--text-primary); }
.theme-site .nahan-project-article .storefront-blog-article-cover { overflow: hidden; border: 1px solid var(--store-border); border-radius: 22px; background: #0b1b20; }
.theme-site .nahan-project-article .storefront-blog-article-cover img { display: block; width: 100%; max-height: 620px; object-fit: cover; }
.theme-site .nahan-project-fields { margin-top: 2rem; padding: 1.5rem; border: 1px solid var(--store-border); border-radius: 18px; background: rgba(9,25,29,.72); }
.theme-site .nahan-project-fields h2 { margin-top: 0; color: var(--text-primary); }
.theme-site .nahan-project-fields dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; margin: 0; }
.theme-site .nahan-project-fields dl div { padding: .8rem; border: 1px solid rgba(84,227,207,.12); border-radius: 12px; }
.theme-site .nahan-project-fields dt { color: var(--accent-cyan); font-weight: 700; }
.theme-site .nahan-project-fields dd { margin: .35rem 0 0; color: var(--text-secondary); white-space: pre-wrap; }
@media (max-width: 900px) { .theme-site .nahan-projects-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) {
    .theme-site .nahan-projects-hero { padding: 2rem 0 3.5rem; }
    .theme-site .nahan-projects-hero-copy p { font-size: 1rem; }
    .theme-site .nahan-projects-content { padding-top: 2.25rem; }
    .theme-site .nahan-projects-heading { align-items: start; flex-direction: column; }
    .theme-site .nahan-projects-grid,.theme-site .nahan-project-fields dl { grid-template-columns: 1fr; }
    .theme-site .nahan-project-cover,.theme-site .nahan-project-cover-placeholder { min-height: 190px; }
}

/* Home-only content adjustments for Demo02's landing hero. */
.theme-site .nahan-home-hero-slide[hidden] { display: none; }
.theme-site .nahan-home-hero-image { width: min(30%, 8rem); max-height: 22%; object-fit: contain; margin-bottom: .5rem; }
.theme-site .nahan-home-hero-description { max-width: 74%; margin: .25rem 0; font-size: clamp(.75rem, 1.25vw, 1rem); line-height: 1.7; letter-spacing: 0; text-align: center; text-transform: none; }
.theme-site .nahan-home-hero-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: .25rem; text-decoration: none; }
.theme-site .nahan-home-hero-controls { position: absolute; inset-block-end: 1.5rem; display: flex; gap: .45rem; }
.theme-site .nahan-home-hero-controls button { width: .55rem; height: .55rem; padding: 0; border: 1px solid #00fff2; border-radius: 50%; background: transparent; cursor: pointer; }
.theme-site .nahan-home-hero-controls button.active { background: #00fff2; box-shadow: 0 0 10px #00fff2; }
.theme-site [id] { scroll-margin-top: 7rem; }
/* هم‌تراز شدن ستون‌های فوتر از بالا */
.footer-content,
.footer-grid,
.footer-columns {
    align-items: flex-start !important;
}

/* ستون برند */
.footer-brand {
    padding-top: 0 !important;
    margin-top: 0 !important;
    align-self: flex-start !important;
}

/* عنوان برند و لوگو */
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 0 !important;
    padding-top: 0 !important;
    line-height: 1.2;
}

    /* خود لوگو */
    .footer-logo img {
        display: block;
        width: 44px;
        height: 44px;
        object-fit: contain;
        flex-shrink: 0;
    }

    /* اگر هنوز آیکون/لوگو کمی جابه‌جاست */
    .footer-logo i,
    .footer-logo img {
        margin-top: 0 !important;
    }

/* متن‌های زیر برند */
.footer-brand .footer-description,
.footer-brand .footer-contact,
.footer-brand .footer-social {
    margin-right: 0;
}
/* Product detail information tabs */
.theme-site .nahan-product-tabs {
    margin-block: clamp(1.5rem, 2vw, 1.75rem) .5rem;
    padding-block: 0;
    color: var(--store-text);
}

.theme-site .nahan-product-tabs-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
    padding: .4rem;
    border: 1px solid var(--store-border);
    border-radius: 16px;
    background: rgba(7, 18, 23, .78);
}

.theme-site .nahan-product-tabs-list [role="tab"] {
    min-width: 0;
    padding: .8rem 1rem;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text-secondary);
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.theme-site .nahan-product-tabs-list [role="tab"]:hover,
.theme-site .nahan-product-tabs-list [role="tab"]:focus-visible {
    border-color: rgba(22, 226, 211, .4);
    color: var(--store-text);
    outline: none;
}

.theme-site .nahan-product-tabs-list [role="tab"][aria-selected="true"] {
    border-color: rgba(22, 226, 211, .52);
    color: #071719;
    background: linear-gradient(120deg, #4ce9dc, #8af1d1);
    box-shadow: 0 0 22px rgba(22, 226, 211, .16);
}

.theme-site .nahan-product-tab-panel {
    margin-block-start: .8rem;
    padding: clamp(1.1rem, 3vw, 2rem);
    border: 1px solid var(--store-border);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(13, 31, 38, .96), rgba(7, 18, 23, .94));
    box-shadow: 0 16px 42px rgba(0, 0, 0, .16);
    line-height: 1.9;
}

.theme-site .nahan-product-tab-panel[hidden] {
    display: none;
}

.theme-site .nahan-product-tab-panel > h2 {
    margin: 0 0 1rem;
    color: var(--store-text);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.theme-site .nahan-product-tab-panel:focus-visible {
    outline: 2px solid rgba(22, 226, 211, .72);
    outline-offset: 3px;
}

.theme-site .nahan-product-tab-panel .storefront-product-detail-description-content {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin-inline: 0;
    direction: rtl;
    text-align: right;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.theme-site .nahan-product-tab-panel .storefront-product-detail-description-content > :first-child {
    margin-block-start: 0;
}

.theme-site .nahan-product-tab-panel .storefront-product-detail-description-content > :last-child {
    margin-block-end: 0;
}

.theme-site .nahan-product-tab-panel .storefront-product-detail-description-content h1,
.theme-site .nahan-product-tab-panel .storefront-product-detail-description-content h2,
.theme-site .nahan-product-tab-panel .storefront-product-detail-description-content h3,
.theme-site .nahan-product-tab-panel .storefront-product-detail-description-content h4 {
    margin-block: 1.5em .55em;
    color: var(--store-text);
    line-height: 1.5;
}

.theme-site .nahan-product-tab-panel .storefront-product-detail-description-content p,
.theme-site .nahan-product-tab-panel .storefront-product-detail-description-content ul,
.theme-site .nahan-product-tab-panel .storefront-product-detail-description-content ol {
    margin-block: 0 1em;
}

.theme-site .nahan-product-tab-panel .storefront-product-detail-description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.theme-site .nahan-product-tab-panel .storefront-product-detail-description-content table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.theme-site .nahan-product-tab-panel .storefront-product-detail-description-content th,
.theme-site .nahan-product-tab-panel .storefront-product-detail-description-content td {
    overflow-wrap: anywhere;
}

.theme-site .nahan-product-features-list {
    display: grid;
    gap: .6rem;
    max-width: 82ch;
    margin: 0;
}

.theme-site .nahan-product-features-list > div {
    display: grid;
    grid-template-columns: minmax(9rem, .7fr) minmax(0, 1.3fr);
    gap: 1rem;
    padding: .75rem 1rem;
    border: 1px solid rgba(22, 226, 211, .12);
    border-radius: 10px;
    background: rgba(255, 255, 255, .025);
}

.theme-site .nahan-product-features-list dt {
    color: var(--store-text);
    font-weight: 700;
}

.theme-site .nahan-product-features-list dd {
    margin: 0;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.theme-site .nahan-product-tab-empty {
    margin: 0;
    color: var(--text-secondary);
}

.theme-site .nahan-product-tab-panel .storefront-product-reviews {
    margin: 0;
}

/* General content pages follow Demo02's compact, centered About hero while
   keeping the fixed site header clear and the database-authored body wide. */
.theme-site .storefront-main-offset:has(.nahan-content-page) {
    padding-top: 5rem;
}

.theme-site .nahan-content-page {
    width: 100%;
    max-width: 100%;
    padding-bottom: clamp(3.5rem, 7vw, 6rem);
    color: var(--text-primary);
}

.theme-site .nahan-content-hero {
    padding: clamp(1.25rem, 3vw, 2.25rem) 0 clamp(2rem, 4vw, 3rem);
}

.theme-site .nahan-content-container {
    width: min(calc(100% - 3rem), 1280px);
    max-width: 100%;
    margin-inline: auto;
}

.theme-site .nahan-content-breadcrumbs {
    color: var(--text-secondary);
    font-size: .84rem;
}

.theme-site .nahan-content-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.theme-site .nahan-content-breadcrumbs li + li::before {
    margin-inline-end: .7rem;
    color: rgba(0, 255, 242, .55);
    content: "/";
}

.theme-site .nahan-content-breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .18s ease;
}

.theme-site .nahan-content-breadcrumbs a:hover,
.theme-site .nahan-content-breadcrumbs a:focus-visible {
    color: var(--accent-cyan);
}

.theme-site .nahan-content-hero-copy {
    max-width: 54rem;
    margin: clamp(1.25rem, 3.5vw, 2.5rem) auto 0;
    text-align: center;
}

.theme-site .nahan-content-hero h1 {
    max-width: 100%;
    margin: 0;
    color: var(--text-primary);
    font-size: clamp(2.25rem, 4.2vw, 2.9rem);
    font-weight: 750;
    line-height: 1.45;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.theme-site .nahan-content-summary {
    max-width: 48rem;
    margin: .8rem auto 0;
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    line-height: 1.9;
    text-wrap: pretty;
}

.theme-site .nahan-content-main {
    padding-top: clamp(1.25rem, 2.5vw, 2rem);
}

.theme-site .nahan-content-panel {
    padding: clamp(1rem, 2.2vw, 1.75rem);
    border: 1px solid rgba(0, 255, 242, .14);
    border-radius: clamp(1.25rem, 2vw, 1.5rem);
    background: var(--bg-card, rgba(13, 25, 37, .82));
}

.theme-site .nahan-content-cover {
    margin: 0 0 clamp(1.5rem, 3vw, 2rem);
    overflow: hidden;
    border-radius: clamp(.875rem, 1.5vw, 1.125rem);
    background: #071719;
}

.theme-site .nahan-content-cover-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.theme-site .nahan-content-article {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--text-secondary);
}

.theme-site .nahan-content-body {
    width: 100%;
    max-width: none;
    min-width: 0;
    color: var(--text-secondary);
    font-size: clamp(.96rem, 1.15vw, 1.05rem);
    line-height: 1.95;
    overflow-wrap: anywhere;
    word-break: normal;
}

.theme-site .nahan-content-body > * {
    max-width: 100%;
}

.theme-site .nahan-content-body > :first-child {
    margin-block-start: 0;
}

.theme-site .nahan-content-body > :last-child {
    margin-block-end: 0;
}

.theme-site .nahan-content-body h1,
.theme-site .nahan-content-body h2,
.theme-site .nahan-content-body h3,
.theme-site .nahan-content-body h4,
.theme-site .nahan-content-body h5,
.theme-site .nahan-content-body h6 {
    margin-block: 1.6em .55em;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.55;
    text-wrap: pretty;
}

.theme-site .nahan-content-body h1,
.theme-site .nahan-content-body h2 { font-size: clamp(1.6rem, 2.7vw, 2rem); }
.theme-site .nahan-content-body h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
.theme-site .nahan-content-body h4,
.theme-site .nahan-content-body h5,
.theme-site .nahan-content-body h6 { font-size: clamp(1.12rem, 1.7vw, 1.3rem); }

.theme-site .nahan-content-body p,
.theme-site .nahan-content-body ul,
.theme-site .nahan-content-body ol,
.theme-site .nahan-content-body blockquote,
.theme-site .nahan-content-body pre,
.theme-site .nahan-content-body figure {
    margin-block: 0 1.05em;
}

.theme-site .nahan-content-body ul,
.theme-site .nahan-content-body ol {
    padding-inline-start: 1.6em;
}

.theme-site .nahan-content-body li + li {
    margin-block-start: .3em;
}

.theme-site .nahan-content-body a {
    color: #50e9db;
    text-decoration: underline;
    text-decoration-color: rgba(80, 233, 219, .45);
    text-underline-offset: .18em;
}

.theme-site .nahan-content-body a:hover,
.theme-site .nahan-content-body a:focus-visible {
    color: #a0fff2;
    text-decoration-color: currentColor;
}

.theme-site .nahan-content-body img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.theme-site .nahan-content-body table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    border-spacing: 0;
    scrollbar-width: thin;
}

.theme-site .nahan-content-body th,
.theme-site .nahan-content-body td {
    min-width: 7rem;
    padding: .65rem .8rem;
    border: 1px solid rgba(0, 255, 242, .18);
    text-align: start;
    overflow-wrap: anywhere;
}

.theme-site .nahan-content-body th {
    color: var(--text-primary);
    background: rgba(0, 255, 242, .07);
}

.theme-site .nahan-content-body blockquote {
    padding: .85rem 1.1rem;
    border-inline-start: 3px solid var(--accent-cyan);
    border-radius: .4rem;
    background: rgba(0, 255, 242, .045);
}

.theme-site .nahan-content-body pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 1rem;
    border: 1px solid rgba(0, 255, 242, .14);
    border-radius: .8rem;
    background: rgba(0, 0, 0, .24);
}

.theme-site .nahan-content-body iframe,
.theme-site .nahan-content-body video,
.theme-site .nahan-content-body embed {
    max-width: 100%;
}

.theme-site .nahan-content-body iframe,
.theme-site .nahan-content-body video {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 12px;
}

@media (max-width: 640px) {
    .theme-site .storefront-main-offset:has(.nahan-content-page) {
        padding-top: 5.5rem;
    }

    .theme-site .nahan-content-container {
        width: min(calc(100% - 2rem), 1280px);
    }

    .theme-site .nahan-content-hero {
        padding-top: 1rem;
    }

    .theme-site .nahan-content-hero-copy {
        margin-top: 1.5rem;
    }

    .theme-site .nahan-content-hero h1 {
        font-size: clamp(1.85rem, 8vw, 2.3rem);
    }

    .theme-site .nahan-content-summary {
        font-size: .98rem;
    }

    .theme-site .nahan-content-panel {
        padding: 1rem;
        border-radius: 20px;
    }

    .theme-site .nahan-content-cover {
        border-radius: 12px;
    }

    .theme-site .nahan-content-body {
        font-size: .96rem;
        line-height: 1.9;
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-site .nahan-content-breadcrumbs a {
        transition: none;
    }
}

@media (max-width: 560px) {
    .theme-site .nahan-product-tabs-list {
        gap: .25rem;
        padding: .3rem;
    }

    .theme-site .nahan-product-tabs-list [role="tab"] {
        padding: .7rem .35rem;
        font-size: .9rem;
    }

    .theme-site .nahan-product-features-list > div {
        grid-template-columns: 1fr;
        gap: .2rem;
    }
}

/* Blog article detail follows Demo02's image hero, reading column and TOC. */
.theme-site .nahan-blog-article { padding: 0 0 5rem; color: var(--text-primary); }

.theme-site .blog-single-hero {
    display: flex;
    min-height: clamp(25rem, 52vh, 31.25rem);
    align-items: center;
    box-sizing: border-box;
    margin: 0;
    padding: 2rem 0;
    position: relative;
    isolation: isolate;
    background-color: #07121a;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.theme-site .blog-single-hero > .container {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 2rem), 1240px);
    max-width: 1240px;
}

.theme-site .nahan-article-breadcrumbs,
.theme-site .nahan-article-breadcrumbs a { color: rgba(240, 250, 252, .82); }
.theme-site .nahan-article-breadcrumbs { margin-block-start: 0; }
.theme-site .nahan-article-hero-copy { max-width: 68rem; margin: 1.5rem auto 0; text-align: center; }

.theme-site .nahan-article-hero-copy h1 {
    max-width: 62rem;
    margin: 0 auto;
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.38;
    text-shadow: 0 4px 20px rgba(0, 0, 0, .58);
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.theme-site .nahan-article-summary {
    max-width: 50rem;
    margin: 1.4rem auto 0;
    color: #e2e8f0;
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    line-height: 2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
    text-wrap: pretty;
}

.theme-site .nahan-article-meta {
    display: inline-flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .65rem 1.3rem;
    margin: 2rem auto 0;
    padding: .85rem 1.4rem;
    color: #e2e8f0;
    background: rgba(0, 0, 0, .46);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
}

.theme-site .nahan-article-meta span,
.theme-site .nahan-article-meta a { display: inline-flex; align-items: center; gap: .5rem; }
.theme-site .nahan-article-meta a { color: inherit; text-decoration: none; }
.theme-site .nahan-article-meta a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.theme-site .nahan-article-meta i { color: var(--accent-cyan); }
.theme-site .nahan-article-section { padding: 3.75rem 0 0; }

.theme-site .nahan-blog-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 820px) minmax(0, 340px);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
    justify-content: center;
    direction: rtl;
}

.theme-site .nahan-blog-article-layout.is-single-column { grid-template-columns: minmax(0, 820px); }
.theme-site .nahan-blog-article-main { min-width: 0; }

.theme-site .blog-content {
    width: 100%;
    max-width: 820px;
    min-width: 0;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-primary);
    font-size: 1.08rem;
    line-height: 2.05;
    overflow-wrap: anywhere;
    word-break: normal;
}

.theme-site .blog-content p,
.theme-site .blog-content li { color: var(--text-secondary); }
.theme-site .blog-content p { margin: 0 0 1.35rem; }

.theme-site .blog-content h2 {
    position: relative;
    margin: 3rem 0 1.2rem;
    padding-block-end: .75rem;
    color: var(--accent-cyan);
    font-size: clamp(1.55rem, 3vw, 1.95rem);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.theme-site .blog-content h2::after {
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: 0;
    width: 5rem;
    height: 3px;
    background: linear-gradient(to left, var(--accent-cyan), transparent);
    content: "";
}

.theme-site .blog-content h3 { margin: 2.2rem 0 .85rem; color: #e2e8f0; font-size: clamp(1.25rem, 2.5vw, 1.5rem); line-height: 1.6; overflow-wrap: anywhere; }
.theme-site .blog-content h2[id],
.theme-site .blog-content h3[id] { scroll-margin-top: 7.5rem; }
.theme-site .blog-content ul,
.theme-site .blog-content ol { margin: 0 0 1.4rem; padding-inline-start: 1.7rem; }
.theme-site .blog-content li { margin-block-end: .5rem; }
.theme-site .blog-content a { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: .18em; }
.theme-site .blog-content a:hover { color: #a4fff0; }
.theme-site .blog-content img,
.theme-site .blog-content figure { max-width: 100%; height: auto; }
.theme-site .blog-content img { border-radius: var(--radius-md); }
.theme-site .blog-content figure { margin: 1.8rem auto; }
.theme-site .blog-content figcaption { color: var(--text-secondary); font-size: .88rem; }

.theme-site .blog-content table { width: 100%; max-width: 100%; margin: 2rem 0; table-layout: fixed; border-collapse: collapse; color: var(--text-secondary); background: var(--bg-card); border-radius: var(--radius-lg); }
.theme-site .blog-content th,
.theme-site .blog-content td { padding: .8rem .9rem; border: 1px solid var(--border); text-align: start; vertical-align: top; overflow-wrap: anywhere; }
.theme-site .blog-content thead th { color: var(--text-primary); background: rgba(30, 41, 59, .75); }
.theme-site .blog-content blockquote { margin: 2rem 0; padding: 1.1rem 1.4rem; color: var(--text-secondary); background: rgba(0, 255, 136, .05); border-inline-start: 4px solid var(--accent-green); border-radius: var(--radius-md); }
.theme-site .blog-content pre { max-width: 100%; margin: 1.6rem 0; padding: 1.1rem 1.2rem; overflow: auto; color: #e2e8f0; background: #020617; border: 1px solid var(--border); border-radius: var(--radius-md); direction: ltr; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; }
.theme-site .blog-content code { max-width: 100%; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }

.theme-site .nahan-blog-article-aside { min-width: 0; }
.theme-site .nahan-article-toc { position: sticky; inset-block-start: calc(var(--nahan-menu-top, 6rem) + 1rem); margin: 0 0 2rem; padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.theme-site .nahan-article-toc h2 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .8rem; padding-block-end: .75rem; color: var(--accent-cyan); border-block-end: 1px solid var(--border); font-size: 1.1rem; }
.theme-site .nahan-article-toc ul { margin: 0; padding: 0; list-style: none; }
.theme-site .nahan-article-toc li { margin-block-end: .4rem; }
.theme-site .nahan-article-toc li.toc-level-3 { margin-inline-start: 1rem; }
.theme-site .nahan-article-toc a { display: flex; align-items: baseline; gap: .45rem; padding: .35rem 0; color: var(--text-secondary); font-size: .88rem; line-height: 1.8; text-decoration: none; overflow-wrap: anywhere; }
.theme-site .nahan-article-toc a i { flex: 0 0 auto; color: var(--accent-cyan); font-size: .65rem; }
.theme-site .nahan-article-toc a:hover { color: var(--accent-cyan); }

.theme-site .nahan-blog-article .storefront-blog-article-tags { margin-block-start: 2rem; }
.theme-site .nahan-article-related { max-width: none; margin: 2rem 0 0; }
.theme-site .nahan-article-related .storefront-section-heading { margin-block-end: .75rem; }
.theme-site .nahan-article-related .storefront-section-heading h2 { font-size: 1.1rem; }
.theme-site .nahan-article-related .storefront-blog-related-grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.theme-site .nahan-article-related .storefront-blog-related-card { grid-template-columns: clamp(5rem, 22%, 8rem) minmax(0, 1fr); gap: .55rem; min-width: 0; align-items: center; }
.theme-site .nahan-article-related .storefront-blog-related-card .storefront-image { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.theme-site .nahan-article-related .storefront-blog-related-card > div { min-width: 0; padding: .6rem .4rem .6rem 0; }
.theme-site .nahan-article-related .storefront-blog-related-card h3 { display: -webkit-box; max-width: 100%; overflow: hidden; font-size: .84rem; line-height: 1.7; word-break: normal; overflow-wrap: break-word; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.theme-site .nahan-blog-article .storefront-blog-comments,
.theme-site .nahan-blog-article .storefront-blog-comment-list,
.theme-site .nahan-blog-article .storefront-blog-comment-card,
.theme-site .nahan-blog-article .storefront-blog-comment-form { min-width: 0; max-width: 100%; box-sizing: border-box; }
.theme-site .nahan-blog-article .storefront-blog-comment-form textarea { min-width: 0; max-width: 100%; box-sizing: border-box; }
.theme-site .nahan-blog-article .storefront-blog-comment-form button { justify-self: start; max-width: 100%; }

@media (max-width: 992px) {
    .theme-site .blog-single-hero { min-height: clamp(24rem, 50vh, 30rem); }
    .theme-site .nahan-blog-article-layout,
    .theme-site .nahan-blog-article-layout.is-single-column { grid-template-columns: minmax(0, 820px); }
    .theme-site .nahan-blog-article-aside { order: -1; }
    .theme-site .nahan-article-toc { position: static; margin-block-end: 1.5rem; }
    .theme-site .nahan-article-related .storefront-blog-related-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
}

@media (max-width: 600px) {
    .theme-site .blog-single-hero { min-height: 0; padding-block: 1rem 2rem; background-position: center center; }
    .theme-site .nahan-article-hero-copy { margin-block-start: 1rem; }
    .theme-site .nahan-article-hero-copy h1 { font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.45; }
    .theme-site .nahan-article-summary { font-size: 1rem; line-height: 1.9; }
    .theme-site .nahan-article-meta { gap: .5rem .9rem; margin-block-start: 1.4rem; padding: .75rem 1rem; border-radius: 1rem; font-size: .88rem; }
    .theme-site .nahan-article-section { padding-block-start: 2rem; }
    .theme-site .blog-content { font-size: 1rem; line-height: 1.95; }
    .theme-site .blog-content table { font-size: .88rem; }
    .theme-site .blog-content th,
    .theme-site .blog-content td { padding: .55rem; }
    .theme-site .nahan-article-toc { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .theme-site .nahan-article-toc a,
    .theme-site .nahan-blog-article .storefront-blog-article-tags a { scroll-behavior: auto; transition: none !important; }
}
