:root {
    --background: 240 4.8% 95.9%;
    --text: 240 10% 3.9%;
    --warning: 0 72% 51%;
    --success: 142 71% 45%;
    --success-secondary: 160 84% 39%;
    --muted: 0 0% 100%;
    --border: 240 5.9% 90%;
    --primary: 199 89% 50%;
    --primary-btn: 198 93% 45%;
    --secondary: 240 6% 90%;
    --ring: 240 10% 3.9%;
    --radius: 0.5rem;
    --site-font-scale: 0.9375;
    --site-header-offset: 106px;
    overflow-y: scroll;
}

.dark {
    --background: 240 10% 3.9%;
    --text: 0 0% 98%;
    --warning: 0 84% 60%;
    --success: 142 69% 58%;
    --success-secondary: 161 94% 30%;
    --muted: 270 4% 10%;
    --border: 240 3.7% 15.9%;
    --primary: 198 93% 57%;
    --primary-btn: 198 93% 38%;
    --secondary: 240 4% 16%;
    --ring: 240 4.9% 83.9%;
    color-scheme: dark;
}

input {
    &:-webkit-autofill,
    &:-webkit-autofill:hover {
        -webkit-text-fill-color: hsl(var(--text));
        -webkit-box-shadow: 0 0 0 40rem hsl(var(--muted)) inset,
        0 0 0 1px hsl(var(--muted)) inset;
    }

    &:-webkit-autofill:focus {
        -webkit-text-fill-color: hsl(var(--text));
        -webkit-box-shadow: 0 0 0 40rem hsl(var(--muted)) inset,
        0 0 0 1px hsl(var(--muted)) inset;
    }
}

::selection {
    background: #8884;
}

::-webkit-scrollbar {
    width: .34rem;
    height: .5rem
}

::-webkit-scrollbar-track {
    background-color: hsl(var(--muted)) !important
}

::-webkit-scrollbar-thumb {
    border-radius: calc(var(--radius) - 4px);
    background-color: hsl(var(--secondary)) !important
}


html {
    scrollbar-color: hsl(215.4 16.3% 46.9% / .3);
    font-size: calc(16px * var(--site-font-scale, 0.9375));
}

html.dark {
    scrollbar-color: hsl(215.4 16.3% 56.9% / .3)
}

/* Product prices — medium weight reads cleaner than bold */
.product-price {
    font-weight: 500;
    letter-spacing: -0.01em;
}

.product-price del,
.product-price-old {
    font-weight: 400;
}

/* Product detail description — slightly smaller body text */
.prose.product-detail-text {
    font-size: 0.875rem;
    line-height: 1.75;
}

.prose.product-detail-text :where(h1, h2, h3, h4) {
    font-size: 1.05em;
    line-height: 1.4;
}


::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-old(root) {
    z-index: 1;
}

::view-transition-new(root) {
    z-index: 2147483646;
}

.dark::view-transition-old(root) {
    z-index: 2147483646;
}

.dark::view-transition-new(root) {
    z-index: 1;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button,
input[type="number"] {
    -webkit-appearance: none;
    margin: 0;
    -moz-appearance: textfield !important;
}


.scroll-lock {
    overflow-y: scroll;
    position: fixed;
    width: 100%;
    top: var(--window-scroll-top);
}


body {
    background-color: hsl(var(--background));
    color: hsl(var(--text));
}

@media only screen and (min-width: 1024px) {

    .border-gradient::before {
        background: radial-gradient(
                300px circle at var(--x) var(--y),
                hsl(var(--primary)) 0,
                transparent 100%
        );
    }

}


.swiper-button-prev,
.swiper-button-next {
    background-color: #09090b;
    color: #ffffff;
}


.swiper-button-prev,
.swiper-button-next {
    width: 40px;
    height: 40px;

}

.swiper .swiper-pagination-bullet,
.swiper .swiper-pagination-bullet-active {
    background-color: black; /* bg-black */
    transition: all 0.3s; /* transition-all duration-300 */
    height: 0.375rem; /* h-1.5 (1.5 * 0.25rem) */
    width: 0.375rem; /* w-1.5 (1.5 * 0.25rem) */
}

.swiper .swiper-pagination-bullet-active {
    width: 1.25rem; /* w-5 (5 * 0.25rem) */
    border-radius: 0.5rem; /* rounded-lg */
    background-color: hsl(var(--primary)); /* bg-primary (replace #primary with the actual color value) */
}

/* Hero banner — full width, natural image height */
.hero-banner-section {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding-inline: 0;
    overflow: hidden;
}

.hero-banner-section,
.main-banner.swiper {
    width: 100%;
    max-width: 100%;
}

.main-banner.swiper,
.main-banner .swiper-wrapper,
.main-banner .swiper-slide {
    height: auto !important;
}

.main-banner .swiper-wrapper {
    align-items: flex-start;
}

.main-banner .swiper-slide {
    width: 100% !important;
    height: auto;
}

.main-banner .main-banner__link {
    display: block;
    width: 100%;
    line-height: 0;
}

.main-banner .main-banner__image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: unset;
    object-position: center;
}

