/* Nixstore Pro Design System - final visual layer */
:root {
    --nix-pro-bg: #080b10;
    --nix-pro-bg-2: #0b1018;
    --nix-pro-surface: #101620;
    --nix-pro-surface-2: #151d29;
    --nix-pro-surface-3: #0d121b;
    --nix-pro-border: rgba(255, 255, 255, 0.08);
    --nix-pro-border-strong: rgba(255, 255, 255, 0.12);
    --nix-pro-text: #eef3f8;
    --nix-pro-heading: #ffffff;
    --nix-pro-muted: #aeb8c6;
    --nix-pro-muted-2: #8290a3;
    --nix-pro-accent: #5ee0bd;
    --nix-pro-accent-ink: #06100e;
    --nix-pro-blue: #8da2ff;
    --nix-pro-danger: #ff6b6b;
    --nix-pro-warning: #f7c873;
    --nix-pro-radius-sm: 13px;
    --nix-pro-radius: 20px;
    --nix-pro-radius-lg: 28px;
    --nix-pro-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    --nix-pro-shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.18);
}

body:not(.wp-admin) {
    background:
        linear-gradient(180deg, rgba(10, 16, 24, 0.98) 0%, rgba(8, 11, 16, 1) 44%, rgba(9, 12, 18, 1) 100%) !important;
    color: var(--nix-pro-text) !important;
}

body:not(.wp-admin) h1,
body:not(.wp-admin) h2,
body:not(.wp-admin) h3,
body:not(.wp-admin) h4,
body:not(.wp-admin) h5,
body:not(.wp-admin) h6 {
    color: var(--nix-pro-heading) !important;
    letter-spacing: 0 !important;
}

body:not(.wp-admin) a {
    text-decoration: none;
}

.container {
    width: min(1220px, calc(100% - 32px));
}

.header,
.nix-header,
.site-header {
    border-bottom-color: var(--nix-pro-border) !important;
    background: rgba(8, 11, 16, 0.9) !important;
    color: var(--nix-pro-text) !important;
    backdrop-filter: blur(18px);
}

.header a,
.nix-header a,
.site-header a,
.main-navigation a,
.category-toggle,
.search-toggle,
.cart-toggle,
.account-toggle {
    color: var(--nix-pro-text) !important;
}

.search-toggle,
.cart-toggle,
.account-toggle,
.mobile-menu-toggle,
.category-toggle {
    border-color: var(--nix-pro-border) !important;
    background: rgba(255, 255, 255, 0.045) !important;
    border-radius: var(--nix-pro-radius-sm) !important;
}

.header-search-form,
.search-form,
.mobile-search-form,
.full-search-modal,
.category-dropdown,
.cart-dropdown-menu,
.mobile-menu,
.account-menu,
.dropdown-menu,
.mini-cart,
.cart-panel {
    border-color: var(--nix-pro-border) !important;
    background: var(--nix-pro-surface) !important;
    color: var(--nix-pro-text) !important;
    box-shadow: var(--nix-pro-shadow) !important;
}

input,
textarea,
select,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border-color: var(--nix-pro-border-strong) !important;
    background: var(--nix-pro-surface-3) !important;
    color: var(--nix-pro-text) !important;
    border-radius: var(--nix-pro-radius-sm) !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--nix-pro-muted-2) !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(94, 224, 189, 0.48) !important;
    box-shadow: 0 0 0 3px rgba(94, 224, 189, 0.14) !important;
    outline: 0 !important;
}

input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

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

button,
.button,
.btn,
.submit,
.single_add_to_cart_button,
.checkout-button,
.product-add-cart,
.wc-forward,
.woocommerce-button,
.woocommerce-Button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    border-radius: 14px !important;
    font-family: inherit;
}

.button,
.btn-primary,
.submit,
.single_add_to_cart_button,
.checkout-button,
.product-add-cart,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit,
.submit-order-btn,
.place-order-btn {
    border-color: rgba(94, 224, 189, 0.45) !important;
    background: var(--nix-pro-accent) !important;
    color: var(--nix-pro-accent-ink) !important;
    box-shadow: 0 14px 32px rgba(94, 224, 189, 0.18) !important;
    font-weight: 900 !important;
}

