/*
Theme Name: NASHAN Premium
Theme URI: https://nashan.net
Author: NASHAN
Author URI: https://nashan.net
Description: A premium responsive WordPress theme for web development, digital marketing, graphic design, and e‑commerce. Features dark/light mode, customizable colors, login/register modal, and WooCommerce support.
Version: 1.1.3
License: GPL v2 or later
Text Domain: nashan
*/

/* ============================================
   THEME VARIABLES — CUSTOMIZABLE VIA CUSTOMIZER
   ============================================ */
:root {
    /* Primary Colors */
    --primary: #ff6b6b;
    --primary-hover: #ee5a5a;
    --primary-light: #ff9f9f;
    --primary-rgb: 255, 107, 107;

    /* Accent Colors */
    --accent: #4ecdc4;
    --accent-hover: #3dbdb5;
    --accent-light: #7eddd6;
    --accent-rgb: 78, 205, 196;

    /* Success/Warning/Danger */
    --success: #2ecc71;
    --success-rgb: 46, 204, 113;
    --warning: #f39c12;
    --warning-rgb: 243, 156, 18;
    --danger: #e74c3c;
    --danger-rgb: 231, 76, 60;

    /* Dark Mode Backgrounds */
    --bg-body: #0b0f1a;
    --bg-surface: #151a2a;
    --bg-card: #1b2132;
    --bg-hero: radial-gradient(ellipse at 70% 20%, #1a1f33 0%, #0b0f1a 70%);
    --bg-footer: #080b12;
    --bg-input: #1e2436;

    /* Dark Mode Text */
    --text-primary: #f0f2f5;
    --text-secondary: #b0b8c5;
    --text-muted: #7a8494;
    --text-inverse: #ffffff;
    --text-on-hero: #ffffff;

    /* Borders & Shadows */
    --border-color: #2a3145;
    --border-light: #1e2536;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.4);
    --shadow-lg: 0 25px 60px rgba(0,0,0,0.5);
    --shadow-primary: 0 8px 30px rgba(255,107,107,0.25);
    --shadow-accent: 0 8px 30px rgba(78,205,196,0.25);

    /* Navbar */
    --nav-bg: rgba(11,15,26,0.85);
    --nav-border: #2a3145;
    --nav-text: #f0f2f5;
    --nav-active: #ff6b6b;

    /* Cards */
    --card-border: #2a3145;
    --card-hover-border: #ff6b6b;
    --card-hover-transform: translateY(-8px);

    /* Buttons */
    --btn-radius: 14px;
    --btn-padding: 14px 32px;
    --btn-font-weight: 600;
    --btn-font-size: 1rem;

    /* Typography */
    --font-family: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;

    /* Layout */
    --container-max: 1200px;
    --section-padding: 100px 0;
    --nx-nav-h: 76px;
    --border-radius-md: 18px;
    --border-radius-lg: 26px;
    --grid-gap: 30px;

    /* Misc */
    --icon-bg: rgba(255,107,107,0.15);
    --icon-color: #ff6b6b;
    --price-color: #ff6b6b;
    --rating-color: #f39c12;
    --cart-badge-bg: #ff6b6b;
    --footer-text: #8a94a6;
    --footer-link: #8a94a6;
    --footer-link-hover: #ffffff;
    --footer-border: rgba(255,255,255,0.1);
    --input-border: #2a3145;
    --input-focus-border: #ff6b6b;
    --input-bg: #1e2436;
    --input-text: #f0f2f5;
    --input-placeholder: #6b7280;
    --label-color: #b0b8c5;
}

/* Light Mode Overrides */
[data-theme="light"] {
    --bg-body: #f8f9fc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-hero: radial-gradient(ellipse at 70% 20%, #eef0f5 0%, #f8f9fc 70%);
    --bg-footer: #1a1f2e;
    --bg-input: #f1f2f6;

    --text-primary: #1a1f2e;
    --text-secondary: #4b5563;
    --text-muted: #7a8494;
    --text-on-hero: #1a1f2e;

    --border-color: #e8eaf0;
    --border-light: #f0f2f5;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
    --shadow-primary: 0 8px 30px rgba(255,107,107,0.2);
    --shadow-accent: 0 8px 30px rgba(78,205,196,0.2);

    --nav-bg: rgba(255,255,255,0.9);
    --nav-border: #e8eaf0;
    --nav-text: #1a1f2e;
    --nav-active: #ff6b6b;

    --card-border: #e8eaf0;
    --card-hover-border: #ff6b6b;

    --input-border: #d0d5dd;
    --input-focus-border: #ff6b6b;
    --input-bg: #ffffff;
    --input-text: #1a1f2e;
    --input-placeholder: #9ca3af;
    --label-color: #4b5563;

    --icon-bg: rgba(255,107,107,0.1);
    --icon-color: #ff6b6b;
    --price-old-color: #9ca3af;
}

/* ============================================
   BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background-color 0.6s, color 0.6s;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    transition: all 0.3s;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    transition: all 0.3s;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--text-primary);
    font-weight: 700;
    transition: color 0.6s;
}

h1 { font-size: 3.5rem; letter-spacing: -0.5px; }
h2 { font-size: 2.5rem; letter-spacing: -0.5px; margin-bottom: 12px; }
h3 { font-size: 1.5rem; letter-spacing: -0.3px; }
h4 { font-size: 1.125rem; }

p {
    color: var(--text-secondary);
    transition: color 0.6s;
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* ============================================
   PAGE WRAPPER (offsets fixed navbar height so
   content on page.php / single.php / index.php /
   page-login.php isn't hidden underneath it)
   ============================================ */
.page-wrap {
    padding: 116px 0 60px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nav-border);
    transition: all 0.3s;
    height: var(--nx-nav-h);
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    height: calc(var(--nx-nav-h) - 8px);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: -0.5px;
    color: var(--nav-text);
    display: flex;
    align-items: center;
    gap: 4px;
}

