/* ============================================
   Gameetaime - Main Stylesheet
   استایل اصلی قالب گیمینگ
============================================ */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    background-color: var(--gmb-bg-dark);
    color: var(--gmb-text-primary);
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(34, 211, 238, 0.06) 0%, transparent 40%);
    background-attachment: fixed;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { border-style: none; }

a { color: var(--gmb-neon-cyan); text-decoration: none; transition: var(--gmb-transition); }
a:hover { color: var(--gmb-neon-purple); }

ul, ol { list-style: none; }

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button { cursor: pointer; background: none; border: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rajdhani', 'Vazirmatn', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gmb-text-primary);
}

/* ===== Icons (مهم‌ترین بخش - جلوگیری از بزرگ شدن SVG) ===== */
.gmb-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    flex-shrink: 0;
}

/* همه SVG‌ها داخل سیستم آیکون ما باید اندازه استاندارد داشته باشن */
.gmb-icon-wrap svg {
    width: 100%;
    height: 100%;
}

/* مهم: هر SVG که داخل دکمه یا لینک هست اندازه ثابت داشته باشه */
.gmb-search-btn svg,
.gmb-header-action svg,
.gmb-cart-btn svg,
.gmb-back-top svg,
.gmb-flash-nav svg,
.gmb-carousel-prev svg,
.gmb-carousel-next svg,
.gmb-quick-action svg,
.gmb-wc-quick-btn svg,
.gmb-add-cart-ajax svg,
.gmb-read-more svg,
.gmb-cat-more-btn svg,
.gmb-category-btn svg,
.gmb-social-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.gmb-add-cart-ajax svg { width: 16px; height: 16px; }
.gmb-search-btn svg { width: 18px; height: 18px; }
.gmb-header-action svg,
.gmb-cart-btn svg { width: 22px; height: 22px; }
.gmb-back-top svg { width: 20px; height: 20px; }
.gmb-read-more svg,
.gmb-category-btn svg { width: 14px; height: 14px; }

/* آیکون‌های دسته‌بندی بزرگ (کنسول‌ها) */
.gmb-category-icon-svg svg,
.gmb-category-icon-svg .gmb-icon-wrap svg {
    width: 60px;
    height: 60px;
    opacity: 0.95;
}

/* آیکون‌های بنر ویژگی فوتر */
.gmb-feature-icon svg {
    width: 26px;
    height: 26px;
}

/* آیکون دسته‌بندی هدر */
.gmb-cat-latest-icon svg {
    width: 26px;
    height: 26px;
}

/* آیکون بلادر تخفیف */
.gmb-flash-sale-icon svg {
    width: 30px;
    height: 30px;
    color: #fbbf24;
}

/* آیکون لوگو */
.gmb-logo-icon svg,
.gmb-logo-icon .gmb-icon-wrap {
    width: 28px;
    height: 28px;
}

/* آیکون قلب در کپی‌رایت */
.gmb-heart svg {
    width: 14px !important;
    height: 14px !important;
    color: #ec4899;
}

/* آیکون‌های کوچک در منوها */
.gmb-footer-links .gmb-icon-wrap {
    width: 16px;
    height: 16px;
    margin-left: 6px;
    display: inline-flex;
    vertical-align: middle;
}

.gmb-topbar-icon svg {
    width: 16px;
    height: 16px;
    margin-left: 4px;
    vertical-align: middle;
}

/* ===== Container & Layout ===== */
.gmb-container {
    max-width: var(--gmb-container);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.gmb-section { padding: 50px 0; }

.gmb-section-cta {
    text-align: center;
    margin-top: 40px;
}

/* ===== Section Title ===== */
.gmb-section-title {
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.gmb-section-title::before {
    content: '';
    width: 6px;
    height: 32px;
    background: var(--gmb-gradient);
    border-radius: 3px;
    box-shadow: var(--gmb-glow-purple);
}

.gmb-section-title small {
    font-size: 14px;
    color: var(--gmb-text-secondary);
    font-weight: 400;
    text-transform: none;
}

/* ===== Buttons ===== */
.gmb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--gmb-gradient);
    color: #fff;
    font-family: 'Rajdhani', 'Vazirmatn', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--gmb-radius-sm);
    transition: var(--gmb-transition);
    border: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.gmb-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--gmb-glow-purple);
    color: #fff;
}

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

.gmb-btn-outline:hover {
    background: var(--gmb-neon-purple);
    color: #fff;
    box-shadow: var(--gmb-glow-purple);
}

.gmb-btn-large { padding: 16px 40px; font-size: 16px; }

.gmb-btn-view {
    width: 100%;
    padding: 10px;
    font-size: 13px;
}

/* ===== Skip Link (Accessibility) ===== */
.gmb-skip-link {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--gmb-neon-purple);
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    border-radius: 0 0 0 8px;
}