.card,
.post-card,
.product-card,
.nix-product-card,
.home-product-card,
.blog-card,
.archive-card,
.woocommerce form,
.woocommerce-MyAccount-content,
.woocommerce-MyAccount-navigation,
.modal-content,
.popup-content,
.comment-body,
.comment_container,
.review,
.widget,
.sidebar-widget,
.footer-widget,
.account-card,
.cart-container,
.cart-items-section,
.cart-summary,
.checkout-form-section,
.modern-checkout-card,
.order-summary-card,
.blog-hero,
.blog-post-card,
.archive-hero,
.archive-post-card,
.post-container,
.post-content,
.comments-area,
.comment-respond,
.product-main,
.product-gallery,
.product-info,
.product-summary,
.product-tabs,
.product-reviews-panel,
.woocommerce-Reviews,
#review_form_wrapper,
.partner-hero,
.partner-form-card,
.login-card,
.error-hero,
.error-search,
.error-categories {
    border: 1px solid var(--nix-pro-border) !important;
    border-radius: var(--nix-pro-radius) !important;
    background: var(--nix-pro-surface) !important;
    color: var(--nix-pro-text) !important;
    box-shadow: var(--nix-pro-shadow-soft) !important;
}

.product-card,
.nix-product-card,
.home-product-card,
.blog-card,
.archive-card,
.blog-post-card,
.archive-post-card {
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover,
.nix-product-card:hover,
.home-product-card:hover,
.blog-card:hover,
.archive-card:hover,
.blog-post-card:hover,
.archive-post-card:hover {
    transform: translateY(-3px);
    border-color: rgba(94, 224, 189, 0.28) !important;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28) !important;
}

.product-image,
.product-card-image,
.post-thumbnail,
.cart-item__media,
.product-gallery,
.main-product-image,
.woocommerce-product-gallery__image,
.home-product-card__image,
.nix-product-card__image {
    background: var(--nix-pro-surface-2) !important;
}

.price,
.amount,
.nix-card-price,
.product-price,
.woocommerce-Price-amount,
.shipping-cost {
    color: var(--nix-pro-accent) !important;
    font-weight: 950 !important;
}

.badge,
.onsale,
.sale-badge,
.discount-badge {
    border-radius: 999px !important;
    background: var(--nix-pro-danger) !important;
    color: #fff !important;
}

.section-header,
.home-section__head,
.archive-header,
.page-header,
.section-title,
.product-section-title,
.product-title,
.woocommerce-Reviews-title,
.comment-reply-title,
.cart-title,
.modern-checkout-card h2,
.modern-checkout-card h3,
.account-title,
.blog-hero h1,
.archive-hero h1,
.post-title,
.partner-hero h1 {
    color: var(--nix-pro-heading) !important;
}

.section-header span,
.archive-header p,
.page-header p,
.subtitle,
.description,
.meta,
.woocommerce-result-count,
.woocommerce-review__published-date,
.product-short-description,
.woocommerce-product-details__short-description,
.comment-notes,
.payment-desc,
.cart-item-meta,
.post-meta,
.blog-hero p,
.archive-hero p,
.partner-hero p {
    color: var(--nix-pro-muted) !important;
}

.archive-header,
.blog-hero,
.archive-hero,
.partner-hero,
.error-hero {
    border-radius: var(--nix-pro-radius-lg) !important;
    background:
        linear-gradient(135deg, rgba(94, 224, 189, 0.12), rgba(141, 162, 255, 0.1)),
        var(--nix-pro-surface) !important;
}

.archive-products,
.single-product-page,
.product-page,
.cart-page,
.modern-checkout-page,
.one-page-checkout,
.account-page,
.woocommerce-account,
.blog-page,
.blog-archive,
.single-post,
.single-post-page,
.archive-page,
.post-archive,
.login-page,
.nix-login-page,
.partner-page,
.error-404 {
    background: var(--nix-pro-bg) !important;
    color: var(--nix-pro-text) !important;
}

.products-sidebar,
.archive-toolbar,
.filter-section,
.woocommerce-pagination,
.woocommerce-ordering select,
.filter-toggle-btn,
.filter-reset,
.sidebar-close,
.account-sidebar,
.account-content,
.order-modal-content,
.order-modal-address,
.shipping-method-item,
.payment-method-item,
.cart-item,
.checkout-cart-item,
.order-review-item {
    border-color: var(--nix-pro-border) !important;
    border-radius: var(--nix-pro-radius) !important;
    background: var(--nix-pro-surface) !important;
    color: var(--nix-pro-text) !important;
    box-shadow: var(--nix-pro-shadow-soft) !important;
}