.brand-dot { color: var(--primary); }
.brand-accent { color: var(--accent); }

.navbar-links {
    display: flex;
    align-items: center;
}

/* ---------- NASHAN menu system (primary + mobile) ---------- */
.nx-menu,
.nx-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nx-menu li { position: relative; margin: 0; }
.nx-menu a { text-decoration: none; }

/* ===== Desktop primary menu ===== */
.nx-menu-primary {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nx-menu-primary > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 11px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--nav-text);
    isolation: isolate;
    transition: color 0.25s;
}

/* soft gradient pill that blooms in behind the label */
.nx-menu-primary > li > a::before {
    content: '';
    position: absolute;
    inset: 4px 4px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.18), rgba(var(--accent-rgb), 0.18));
    opacity: 0;
    transform: scale(0.82);
    transition: opacity 0.3s, transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3);
    z-index: -1;
}

/* gradient underline that grows from the centre */
.nx-menu-primary > li > a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 0;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: translateX(-50%);
    transition: width 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.nx-menu-primary > li:hover > a,
.nx-menu-primary > li:focus-within > a,
.nx-menu-primary > li.current-menu-item > a,
.nx-menu-primary > li.current-menu-ancestor > a {
    color: var(--nav-active);
}
.nx-menu-primary > li:hover > a::before,
.nx-menu-primary > li:focus-within > a::before,
.nx-menu-primary > li.current-menu-item > a::before,
.nx-menu-primary > li.current-menu-ancestor > a::before {
    opacity: 1;
    transform: scale(1);
}
.nx-menu-primary > li:hover > a::after,
.nx-menu-primary > li:focus-within > a::after,
.nx-menu-primary > li.current-menu-item > a::after,
.nx-menu-primary > li.current-menu-ancestor > a::after {
    width: 22px;
}

/* chevron on parents */
.nx-menu-primary > li.menu-item-has-children > a > .nx-label::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.3s;
}
.nx-menu-primary > li.menu-item-has-children:hover > a > .nx-label::after,
.nx-menu-primary > li.menu-item-has-children:focus-within > a > .nx-label::after {
    transform: rotate(225deg) translateY(-1px);
}

/* invisible hover bridge so the panel doesn't close while moving the mouse */
.nx-menu-primary > li.menu-item-has-children::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 18px;
}

.nx-menu-primary .nx-sub-toggle { display: none; }

/* ===== Dropdown panel ===== */
.nx-menu-primary .nx-sub {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 250px;
    padding: 12px 10px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.96);
    transform-origin: 28px top;
    transition: opacity 0.25s, transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2), visibility 0s linear 0.35s;
    z-index: 1100;
}

/* gradient top edge */
.nx-menu-primary .nx-sub::after {
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* notch */
.nx-menu-primary > li > .nx-sub::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 26px;
    width: 12px;
    height: 12px;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    transform: rotate(45deg);
}

.nx-menu-primary li:hover > .nx-sub,
.nx-menu-primary li:focus-within > .nx-sub {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}

/* items stagger in */
.nx-menu-primary .nx-sub > li {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s;
}
.nx-menu-primary li:hover > .nx-sub > li,
.nx-menu-primary li:focus-within > .nx-sub > li {
    opacity: 1;
    transform: none;
}
.nx-menu-primary .nx-sub > li:nth-child(1) { transition-delay: 0.04s; }
.nx-menu-primary .nx-sub > li:nth-child(2) { transition-delay: 0.08s; }
.nx-menu-primary .nx-sub > li:nth-child(3) { transition-delay: 0.12s; }
.nx-menu-primary .nx-sub > li:nth-child(4) { transition-delay: 0.16s; }
.nx-menu-primary .nx-sub > li:nth-child(5) { transition-delay: 0.20s; }
.nx-menu-primary .nx-sub > li:nth-child(n+6) { transition-delay: 0.24s; }

.nx-menu-primary .nx-sub a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    overflow: hidden;
    transition: color 0.25s, background 0.25s, padding 0.3s;
}

/* dot that morphs into a bar */
.nx-menu-primary .nx-sub a::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    transition: width 0.3s, border-radius 0.3s, background 0.3s;
}