.gmb-skip-link:focus { top: 0; color: #fff; }

/* ===== Main ===== */
.gmb-main { min-height: 50vh; }

/* ===== Top Bar ===== */
.gmb-topbar {
    background: var(--gmb-bg-panel);
    border-bottom: 1px solid var(--gmb-border);
    padding: 8px 0;
    font-size: 13px;
}

.gmb-topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.gmb-topbar-text {
    color: var(--gmb-text-secondary);
    display: flex;
    align-items: center;
}

.gmb-topbar-text strong,
.gmb-topbar-text b { color: var(--gmb-neon-cyan); }

.gmb-topbar-links a { color: var(--gmb-text-secondary); font-size: 12px; }
.gmb-topbar-links a:hover { color: var(--gmb-neon-purple); }
.gmb-topbar-links .sep { color: var(--gmb-text-muted); margin: 0 6px; }

/* ===== Header ===== */
.gmb-header {
    background: rgba(19, 19, 28, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gmb-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--gmb-transition);
}

.gmb-header.scrolled { box-shadow: 0 4px 30px rgba(168, 85, 247, 0.15); }

.gmb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
}

/* Logo */
.gmb-logo-wrap { flex-shrink: 0; }

.gmb-logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.gmb-logo-text:hover { color: #fff; }

.gmb-logo-accent {
    background: var(--gmb-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gmb-footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

/* Search Bar */
.gmb-search-wrap {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.gmb-search-form {
    display: flex;
    background: var(--gmb-bg-card);
    border: 1px solid var(--gmb-border);
    border-radius: var(--gmb-radius-sm);
    overflow: hidden;
    transition: var(--gmb-transition);
}

.gmb-search-form:focus-within {
    border-color: var(--gmb-neon-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.gmb-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: var(--gmb-text-primary);
    outline: none;
    font-size: 14px;
    min-width: 0;
}

.gmb-search-input::placeholder { color: var(--gmb-text-muted); }

.gmb-search-btn {
    padding: 0 18px;
    color: var(--gmb-text-secondary);
    display: flex;
    align-items: center;
    transition: var(--gmb-transition);
    flex-shrink: 0;
}

.gmb-search-btn:hover { color: var(--gmb-neon-purple); }

/* AJAX Search Results */
.gmb-search-results {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--gmb-bg-panel);
    border: 1px solid var(--gmb-border);
    border-radius: var(--gmb-radius-sm);
    box-shadow: var(--gmb-shadow);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    margin-top: 8px;
}

.gmb-search-results.show { display: block; }

.gmb-search-result-item {
    display: flex;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--gmb-border);
    transition: var(--gmb-transition);
    align-items: center;
}

.gmb-search-result-item:last-child { border-bottom: none; }
.gmb-search-result-item:hover { background: var(--gmb-bg-card); }

.gmb-search-result-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--gmb-radius-sm);
    flex-shrink: 0;
}

.gmb-search-result-info { flex: 1; min-width: 0; }

.gmb-search-result-title {
    font-size: 14px;
    color: var(--gmb-text-primary);
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gmb-search-result-price {
    color: var(--gmb-price);
    font-size: 13px;
    font-weight: 700;
}

.gmb-search-no-results,
.gmb-search-loading {
    padding: 20px;
    text-align: center;
    color: var(--gmb-text-secondary);
    font-size: 14px;
}

/* Header Actions */
.gmb-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.gmb-header-action {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gmb-bg-card);
    border: 1px solid var(--gmb-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gmb-text-secondary);
    transition: var(--gmb-transition);
    position: relative;
}

.gmb-header-action:hover {
    color: var(--gmb-neon-purple);
    border-color: var(--gmb-neon-purple);
    background: var(--gmb-bg-elevated);
    transform: translateY(-2px);
}

.gmb-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--gmb-gradient);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: var(--gmb-glow-purple);
}

.gmb-cart-count:empty { display: none; }

/* ===== Navigation ===== */
.gmb-nav {
    border-top: 1px solid var(--gmb-border);
    background: rgba(10, 10, 15, 0.5);
    text-align: center;
}

.gmb-nav > div,
.gmb-nav .menu {
    display: flex;
    justify-content: center;
}

.gmb-nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gmb-nav-menu > li,
.gmb-nav-item {
    position: relative;
    list-style: none;
}

.gmb-nav-menu > li > a,
.gmb-nav-item > a {
    display: block;
    padding: 14px 18px;
    color: var(--gmb-text-secondary);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--gmb-transition);
    position: relative;
}

.gmb-nav-menu > li > a:hover,
.gmb-nav-item > a:hover,
.gmb-nav-menu > li.current-menu-item > a,
.gmb-nav-menu > li.current_page_item > a,
.gmb-nav-item.current-menu-item > a,
.gmb-nav-item.current_page_item > a {
    color: #fff;
}

.gmb-nav-menu > li > a::after,
.gmb-nav-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 3px;
    background: var(--gmb-gradient);
    border-radius: 3px 3px 0 0;
    transition: var(--gmb-transition);
}

.gmb-nav-menu > li:hover > a::after,
.gmb-nav-menu > li.current-menu-item > a::after,
.gmb-nav-menu > li.current_page_item > a::after,
.gmb-nav-item:hover > a::after,
.gmb-nav-item.current-menu-item > a::after {
    width: 60%;
}

/* Sub Menu */
.gmb-nav-menu > li .sub-menu,
.gmb-nav-item .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--gmb-bg-panel);
    border: 1px solid var(--gmb-border);
    border-radius: var(--gmb-radius-sm);
    box-shadow: var(--gmb-shadow);
    min-width: 220px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--gmb-transition);
    z-index: 100;
    list-style: none;
}