.main-banner .swiper-pagination {
    bottom: 8px !important;
}

main.site-main {
    padding-top: var(--site-header-offset);
}

/* Product / content sliders — avoid clipping card edges in container */
main section.container .swiper.product-slider,
main section.container .swiper.product-slider-wrapped,
main section.container .swiper.brand-slider,
main section.container .swiper.blog-swiper,
main section.container .swiper.best-sale-hour-slider {
    width: 100%;
    max-width: 100%;
    padding-inline: 2px;
    box-sizing: border-box;
}

main section.container .swiper .swiper-slide {
    height: auto;
}

/* Cart page — ensure dark theme contrast */
.cart-page {
    color: hsl(var(--text));
}

.cart-page .cart-panel {
    background-color: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
}

.cart-page table {
    background-color: transparent;
    color: hsl(var(--text));
}

.cart-page thead tr {
    background-color: hsl(var(--secondary));
    border-color: hsl(var(--border));
}

.cart-page tbody tr {
    background-color: transparent;
    border-color: hsl(var(--border));
}

.cart-page th,
.cart-page td {
    color: hsl(var(--text));
}

.cart-page input[type="text"] {
    background-color: hsl(var(--background));
    color: hsl(var(--text));
    border-color: hsl(var(--border));
}

.cart-page .cart-qty-box {
    background-color: hsl(var(--background));
    border-color: hsl(var(--border));
    color: hsl(var(--text));
}

.cart-page .cart-qty-box button {
    color: hsl(var(--text));
}

.cart-page .cart-qty-box button:hover {
    background-color: hsl(var(--secondary));
}

/* Desktop megamenu — product grid for leaf categories */
.mega-menu-products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.mega-menu-product-card {
    display: block;
    width: 100px;
    text-align: center;
    text-decoration: none;
    color: hsl(var(--text));
}

.mega-menu-product-thumb {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: hsl(var(--background));
    border: 1px solid hsl(var(--border));
}