/* arrow slides in */
.nx-menu-primary .nx-sub a::after {
    content: '→';
    margin-left: auto;
    opacity: 0;
    transform: translateX(-10px);
    color: var(--accent);
    transition: opacity 0.25s, transform 0.3s;
}

.nx-menu-primary .nx-sub a:hover,
.nx-menu-primary .nx-sub a:focus-visible,
.nx-menu-primary .nx-sub li.current-menu-item > a {
    color: var(--text-primary);
    padding-left: 18px;
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.14), rgba(var(--accent-rgb), 0.04) 70%, transparent);
}
.nx-menu-primary .nx-sub a:hover::before,
.nx-menu-primary .nx-sub a:focus-visible::before,
.nx-menu-primary .nx-sub li.current-menu-item > a::before {
    width: 18px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.nx-menu-primary .nx-sub a:hover::after,
.nx-menu-primary .nx-sub a:focus-visible::after {
    opacity: 1;
    transform: none;
}

/* 3rd level fly-out */
.nx-menu-primary .nx-sub .nx-sub {
    top: -12px;
    left: calc(100% + 10px);
    transform-origin: left top;
}
.nx-menu-primary .nx-sub .nx-sub::before { display: none; }
.nx-menu-primary .nx-sub .menu-item-has-children > a::after {
    content: '›';
    opacity: 0.6;
    transform: none;
    font-size: 1.1rem;
}
.nx-menu-primary .nx-sub .menu-item-has-children::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    width: 12px;
}

/* flipped when it would leave the viewport (set by main.js) */
.nx-menu-primary > li > .nx-sub.nx-flip { left: auto; right: 0; transform-origin: calc(100% - 28px) top; }
.nx-menu-primary > li > .nx-sub.nx-flip::before { left: auto; right: 26px; }
.nx-menu-primary .nx-sub .nx-sub.nx-flip { left: auto; right: calc(100% + 10px); transform-origin: right top; }

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Login / Register buttons */
.btn-login,
.btn-register {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-login {
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-login:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-register {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.btn-register:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* ============================================
   ACCOUNT MENU (shown instead of Login/Register
   once the user is logged in)
   ============================================ */
.navbar-account {
    position: relative;
}

.account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px 5px 5px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.account-btn:hover {
    border-color: var(--primary);
}

.account-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
}

.account-name {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
}

.account-wallet-amount {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
}

.account-wallet-icon {
    flex-shrink: 0;
}

.account-caret {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.3s;
    line-height: 1;
}

.navbar-account.open .account-caret {
    transform: rotate(180deg);
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 1500;
    max-width: calc(100vw - 24px);
}

.navbar-account.open .account-dropdown {
    display: flex;
    animation: fadeIn 0.2s;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(255,107,107,0.08);
    color: var(--primary);
}

.dropdown-item-danger:hover {
    background: rgba(231,76,60,0.1);
    color: #e74c3c;
}

.dropdown-icon {
    flex-shrink: 0;
}

/* Cart button (size / icon set in Customizer → Header Buttons) */
.cart-btn {
    position: relative;
    width: var(--nx-cart-size, 38px);
    height: var(--nx-cart-size, 38px);
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--nx-cart-icon, 18px);
    line-height: 1;
    color: var(--text-primary);
    transition: all 0.3s;
    flex-shrink: 0;
}

.cart-btn:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: scale(1.05);
}

.cart-btn .nx-ico,
.theme-toggle .nx-ico {
    display: block;
    object-fit: contain;
}
.cart-btn .nx-ico { width: var(--nx-cart-icon, 18px); height: var(--nx-cart-icon, 18px); }
.theme-toggle .nx-ico { width: var(--nx-toggle-icon, 20px); height: var(--nx-toggle-icon, 20px); }
.nx-ico-text { display: block; line-height: 1; }

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--cart-badge-bg);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Theme toggle */
.theme-toggle {
    position: relative;
    width: var(--nx-toggle-size, 38px);
    height: var(--nx-toggle-size, 38px);
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-primary);
    font-size: var(--nx-toggle-icon, 20px);
    line-height: 1;
    overflow: hidden;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: scale(1.05);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.theme-toggle .icon-sun { opacity: 0; transform: rotate(90deg) scale(0.5); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    min-width: 44px;
    min-height: 44px;
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background: var(--nav-text);
    border-radius: 4px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nx-nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    overscroll-behavior: contain;
    background: var(--bg-body);
    background-image:
        radial-gradient(circle at 90% 0%, rgba(var(--primary-rgb), 0.14), transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(var(--accent-rgb), 0.12), transparent 45%);
    z-index: 999;
    padding: 22px 20px calc(40px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
    display: block;
    animation: fadeIn 0.3s;
}

.nx-menu-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    counter-reset: nxm;
}