.gmb-nav-menu > li:hover > .sub-menu,
.gmb-nav-item:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gmb-nav-menu > li .sub-menu li > a,
.gmb-nav-item .sub-menu .gmb-nav-item > a {
    padding: 10px 14px;
    font-size: 14px;
    border-radius: var(--gmb-radius-sm);
    text-transform: none;
}

.gmb-nav-menu > li .sub-menu li > a::after,
.gmb-nav-item .sub-menu .gmb-nav-item > a::after { display: none; }

.gmb-nav-menu > li .sub-menu li > a:hover,
.gmb-nav-item .sub-menu .gmb-nav-item > a:hover {
    background: var(--gmb-bg-card);
    color: var(--gmb-neon-purple);
}

/* Mobile Toggle */
.gmb-mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: var(--gmb-bg-card);
    border: 1px solid var(--gmb-border);
    border-radius: var(--gmb-radius-sm);
}

.gmb-mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gmb-text-primary);
    transition: var(--gmb-transition);
    border-radius: 2px;
}

.gmb-mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gmb-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.gmb-mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero Slider ===== */
.gmb-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 0;
}

.gmb-hero-slider { position: relative; height: 100%; }

.gmb-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--gmb-bg-panel);
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
}

.gmb-hero-slide.active { opacity: 1; visibility: visible; }

.gmb-hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(34, 211, 238, 0.1) 100%);
}

.gmb-hero-content { position: relative; z-index: 2; max-width: 600px; }

.gmb-hero-subtitle {
    display: inline-block;
    background: rgba(168, 85, 247, 0.2);
    color: var(--gmb-neon-purple);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.gmb-hero-title {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    font-weight: 800;
}

.gmb-hero-btn { font-size: 16px; padding: 16px 36px; }

/* Slider Controls */
.gmb-hero-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
}

.gmb-hero-prev,
.gmb-hero-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(19, 19, 28, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--gmb-border);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--gmb-transition);
}

.gmb-hero-prev:hover,
.gmb-hero-next:hover {
    background: var(--gmb-gradient);
    border-color: transparent;
    box-shadow: var(--gmb-glow-purple);
}

.gmb-hero-prev svg, .gmb-hero-next svg { width: 24px; height: 24px; }

/* Dots */
.gmb-hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.gmb-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: var(--gmb-transition);
}

.gmb-hero-dot.active {
    background: var(--gmb-gradient);
    width: 30px;
    border-radius: 5px;
    box-shadow: var(--gmb-glow-purple);
}

/* ===== Products Grid ===== */
.gmb-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gmb-product-card,
.gmb-wc-product {
    background: var(--gmb-bg-panel);
    border: 1px solid var(--gmb-border);
    border-radius: var(--gmb-radius);
    overflow: hidden;
    transition: var(--gmb-transition);
    position: relative;
    list-style: none;
}

.gmb-product-card:hover,
.gmb-wc-product:hover {
    transform: translateY(-6px);
    border-color: var(--gmb-neon-purple);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.2);
}

.gmb-product-image,
.gmb-wc-product-image {
    position: relative;
    aspect-ratio: 198 / 294;
    background: var(--gmb-bg-card);
    overflow: hidden;
}

.gmb-product-image a,
.gmb-wc-product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.gmb-product-image img,
.gmb-wc-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--gmb-transition);
}

.gmb-product-card:hover .gmb-product-image img,
.gmb-wc-product:hover .gmb-wc-product-image img { transform: scale(1.08); }

.gmb-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    background: linear-gradient(135deg, var(--gmb-bg-elevated), var(--gmb-bg-card));
}

/* Badges */
.gmb-sale-badge,
.gmb-new-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
}

.gmb-sale-badge {
    right: 12px;
    background: var(--gmb-sale);
    color: #fff;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.gmb-new-badge {
    left: 12px;
    background: var(--gmb-gradient);
    color: #fff;
    box-shadow: var(--gmb-glow-purple);
}

/* Quick Actions */
.gmb-product-actions,
.gmb-wc-quick-actions {
    position: absolute;
    bottom: 12px;
    right: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--gmb-transition);
    z-index: 2;
}

.gmb-product-card:hover .gmb-product-actions,
.gmb-wc-product:hover .gmb-wc-quick-actions {
    opacity: 1;
    transform: translateY(0);
}

.gmb-quick-action,
.gmb-wc-quick-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(19, 19, 28, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--gmb-border);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--gmb-transition);
}

.gmb-quick-action:hover,
.gmb-wc-quick-btn:hover {
    background: var(--gmb-gradient);
    border-color: transparent;
    color: #fff;
}

/* Product Info */
.gmb-product-info,
.gmb-wc-product-info { padding: 16px; }

.gmb-product-title,
.gmb-wc-product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--gmb-text-primary);
}

.gmb-product-title a,
.gmb-wc-product-title a { color: inherit; }

.gmb-product-card:hover .gmb-product-title a,
.gmb-wc-product:hover .gmb-wc-product-title a { color: var(--gmb-neon-purple); }