.mega-menu-product-title {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.35;
    color: hsl(var(--text) / 0.85);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.mega-menu-product-card:hover .mega-menu-product-title {
    color: hsl(var(--primary));
}

/* دکمه‌های variant — فقط رنگ/بوردر؛ اندازه با Tailwind (مثلاً w-full py-2.5) */
.site-storefront .btn-outline {
    border-radius: var(--radius-lg);
    background-color: hsl(var(--background));
    color: hsl(var(--text));
    border: 2px solid hsl(var(--border));
    text-align: center;
    transition-duration: 0.2s;
}

.site-storefront .btn-outline:hover {
    background-color: hsl(var(--secondary));
}

.site-storefront .btn-success {
    border-radius: var(--radius-lg);
    background-color: hsl(var(--success));
    color: #fff;
    text-align: center;
    transition-duration: 0.2s;
}

.site-storefront .btn-success:hover {
    filter: brightness(0.92);
}

.site-storefront .btn-warning {
    border-radius: var(--radius-lg);
    background-color: hsl(var(--warning));
    color: #fff;
    text-align: center;
    transition-duration: 0.2s;
}

.site-storefront .btn-info {
    border-radius: var(--radius-lg);
    background-color: hsl(var(--primary));
    color: #fff;
    text-align: center;
    transition-duration: 0.2s;
}

.site-storefront .btn-danger {
    border-radius: var(--radius-lg);
    background-color: hsl(var(--warning));
    color: #fff;
    text-align: center;
    transition-duration: 0.2s;
}

/* Checkout payment notice — colors independent of Tailwind purge */
.checkout-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.checkout-notice--danger {
    border-color: #fecaca;
    background-color: #fef2f2;
    color: #b91c1c;
}

.checkout-notice--warning {
    border-color: #fde68a;
    background-color: #fffbeb;
    color: #92400e;
}

.checkout-notice--info {
    border-color: #bae6fd;
    background-color: #f0f9ff;
    color: #075985;
}

.checkout-notice--success {
    border-color: #a7f3d0;
    background-color: #ecfdf5;
    color: #065f46;
}

.dark .checkout-notice--danger {
    border-color: #7f1d1d;
    background-color: rgb(69 10 10 / 0.4);
    color: #fca5a5;
}

.dark .checkout-notice--warning {
    border-color: #78350f;
    background-color: rgb(69 26 3 / 0.4);
    color: #fcd34d;
}

.dark .checkout-notice--info {
    border-color: #0c4a6e;
    background-color: rgb(8 47 73 / 0.4);
    color: #7dd3fc;
}

.dark .checkout-notice--success {
    border-color: #064e3b;
    background-color: rgb(2 44 34 / 0.4);
    color: #6ee7b7;
}

/* Compact product thumbs in cart shipping/payment summary (mobile-safe) */
.order-summary-thumb {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    min-height: 3rem;
    max-width: 3rem;
    max-height: 3rem;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 0.5rem;
}

.order-summary-thumb__img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center;
}

.cms-item-card {
    background-color: #fff !important;
}

.news-card .card {
    background-color: #fff;
}

/* Blog article: white card, full featured image */
.blog-article,
.blog-article .article-print-root,
.blog-article__content,
.blog-article-body {
    background: #fff !important;
    color: #1e293b;
}

.dark .blog-article,
.dark .blog-article .article-print-root,
.dark .blog-article__content,
.dark .blog-article-body {
    background: #fff !important;
    color: #1e293b;
}

.blog-article {
    border: 1px solid #e8eef4;
    border-radius: 1.25rem;
    box-shadow: 0 10px 40px rgb(15 23 42 / 0.06);
    padding: 1.5rem 1.25rem 2rem;
}

@media (min-width: 768px) {
    .blog-article {
        padding: 2.25rem 2.5rem 2.75rem;
    }
}

.blog-article__header {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eef2f7;
}

.blog-article__back {
    display: flex;
    justify-content: center;
    margin-top: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid #eef2f7;
}

.blog-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 14rem;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    background: hsl(var(--primary-btn));
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 8px 20px hsl(var(--primary) / 0.28);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.blog-back-btn:hover {
    color: #fff;
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px hsl(var(--primary) / 0.35);
}

.blog-article h1 {
    color: #0f172a;
}

.blog-article__meta {
    color: #64748b;
}

.blog-article__cover {
    display: block;
    background: #fff;
    overflow: visible;
    max-height: none;
}

.blog-article__cover-img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 auto;
    object-fit: contain !important;
    object-position: center;
    border: 0;
    border-radius: 10px;
}

.blog-article__content {
    background: #fff;
    color: #1e293b;
}

.blog-article__content .blog-article-body,
.blog-article__content .blog-article-body h2,
.blog-article__content .blog-article-body h3,
.blog-article__content .blog-article-body h4 {
    color: #1e293b;
}

.blog-article__lead p {
    margin: 0;
}

.admin-callout {
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 1rem;
    border-right: 4px solid transparent;
    background: #f8fafc;
    color: #334155;
    line-height: 1.8;
}

.admin-callout-info {
    background: #eff6ff;
    border-right-color: #3b82f6;
    color: #1e40af;
}

.admin-callout p:last-child,
.admin-callout-info p:last-child {
    margin-bottom: 0;
}

.blog-article-body {
    overflow: visible !important;
    max-height: none !important;
    font-size: 1rem;
    line-height: 1.9;
    word-break: break-word;
}