/* top-level cards */
.nx-menu-mobile > li {
    counter-increment: nxm;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px);
}
.mobile-menu.open .nx-menu-mobile > li {
    opacity: 1;
    transform: none;
    transition: opacity 0.4s, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
}
.mobile-menu.open .nx-menu-mobile > li:nth-child(1) { transition-delay: 0.04s; }
.mobile-menu.open .nx-menu-mobile > li:nth-child(2) { transition-delay: 0.09s; }
.mobile-menu.open .nx-menu-mobile > li:nth-child(3) { transition-delay: 0.14s; }
.mobile-menu.open .nx-menu-mobile > li:nth-child(4) { transition-delay: 0.19s; }
.mobile-menu.open .nx-menu-mobile > li:nth-child(5) { transition-delay: 0.24s; }
.mobile-menu.open .nx-menu-mobile > li:nth-child(6) { transition-delay: 0.29s; }
.mobile-menu.open .nx-menu-mobile > li:nth-child(n+7) { transition-delay: 0.34s; }

/* gradient edge that grows on hover / open / current */
.nx-menu-mobile > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.nx-menu-mobile > li:hover::before,
.nx-menu-mobile > li.nx-open::before,
.nx-menu-mobile > li.current-menu-item::before,
.nx-menu-mobile > li.current-menu-ancestor::before {
    transform: scaleY(1);
}
.nx-menu-mobile > li.nx-open,
.nx-menu-mobile > li:hover {
    border-color: rgba(var(--primary-rgb), 0.45);
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.12);
}

.nx-menu-mobile a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 64px 17px 22px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    border: 0;
    transition: color 0.25s, padding 0.3s, background 0.3s;
}

/* 01 / 02 / 03 counters */
.nx-menu-mobile > li > a::before {
    content: counter(nxm, decimal-leading-zero);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary);
    opacity: 0.85;
    min-width: 22px;
}

.nx-menu-mobile > li > a:hover,
.nx-menu-mobile > li.current-menu-item > a,
.nx-menu-mobile > li.current-menu-ancestor > a,
.nx-menu-mobile > li.nx-open > a {
    color: var(--primary);
    padding-left: 28px;
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.1), transparent 75%);
}

/* expand button */
.nx-menu-mobile .nx-sub-toggle {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nx-menu-mobile .nx-sub-toggle svg { transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
.nx-menu-mobile li.nx-open > .nx-sub-toggle {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: #fff;
}
.nx-menu-mobile li.nx-open > .nx-sub-toggle svg { transform: rotate(180deg); }

/* accordion sub menus */
.nx-menu-mobile .nx-sub {
    position: relative;
    max-height: 0;
    overflow: hidden;
    padding: 0 14px 0 40px;
    transition: max-height 0.4s ease;
}
.nx-menu-mobile .nx-sub::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 4px;
    bottom: 14px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    opacity: 0.45;
}
.nx-menu-mobile li.nx-open > .nx-sub { padding-bottom: 12px; }

.nx-menu-mobile .nx-sub li { position: relative; }
.nx-menu-mobile .nx-sub a {
    padding: 12px 52px 12px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 10px;
}
.nx-menu-mobile .nx-sub a::before {
    content: '';
    width: 8px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transition: width 0.3s;
}
.nx-menu-mobile .nx-sub a:hover,
.nx-menu-mobile .nx-sub li.current-menu-item > a {
    color: var(--primary);
    padding-left: 20px;
    background: rgba(var(--primary-rgb), 0.08);
}
.nx-menu-mobile .nx-sub a:hover::before { width: 18px; }
.nx-menu-mobile .nx-sub .nx-sub-toggle { top: 3px; right: 0; width: 34px; height: 34px; border-radius: 10px; }
.nx-menu-mobile .nx-sub .nx-sub { padding-left: 22px; }
.nx-menu-mobile .nx-sub .nx-sub::before { left: 8px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* WP admin bar offsets (also fixes Customizer preview overlap) */
.admin-bar .navbar { top: 32px; }
.admin-bar .mobile-menu { top: calc(32px + var(--nx-nav-h)); }
@media (max-width: 782px) {
    .admin-bar .navbar { top: 46px; }
    .admin-bar .mobile-menu { top: calc(46px + var(--nx-nav-h)); }
}

/* ============================================
   LOGIN/REGISTER MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    max-width: 400px;
    width: calc(100% - 32px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    font-size: 18px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(90deg);
}

/* Logo shown at the top of the login/register modal */
.modal-brand {
    text-align: center;
    margin-bottom: 20px;
}

.modal-brand a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.modal-brand img {
    max-height: 48px;
    width: auto;
}

.modal h2 {
    margin-bottom: 24px;
    font-size: 1.8rem;
    text-align: center;
}

.modal .form-group {
    margin-bottom: 20px;
}

.modal .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--label-color);
}

.modal .form-group input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1.5px solid var(--input-border);
    background: var(--input-bg);
    color: var(--input-text);
    outline: none;
    font-size: 0.95rem;
}

.modal .form-group input:focus {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 4px rgba(255,107,107,0.12);
}