.gmb-wc-product-cat {
    display: inline-block;
    color: var(--gmb-neon-cyan);
    font-size: 11px;
    text-transform: uppercase;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.gmb-product-rating,
.gmb-wc-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 13px;
}

.gmb-stars { color: #fbbf24; letter-spacing: 2px; }
.gmb-rating-text,
.gmb-wc-rating-num { color: var(--gmb-text-muted); }

.gmb-product-price,
.gmb-wc-product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--gmb-price);
    margin-bottom: 14px;
    font-family: 'Rajdhani', sans-serif;
}

.gmb-product-price del,
.gmb-wc-product-price del {
    color: var(--gmb-text-muted);
    font-size: 14px;
    font-weight: 400;
    margin-left: 8px;
}

.gmb-product-price ins,
.gmb-wc-product-price ins {
    text-decoration: none;
    color: var(--gmb-price);
}

.gmb-product-bottom,
.gmb-wc-product-bottom { margin-top: 8px; }

.gmb-out-of-stock {
    display: inline-block;
    padding: 10px 16px;
    background: var(--gmb-bg-elevated);
    color: var(--gmb-sale);
    border-radius: var(--gmb-radius-sm);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--gmb-sale);
}

.gmb-add-cart-ajax {
    width: 100%;
    padding: 10px;
    font-size: 13px;
}

.gmb-add-cart-ajax.loading {
    pointer-events: none;
    opacity: 0.7;
}

.gmb-add-cart-ajax.loading::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gmb-spin 0.6s linear infinite;
    margin-left: 6px;
}

@keyframes gmb-spin { to { transform: rotate(360deg); } }

/* ===== Why Us Section ===== */
.gmb-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gmb-why-card {
    background: var(--gmb-bg-panel);
    border: 1px solid var(--gmb-border);
    border-radius: var(--gmb-radius);
    padding: 30px 24px;
    text-align: center;
    transition: var(--gmb-transition);
}

.gmb-why-card:hover {
    border-color: var(--gmb-neon-purple);
    transform: translateY(-4px);
    box-shadow: var(--gmb-glow-purple);
}

.gmb-why-icon {
    font-size: 48px;
    margin-bottom: 16px;
    width: 64px;
    height: 64px;
    margin-right: auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gmb-why-icon svg { width: 44px; height: 44px; }

.gmb-why-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

.gmb-why-card p {
    color: var(--gmb-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== CTA Section ===== */
.gmb-cta {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(34, 211, 238, 0.1) 100%);
    border-top: 1px solid var(--gmb-border);
    border-bottom: 1px solid var(--gmb-border);
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gmb-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.gmb-cta::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.gmb-cta-content { position: relative; z-index: 2; }

.gmb-cta h2 {
    font-size: 40px;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 800;
}

.gmb-cta p {
    font-size: 18px;
    color: var(--gmb-text-secondary);
    margin-bottom: 28px;
}

/* ===== Categories Grid & Carousel ===== */
.gmb-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Carousel for category banners */
.gmb-cat-banners-carousel {
    position: relative;
    padding: 0 50px;
}

.gmb-cat-banners-carousel .gmb-carousel-track { gap: 16px; }

.gmb-cat-banners-carousel .gmb-carousel-item {
    flex: 0 0 calc(33.333% - 11px);
    min-width: calc(33.333% - 11px);
    max-width: calc(33.333% - 11px);
}

.gmb-category-card {
    background: var(--gmb-bg-panel);
    border: 1px solid var(--gmb-border);
    border-radius: var(--gmb-radius);
    overflow: hidden;
    transition: var(--gmb-transition);
    position: relative;
    display: block;
    height: 100%;
}

.gmb-category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--cat-color, var(--gmb-neon-purple)) 0%, transparent 100%);
    opacity: 0;
    transition: var(--gmb-transition);
    z-index: 1;
    pointer-events: none;
}

.gmb-category-card:hover {
    transform: translateY(-6px);
    border-color: var(--cat-color, var(--gmb-neon-purple));
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.gmb-category-card:hover::before { opacity: 0.2; }

.gmb-category-image {
    aspect-ratio: 16 / 10;
    background: var(--gmb-bg-card);
    overflow: hidden;
    position: relative;
}

.gmb-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--gmb-transition);
}

.gmb-category-card:hover .gmb-category-image img { transform: scale(1.08); }

.gmb-category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cat-color, var(--gmb-neon-purple)) 0%, var(--gmb-bg-panel) 100%);
}

.gmb-category-info {
    padding: 18px 20px;
    position: relative;
    z-index: 2;
}

.gmb-category-info h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 6px;
}

.gmb-category-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gmb-neon-cyan);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Rajdhani', sans-serif;
}

.gmb-category-card:hover .gmb-category-btn { color: var(--cat-color, var(--gmb-neon-purple)); }

/* ===== Carousel Common ===== */
.gmb-carousel {
    overflow: hidden;
    position: relative;
}

.gmb-carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    padding: 6px;
}

/* Carousel Nav Buttons (Flash Sale style) */
.gmb-flash-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gmb-bg-panel);
    border: 1px solid var(--gmb-border);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--gmb-transition);
    z-index: 5;
    cursor: pointer;
}