.blog-article-body p,
.blog-article-body div,
.blog-article-body span,
.blog-article-body section,
.blog-article-body article,
.blog-article-body table,
.blog-article-body td,
.blog-article-body li {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    white-space: normal !important;
}

.blog-article-body p + p {
    margin-top: 1rem;
}

.blog-article-body h2,
.blog-article-body h3,
.blog-article-body h4 {
    color: hsl(var(--text));
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.blog-article-body ul,
.blog-article-body ol {
    margin: 1rem 0;
    padding-right: 1.25rem;
    list-style-position: inside;
}

.blog-article-body ul {
    list-style-type: disc;
}

.blog-article-body ol {
    list-style-type: decimal;
}

.blog-article-body a {
    color: hsl(var(--primary));
    text-decoration: underline;
}

.blog-article-body img,
.blog-article-body figure,
.blog-article-body video,
.blog-article-body iframe {
    display: block;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 1.25rem auto;
    border-radius: 10px;
    object-fit: contain !important;
}

.blog-article-body table {
    width: 100%;
    display: block;
    overflow-x: auto;
}

/* FAQ categories */
.faq-search {
    position: relative;
}

.faq-search__icon {
    position: absolute;
    top: 50%;
    right: 1rem;
    display: flex;
    color: hsl(var(--text) / 0.45);
    transform: translateY(-50%);
    pointer-events: none;
}

.faq-search__input {
    width: 100%;
    border: 1px solid hsl(var(--border));
    border-radius: 0.9rem;
    background: hsl(var(--muted));
    color: hsl(var(--text));
    padding: 0.8rem 2.75rem 0.8rem 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-search__input:focus {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
}

.faq-category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
}

@media (min-width: 640px) {
    .faq-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .faq-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.faq-category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    min-height: 10.5rem;
    padding: 1.15rem 1.2rem 1.1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    background: hsl(var(--muted));
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.faq-category-card:hover {
    border-color: hsl(var(--primary) / 0.45);
    box-shadow: 0 8px 24px rgb(15 23 42 / 0.06);
    transform: translateY(-2px);
}

.faq-category-card.is-active {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.08);
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12);
}

.faq-category-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.35rem;
    border-radius: 0.85rem;
    background: hsl(var(--primary) / 0.12);
    color: hsl(var(--primary));
}

.faq-category-card.is-active .faq-category-card__icon {
    background: hsl(var(--primary));
    color: #fff;
}

.faq-category-card__title {
    font-size: 0.98rem;
    font-weight: 700;
    color: hsl(var(--text));
    line-height: 1.6;
}

.faq-category-card__desc {
    font-size: 0.8rem;
    line-height: 1.75;
    color: hsl(var(--text) / 0.6);
}

.faq-category-card__count {
    margin-top: auto;
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--primary));
}

/* ===== Profile dashboard shell ===== */
.profile-shell {
    --profile-surface: hsl(var(--muted));
    --profile-ink: hsl(var(--text));
    --profile-muted: hsl(var(--text) / 0.58);
    --profile-line: hsl(var(--border));
    --profile-accent: hsl(var(--primary));
    --profile-accent-soft: hsl(var(--primary) / 0.12);
    --profile-accent-softer: hsl(var(--primary) / 0.06);
}

.profile-shell.container:not(.grid) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
    padding-block: 2rem;
}

@media (min-width: 1024px) {
    .profile-shell.container:not(.grid) {
        grid-template-columns: minmax(240px, 17rem) minmax(0, 1fr);
        gap: 1.25rem;
    }
}

.profile-shell.container > aside,
.profile-sidebar {
    align-self: start;
    min-width: 0;
}

@media (min-width: 1024px) {
    .profile-shell.container > aside,
    .profile-sidebar {
        position: sticky;
        top: calc(var(--site-header-offset, 106px) + 0.75rem);
    }
}

.profile-shell.container > main,
.profile-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-main--compact {
    gap: 1rem;
}

.profile-sidebar-card,
.profile-nav,
.profile-panel,
.profile-kpi,
.profile-quick-link,
.profile-order-row {
    background: var(--profile-surface);
    border: 1px solid var(--profile-line);
    box-shadow: 0 10px 28px rgb(15 23 42 / 0.04);
}