.shipping-method-item.is-checked,
.payment-method-item.is-checked,
.filter-option:has(input:checked),
.account-menu a.is-active,
.woocommerce-MyAccount-navigation .is-active a {
    border-color: rgba(94, 224, 189, 0.45) !important;
    background: rgba(94, 224, 189, 0.12) !important;
    color: var(--nix-pro-accent) !important;
}

.woocommerce-pagination a,
.woocommerce-pagination span,
.page-numbers a,
.page-numbers span,
.nix-product-slider-btn {
    border-color: var(--nix-pro-border-strong) !important;
    border-radius: var(--nix-pro-radius-sm) !important;
    background: var(--nix-pro-surface-2) !important;
    color: var(--nix-pro-text) !important;
    box-shadow: var(--nix-pro-shadow-soft) !important;
}

.woocommerce-pagination .current,
.page-numbers .current,
.nix-product-slider-btn:hover {
    border-color: rgba(94, 224, 189, 0.42) !important;
    background: rgba(94, 224, 189, 0.12) !important;
    color: var(--nix-pro-accent) !important;
}

.nix-product-slider-pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.36) !important;
}

.nix-product-slider-pagination .swiper-pagination-bullet-active {
    background: var(--nix-pro-accent) !important;
}

.stars a::before,
.star-rating::before,
.star-rating span::before {
    color: var(--nix-pro-warning) !important;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.notice,
.alert {
    border-color: var(--nix-pro-border) !important;
    border-radius: var(--nix-pro-radius-sm) !important;
    background: var(--nix-pro-surface) !important;
    color: var(--nix-pro-text) !important;
    box-shadow: var(--nix-pro-shadow-soft) !important;
}

.woocommerce-message {
    border-right-color: var(--nix-pro-accent) !important;
}

.woocommerce-info {
    border-right-color: var(--nix-pro-blue) !important;
}

.woocommerce-error {
    border-right-color: var(--nix-pro-danger) !important;
}

.footer,
.site-footer,
.nix-footer {
    border-top-color: var(--nix-pro-border) !important;
    background: #070a0f !important;
    color: var(--nix-pro-text) !important;
}

.footer a,
.site-footer a,
.nix-footer a {
    color: var(--nix-pro-muted) !important;
}

.footer a:hover,
.site-footer a:hover,
.nix-footer a:hover {
    color: var(--nix-pro-accent) !important;
}

.nix-floating-phone {
    left: max(16px, env(safe-area-inset-left)) !important;
    right: auto !important;
    bottom: max(18px, env(safe-area-inset-bottom)) !important;
    border: 1px solid var(--nix-pro-border-strong) !important;
    border-radius: 16px !important;
    background: rgba(16, 22, 32, 0.94) !important;
    box-shadow: var(--nix-pro-shadow-soft) !important;
}

.nix-floating-phone__link {
    border-radius: 12px !important;
    background: rgba(94, 224, 189, 0.12) !important;
    color: #d8fff1 !important;
}

.nix-floating-phone__toggle {
    border: 1px solid rgba(94, 224, 189, 0.28) !important;
    border-radius: 12px !important;
    background: var(--nix-pro-accent) !important;
    color: var(--nix-pro-accent-ink) !important;
    box-shadow: none !important;
}

.nix-floating-phone__toggle:hover {
    background: #78edcc !important;
}

.home-pro .home-pro-product__cart.product-add-cart,
.home-pro .home-pro-product__cart {
    width: 100% !important;
    min-height: 50px !important;
    margin: auto 0 0 !important;
    border: 0 !important;
    border-top: 1px solid rgba(94, 224, 189, 0.22) !important;
    border-radius: 0 !important;
    background: rgba(94, 224, 189, 0.12) !important;
    color: #d8fff1 !important;
    box-shadow: none !important;
}

.home-pro .home-pro-product__cart:hover {
    background: var(--nix-pro-accent) !important;
    color: var(--nix-pro-accent-ink) !important;
    transform: none !important;
}

.full-search-overlay {
    inset: 0 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px !important;
    background: rgba(3, 6, 11, 0.82) !important;
    backdrop-filter: blur(22px);
}

.full-search-overlay.active {
    display: flex !important;
}

.full-search-container {
    position: relative !important;
    width: min(760px, 100%) !important;
    max-width: 760px !important;
    padding: clamp(24px, 5vw, 48px) !important;
    border: 1px solid var(--nix-pro-border) !important;
    border-radius: var(--nix-pro-radius-lg) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
        var(--nix-pro-surface) !important;
    color: var(--nix-pro-text) !important;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46) !important;
}