.gmb-flash-nav:hover {
    background: var(--gmb-gradient);
    border-color: transparent;
    box-shadow: var(--gmb-glow-purple);
}

.gmb-flash-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Category Latest Carousels */
.gmb-cat-latest-block .gmb-carousel-item {
    flex: 0 0 calc(20% - 13px);
    min-width: calc(20% - 13px);
    max-width: calc(20% - 13px);
}

/* ===== Category Latest Sections ===== */
.gmb-category-latest { background: var(--gmb-bg-dark); }

.gmb-cat-latest-block {
    background: var(--gmb-bg-panel);
    border: 1px solid var(--gmb-border);
    border-radius: var(--gmb-radius);
    padding: 30px;
    margin-bottom: 30px;
}

.gmb-cat-latest-block:last-child { margin-bottom: 0; }

.gmb-cat-latest-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gmb-border);
    flex-wrap: wrap;
}

.gmb-cat-latest-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gmb-cat-latest-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    background: var(--gmb-bg-card);
    border-radius: var(--gmb-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gmb-cat-latest-title {
    font-size: 22px;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    font-family: 'Rajdhani', sans-serif;
}

.gmb-cat-latest-sub {
    display: block;
    font-size: 13px;
    color: var(--gmb-text-secondary);
    margin-top: 2px;
}

.gmb-cat-latest-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gmb-cat-latest-count {
    background: var(--gmb-bg-card);
    border: 1px solid var(--gmb-border);
    color: var(--gmb-neon-cyan);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.gmb-cat-latest-nav .gmb-carousel-prev,
.gmb-cat-latest-nav .gmb-carousel-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gmb-bg-card);
    border: 1px solid var(--gmb-border);
    color: var(--gmb-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--gmb-transition);
}

.gmb-cat-latest-nav .gmb-carousel-prev:hover,
.gmb-cat-latest-nav .gmb-carousel-next:hover {
    background: var(--gmb-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--gmb-glow-purple);
}

.gmb-cat-latest-nav .gmb-carousel-prev:disabled,
.gmb-cat-latest-nav .gmb-carousel-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.gmb-cat-latest-cta {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--gmb-border);
}

.gmb-cat-more-btn {
    min-width: 280px;
    padding: 14px 32px;
    font-size: 15px;
}

.gmb-cat-more-btn svg { transition: var(--gmb-transition); }
.gmb-cat-more-btn:hover svg { transform: translateX(-6px); }

/* ===== Flash Sale (24h Discounts) ===== */
.gmb-flash-sale-section {
    padding: 50px 0;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-top: 1px solid var(--gmb-border);
    border-bottom: 1px solid var(--gmb-border);
    position: relative;
    overflow: hidden;
}

.gmb-flash-sale-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.gmb-flash-sale-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gmb-flash-sale-icon {
    color: #fbbf24;
    animation: gmb-flash-pulse 1.5s ease-in-out infinite;
    display: flex;
}

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

.gmb-flash-sale-title {
    font-size: 32px;
    color: #fff;
    margin: 0;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
    background: linear-gradient(135deg, #ef4444 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gmb-flash-sale-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    animation: gmb-flash-badge 2s ease-in-out infinite;
}

@keyframes gmb-flash-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.gmb-flash-sale-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gmb-countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--gmb-bg-panel);
    border: 1px solid var(--gmb-border);
    border-radius: var(--gmb-radius-sm);
    padding: 8px 14px;
    min-width: 70px;
}

.gmb-countdown-num {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    line-height: 1;
}

.gmb-countdown-label {
    font-size: 11px;
    color: var(--gmb-text-secondary);
    margin-top: 4px;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
}

.gmb-countdown-sep {
    font-size: 28px;
    color: var(--gmb-neon-purple);
    font-weight: 800;
}

#gmb-flash-carousel.gmb-carousel {
    position: relative;
    padding: 0 50px;
}

.gmb-flash-prev { right: 0; }
.gmb-flash-next { left: 0; }

.gmb-flash-nav:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

#gmb-flash-carousel .gmb-carousel-item {
    flex: 0 0 calc(20% - 13px);
    min-width: calc(20% - 13px);
    max-width: calc(20% - 13px);
}

.gmb-flash-product {
    border-color: rgba(239, 68, 68, 0.2);
}

.gmb-flash-product:hover {
    border-color: #ef4444;
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.2);
}

.gmb-flash-product .gmb-sale-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
    font-size: 14px;
}

/* ===== Footer ===== */
.gmb-footer {
    background: var(--gmb-bg-panel);
    border-top: 1px solid var(--gmb-border);
    margin-top: 60px;
}

.gmb-features-bar {
    background: var(--gmb-bg-dark);
    border-bottom: 1px solid var(--gmb-border);
    padding: 30px 0;
}

.gmb-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gmb-feature {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gmb-feature-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gmb-bg-card);
    border-radius: var(--gmb-radius-sm);
    flex-shrink: 0;
}

.gmb-feature h4 {
    font-size: 15px;
    color: #fff;
    margin-bottom: 4px;
}

.gmb-feature p {
    font-size: 12px;
    color: var(--gmb-text-muted);
}

.gmb-footer-widgets { padding: 50px 0; }

.gmb-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 30px;
}