/* Auth message */
.auth-message {
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.auth-message.success {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.auth-message.error {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Button loader */
.btn-loader {
    display: inline;
}

.modal .btn-primary {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.modal .modal-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.modal .modal-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-lost-password {
    margin-top: -10px;
    font-size: 0.85rem;
}

/* ============================================
   FULL-PAGE LOGIN TEMPLATE (page-login.php)
   ============================================ */
.auth-page-wrap .page-header {
    text-align: center;
    margin-bottom: 16px;
}

.auth-page-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 30px;
}

.auth-page {
    display: flex;
    justify-content: center;
}

.auth-page-card {
    width: 100%;
    max-width: 420px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: var(--btn-padding);
    border-radius: var(--btn-radius);
    font-weight: var(--btn-font-weight);
    font-size: var(--btn-font-size);
    letter-spacing: 0.3px;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255,107,107,0.4);
}

.btn-outline-light {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-outline-light:hover {
    background: var(--bg-surface);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-accent);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 680px;
    background: var(--bg-hero);
    display: flex;
    align-items: center;
    position: relative;
    padding: 140px 24px 100px;
    transition: background 0.6s;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-text { text-align: left; }

.hero-badge {
    display: inline-block;
    background: rgba(255,107,107,0.12);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(255,107,107,0.3);
}

.hero-text h1 {
    color: var(--text-on-hero);
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-text h1 .highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 500px;
    margin-bottom: 36px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero-shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(135deg, rgba(255,107,107,0.4), rgba(78,205,196,0.4));
    animation: morph 12s ease-in-out infinite;
}

.hero-shape-1 { width: 300px; height: 300px; top: 20px; right: 40px; }
.hero-shape-2 { width: 200px; height: 200px; bottom: 30px; left: 10px; animation-delay: -4s; }
.hero-shape-3 { width: 150px; height: 150px; top: 40%; left: 40%; background: rgba(255,255,255,0.15); animation-delay: -8s; }

.hero-float-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 20px 24px;
    box-shadow: var(--shadow-md);
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 6s ease-in-out infinite;
    z-index: 3;
}

.hero-float-card-1 { top: 30px; left: 0; }
.hero-float-card-2 { bottom: 110px; right: 130px; animation-delay: -3s; }
.hero-float-card-3 { top: 180px; right: 0; animation-delay: -3s; }

.hero-float-card .float-icon { font-size: 28px; }
.hero-float-card .float-text { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.hero-float-card .float-sub { font-size: 0.75rem; color: var(--text-muted); }

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: var(--section-padding);
    background: var(--bg-body);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 280px);
    grid-auto-rows: 280px;
    gap: var(--grid-gap);
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 30px;
    text-align: left;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
}

.service-card.large { grid-column: span 2; grid-row: span 2; }
.service-card.medium { grid-column: span 2; }

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--icon-bg);
    color: var(--icon-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s;
    margin-bottom: 16px;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
    transform: scale(1.1);
}

.service-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); }

.service-card .learn-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    transition: all 0.2s;
    margin-top: auto;
}

.service-card:hover .learn-more { letter-spacing: 0.5px; color: var(--accent); }

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    padding: var(--section-padding);
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 28px;
    border-radius: 18px;
    transition: all 0.3s;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.feature-item:hover {
    border-color: var(--card-hover-border);
    box-shadow: var(--shadow-sm);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    background: var(--icon-bg);
    color: var(--icon-color);
}

.feature-item h4 { margin-bottom: 6px; font-size: 1.1rem; font-family: var(--font-family); }
.feature-item p { font-size: 0.9rem; color: var(--text-muted); }

/* ============================================
   SHOP SECTION
   ============================================ */
.shop {
    padding: var(--section-padding);
    background: var(--bg-body);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
}

.product-image {
    position: relative;
    background: var(--bg-input);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    overflow: hidden;
}

.product-image .placeholder-icon { transition: all 0.3s; opacity: 0.7; }
.product-card:hover .placeholder-icon { opacity: 1; transform: scale(1.15) rotate(5deg); }

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-sale { background: var(--danger); color: #fff; }
.badge-new { background: var(--success); color: #fff; }

.product-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.product-wishlist:hover { color: var(--danger); border-color: var(--danger); transform: scale(1.1); }

.product-info { padding: 20px; }
.product-category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.product-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; color: var(--text-primary); }
.product-rating { color: var(--rating-color); font-size: 0.85rem; margin-bottom: 8px; letter-spacing: 2px; }
.product-rating span { color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0; }
.product-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price-current { font-weight: 700; font-size: 1.15rem; color: var(--price-color); }
.price-old { font-size: 0.85rem; color: var(--price-old-color); text-decoration: line-through; }

.add-to-cart {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    padding: var(--section-padding);
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 32px 28px;
    transition: all 0.3s;
}

.testimonial-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: var(--shadow-sm);
    transform: translateY(-4px);
}