.full-search-container::before {
    content: "جستجوی سریع";
    display: block;
    margin-bottom: 14px;
    color: var(--nix-pro-accent);
    font-size: 13px;
    font-weight: 950;
}

.full-search-container::after {
    content: "نام محصول، دسته‌بندی یا مقاله را وارد کنید.";
    display: block;
    margin-top: 14px;
    color: var(--nix-pro-muted);
    font-size: 13px;
    line-height: 1.9;
}

.full-search-close {
    top: 16px !important;
    left: 16px !important;
    display: grid !important;
    width: 42px !important;
    height: 42px !important;
    place-items: center !important;
    border: 1px solid var(--nix-pro-border-strong) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.055) !important;
    color: var(--nix-pro-text) !important;
}

.full-search-close:hover {
    border-color: rgba(255, 107, 107, 0.4) !important;
    background: rgba(255, 107, 107, 0.14) !important;
    color: #ffabab !important;
}

.full-search-container form {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 54px !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 8px !important;
    border: 1px solid var(--nix-pro-border-strong) !important;
    border-radius: 18px !important;
    background: var(--nix-pro-surface-3) !important;
}

#fullSearchInput {
    min-height: 54px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: var(--nix-pro-text) !important;
    font-size: clamp(1rem, 2.6vw, 1.3rem) !important;
    font-weight: 800;
    text-align: right !important;
    box-shadow: none !important;
}

#fullSearchInput::placeholder {
    color: var(--nix-pro-muted-2) !important;
    font-size: 0.95rem !important;
}

.full-search-container button[type="submit"] {
    position: static !important;
    width: 54px !important;
    min-height: 54px !important;
    transform: none !important;
    border: 1px solid rgba(94, 224, 189, 0.45) !important;
    border-radius: 14px !important;
    background: var(--nix-pro-accent) !important;
    color: var(--nix-pro-accent-ink) !important;
    box-shadow: 0 14px 32px rgba(94, 224, 189, 0.16) !important;
}

.search-suggestions {
    display: grid;
    gap: 10px;
    margin-top: 16px !important;
    text-align: right !important;
}

.search-suggestions:empty {
    display: none;
}

.search-suggestions a,
.search-suggestions .suggestion-item,
.search-suggestions li {
    border: 1px solid var(--nix-pro-border) !important;
    border-radius: 16px !important;
    background: var(--nix-pro-surface-3) !important;
    color: var(--nix-pro-text) !important;
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 24px, 1220px);
    }

    .card,
    .post-card,
    .product-card,
    .nix-product-card,
    .home-product-card,
    .blog-card,
    .archive-card,
    .woocommerce form,
    .woocommerce-MyAccount-content,
    .woocommerce-MyAccount-navigation,
    .cart-container,
    .modern-checkout-card,
    .product-main,
    .product-gallery,
    .product-info,
    .product-summary {
        border-radius: 18px !important;
    }
}

@media (max-width: 560px) {
    .full-search-container {
        padding: 56px 16px 22px !important;
        border-radius: 22px !important;
    }

    .full-search-container form {
        grid-template-columns: 1fr !important;
    }

    .full-search-container button[type="submit"] {
        width: 100% !important;
    }
}

@media (max-width: 640px) {
    .nix-floating-phone {
        left: max(10px, env(safe-area-inset-left)) !important;
        right: auto !important;
        bottom: max(10px, env(safe-area-inset-bottom)) !important;
        gap: 6px !important;
        padding: 6px !important;
        border-radius: 14px !important;
    }

    .nix-floating-phone__link {
        min-height: 36px !important;
        padding: 0 9px !important;
        font-size: 0.78rem !important;
    }

    .nix-floating-phone__toggle {
        width: 36px !important;
        height: 36px !important;
        border-radius: 11px !important;
    }

    .nix-floating-phone.is-collapsed {
        grid-template-columns: 36px !important;
        padding: 6px !important;
    }
}