.gmb-footer-about-text {
    color: var(--gmb-text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.gmb-social {
    display: flex;
    gap: 10px;
}

.gmb-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gmb-bg-card);
    border: 1px solid var(--gmb-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--gmb-transition);
    color: var(--gmb-text-secondary);
}

.gmb-social-link:hover {
    background: var(--gmb-gradient);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--gmb-glow-purple);
    color: #fff;
}

.gmb-footer-widget-title {
    font-size: 16px;
    color: #fff;
    margin-bottom: 18px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gmb-footer-links { list-style: none; }
.gmb-footer-links li { margin-bottom: 10px; }
.gmb-footer-links a {
    color: var(--gmb-text-secondary);
    font-size: 14px;
    transition: var(--gmb-transition);
    display: inline-flex;
    align-items: center;
}
.gmb-footer-links a:hover {
    color: var(--gmb-neon-purple);
    padding-right: 5px;
}

.gmb-newsletter-text {
    color: var(--gmb-text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

.gmb-newsletter { display: flex; flex-direction: column; gap: 10px; }
.gmb-newsletter input {
    background: var(--gmb-bg-card);
    border: 1px solid var(--gmb-border);
    border-radius: var(--gmb-radius-sm);
    padding: 10px 14px;
    color: var(--gmb-text-primary);
    font-size: 13px;
    outline: none;
}

.gmb-footer-copyright {
    border-top: 1px solid var(--gmb-border);
    padding: 20px 0;
    background: var(--gmb-bg-dark);
}

.gmb-copyright-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--gmb-text-muted);
}

.gmb-credit { color: var(--gmb-neon-purple); }

/* ===== Sidebar ===== */
.gmb-content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    padding: 30px 0;
}

.gmb-content-area { min-width: 0; }

.gmb-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gmb-widget {
    background: var(--gmb-bg-panel);
    border: 1px solid var(--gmb-border);
    border-radius: var(--gmb-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.gmb-widget-title {
    font-size: 17px;
    color: #fff;
    margin-bottom: 16px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gmb-gradient);
}

.gmb-widget ul { list-style: none; }
.gmb-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gmb-border);
}
.gmb-widget ul li:last-child { border-bottom: none; }
.gmb-widget a { color: var(--gmb-text-secondary); font-size: 14px; }
.gmb-widget a:hover { color: var(--gmb-neon-purple); }

.gmb-console-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--gmb-radius-sm);
    transition: var(--gmb-transition);
}

.gmb-console-list li a:hover {
    background: var(--gmb-bg-card);
    color: var(--gmb-neon-purple);
}

.gmb-console-icon {
    background: var(--gmb-gradient);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Rajdhani', sans-serif;
}

.gmb-widget-products { list-style: none; }
.gmb-widget-product {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gmb-border);
}
.gmb-widget-product:last-child { border-bottom: none; }
.gmb-widget-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--gmb-radius-sm);
    object-fit: cover;
}
.gmb-widget-prod-name {
    display: block;
    font-size: 13px;
    color: var(--gmb-text-primary);
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
}
.gmb-widget-prod-price {
    color: var(--gmb-price);
    font-size: 13px;
    font-weight: 700;
}

/* ===== Blog Post Cards ===== */
.gmb-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.gmb-post-card {
    background: var(--gmb-bg-panel);
    border: 1px solid var(--gmb-border);
    border-radius: var(--gmb-radius);
    overflow: hidden;
    transition: var(--gmb-transition);
}

.gmb-post-card:hover {
    border-color: var(--gmb-neon-purple);
    transform: translateY(-4px);
    box-shadow: var(--gmb-glow-purple);
}

.gmb-post-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--gmb-bg-card);
}

.gmb-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--gmb-transition);
}

.gmb-post-card:hover .gmb-post-thumb img { transform: scale(1.05); }

.gmb-post-content { padding: 20px; }

.gmb-post-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--gmb-text-muted);
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.gmb-post-cat a { color: var(--gmb-neon-cyan); }