.testimonial-quote { font-size: 40px; line-height: 1; color: var(--primary-light); font-family: var(--font-heading); margin-bottom: 12px; opacity: 0.5; }
.testimonial-text { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.testimonial-name { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.testimonial-role { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: var(--section-padding);
    background: var(--bg-body);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--icon-bg);
    color: var(--icon-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 26px;
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--label-color); }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1.5px solid var(--input-border);
    background: var(--input-bg);
    color: var(--input-text);
    outline: none;
    font-size: 0.95rem;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 4px rgba(255,107,107,0.12);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-footer);
    padding: 60px 0 24px;
    color: var(--footer-text);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-grid.has-about { grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); }
.footer-grid.footer-cols-1 { grid-template-columns: minmax(0, 1fr); }
.footer-grid.footer-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-grid.has-about.footer-cols-2 { grid-template-columns: 2fr 1fr; }
.footer-grid.footer-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer-grid.has-about.footer-cols-3 { grid-template-columns: 2fr 1fr 1fr; }
.footer-grid > * { min-width: 0; }

.footer h4 {
    color: var(--footer-heading);
    font-family: var(--font-family);
    font-size: 1rem;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer p { font-size: 0.9rem; color: var(--footer-text); overflow-wrap: anywhere; }

.footer-links a {
    display: block;
    padding: 6px 0;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
    color: var(--footer-link);
    transition: all 0.2s;
}

.footer-links a:hover { color: var(--footer-link-hover); padding-left: 6px; }

.footer-social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--footer-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--footer-text);
    transition: all 0.3s;
}
.footer-social a:hover { border-color: var(--primary); color: var(--primary-light); transform: translateY(-3px); }

.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--footer-text);
}
.footer-bottom a { color: var(--primary-light); }
.footer-bottom a:hover { color: #fff; }

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-primary);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 500;
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(255,107,107,0.4); }

/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
/* ============================================
   v1.1.1 additions
   ============================================ */
.hero-image {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 440px;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.contact-info-item a { color: var(--text-primary); font-weight: 500; }
.contact-info-item a:hover { color: var(--primary); }

@media (prefers-reduced-motion: reduce) {
    .nx-menu *, .nx-menu-mobile * { transition-duration: 0.01ms !important; animation: none !important; }
}

/* ============================================
   v1.1.2 — RESPONSIVE (tablet + phone)
   ============================================ */

/* ---------- shop grid: works with WooCommerce's own markup ---------- */
.shop-grid { display: block; }
.shop-grid .woocommerce { width: 100%; }
.shop-grid ul.products {
    display: grid;
    grid-template-columns: repeat(var(--shop-cols, 4), minmax(0, 1fr));
    gap: var(--grid-gap);
    list-style: none;
    margin: 0;
    padding: 0;
}
.shop-grid ul.products::before,
.shop-grid ul.products::after { display: none !important; }
.shop-grid ul.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 16px;
    transition: transform 0.3s, border-color 0.3s;
}
.shop-grid ul.products li.product:hover { transform: translateY(-4px); border-color: var(--primary); }
.shop-grid ul.products li.product img { width: 100%; border-radius: 12px; margin: 0 0 6px; }
.shop-grid ul.products li.product .woocommerce-loop-product__title { font-size: 1rem; padding: 0; color: var(--text-primary); }
.shop-grid ul.products li.product .price { color: var(--primary); font-weight: 700; }
.shop-grid ul.products li.product .button {
    margin-top: auto;
    text-align: center;
    padding: 10px 14px;
    border-radius: 50px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
}
.shop-grid ul.products li.product .button:hover { background: var(--primary-hover); }

/* ---------- header buttons ---------- */
.navbar-actions { flex-shrink: 0; }
.navbar-brand { min-width: 0; }
.navbar-brand img, .navbar-brand .custom-logo { max-height: 44px; width: auto; }
.cart-badge { min-width: 20px; padding: 0 4px; width: auto; }
.nx-mobile-auth { display: none; }

/* ---------- mobile menu extras ---------- */
.nx-no-numbers .nx-menu-mobile > li > a::before { display: none; }
.nx-auth-in-menu .nx-mobile-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}
.nx-mobile-auth .btn { justify-content: center; width: 100%; }
.nx-mobile-auth > :only-child { grid-column: 1 / -1; }

/* ---------- touch devices wider than the menu breakpoint (tablets) ---------- */
.nx-menu-primary li.nx-hover-open > .nx-sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nx-menu-primary li.nx-hover-open > .nx-sub > li { opacity: 1; transform: none; }

/* ---------- generic content safety ---------- */
.entry-content { overflow-wrap: break-word; }
.entry-content img { height: auto; }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; }
.entry-content iframe, .entry-content video, .entry-content embed { max-width: 100%; }
.entry-content pre { overflow-x: auto; }
.hero-text, .hero-visual, .contact-form, .contact-info { min-width: 0; }
.hero-text h1, .section-title { overflow-wrap: break-word; }
.contact-info-item a, .contact-info-item span { overflow-wrap: anywhere; }

/* ---------- ≤ 1100px ---------- */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-rows: auto;
    }
    .service-card.large,
    .service-card.medium { grid-column: span 1; grid-row: auto; }
    .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shop-grid ul.products { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}