.profile-sidebar-card {
    overflow: hidden;
    border-radius: 1.25rem;
    margin-bottom: 1rem;
}

.profile-sidebar-card__head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 1.1rem 1.25rem;
    background:
        radial-gradient(120% 100% at 100% 0%, hsl(var(--primary) / 0.22), transparent 55%),
        linear-gradient(135deg, hsl(var(--primary) / 0.14), transparent 62%);
}

.profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 999px;
    background: hsl(var(--primary));
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    box-shadow: 0 8px 18px hsl(var(--primary) / 0.35);
    flex-shrink: 0;
}

.profile-sidebar-card__meta {
    min-width: 0;
}

.profile-sidebar-card__meta strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--profile-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-sidebar-card__meta span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    color: var(--profile-muted);
    direction: ltr;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-nav {
    border-radius: 1.25rem;
    padding: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.profile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 0.85rem;
    border-radius: 0.95rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: hsl(var(--text) / 0.72);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.profile-nav-link:hover {
    background: var(--profile-accent-softer);
    color: var(--profile-ink);
    text-decoration: none;
}

.profile-nav-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 0.75rem;
    background: hsl(var(--background));
    color: hsl(var(--text) / 0.7);
    flex-shrink: 0;
    transition: background 0.18s ease, color 0.18s ease;
}

.profile-nav-link.is-active {
    background: hsl(var(--primary));
    color: #fff;
    box-shadow: 0 10px 22px hsl(var(--primary) / 0.28);
}

.profile-nav-link.is-active:hover {
    background: hsl(var(--primary-btn));
    color: #fff;
}

.profile-nav-link.is-active .profile-nav-link__icon {
    background: rgb(255 255 255 / 0.2);
    color: #fff;
}

.profile-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.35rem;
    padding: 1.5rem 1.4rem;
    background:
        radial-gradient(90% 120% at 0% 0%, hsl(var(--primary) / 0.2), transparent 50%),
        radial-gradient(70% 90% at 100% 100%, hsl(160 70% 45% / 0.1), transparent 45%),
        var(--profile-surface);
    border: 1px solid var(--profile-line);
    box-shadow: 0 14px 34px rgb(15 23 42 / 0.05);
}

.profile-hero__eyebrow {
    margin: 0 0 0.35rem;
    color: var(--profile-accent);
    font-size: 0.84rem;
    font-weight: 700;
}

.profile-hero h1 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 800;
    color: var(--profile-ink);
    line-height: 1.45;
}

.profile-hero p {
    margin: 0.55rem 0 0;
    max-width: 36rem;
    color: var(--profile-muted);
    font-size: 0.92rem;
    line-height: 1.85;
}

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