.gmb-post-title {
    font-size: 19px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.gmb-post-title a { color: #fff; }
.gmb-post-title a:hover { color: var(--gmb-neon-purple); }

.gmb-post-excerpt {
    color: var(--gmb-text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 14px;
}

.gmb-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gmb-neon-purple);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
}

.gmb-read-more:hover { gap: 10px; }

/* ===== Single Post ===== */
.gmb-single-post {
    background: var(--gmb-bg-panel);
    border: 1px solid var(--gmb-border);
    border-radius: var(--gmb-radius);
    overflow: hidden;
    padding: 30px;
}

.gmb-single-thumb {
    margin: -30px -30px 24px;
    aspect-ratio: 21 / 9;
    overflow: hidden;
}

.gmb-single-thumb img { width: 100%; height: 100%; object-fit: cover; }

.gmb-single-header { margin-bottom: 24px; }

.gmb-single-title {
    font-size: 32px;
    margin: 14px 0 0;
    color: #fff;
    line-height: 1.3;
}

.gmb-single-content {
    color: var(--gmb-text-primary);
    font-size: 16px;
    line-height: 1.9;
}

.gmb-single-content h2,
.gmb-single-content h3 { margin: 24px 0 12px; color: #fff; }
.gmb-single-content p { margin-bottom: 16px; }
.gmb-single-content img { border-radius: var(--gmb-radius-sm); margin: 16px 0; }

.gmb-single-content blockquote {
    border-right: 4px solid var(--gmb-neon-purple);
    background: var(--gmb-bg-card);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: var(--gmb-radius-sm);
    color: var(--gmb-text-secondary);
    font-style: italic;
}

.gmb-single-content code {
    background: var(--gmb-bg-card);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--gmb-neon-cyan);
    font-size: 14px;
}

.gmb-single-content pre {
    background: var(--gmb-bg-dark);
    border: 1px solid var(--gmb-border);
    border-radius: var(--gmb-radius-sm);
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
}

.gmb-single-content pre code { background: transparent; padding: 0; }

.gmb-single-content ul,
.gmb-single-content ol {
    margin: 16px 0;
    padding-right: 24px;
}

.gmb-single-content ul li { list-style: disc; margin-bottom: 8px; }
.gmb-single-content ol li { list-style: decimal; margin-bottom: 8px; }

.gmb-tags {
    display: inline-block;
    background: var(--gmb-bg-card);
    color: var(--gmb-neon-cyan);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin: 4px 4px 4px 0;
    border: 1px solid var(--gmb-border);
}

.gmb-tags span { color: var(--gmb-neon-purple); }

.gmb-single-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--gmb-border); }

/* Post Navigation */
.gmb-post-navigation,
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
}

.gmb-post-navigation a,
.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    display: block;
    background: var(--gmb-bg-panel);
    border: 1px solid var(--gmb-border);
    border-radius: var(--gmb-radius);
    padding: 16px 20px;
    color: var(--gmb-text-primary);
    font-weight: 600;
    transition: var(--gmb-transition);
}

.gmb-post-navigation a:hover,
.post-navigation a:hover {
    border-color: var(--gmb-neon-purple);
    color: var(--gmb-neon-purple);
}

.gmb-nav-label,
.post-navigation .nav-label {
    display: block;
    font-size: 12px;
    color: var(--gmb-text-muted);
    font-weight: 400;
    margin-bottom: 4px;
}

.nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nav-previous { text-align: right; }
.nav-next { text-align: left; }

/* ===== Page Header ===== */
.gmb-page-header { margin-bottom: 24px; }

.gmb-page-title {
    font-size: 30px;
    color: #fff;
    padding-bottom: 12px;
    border-bottom: 2px solid;
    border-image: var(--gmb-gradient) 1;
    margin-bottom: 0;
}

.gmb-page-body {
    color: var(--gmb-text-primary);
    font-size: 16px;
    line-height: 1.9;
}

.gmb-page-body p { margin-bottom: 16px; }

/* ===== Breadcrumb ===== */
.gmb-breadcrumb {
    padding: 14px 0;
    color: var(--gmb-text-secondary);
    font-size: 13px;
}

.gmb-breadcrumb a { color: var(--gmb-neon-cyan); }
.gmb-breadcrumb a:hover { color: var(--gmb-neon-purple); }
.gmb-breadcrumb .sep { margin: 0 8px; color: var(--gmb-text-muted); }

/* ===== Pagination ===== */
.gmb-pagination,
.pagination,
.woocommerce-pagination {
    margin-top: 30px;
    text-align: center;
}

.gmb-pagination .page-numbers,
.pagination .page-numbers,
.woocommerce-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
}

.gmb-pagination .page-numbers li,
.pagination .page-numbers li,
.woocommerce-pagination .page-numbers li { list-style: none; }

.gmb-pagination a,
.gmb-pagination span,
.pagination a,
.pagination span,
.woocommerce-pagination a,
.woocommerce-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: var(--gmb-bg-panel);
    border: 1px solid var(--gmb-border);
    border-radius: var(--gmb-radius-sm);
    color: var(--gmb-text-secondary);
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    transition: var(--gmb-transition);
}

.gmb-pagination a:hover,
.pagination a:hover,
.woocommerce-pagination a:hover {
    background: var(--gmb-bg-card);
    border-color: var(--gmb-neon-purple);
    color: var(--gmb-neon-purple);
}

.gmb-pagination .current,
.pagination .current,
.woocommerce-pagination .current {
    background: var(--gmb-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--gmb-glow-purple);
}

/* ===== 404 Page ===== */
.gmb-404 {
    text-align: center;
    padding: 80px 20px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gmb-404-code {
    font-size: 140px;
    font-weight: 800;
    font-family: 'Rajdhani', sans-serif;
    line-height: 1;
    background: var(--gmb-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.gmb-404-title {
    font-size: 32px;
    margin-bottom: 14px;
    color: #fff;
}

.gmb-404-text {
    color: var(--gmb-text-secondary);
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 500px;
    margin-right: auto;
    margin-left: auto;
}

.gmb-404-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.gmb-404-search { max-width: 400px; margin: 0 auto; }
.gmb-404-search p { color: var(--gmb-text-secondary); margin-bottom: 14px; }

/* ===== No Results ===== */
.gmb-no-results {
    text-align: center;
    padding: 60px 20px;
}

.gmb-no-results-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.gmb-no-results h2 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 10px;
}

.gmb-no-results p {
    color: var(--gmb-text-secondary);
    margin-bottom: 20px;
}

/* ===== Back to Top ===== */
.gmb-back-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gmb-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--gmb-glow-purple);
    opacity: 0;
    visibility: hidden;
    transition: var(--gmb-transition);
    z-index: 999;
}