/* ---------- ≤ 900px (tablet) ---------- */
@media (max-width: 900px) {
    :root { --section-padding: 72px 0; --grid-gap: 22px; }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section-subtitle { margin-bottom: 36px; }

    .account-name { display: none; }
    .account-btn { padding: 5px; }
    .account-info .account-wallet-amount { display: none; }

    .hero { min-height: 0; padding: 120px 24px 70px; }
    .hero-container { grid-template-columns: minmax(0, 1fr); gap: 36px; text-align: center; }
    .hero-text { text-align: center; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }

    /* hero visual becomes a tidy row of cards under the text */
    .hero-visual {
        order: 2;
        min-height: 0;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        padding: 6px 0;
        isolation: isolate;
    }
    .hero-image { grid-column: 1 / -1; max-height: 320px; width: 100%; }
    .hero-shape { opacity: 0.45; z-index: -1; }
    .hero-shape-1 { width: 200px; height: 200px; top: -30px; right: 6%; bottom: auto; }
    .hero-shape-2 { width: 150px; height: 150px; top: 0; left: 6%; bottom: auto; }
    .hero-text h1 { font-size: 2.75rem; }
    .hero-shape-3 { display: none; }
    .hero-float-card,
    .hero-float-card-1,
    .hero-float-card-2,
    .hero-float-card-3 {
        position: relative;
        inset: auto;
        animation: none;
        padding: 16px;
        border-radius: 16px;
        text-align: left;
    }

    .testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-wrapper { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .footer .footer-grid[class] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
    .footer-grid .footer-about { grid-column: 1 / -1; }
    .shop-grid ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- ≤ 700px (phones) ---------- */
@media (max-width: 700px) {
    .cart-btn { width: var(--nx-cart-size-m, 40px); height: var(--nx-cart-size-m, 40px); }
    .theme-toggle { width: var(--nx-toggle-size-m, 40px); height: var(--nx-toggle-size-m, 40px); }
}

/* ---------- ≤ 600px ---------- */
@media (max-width: 600px) {
    :root { --nx-nav-h: 64px; --section-padding: 56px 0; --grid-gap: 18px; }

    .container { padding: 0 16px; }
    h1 { font-size: 2.05rem; }
    h2 { font-size: 1.65rem; }
    h3 { font-size: 1.25rem; }
    .hero-text h1 { font-size: 2.1rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 28px; }

    .navbar-brand { font-size: 1.3rem; }
    .navbar .container { gap: 8px; }
    .navbar-actions { gap: 8px; }
    .btn-login, .btn-register { padding: 7px 12px; font-size: 0.8rem; white-space: nowrap; }

    .hero { padding: 92px 16px 48px; }
    .hero-text h1 { margin-bottom: 14px; }
    .hero-text p { font-size: 1rem; margin-bottom: 26px; }
    .hero-badge { font-size: 0.68rem; margin-bottom: 18px; }
    .hero-buttons { flex-direction: column; align-items: stretch; gap: 12px; }
    .hero-buttons .btn { justify-content: center; width: 100%; }
    .hero-visual { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .hero-float-card { padding: 14px 16px; }

    .services-grid { grid-template-columns: minmax(0, 1fr); }
    .service-card { padding: 24px; gap: 14px; }
    .features-grid { grid-template-columns: minmax(0, 1fr); }
    .testimonial-grid { grid-template-columns: minmax(0, 1fr); }
    .testimonial-card { padding: 24px 20px; }
    .contact-form { padding: 20px; border-radius: 20px; }

    .mobile-menu { padding: 16px 14px calc(32px + env(safe-area-inset-bottom, 0px)); }
    .nx-menu-mobile a { padding: 15px 60px 15px 18px; }
    .nx-mobile-auth { grid-template-columns: minmax(0, 1fr); }

    .footer { padding: 44px 0 20px; }
    .footer .footer-grid[class] { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 28px; }
    .footer-links a { padding: 9px 0; }
    .footer-social a { width: 44px; height: 44px; }
    .footer-bottom { padding-top: 18px; line-height: 1.6; }

    .modal { padding: 32px 20px 24px; border-radius: 20px; }
    .page-wrap { padding: 92px 0 40px; }
    .back-to-top { right: 16px; bottom: 16px; }
}

/* ---------- ≤ 420px (small phones) ---------- */
@media (max-width: 420px) {
    .shop-grid ul.products { grid-template-columns: minmax(0, 1fr); }
    .navbar-brand { font-size: 1.15rem; }
    .btn-login, .btn-register { padding: 6px 10px; }
}

/* ---------- ≤ 340px ---------- */
@media (max-width: 340px) {
    .btn-login { display: none; }
}


/* ============================================
   v1.1.3 — HOME IMAGE SLIDER
   (sizes, speed, colors come from the Customizer via --nx-sl-* variables)
   ============================================ */
.nx-slider {
    position: relative;
    margin-top: var(--nx-sl-mt, 0px);
    margin-bottom: var(--nx-sl-mb, 0px);
}
/* the navbar is fixed, so a slider at the very top needs to start below it */
.nx-slider--first { padding-top: var(--nx-nav-h); margin-top: 0; }
.nx-slider--boxed.nx-slider--first { padding-top: calc(var(--nx-nav-h) + 16px); }
.nx-slider + .hero { padding-top: 80px; }

.nx-slider-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: var(--nx-sl-h, 520px);
    aspect-ratio: var(--nx-sl-ratio, 16 / 7);
    background: var(--bg-surface);
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}
.nx-slider--boxed .nx-slider-viewport { border-radius: var(--nx-sl-radius, 20px); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .nx-slider-viewport { height: var(--nx-sl-h-t, 400px); } }
@media (max-width: 600px) { .nx-slider-viewport { height: var(--nx-sl-h-m, 260px); } }

.nx-slide { position: absolute; inset: 0; visibility: hidden; }
.nx-slide.is-visible, .nx-slide.is-active { visibility: visible; }
.nx-slide picture { display: block; width: 100%; height: 100%; }
.nx-slide-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: var(--nx-sl-fit, cover);
    object-position: var(--nx-sl-pos, center center);
    -webkit-user-drag: none;
}

/* ----- moving effects ----- */
.nx-slider--slide .nx-slide {
    transform: translate3d(100%, 0, 0);
    transition: transform var(--nx-sl-speed, 700ms) cubic-bezier(0.65, 0, 0.25, 1);
}
.nx-slider--slide .nx-slide.is-active { transform: none; }

.nx-slider--fade .nx-slide,
.nx-slider--zoom .nx-slide {
    opacity: 0;
    transition: opacity var(--nx-sl-speed, 700ms) ease;
}
.nx-slider--fade .nx-slide.is-active,
.nx-slider--zoom .nx-slide.is-active { opacity: 1; z-index: 1; }
.nx-slider--zoom .nx-slide-img { transform: scale(1); transition: transform 9s ease-out; }
.nx-slider--zoom .nx-slide.is-active .nx-slide-img { transform: scale(1.1); }

/* ----- link + caption ----- */
.nx-slide-cover { position: absolute; inset: 0; z-index: 2; }
.nx-slide.has-caption::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(0, 0, 0, var(--nx-sl-overlay, 0.3));
}
.nx-slide-caption {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    padding: clamp(20px, 5vw, 72px) clamp(52px, 7vw, 100px);
    pointer-events: none;
    color: var(--nx-sl-text, #fff);
}
.nx-slide-caption-inner { max-width: 640px; }
.nx-slide-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 3rem);
    line-height: 1.15;
    margin: 0 0 12px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}