@media (min-width: 640px) {
    .profile-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.profile-kpi {
    border-radius: 1.2rem;
    padding: 1.15rem 1.15rem 1.2rem;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-kpi:hover {
    transform: translateY(-2px);
    border-color: hsl(var(--primary) / 0.28);
    box-shadow: 0 14px 30px rgb(15 23 42 / 0.07);
}

.profile-kpi__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.profile-kpi__label {
    margin: 0;
    font-size: 0.84rem;
    color: var(--profile-muted);
    font-weight: 600;
}

.profile-kpi__value {
    margin: 0.55rem 0 0;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.profile-kpi__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 0.95rem;
    flex-shrink: 0;
}

.profile-kpi--orders .profile-kpi__value,
.profile-kpi--orders .profile-kpi__icon {
    color: hsl(var(--primary));
}
.profile-kpi--orders .profile-kpi__icon {
    background: hsl(var(--primary) / 0.12);
}

.profile-kpi--pending .profile-kpi__value,
.profile-kpi--pending .profile-kpi__icon {
    color: #0f766e;
}
.profile-kpi--pending .profile-kpi__icon {
    background: rgb(15 118 110 / 0.1);
}

.profile-kpi--favorites .profile-kpi__value,
.profile-kpi--favorites .profile-kpi__icon {
    color: #be123c;
}
.profile-kpi--favorites .profile-kpi__icon {
    background: rgb(190 18 60 / 0.1);
}

.dark .profile-kpi--pending .profile-kpi__value,
.dark .profile-kpi--pending .profile-kpi__icon {
    color: #5eead4;
}
.dark .profile-kpi--favorites .profile-kpi__value,
.dark .profile-kpi--favorites .profile-kpi__icon {
    color: #fb7185;
}

.profile-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .profile-quick-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.profile-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    border-radius: 1.15rem;
    padding: 1rem 0.75rem;
    text-align: center;
    text-decoration: none;
    color: var(--profile-ink);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.profile-quick-link:hover {
    transform: translateY(-2px);
    border-color: hsl(var(--primary) / 0.35);
    background: var(--profile-accent-softer);
    color: var(--profile-ink);
    text-decoration: none;
}

.profile-quick-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 0.9rem;
    background: hsl(var(--primary) / 0.12);
    color: hsl(var(--primary));
}

.profile-quick-link span:last-child {
    font-size: 0.86rem;
    font-weight: 700;
}

.profile-panel {
    border-radius: 1.25rem;
    padding: 1.25rem 1.2rem 1.35rem;
}

.profile-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.profile-panel__head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.profile-panel__head a {
    color: hsl(var(--primary));
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.profile-panel__head a:hover {
    text-decoration: underline;
}

.profile-order-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.profile-order-row {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    background: hsl(var(--background) / 0.55);
    transition: border-color 0.18s ease;
}

.profile-order-row:hover {
    border-color: hsl(var(--primary) / 0.28);
}

@media (min-width: 640px) {
    .profile-order-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.profile-order-row__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
}

.profile-order-row__meta strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.profile-order-row__meta .rounded-full {
    font-weight: 600;
}

.profile-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
}

.profile-status-badge--pending {
    background: #fffbeb;
    color: #92400e;
    border-color: #fcd34d;
}

.profile-status-badge--processing {
    background: #f0f9ff;
    color: #075985;
    border-color: #7dd3fc;
}

.profile-status-badge--success {
    background: #ecfdf5;
    color: #047857;
    border-color: #6ee7b7;
}

.profile-status-badge--danger {
    background: #fff1f2;
    color: #be123c;
    border-color: #fda4af;
}

.profile-status-badge--muted {
    background: hsl(var(--background));
    color: hsl(var(--text) / 0.72);
    border-color: hsl(var(--border));
}

.dark .profile-status-badge--pending {
    background: rgb(120 53 15 / 0.25);
    color: #fcd34d;
    border-color: rgb(180 83 9 / 0.55);
}

.dark .profile-status-badge--processing {
    background: rgb(12 74 110 / 0.28);
    color: #7dd3fc;
    border-color: rgb(3 105 161 / 0.55);
}

.dark .profile-status-badge--success {
    background: rgb(6 78 59 / 0.28);
    color: #6ee7b7;
    border-color: rgb(5 150 105 / 0.55);
}

.dark .profile-status-badge--danger {
    background: rgb(136 19 55 / 0.28);
    color: #fda4af;
    border-color: rgb(190 18 60 / 0.55);
}

.profile-order-row__date {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: var(--profile-muted);
}

.profile-order-row__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.profile-order-row__actions .amount {
    font-size: 0.9rem;
    font-weight: 800;
}

.profile-order-row__actions .amount small {
    font-weight: 500;
    color: var(--profile-muted);
}

.profile-order-row__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 0.7rem;
    padding: 0.45rem 0.8rem;
    background: hsl(var(--primary) / 0.12);
    color: hsl(var(--primary));
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.profile-order-row__btn:hover {
    background: hsl(var(--primary));
    color: #fff;
    text-decoration: none;
}

.profile-empty {
    padding: 2.5rem 1rem;
    text-align: center;
}

.profile-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 1.15rem;
    background: hsl(var(--primary) / 0.12);
    color: hsl(var(--primary));
}