.gmb-back-top.show { opacity: 1; visibility: visible; }

.gmb-back-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.7);
}

/* ===== Toast Notification ===== */
.gmb-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gmb-bg-panel);
    border: 1px solid var(--gmb-neon-green);
    color: #fff;
    padding: 16px 24px;
    border-radius: var(--gmb-radius);
    box-shadow: var(--gmb-shadow);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--gmb-transition);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    min-width: 280px;
}

.gmb-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.gmb-toast.success { border-color: var(--gmb-neon-green); box-shadow: 0 0 20px rgba(74, 222, 128, 0.3); }
.gmb-toast.error { border-color: var(--gmb-sale); box-shadow: 0 0 20px rgba(239, 68, 68, 0.3); }

.gmb-toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
}

.gmb-toast.success .gmb-toast-icon { background: var(--gmb-neon-green); color: #000; }
.gmb-toast.error .gmb-toast-icon { background: var(--gmb-sale); color: #fff; }

/* ===== Mobile Overlay ===== */
.gmb-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--gmb-transition);
}

.gmb-mobile-overlay.show { opacity: 1; visibility: visible; }

/* ===== Screen Reader Text ===== */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* ===== Alignments ===== */
.alignleft   { float: right; margin: 0 0 16px 16px; }
.alignright  { float: left;  margin: 0 16px 16px 0; }
.aligncenter { display: block; margin: 16px auto; }

/* ===== Comments ===== */
.gmb-comments { margin-top: 40px; }

.gmb-comments-title {
    font-size: 22px;
    color: #fff;
    margin-bottom: 20px;
}

.gmb-comment-list { list-style: none; padding: 0; }

.gmb-comment-list .comment,
.gmb-comment-list .pingback {
    background: var(--gmb-bg-panel);
    border: 1px solid var(--gmb-border);
    border-radius: var(--gmb-radius);
    padding: 18px 22px;
    margin-bottom: 16px;
}

.gmb-comment-list .children {
    list-style: none;
    padding-right: 30px;
    margin-top: 16px;
}

.comment-author { font-weight: 700; color: #fff; margin-bottom: 6px; }
.comment-author .avatar { border-radius: 50%; margin-left: 10px; }
.comment-meta { font-size: 12px; color: var(--gmb-text-muted); margin-bottom: 10px; }
.comment-body { color: var(--gmb-text-secondary); line-height: 1.7; }

.gmb-comment-form {
    background: var(--gmb-bg-panel);
    border: 1px solid var(--gmb-border);
    border-radius: var(--gmb-radius);
    padding: 24px;
    margin-top: 20px;
}

.gmb-comment-form .comment-reply-title { color: #fff; font-size: 20px; margin-bottom: 16px; display: block; }
.gmb-comment-form p { margin-bottom: 14px; }
.gmb-comment-form label { display: block; color: var(--gmb-text-secondary); margin-bottom: 6px; font-size: 13px; }
.gmb-comment-form input[type="text"],
.gmb-comment-form input[type="email"],
.gmb-comment-form input[type="url"],
.gmb-comment-form textarea {
    width: 100%;
    background: var(--gmb-bg-card);
    border: 1px solid var(--gmb-border);
    border-radius: var(--gmb-radius-sm);
    padding: 10px 14px;
    color: var(--gmb-text-primary);
    outline: none;
    transition: var(--gmb-transition);
}

.gmb-comment-form input:focus,
.gmb-comment-form textarea:focus { border-color: var(--gmb-neon-purple); }

.gmb-comment-form textarea { min-height: 120px; resize: vertical; }

/* ===== Notice Info ===== */
.gmb-notice-info {
    background: var(--gmb-bg-card);
    border: 1px solid var(--gmb-border);
    border-right: 4px solid var(--gmb-neon-purple);
    border-radius: var(--gmb-radius-sm);
    padding: 20px 24px;
}

.gmb-notice-info p {
    color: var(--gmb-text-secondary);
    margin-bottom: 10px;
    line-height: 1.7;
}

.gmb-notice-info ul {
    margin: 10px 0;
    padding-right: 20px;
    list-style: disc;
}

.gmb-notice-info li {
    color: var(--gmb-text-secondary);
    margin-bottom: 6px;
}

.gmb-notice-info code {
    background: var(--gmb-bg-dark);
    color: var(--gmb-neon-cyan);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    margin-left: 6px;
}

.gmb-notice-info strong { color: var(--gmb-neon-purple); }


.gmb-stories-container {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}


/* جلوگیری از افتادن فوتر زیر محتوای حساب کاربری */
body.woocommerce-account .site-footer,
body.woocommerce-account footer {
    position: relative;
    z-index: 10;
    clear: both;
}

body.woocommerce-account .woocommerce-MyAccount {
    overflow: hidden;
}

body.woocommerce-account .woocommerce-MyAccount::after {
    content: "";
    display: block;
    clear: both;
}