.nx-slide-text {
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
    line-height: 1.6;
    margin: 0 0 20px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.nx-slide-btn { pointer-events: auto; }

.nx-slider--a-left .nx-slide-caption { justify-content: flex-start; text-align: left; }
.nx-slider--a-center .nx-slide-caption { justify-content: center; text-align: center; }
.nx-slider--a-right .nx-slide-caption { justify-content: flex-end; text-align: right; }
.nx-slider--v-top .nx-slide-caption { align-items: flex-start; }
.nx-slider--v-middle .nx-slide-caption { align-items: center; }
.nx-slider--v-bottom .nx-slide-caption { align-items: flex-end; padding-bottom: clamp(44px, 7vw, 84px); }

/* ----- arrows + dots ----- */
.nx-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: var(--nx-sl-arrow, 44px);
    height: var(--nx-sl-arrow, 44px);
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    cursor: pointer;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background 0.25s, opacity 0.25s, transform 0.25s;
}
.nx-slider-arrow:hover { background: var(--primary); }
.nx-slider-arrow:disabled { opacity: 0.3; cursor: default; background: rgba(0, 0, 0, 0.45); }
.nx-slider-prev { left: 14px; }
.nx-slider-next { right: 14px; }
.nx-slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
}
.nx-slider-dot {
    position: relative;
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    pointer-events: auto;
    transition: width 0.3s, background 0.3s;
}
.nx-slider-dot::before { content: ''; position: absolute; inset: -9px -3px; } /* bigger tap area */
.nx-slider-dot.is-active { width: 28px; background: var(--primary); }
.nx-slider button:focus-visible,
.nx-slide-cover:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

.nx-slider--single .nx-slider-arrow,
.nx-slider--single .nx-slider-dots { display: none; }

@media (max-width: 600px) {
    .nx-slider-arrow { width: min(var(--nx-sl-arrow, 44px), 36px); height: min(var(--nx-sl-arrow, 44px), 36px); }
    .nx-slider-prev { left: 8px; }
    .nx-slider-next { right: 8px; }
    .nx-slide-caption { padding: 16px 48px; }
    .nx-slider--v-bottom .nx-slide-caption { padding-bottom: 40px; }
    .nx-slider-dots { bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .nx-slider .nx-slide, .nx-slider .nx-slide-img { transition-duration: 0.01ms !important; }
    .nx-slider--zoom .nx-slide.is-active .nx-slide-img { transform: none; }
}