.profile-order-cards {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.profile-order-card {
    border-radius: 1.1rem;
    padding: 1.1rem 1.15rem 1.15rem;
    background: hsl(var(--background) / 0.55);
    border: 1px solid var(--profile-line);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-order-card:hover {
    border-color: hsl(var(--primary) / 0.28);
    box-shadow: 0 8px 22px rgb(15 23 42 / 0.05);
}

.profile-order-card--awaiting-pay {
    border-color: #fcd34d;
    background:
        linear-gradient(135deg, rgb(255 251 235 / 0.85) 0%, hsl(var(--background) / 0.55) 52%);
}

.dark .profile-order-card--awaiting-pay {
    border-color: rgb(180 83 9 / 0.55);
    background:
        linear-gradient(135deg, rgb(120 53 15 / 0.22) 0%, hsl(var(--background) / 0.55) 52%);
}

.profile-order-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.profile-order-card__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    min-width: 0;
}

.profile-order-card__title strong {
    font-size: 1rem;
    font-weight: 800;
    color: var(--profile-ink);
}

.profile-order-card__amount {
    font-size: 0.98rem;
    font-weight: 800;
    color: hsl(var(--primary));
    white-space: nowrap;
}

.profile-order-card__amount small {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--profile-muted);
}

.profile-order-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    font-size: 0.82rem;
    color: var(--profile-muted);
    margin-bottom: 0.7rem;
}

.profile-order-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.profile-order-card__note {
    margin: 0 0 0.85rem;
    font-size: 0.84rem;
    line-height: 1.75;
    color: hsl(var(--text) / 0.72);
}

.profile-order-card__note--warn {
    color: #92400e;
}

.dark .profile-order-card__note--warn {
    color: #fcd34d;
}

.profile-order-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-order-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 0.75rem;
    padding: 0.55rem 0.95rem;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
}

.profile-order-card__btn--primary {
    background: hsl(var(--primary));
    color: #fff;
}

.profile-order-card__btn--primary:hover {
    background: hsl(var(--primary-btn));
    color: #fff;
    text-decoration: none;
}

.profile-order-card__btn--soft {
    background: hsl(var(--primary) / 0.12);
    color: hsl(var(--primary));
    border-color: hsl(var(--primary) / 0.22);
}

.profile-order-card__btn--soft:hover {
    background: hsl(var(--primary));
    color: #fff;
    text-decoration: none;
}

.profile-order-card__btn--danger {
    background: transparent;
    color: #be123c;
    border-color: #fda4af;
}

.profile-order-card__btn--danger:hover {
    background: #fff1f2;
    color: #be123c;
}

.dark .profile-order-card__btn--danger:hover {
    background: rgb(136 19 55 / 0.28);
}

/* Print article / news */
.article-print-only {
    display: none !important;
}

.article-print-toolbar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1.25rem;
}

.article-print-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.15rem;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--primary) / 0.3);
    background: hsl(var(--primary));
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.08);
}

.article-print-btn:hover {
    color: #fff;
    filter: brightness(0.95);
}

.blog-article__meta .article-print-btn,
.article-print-btn--icon {
    margin-inline-start: auto;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 999px;
    flex-shrink: 0;
}

.blog-related {
    margin-top: 2.75rem;
    padding-top: 2rem;
    border-top: 1px solid #eef2f7;
}

.blog-related__head {
    margin-bottom: 1.25rem;
}

.blog-related__head h2 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}

.blog-related__head p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.blog-related__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .blog-related__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.15rem;
    }
}

.blog-related-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8eef4;
    border-radius: 1.1rem;
    box-shadow: 0 8px 24px rgb(15 23 42 / 0.05);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-related-card:hover {
    transform: translateY(-3px);
    border-color: #dbe7f3;
    box-shadow: 0 14px 30px rgb(15 23 42 / 0.1);
    color: inherit;
    text-decoration: none;
}

.blog-related-card__media {
    background: #f8fafc;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blog-related-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-related-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem 1rem 1.1rem;
}

.blog-related-card__body h3 {
    margin: 0 0 0.5rem;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.6;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-related-card__body p {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    line-height: 1.8;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-related-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    margin-top: auto;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

.blog-related-card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

.article-print-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    line-height: 1;
}

.article-print-icon:hover {
    color: hsl(var(--primary));
}

@media print {
    @page {
        size: A4;
        margin: 14mm 16mm 22mm;
    }

    html,
    body.site-storefront,
    html.dark,
    html.dark body.site-storefront {
        background: #fff !important;
        color: #111 !important;
    }

    body.site-storefront {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    header,
    footer,
    .site-fab,
    .site-mobile-nav,
    .no-print,
    .noty_layout,
    [id^="noty_layout"] {
        display: none !important;
    }

    .flex.min-h-screen {
        display: block !important;
        min-height: 0 !important;
    }

    .site-main {
        padding: 0 !important;
        background: #fff !important;
        color: #111 !important;
    }

    .container {
        max-width: none !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
    }

    :root,
    .dark {
        --background: 0 0% 100%;
        --text: 222 47% 11%;
        --muted: 0 0% 100%;
        --border: 214 32% 91%;
    }

    .article-print-only {
        display: block !important;
    }

    .article-print-branding {
        text-align: center;
        margin: 0 0 1.5rem;
        page-break-after: avoid;
    }

    .article-print-logo {
        display: block;
        max-height: 56px !important;
        width: auto !important;
        max-width: 220px !important;
        margin: 0 auto 0.75rem;
        object-fit: contain;
    }

    .article-print-site-title {
        font-size: 1.35rem;
        font-weight: 800;
        color: #0f172a;
        margin: 0 0 0.5rem;
        line-height: 1.5;
    }

    .article-print-site-desc {
        max-width: 38rem;
        margin: 0 auto;
        font-size: 0.92rem;
        line-height: 1.85;
        color: #475569;
    }

    .article-print-site-desc p {
        margin: 0;
    }

    .article-print-rule {
        border: 0;
        height: 0;
        border-top: 2px solid #0f172a;
        margin: 1.15rem 0 0;
    }

    .article-print-root {
        max-width: none !important;
        margin: 0 !important;
        color: #111 !important;
    }

    .article-print-root h1 {
        font-size: 1.55rem !important;
        line-height: 1.55 !important;
        color: #0f172a !important;
        margin-bottom: 0.75rem !important;
        page-break-after: avoid;
    }

    .article-print-root header {
        display: block !important;
        margin-bottom: 1rem !important;
    }

    .blog-article__cover,
    .article-print-root figure {
        display: flex;
        justify-content: center;
        background: transparent !important;
        page-break-inside: avoid;
    }

    .article-author-avatar,
    .blog-article__meta img {
        width: 28px !important;
        height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        display: inline-block !important;
        vertical-align: middle;
        margin: 0 !important;
    }

    .blog-article__cover-img,
    .article-print-root figure > img {
        max-width: 100% !important;
        max-height: 9cm !important;
        width: auto !important;
        height: auto !important;
        margin-left: auto;
        margin-right: auto;
        border: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        break-inside: avoid;
        object-fit: contain !important;
    }

    .blog-article__content,
    .article-print-root .prose,
    .article-print-root .bg-background {
        background: #fff !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        color: #1e293b !important;
    }

    .admin-callout,
    .admin-callout-info {
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        border-right: 4px solid #2563eb !important;
        color: #1e293b !important;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }

    .blog-article-body,
    .article-print-root .prose {
        font-size: 11.5pt !important;
        line-height: 1.9 !important;
        color: #1e293b !important;
    }

    .blog-article-body img,
    .article-print-root .prose img {
        max-width: 100% !important;
        max-height: 8cm !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .article-print-watermark {
        position: fixed;
        inset: 0;
        display: flex !important;
        align-items: center;
        justify-content: center;
        pointer-events: none;
        z-index: 0;
        opacity: 0.09;
    }

    .article-print-watermark span {
        font-size: 42pt;
        font-weight: 800;
        color: #0f172a;
        transform: rotate(-32deg);
        white-space: nowrap;
        letter-spacing: 0.04em;
    }

    .article-print-page-footer {
        position: fixed;
        left: 16mm;
        right: 16mm;
        bottom: 6mm;
        text-align: center;
        font-size: 9pt;
        line-height: 1.5;
        color: #475569;
        border-top: 1px solid #cbd5e1;
        padding-top: 4mm;
        background: #fff;
        z-index: 2;
    }

    .article-print-root > *:not(.article-print-watermark):not(.article-print-page-footer) {
        position: relative;
        z-index: 1;
    }

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

    a[href]::after {
        content: none !important;
    }
}

