/*
Theme Name: قالب اختصاصی اوکالا نسخه ۲ (Ookala Theme v2)
Theme URI: https://ookala.ir
Author: تیم فنی اوکالا
Description: قالب مدرن، سبک، پرسرعت و کاملاً واکنش‌گرای اوکالا با فونت استاندارد وزیرمتن در ۲ وزن (عادی و بولد)
Version: 2.0.0-modern
Text Domain: ookala-theme
*/

/* Vazirmatn Font (Loaded with swap) */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    --primary: #ed1944;
    --primary-dark: #c20f34;
    --primary-light: #fff0f2;
    --primary-gradient: linear-gradient(135deg, #ed1944 0%, #b80c30 100%);
    --secondary: #0284c7;
    --dark: #0f172a;
    --dark-light: #334155;
    --gray-bg: #f8fafc;
    --gray-border: #e2e8f0;
    --gray-text: #64748b;
    --success: #059669;
    --danger: #dc2626;
    --warning: #f59e0b;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 2px 6px rgba(0,0,0,0.03);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.05), 0 16px 40px rgba(0,0,0,0.08);
    --shadow-primary: 0 4px 16px rgba(237, 25, 68, 0.25), 0 8px 32px rgba(237, 25, 68, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & 2-Weight Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400; /* Strict Regular Weight */
    direction: rtl;
    text-align: right;
    background-color: #f8fafc;
    color: var(--dark);
    line-height: 1.7;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.drawer-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6,
strong, b,
.font-bold,
.section-title,
.product-final-price,
.single-product-title-fa,
.btn-buy-affiliate-huge,
.btn-header-deals,
.btn-affiliate-card {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700 !important; /* Strict Bold Weight */
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease;
}

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

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

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 16px;
}


/* =========================================================================
   HEADER & MOBILE HAMBURGER
   ========================================================================= */
.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 4px 16px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.06);
}
.header-main {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-border);
}
.header-main-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--dark);
    border-radius: var(--radius-sm);
}
.mobile-menu-toggle:hover {
    background: #f1f5f9;
}

.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.header-logo img {
    height: 38px;
    width: auto;
}

/* Desktop Search Bar */
.header-search {
    flex: 1;
    max-width: 580px;
    position: relative;
}
.header-search-form {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 4px 16px;
    border: 1.5px solid transparent;
    transition: var(--transition-smooth);
}
.header-search-form:focus-within {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(237, 25, 68, 0.08);
}
.header-search-input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    color: var(--dark);
    outline: none;
}
.header-search-btn {
    border: none;
    background: transparent;
    color: var(--gray-text);
    cursor: pointer;
    display: flex;
    align-items: center;
}
.header-search-results {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-top: 6px;
    display: none;
    z-index: 1000;
    max-height: 380px;
    overflow-y: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-header-deals {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid #fecdd3;
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-header-deals:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.04);
    box-shadow: var(--shadow-primary);
}

/* =========================================================================
   NAVIGATION BAR (DESKTOP)
   ========================================================================= */
.site-nav {
    background: #fff;
}
.nav-container {
    display: flex;
    align-items: center;
    gap: 20px;
}
.category-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    position: relative;
    color: var(--dark);
    border-left: 1px solid var(--gray-border);
}
.category-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 260px;
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 100;
    padding: 8px 0;
}
.category-dropdown-btn:hover .category-dropdown-menu {
    display: block;
}
.category-dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    font-size: 13px;
    color: var(--dark-light);
}
.category-dropdown-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-right: 20px;
    transition: padding 0.2s ease;
}

.main-menu {
    display: flex;
    list-style: none;
    gap: 24px;
}
.main-menu a {
    font-size: 13px;
    color: var(--dark-light);
    padding: 12px 0;
    display: block;
    position: relative;
    transition: color 0.25s ease;
}
.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.main-menu a:hover {
    color: var(--primary);
}
.main-menu a:hover::after {
    width: 100%;
}

/* =========================================================================
   MOBILE OFF-CANVAS DRAWER
   ========================================================================= */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -360px !important;
    left: auto !important;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    z-index: 99999;
    box-shadow: -4px 0 25px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, visibility 0.25s ease !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-drawer.active {
    right: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--gray-border);
}
.mobile-drawer-logo img {
    height: 32px;
}
.mobile-drawer-close {
    background: transparent;
    border: none;
    color: var(--gray-text);
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.mobile-drawer-search {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-border);
}
.mobile-drawer-search form {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    padding: 2px 10px;
}
.mobile-search-input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 8px 6px;
    font-size: 13px;
    outline: none;
}
.mobile-search-btn {
    border: none;
    background: transparent;
    color: var(--gray-text);
}

.mobile-drawer-nav {
    padding: 16px;
    flex: 1;
}
.mobile-nav-group-title {
    font-size: 11px;
    color: var(--gray-text);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.mobile-menu-list, .mobile-cat-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-menu-list a {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--dark);
}
.mobile-menu-list a:hover {
    background: #f1f5f9;
}
.mobile-cat-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--dark-light);
}
.mobile-cat-list a:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.cat-ico {
    font-size: 16px;
}
.cat-arrow {
    margin-right: auto;
    color: var(--gray-text);
    font-size: 16px;
}

/* =========================================================================
   HOMEPAGE COMPONENTS
   ========================================================================= */
.main-content {
    padding: 24px 0 60px 0;
}

/* Hero Section */
.hero-section {
    margin-bottom: 28px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}
.hero-slider {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    min-height: 380px;
}
.hero-side-banners {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hero-side-banner {
    flex: 1;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* 15 Category Story Circles */
.cat-stories-section {
    margin-bottom: 32px;
}
.cat-stories-wrap {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 4px 16px 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.cat-stories-wrap::-webkit-scrollbar {
    display: none;
}
.cat-story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    flex-shrink: 0;
    width: 80px;
}
.cat-story-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--gray-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}
.cat-story-item:hover .cat-story-icon {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.cat-story-title {
    font-size: 11px;
    color: var(--dark);
    line-height: 1.3;
}

/* Incredible Deals Slider */
.deals-section {
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 36px;
    box-shadow: var(--shadow-primary);
}
.deals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.deals-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.deals-more-btn {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 999px;
}
.products-scroll-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.products-scroll-grid::-webkit-scrollbar {
    display: none;
}
.product-card-scroll {
    width: 220px;
    flex-shrink: 0;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 14px;
    border: 1px solid var(--gray-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    justify-content: space-between;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
    border-color: #cbd5e1;
    transform: translateY(-4px);
}
.product-discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    z-index: 2;
}
.product-thumb {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
    background: #fff;
}
.product-thumb a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.product-thumb img {
    max-height: 140px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.35s ease;
}
.product-card:hover .product-thumb img {
    transform: scale(1.05);
}

.product-brand {
    font-size: 11px;
    color: var(--gray-text);
    margin-bottom: 4px;
    min-height: 16px;
    line-height: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-title {
    font-size: 12.5px;
    line-height: 1.5;
    margin-bottom: 8px;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}
.product-title a {
    color: var(--dark);
    transition: color 0.2s ease;
}
.product-title a:hover {
    color: var(--primary);
}

.product-price-box {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 44px;
    margin-bottom: 10px;
    gap: 2px;
}
.product-old-price {
    font-size: 11px;
    color: var(--gray-text);
    text-decoration: line-through;
    min-height: 16px;
    line-height: 16px;
}
.product-old-price.product-old-price-empty {
    visibility: hidden;
}
.product-final-price {
    font-size: 15px;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.3;
}
.product-final-price span {
    font-size: 11px;
    font-weight: 400;
    color: var(--gray-text);
}
.btn-affiliate-card {
    background: #f8fafc;
    border: 1px solid var(--gray-border);
    color: var(--dark);
    font-size: 11.5px;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-affiliate-card:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

/* Grids */
.section-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 32px 0 18px 0;
}
.section-title {
    font-size: 18px;
    font-weight: 700;
    position: relative;
    padding-right: 12px;
}
.section-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
}
.products-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.banners-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 32px 0;
}
.banners-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 32px 0;
}
.promo-banner-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Magazine Grid */
.mag-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.mag-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-border);
    display: flex;
    flex-direction: column;
}
.mag-thumb {
    height: 180px;
    overflow: hidden;
}
.mag-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mag-card:hover .mag-thumb img {
    transform: scale(1.05);
}
.mag-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.mag-meta {
    font-size: 11px;
    color: var(--gray-text);
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}
.mag-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 8px;
}
.mag-excerpt {
    font-size: 12px;
    color: var(--dark-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Benefits Bar */
.benefits-bar {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--gray-border);
    margin-top: 36px;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.benefit-icon {
    font-size: 28px;
}
.benefit-title {
    font-size: 13px;
    font-weight: 700;
}
.benefit-desc {
    font-size: 11px;
    color: var(--gray-text);
}

/* =========================================================================
   SINGLE PRODUCT PAGE (PDP) - DESKTOP & RESPONSIVE
   ========================================================================= */
.single-product-container {
    padding-top: 20px;
    padding-bottom: 60px;
}
.product-breadcrumb {
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--gray-text);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.breadcrumb-current {
    color: var(--dark);
    font-weight: 700;
}

/* Showcase Box */
.product-showcase-box {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-border);
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 36px;
    margin-bottom: 32px;
}

/* Gallery Column */
.product-gallery-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.main-gallery-img {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    background: #f8fafc;
    border: 1px solid var(--gray-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.main-gallery-img img {
    max-height: 370px;
    width: auto;
    object-fit: contain;
}
.gallery-discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(237,25,68,0.3);
}
.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
}
.gallery-thumb-item {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--gray-border);
    cursor: pointer;
    overflow: hidden;
    background: #f8fafc;
    flex-shrink: 0;
}
.gallery-thumb-item.active {
    border-color: var(--primary);
}
.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-trust-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-border);
    text-align: center;
}
.trust-item {
    font-size: 11px;
    color: var(--gray-text);
}
.trust-icon {
    font-size: 18px;
    margin-bottom: 2px;
}

/* Info Column */
.product-info-side {
    display: flex;
    flex-direction: column;
}
.single-product-title-fa {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.6;
    margin-bottom: 6px;
}
.single-product-title-en {
    font-size: 12px;
    color: var(--gray-text);
    direction: ltr;
    text-align: right;
    margin-bottom: 16px;
}
.product-badges-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-border);
    font-size: 12px;
}
.product-brand-tag {
    background: #f1f5f9;
    color: var(--dark-light);
    padding: 3px 12px;
    border-radius: 999px;
    font-weight: 700;
}
.product-sku-tag {
    color: var(--gray-text);
}
.product-rating-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b;
    font-weight: 700;
    margin-right: auto;
}
.rating-count {
    color: var(--gray-text);
    font-weight: 400;
}

/* Highlights */
.product-highlights-box {
    margin-bottom: 20px;
}
.highlights-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-light);
    margin-bottom: 8px;
}
.highlights-list {
    list-style: disc;
    padding-right: 20px;
    font-size: 13px;
    color: var(--dark-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Buy Box Card */
.single-price-card {
    background: #f8fafc;
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--gray-border);
    margin-top: auto;
}
.price-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 13px;
}
.stock-status {
    display: flex;
    align-items: center;
    gap: 6px;
}
.stock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.stock-dot.in-stock { background: var(--success); }
.stock-dot.out-of-stock { background: var(--danger); }
.seller-info {
    font-size: 12px;
    color: var(--gray-text);
}

.price-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-border);
}
.price-card-label {
    font-size: 12px;
    color: var(--gray-text);
}
.price-old-strike {
    font-size: 12px;
    color: var(--gray-text);
    text-decoration: line-through;
    display: block;
}
.price-final-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}
.price-final-amount span {
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-text);
}
.price-unavailable {
    font-size: 15px;
    font-weight: 700;
    color: var(--danger);
}

.btn-buy-affiliate-huge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-primary);
    text-align: center;
}
.btn-buy-affiliate-huge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(237,25,68,0.45);
    color: #fff;
}
.guarantee-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: var(--success);
    margin-top: 10px;
    background: #ecfdf5;
    padding: 7px;
    border-radius: var(--radius-sm);
}

/* Pros & Cons */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px;
}
.pros-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-md);
    padding: 14px;
}
.pros-title {
    color: #15803d;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}
.pros-list {
    list-style: none;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #166534;
}
.pros-list li {
    position: relative;
    padding-right: 12px;
}
.pros-list li::before {
    content: '•';
    position: absolute;
    right: 0;
}
.cons-card {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    padding: 14px;
}
.cons-title {
    color: #b91c1c;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}
.cons-list {
    list-style: none;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #991b1b;
}
.cons-list li {
    position: relative;
    padding-right: 12px;
}
.cons-list li::before {
    content: '•';
    position: absolute;
    right: 0;
}

/* Editorial & Specs */
.product-editorial-box,
.product-specs-box {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-border);
    margin-bottom: 28px;
}
.box-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    width: fit-content;
}
.editorial-content {
    line-height: 2;
    font-size: 14px;
    color: var(--dark-light);
}

.specs-group {
    margin-bottom: 20px;
}
.specs-group-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    border-right: 4px solid var(--primary);
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.specs-table tr {
    border-bottom: 1px solid var(--gray-border);
}
.specs-table .spec-label {
    width: 240px;
    padding: 10px 14px;
    color: var(--gray-text);
    font-weight: 700;
    background: #f8fafc;
    border-left: 1px solid var(--gray-border);
    text-align: right;
}
.specs-table .spec-val {
    padding: 10px 14px;
    color: var(--dark);
    line-height: 1.6;
}

/* Mobile Sticky Buy Bar */
.mobile-sticky-buy-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--gray-border);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
    padding: 10px 16px;
    z-index: 990;
    display: none;
}
.sticky-buy-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}
.sticky-product-title {
    font-size: 11px;
    color: var(--gray-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}
.sticky-product-price strong {
    font-size: 15px;
    color: var(--dark);
    font-weight: 700;
}
.sticky-product-price span {
    font-size: 11px;
    color: var(--gray-text);
}
.sticky-buy-btn {
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

/* =========================================================================
   FOOTER (Ultra-Modern 2026 E-Commerce Redesign)
   ========================================================================= */
.site-footer {
    background: #ffffff;
    color: #475569;
    padding: 48px 0 28px 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 60px;
}

/* 1. Footer Top Header (Brand, Support Phone, Back to Top) */
.footer-top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 28px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 32px;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-brand-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-logo-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    max-height: 38px;
}
.footer-brand-logo,
.site-footer .footer-brand-logo,
.woocommerce .site-footer .footer-brand-logo,
.woocommerce-page .site-footer .footer-brand-logo,
body.single-product .site-footer .footer-brand-logo,
body.woocommerce .site-footer .footer-brand-logo {
    height: 38px !important;
    max-height: 38px !important;
    width: auto !important;
    max-width: 215px !important;
    min-width: 0 !important;
    object-fit: contain !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.footer-brand-tagline {
    font-size: 13px;
    color: #64748b;
    border-right: 2px solid #e2e8f0;
    padding-right: 16px;
    font-weight: 500;
}
.footer-top-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-support-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
}
.footer-support-label {
    color: #64748b;
}
.footer-support-phone {
    color: var(--dark);
    font-weight: 700;
    direction: ltr;
    display: inline-block;
    transition: color 0.2s ease;
}
.footer-support-phone:hover {
    color: var(--primary);
}
.footer-support-divider {
    color: #cbd5e1;
}
.footer-support-hours {
    color: #64748b;
    font-size: 12px;
}
.footer-back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}
.footer-back-to-top:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: #fecdd3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 25, 68, 0.12);
}
.footer-back-to-top svg {
    transition: transform 0.25s ease;
}
.footer-back-to-top:hover svg {
    transform: translateY(-3px);
}

/* 2. Footer Value Propositions / Features Bar */
.footer-features-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
    padding: 20px 24px;
    background: #f8fafc;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
}
.footer-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: background 0.2s ease, transform 0.2s ease;
}
.footer-feature-item:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.footer-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}
.footer-feature-item:hover .footer-feature-icon {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(237, 25, 68, 0.25);
}
.footer-feature-text {
    display: flex;
    flex-direction: column;
}
.footer-feature-text strong {
    font-size: 13px;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 2px;
}
.footer-feature-text span {
    font-size: 11px;
    color: #64748b;
    line-height: 1.5;
}

/* 3. Main 4-Column Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr 1.2fr 1.8fr;
    gap: 36px;
    margin-bottom: 40px;
}
.footer-widget-title {
    color: var(--dark);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}
.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 2.5px;
    background: var(--primary-gradient);
    border-radius: 2px;
}
.footer-about-desc {
    font-size: 13px;
    line-height: 1.9;
    color: #475569;
    margin-bottom: 20px;
}
.footer-social-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-social-title {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}
.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-social-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(237, 25, 68, 0.25);
}

/* Footer Links */
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    color: #475569;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    position: relative;
}
.footer-links a:hover {
    color: var(--primary);
    transform: translateX(-4px);
    font-weight: 600;
}

/* Contact Cards (Col 4) */
.footer-contact-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    transition: all 0.25s ease;
}
.footer-contact-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.footer-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.footer-contact-card:hover .footer-contact-icon {
    background: var(--primary-light);
}
.footer-contact-details {
    display: flex;
    flex-direction: column;
}
.footer-contact-label {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 2px;
}
.footer-contact-value {
    font-size: 13px;
    color: var(--dark);
    font-weight: 700;
    direction: ltr;
    text-align: right;
}
.footer-contact-card-address .footer-contact-value {
    direction: rtl;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
}

/* 4. SEO Affiliate Text Box */
.footer-text-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    border-right: 4px solid var(--primary);
}
.footer-text-icon {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}
.footer-text-content {
    font-size: 13px;
    line-height: 1.9;
    color: #475569;
}
.footer-text-content strong {
    color: var(--dark);
    font-weight: 700;
}

/* 5. Footer Bottom Bar */
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}
.footer-bottom-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-copyright-text {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}
.footer-copyright-text strong {
    color: var(--dark);
}
.footer-bottom-badge span {
    font-size: 11px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
}

/* =========================================================================
   MEDIA QUERIES - FULL SITE RESPONSIVENESS OVERHAUL
   ========================================================================= */

/* Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
    .products-grid-4,
    .banners-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-slider {
        min-height: 300px;
    }
    .hero-side-banners {
        flex-direction: row;
    }
    .footer-features-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .product-showcase-box {
        grid-template-columns: 360px 1fr;
        gap: 24px;
        padding: 24px;
    }
    .main-gallery-img {
        height: 320px;
    }
}

/* Tablets & Phones (<= 768px) */
@media (max-width: 768px) {
    .topbar {
        display: none; /* Hide topbar on mobile for cleaner view */
    }
    
    .mobile-menu-toggle {
        display: flex; /* Show hamburger button */
    }
    
    .header-search,
    .site-nav {
        display: none; /* Desktop search & horizontal bar hidden */
    }

    .header-main {
        padding: 8px 0;
        max-width: 100%;
        overflow: hidden;
    }
    
    .header-main-container {
        gap: 8px;
        justify-content: space-between;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .header-logo {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }

    .header-logo img {
        height: 28px;
        max-width: 115px;
        width: auto;
        object-fit: contain;
    }

    .header-actions {
        flex-shrink: 0;
    }

    .btn-header-deals {
        padding: 5px 10px;
        font-size: 11.5px;
        gap: 4px;
        flex-shrink: 0;
        white-space: nowrap;
        box-sizing: border-box;
    }

    .btn-header-deals svg {
        width: 14px;
        height: 14px;
    }

    @media (max-width: 380px) {
        .btn-header-deals {
            padding: 5px 7px;
            font-size: 10.5px;
            gap: 3px;
        }
        .header-logo img {
            height: 25px;
            max-width: 95px;
        }
    }

    /* Hero */
    .hero-slider {
        min-height: 220px;
    }
    .hero-side-banners {
        flex-direction: column;
        gap: 10px;
    }

    /* Grids: 2 Columns on Mobile */
    .products-grid-4,
    .banners-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .banners-grid-2 {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .mag-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Product Card on Mobile */
    .product-card {
        padding: 10px;
    }
    .product-thumb {
        height: 120px;
    }
    .product-thumb img {
        max-height: 110px;
    }
    .product-title {
        font-size: 12px;
        height: 34px;
        margin-bottom: 6px;
    }
    .product-final-price {
        font-size: 14px;
    }
    .btn-affiliate-card {
        padding: 6px 8px;
        font-size: 11px;
    }

    /* SINGLE PRODUCT PAGE MOBILE OVERHAUL */
    .single-product-container {
        padding-top: 12px;
        padding-bottom: 80px; /* Space for sticky bar */
    }
    .product-showcase-box {
        display: flex;
        flex-direction: column;
        padding: 16px;
        gap: 20px;
        border-radius: var(--radius-lg);
    }
    .product-gallery-side {
        width: 100%;
    }
    .main-gallery-img {
        height: 260px;
    }
    .main-gallery-img img {
        max-height: 240px;
    }
    .gallery-thumbs {
        gap: 6px;
    }
    .gallery-thumb-item {
        width: 54px;
        height: 54px;
    }
    .single-product-title-fa {
        font-size: 16px;
        line-height: 1.5;
    }
    .single-product-title-en {
        font-size: 11px;
    }
    .single-price-card {
        padding: 16px;
    }
    .price-final-amount {
        font-size: 20px;
    }
    .btn-buy-affiliate-huge {
        font-size: 14px;
        padding: 12px 18px;
    }

    .pros-cons-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Responsive Specs Table on Mobile */
    .specs-table, .specs-table tbody, .specs-table tr, .specs-table td, .specs-table th {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }
    .specs-table tr {
        border-bottom: 1px solid var(--gray-border);
        margin-bottom: 8px;
    }
    .specs-table .spec-label {
        background: #f1f5f9;
        border: none;
        padding: 8px 10px;
        font-size: 12px;
        color: var(--dark-light);
    }
    .specs-table .spec-val {
        padding: 8px 10px;
        font-size: 12px;
    }

    .product-editorial-box,
    .product-specs-box {
        padding: 18px;
        border-radius: var(--radius-lg);
    }

    /* Mobile Sticky Bar Visible */
    .mobile-sticky-buy-bar {
        display: block;
    }

    /* Footer on Mobile */
    .footer-top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .footer-brand-info {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .footer-brand-tagline {
        border-right: none;
        padding-right: 0;
        font-size: 12px;
    }
    .footer-top-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .footer-support-badge {
        width: 100%;
        justify-content: center;
    }
    .footer-back-to-top {
        width: 100%;
        justify-content: center;
    }
    .footer-features-bar {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 16px 14px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}


/* Very Small Mobile (< 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    .deals-section {
        padding: 16px 12px;
        border-radius: var(--radius-lg);
    }
    .deals-title {
        font-size: 15px;
    }
    .product-card-scroll {
        width: 170px;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================================
   ARCHIVE & CATEGORY PAGE STYLES
   ========================================================================= */
.archive-page-main {
    padding-top: 16px;
    padding-bottom: 60px;
}

.archive-header-banner {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    border: 1px solid var(--gray-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.archive-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}
.archive-cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}
.archive-cat-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}
.archive-cat-desc {
    font-size: 12px;
    color: var(--gray-text);
    line-height: 1.6;
}
.archive-header-meta {
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--dark-light);
    white-space: nowrap;
}

/* Archive Layout */
.archive-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

/* Sidebar */
.archive-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.archive-sidebar-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--gray-border);
    box-shadow: var(--shadow-sm);
}
.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-border);
}
.sidebar-cat-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar-cat-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--dark-light);
}
.sidebar-cat-list li.active a,
.sidebar-cat-list li a:hover {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}
.count-badge {
    background: #f1f5f9;
    color: var(--gray-text);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
}
.sidebar-cat-list li.active .count-badge {
    background: var(--primary);
    color: #fff;
}
.trust-sidebar-card {
    text-align: center;
    background: #f8fafc;
}

/* Sort Bar */
.archive-sort-bar {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 12px 18px;
    border: 1px solid var(--gray-border);
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    scrollbar-width: none;
}
.archive-sort-bar::-webkit-scrollbar { display: none; }
.sort-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-text);
    font-weight: 700;
    white-space: nowrap;
}
.sort-options {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sort-opt {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--dark-light);
    background: #f8fafc;
    border: 1px solid var(--gray-border);
    white-space: nowrap;
}
.sort-opt.active, .sort-opt:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 700;
}

/* Archive Grid */
.archive-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Pagination */
.archive-pagination {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}
.archive-pagination ul {
    display: flex;
    list-style: none;
    gap: 6px;
}
.archive-pagination li a,
.archive-pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--gray-border);
    font-size: 13px;
    color: var(--dark);
    font-weight: 700;
}
.archive-pagination li span.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.archive-empty-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 60px 20px;
    text-align: center;
    border: 1px solid var(--gray-border);
}

/* Responsive Archive Page */
@media (max-width: 1024px) {
    .archive-layout-grid {
        grid-template-columns: 220px 1fr;
        gap: 16px;
    }
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .archive-header-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    .archive-layout-grid {
        display: block !important;
        width: 100% !important;
    }
    .archive-sidebar {
        display: none !important; /* In mobile, drawer has categories */
    }
    .archive-products-content {
        width: 100% !important;
    }
    
    /* Strict 1 Product Per Row on Mobile Shop & Category Archives */
    .archive-grid,
    .archive-products-content .products-grid-4 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
    }
    .archive-grid .product-card,
    .archive-products-content .product-card {
        padding: 16px !important;
        border-radius: var(--radius-md) !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: #fff !important;
    }
    .archive-grid .product-thumb,
    .archive-products-content .product-thumb {
        height: 180px !important;
        margin-bottom: 12px !important;
    }
    .archive-grid .product-thumb img,
    .archive-products-content .product-thumb img {
        max-height: 170px !important;
    }
    .archive-grid .product-brand,
    .archive-products-content .product-brand {
        font-size: 11px !important;
        margin-bottom: 4px !important;
    }
    .archive-grid .product-title,
    .archive-products-content .product-title {
        font-size: 13.5px !important;
        line-height: 1.5 !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        margin-bottom: 10px !important;
        -webkit-line-clamp: 3 !important;
    }
    .archive-grid .product-price-box,
    .archive-products-content .product-price-box {
        min-height: auto !important;
        margin-bottom: 12px !important;
    }
    .archive-grid .product-final-price,
    .archive-products-content .product-final-price {
        font-size: 16px !important;
    }
    .archive-grid .btn-affiliate-card,
    .archive-products-content .btn-affiliate-card {
        padding: 10px 16px !important;
        font-size: 13px !important;
        justify-content: center !important;
        gap: 8px !important;
        text-align: center !important;
    }

    .archive-sort-bar {
        padding: 8px 10px;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .sort-opt {
        padding: 5px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .archive-grid,
    .archive-products-content .products-grid-4 {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .archive-grid .product-card,
    .archive-products-content .product-card {
        padding: 14px !important;
    }
    .archive-grid .product-thumb,
    .archive-products-content .product-thumb {
        height: 160px !important;
        margin-bottom: 10px !important;
    }
    .archive-grid .product-thumb img,
    .archive-products-content .product-thumb img {
        max-height: 150px !important;
    }
    .archive-grid .product-title,
    .archive-products-content .product-title {
        font-size: 13px !important;
    }
}
/* =========================================================================
   FULLSCREEN PRODUCT LIGHTBOX MODAL
   ========================================================================= */
.main-gallery-img {
    cursor: zoom-in;
}
.gallery-zoom-hint {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
    pointer-events: none;
}
.main-gallery-img:hover .gallery-zoom-hint {
    background: var(--primary);
}

.ookala-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}
.ookala-lightbox-modal.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
}

.lightbox-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 24px;
    box-sizing: border-box;
}

.lightbox-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.lightbox-counter-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}
.lightbox-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}
.lightbox-close-btn:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.lightbox-stage {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex: 1;
    gap: 16px;
    position: relative;
    padding: 10px 0;
}

.lightbox-arrow {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}
.lightbox-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.lightbox-img-container {
    flex: 1;
    height: 100%;
    max-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.lightbox-img-container img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: #fff;
    padding: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-bottom-thumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}
.lightbox-bottom-thumbs::-webkit-scrollbar { display: none; }
.lightbox-thumb-item {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    opacity: 0.6;
    transition: all 0.2s;
}
.lightbox-thumb-item.active,
.lightbox-thumb-item:hover {
    border-color: var(--primary);
    opacity: 1;
    transform: translateY(-2px);
}
.lightbox-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .lightbox-inner {
        padding: 12px 14px;
    }
    .lightbox-arrow {
        width: 40px;
        height: 40px;
    }
    .lightbox-img-container {
        max-height: 55vh;
    }
    .lightbox-img-container img {
        max-height: 55vh;
        padding: 10px;
    }
    .lightbox-thumb-item {
        width: 48px;
        height: 48px;
    }
}
/* =========================================================================
   INTERACTIVE DEALS SLIDER & DRAG TO SCROLL
   ========================================================================= */
.deals-section {
    position: relative;
    user-select: none;
}
.deals-header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}
.deals-nav-arrows-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.deals-btn-arrow {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.deals-btn-arrow:hover {
    background: #fff;
    color: var(--primary);
    transform: scale(1.08);
}

.deals-slider-outer {
    position: relative;
    width: 100%;
}

.deals-floating-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: 50%;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
    transition: all 0.25s ease;
    opacity: 0.95;
}
.deals-floating-arrow:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(237, 25, 68, 0.4);
    opacity: 1;
}
.deals-floating-arrow-right {
    right: -16px;
}
.deals-floating-arrow-left {
    left: -16px;
}

/* Draggable Container */
#ookala-deals-scroll-container {
    cursor: grab;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
#ookala-deals-scroll-container.is-dragging {
    cursor: grabbing !important;
    scroll-behavior: auto !important;
}
#ookala-deals-scroll-container.is-dragging {
    user-select: none !important;
}

@media (max-width: 768px) {
    .deals-floating-arrow {
        display: none; /* In mobile, touch swipe is natural */
    }
    .deals-nav-arrows-group {
        display: none;
    }
}
/* =========================================================================
   INTERACTIVE STORIES SLIDER & DRAG TO SCROLL
   ========================================================================= */
.cat-stories-section {
    position: relative;
    user-select: none;
}
.cat-stories-outer {
    position: relative;
    width: 100%;
}

.stories-floating-arrow {
    position: absolute;
    top: 36px;
    z-index: 10;
    width: 38px;
    height: 38px;
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: 50%;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
    opacity: 0.95;
}
.stories-floating-arrow:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(237, 25, 68, 0.35);
    opacity: 1;
}
.stories-floating-arrow-right {
    right: -12px;
}
.stories-floating-arrow-left {
    left: -12px;
}

/* Draggable Stories Container */
#ookala-cat-stories-container {
    cursor: grab;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
#ookala-cat-stories-container.is-dragging {
    cursor: grabbing !important;
    scroll-behavior: auto !important;
}
#ookala-cat-stories-container.is-dragging {
    user-select: none !important;
}

@media (max-width: 768px) {
    .stories-floating-arrow {
        display: none;
    }
}
/* =========================================================================
   PRODUCT TAGS SECTION (LAST FIELD FOR SEO)
   ========================================================================= */
.product-tags-box {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    border: 1px solid var(--gray-border);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}
.tags-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-light);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.tags-section-title svg {
    color: var(--primary);
}
.product-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.product-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    border: 1px solid var(--gray-border);
    color: #334155;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    transition: all 0.2s ease;
}
.product-tag-item .tag-hash {
    color: var(--primary);
    font-weight: 700;
}
.product-tag-item:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(237, 25, 68, 0.25);
}
.product-tag-item:hover .tag-hash {
    color: #fff;
}
/* Product Brand Clickable Tag */
.product-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: var(--dark);
    padding: 4px 14px;
    border-radius: 999px;
    border: 1px solid var(--gray-border);
    transition: all 0.2s ease;
}
.product-brand-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(237, 25, 68, 0.25);
}
.product-brand-link:hover .brand-arrow {
    color: #fff;
}
.brand-arrow {
    color: var(--gray-text);
    font-size: 14px;
    font-weight: 700;
}
/* =========================================================================
   INDEPENDENT MAGAZINE PORTAL & ARTICLE STYLES (OOKALA MAG)
   ========================================================================= */

/* Magazine Sub-Navigation Bar */
.mag-subnav-bar {
    background: #fff;
    border-bottom: 1px solid var(--gray-border);
    padding: 12px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.mag-subnav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.mag-brand-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mag-brand-badge {
    background: #0f172a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}
.mag-brand-name {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary);
}
.mag-brand-slogan {
    font-size: 12px;
    color: var(--gray-text);
    border-right: 1px solid var(--gray-border);
    padding-right: 8px;
}
.mag-topics-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}
.mag-topics-nav::-webkit-scrollbar { display: none; }
.topic-pill {
    display: inline-block;
    padding: 6px 14px;
    background: #f8fafc;
    border: 1px solid var(--gray-border);
    border-radius: 999px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.topic-pill:hover,
.topic-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(237, 25, 68, 0.25);
}

/* Trending Ticker Bar */
.mag-ticker-bar {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 0;
    font-size: 12px;
}
.mag-ticker-container {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.ticker-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #0f172a;
    font-weight: 700;
    white-space: nowrap;
}
.ticker-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}
.ticker-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}
.ticker-tags a {
    color: #64748b;
    transition: color 0.2s;
}
.ticker-tags a:hover {
    color: var(--primary);
}

/* 1. HERO FEATURED 4-GRID */
.mag-hero-section {
    margin-bottom: 36px;
}
.mag-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 16px;
    min-height: 420px;
}
.hero-card-main {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #0f172a;
}
.hero-main-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}
.hero-main-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}
.hero-card-main:hover .hero-main-bg {
    transform: scale(1.04);
}
.hero-main-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.92) 100%);
}
.hero-main-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 28px;
    color: #fff;
    z-index: 2;
}
.hero-tags-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.mag-badge-cat {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    display: inline-block;
}
.mag-badge-cat-sm {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    display: inline-block;
}
.mag-badge-time {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}
.hero-main-title {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #fff;
}
.hero-main-excerpt {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 14px;
}
.hero-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #94a3b8;
}

.hero-side-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hero-side-card {
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    flex: 1;
    transition: all 0.2s ease;
}
.hero-side-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.hero-side-link {
    display: flex;
    height: 100%;
    align-items: center;
    padding: 12px;
    gap: 14px;
}
.hero-side-thumb {
    width: 110px;
    height: 85px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}
.hero-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.hero-side-card:hover .hero-side-thumb img {
    transform: scale(1.08);
}
.hero-side-info {
    flex: 1;
}
.hero-side-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.mag-meta-date {
    font-size: 11px;
    color: #94a3b8;
}
.hero-side-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.5;
}

/* 2. DEDICATED VIDEO REVIEWS SECTION */
.mag-videos-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    margin-bottom: 40px;
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.mag-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
}
.mag-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mag-section-icon {
    font-size: 28px;
}
.mag-section-title {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    margin: 0;
}
.mag-section-subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin: 2px 0 0 0;
}
.mag-view-all-link {
    color: var(--primary);
    background: rgba(237, 25, 68, 0.15);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
}
.mag-view-all-link:hover {
    background: var(--primary);
    color: #fff;
}
.mag-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.mag-video-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s ease;
    cursor: pointer;
}
.mag-video-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}
.video-card-thumb-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}
.video-card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.mag-video-card:hover .video-card-thumb-wrap img {
    transform: scale(1.06);
}
.video-play-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.mag-video-card:hover .video-play-overlay {
    background: rgba(0,0,0,0.15);
}
.video-play-btn-circle {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 20px rgba(237, 25, 68, 0.7);
    transition: transform 0.2s;
}
.mag-video-card:hover .video-play-btn-circle {
    transform: scale(1.15);
}
.video-duration-pill {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}
.video-card-body {
    padding: 16px;
}
.video-card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 10px;
}
.video-card-title a {
    color: #fff;
    transition: color 0.2s;
}
.video-card-title a:hover {
    color: var(--primary);
}
.video-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
}

/* 3. TWO-COLUMN MAIN STREAM & SIDEBAR */
.mag-main-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 28px;
}
.mag-stream-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--gray-border);
    padding-bottom: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.stream-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.stream-header-title h3 {
    font-size: 16px;
    font-weight: 900;
    color: var(--dark);
    margin: 0;
}
.stream-filter-pills {
    display: flex;
    gap: 6px;
}
.stream-filter-btn {
    background: #f8fafc;
    border: 1px solid var(--gray-border);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}
.stream-filter-btn:hover,
.stream-filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.mag-articles-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.mag-article-row-card {
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    transition: all 0.2s ease;
}
.mag-article-row-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.mag-row-thumb {
    width: 240px;
    min-height: 170px;
    flex-shrink: 0;
    overflow: hidden;
}
.mag-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.mag-article-row-card:hover .mag-row-thumb img {
    transform: scale(1.06);
}
.mag-row-body {
    padding: 18px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.mag-row-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.mag-row-meta-time {
    font-size: 11px;
    color: #94a3b8;
}
.mag-row-title {
    font-size: 16px;
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 8px;
}
.mag-row-title a {
    color: var(--dark);
    transition: color 0.2s;
}
.mag-row-title a:hover {
    color: var(--primary);
}
.mag-row-excerpt {
    font-size: 13px;
    color: var(--gray-text);
    line-height: 1.7;
    margin-bottom: 12px;
}
.mag-row-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}
.mag-row-author-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: #94a3b8;
}
.mag-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    transition: gap 0.2s;
}
.mag-read-more-btn:hover {
    gap: 8px;
}

/* Magazine Sidebar */
.mag-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.mag-sidebar-card {
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.mag-widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--gray-border);
    padding-bottom: 10px;
    margin-bottom: 16px;
}
.mag-widget-header .widget-icon {
    font-size: 18px;
}
.mag-widget-header .widget-title {
    font-size: 14px;
    font-weight: 900;
    color: var(--dark);
    margin: 0;
}

/* Hot Articles List Widget */
.hot-articles-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.hot-article-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #f8fafc;
    padding-bottom: 12px;
}
.hot-article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.hot-number {
    width: 28px;
    height: 28px;
    background: #f1f5f9;
    color: var(--primary);
    font-size: 14px;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hot-article-item:nth-child(1) .hot-number { background: var(--primary); color: #fff; }
.hot-article-item:nth-child(2) .hot-number { background: #f97316; color: #fff; }
.hot-article-item:nth-child(3) .hot-number { background: #0284c7; color: #fff; }
.hot-article-info {
    flex: 1;
}
.hot-title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 4px;
}
.hot-title a {
    color: var(--dark);
    transition: color 0.2s;
}
.hot-title a:hover {
    color: var(--primary);
}
.hot-date {
    font-size: 10px;
    color: #94a3b8;
}

/* Sidebar Deal Widget */
.deal-widget-content {
    text-align: center;
}
.deal-widget-thumb {
    position: relative;
    width: 100%;
    height: 160px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.deal-widget-thumb img {
    max-height: 140px;
    object-fit: contain;
}
.deal-discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
}
.deal-widget-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 8px;
}
.deal-widget-title a {
    color: var(--dark);
}
.deal-widget-price {
    font-size: 15px;
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 12px;
}
.deal-widget-price strong {
    font-size: 18px;
}
.deal-widget-price span {
    font-size: 12px;
}
.deal-widget-buy-btn {
    display: block;
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
}
.deal-widget-buy-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 25, 68, 0.35);
}

/* Sidebar Categories Widget */
.mag-cat-widget-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mag-cat-widget-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    background: #f8fafc;
    transition: all 0.2s;
}
.mag-cat-widget-list a:hover {
    background: #fee2e2;
    color: var(--primary);
    padding-right: 16px;
}

/* Sidebar Newsletter Widget */
.mag-newsletter-widget {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    text-align: center;
}
.newsletter-icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.newsletter-title {
    font-size: 14px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 6px;
}
.newsletter-desc {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 14px;
}
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.newsletter-form input {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 12px;
    font-family: inherit;
    box-sizing: border-box;
}
.newsletter-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.newsletter-form button:hover {
    background: var(--primary-hover);
}

/* =========================================================================
   SINGLE ARTICLE PAGE STYLES
   ========================================================================= */
.mag-article-container {
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}
.mag-article-header {
    margin-bottom: 24px;
}
.article-cat-badge-wrap {
    margin-bottom: 12px;
}
.mag-article-title {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.5;
    color: var(--dark);
    margin-bottom: 16px;
}
.mag-article-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-border);
}
.author-meta-box {
    display: flex;
    align-items: center;
    gap: 10px;
}
.author-avatar-circle {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.author-label {
    font-size: 11px;
    color: #94a3b8;
    display: block;
}
.author-name {
    font-size: 13px;
    color: var(--dark);
}
.article-meta-items {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #94a3b8;
}

.mag-article-featured-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}
.mag-article-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Table of Contents */
.mag-toc-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 18px 24px;
    margin-bottom: 28px;
}
.toc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.toc-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}
.toc-list {
    margin: 0;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.toc-list a {
    color: #0284c7;
    font-size: 13px;
    transition: color 0.2s;
}
.toc-list a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Article Entry Content Typography */
.mag-article-entry-content {
    font-size: 15px;
    line-height: 2.1;
    color: #334155;
}
.mag-article-entry-content p {
    margin-bottom: 20px;
}
.mag-article-entry-content .lead-paragraph {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    line-height: 2.2;
}
.mag-article-entry-content h2 {
    font-size: 19px;
    font-weight: 900;
    color: var(--dark);
    margin: 32px 0 16px 0;
    padding-right: 12px;
    border-right: 4px solid var(--primary);
}
.mag-article-entry-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin: 24px 0 12px 0;
}
.mag-callout-box {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin: 24px 0;
    color: #9f1239;
    font-size: 14px;
    line-height: 1.8;
}
.mag-content-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.mag-content-table th,
.mag-content-table td {
    padding: 12px 16px;
    border: 1px solid var(--gray-border);
    text-align: right;
    font-size: 13px;
}
.mag-content-table th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--dark);
}
.mag-video-embed-box {
    background: #0f172a;
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    color: #fff;
    margin: 24px 0;
}
.video-play-huge {
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    margin: 0 auto 12px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 25px rgba(237, 25, 68, 0.7);
    cursor: pointer;
}
.video-duration-badge {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 6px;
}

/* Linked Product Showcase Card */
.mag-product-affiliate-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 36px 0;
}
.affiliate-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 16px;
}
.affiliate-label-badge {
    background: #0f172a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}
.affiliate-source {
    font-size: 12px;
    color: #64748b;
}
.affiliate-source strong {
    color: var(--primary);
}
.affiliate-card-body {
    display: flex;
    gap: 20px;
    align-items: center;
}
.affiliate-card-thumb {
    position: relative;
    width: 120px;
    height: 120px;
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.affiliate-card-thumb img {
    max-height: 100px;
    object-fit: contain;
}
.card-discount-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
}
.affiliate-card-info {
    flex: 1;
}
.affiliate-prod-title {
    font-size: 15px;
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 8px;
}
.affiliate-prod-title a {
    color: var(--dark);
}
.affiliate-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 14px;
}
.affiliate-price-val {
    color: var(--primary);
    font-size: 16px;
    font-weight: 900;
}
.affiliate-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.btn-buy-digikala-card {
    background: var(--primary);
    color: #fff;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}
.btn-buy-digikala-card:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(237, 25, 68, 0.35);
}
.btn-specs-card {
    background: #fff;
    border: 1px solid var(--gray-border);
    color: #334155;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
}
.btn-specs-card:hover {
    border-color: var(--dark);
}

/* Social Share Bar */
.mag-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin: 32px 0;
    flex-wrap: wrap;
    gap: 12px;
}
.share-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
}
.share-title svg {
    color: var(--primary);
}
.share-buttons-group {
    display: flex;
    gap: 8px;
}
.share-btn {
    border: none;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.share-telegram { background: #229ed9; color: #fff; }
.share-telegram:hover { background: #1b86b8; }
.share-whatsapp { background: #25d366; color: #fff; }
.share-whatsapp:hover { background: #1eb355; }
.share-copy { background: #e2e8f0; color: #334155; font-family: inherit; }
.share-copy:hover { background: #cbd5e1; }

/* Author Bio Box */
.mag-author-bio-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f1f5f9;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin: 32px 0;
}
.author-bio-avatar {
    width: 56px;
    height: 56px;
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}
.author-bio-name {
    font-size: 15px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 2px;
}
.author-bio-role {
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}
.author-bio-text {
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Related Articles Section */
.mag-related-section {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-border);
}
.related-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}
.related-title {
    font-size: 16px;
    font-weight: 900;
    color: var(--dark);
    margin: 0;
}
.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.related-article-card {
    background: #f8fafc;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s;
}
.related-article-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.related-thumb {
    width: 100%;
    height: 120px;
    overflow: hidden;
}
.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-body {
    padding: 12px 14px;
}
.related-card-title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 6px;
}
.related-card-title a {
    color: var(--dark);
}
.related-card-title a:hover {
    color: var(--primary);
}
.related-date {
    font-size: 10px;
    color: #94a3b8;
}

/* Mobile Responsiveness for Magazine */
@media (max-width: 992px) {
    .mag-hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-card-main {
        min-height: 320px;
    }
    .mag-videos-grid {
        grid-template-columns: 1fr 1fr;
    }
    .mag-main-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .mag-videos-grid {
        grid-template-columns: 1fr;
    }
    .mag-article-row-card {
        flex-direction: column;
    }
    .mag-row-thumb {
        width: 100%;
        height: 160px;
    }
    .mag-article-container {
        padding: 20px 16px;
    }
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    .affiliate-card-body {
        flex-direction: column;
        text-align: center;
    }
    .affiliate-price-row {
        justify-content: center;
    }
    .affiliate-card-actions {
        justify-content: center;
    }
}

/* HERO BANNERS & STORIES ENHANCEMENTS */
.hero-slider, .hero-slider a, .hero-slider img {
    border-radius: 16px !important;
    overflow: hidden;
}
.hero-side-banner, .hero-side-banner a, .hero-side-banner img {
    border-radius: 16px !important;
    overflow: hidden;
    height: 100%;
}
.cat-stories-outer {
    position: relative;
    width: 100%;
}
.cat-stories-wrap {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 10px 4px 16px 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
}
.cat-stories-wrap::-webkit-scrollbar {
    display: none;
}
.cat-stories-wrap.is-dragging {
    cursor: grabbing;
}
.cat-story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    flex-shrink: 0;
    width: 82px;
    text-decoration: none;
    color: var(--dark);
}
.cat-story-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.cat-story-item:hover .cat-story-icon {
    border-color: #ed1944;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 18px rgba(237, 25, 68, 0.18);
}
.cat-story-title {
    font-size: 11px;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.3;
}


/* =========================================================================
   INSTAGRAM-STYLE STORY TRAY & FULL-SCREEN MODAL
   ========================================================================= */

.cat-story-item {
    cursor: pointer;
    transition: transform 0.2s ease;
}
.cat-story-item:hover {
    transform: translateY(-3px);
}

.cat-story-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.25);
    transition: all 0.25s ease;
}
.cat-story-item.seen .cat-story-icon-wrap {
    background: #cbd5e1;
    box-shadow: none;
}
.cat-story-item:hover .cat-story-icon-wrap {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(220, 39, 67, 0.35);
}

.cat-story-thumb-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 2px solid #fff;
    display: block;
}

.story-video-badge {
    position: absolute;
    bottom: -2px;
    left: -2px;
    background: #0f172a;
    color: #fff;
    font-size: 9px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #fff;
}

/* FULL-SCREEN STORY MODAL */
.ookala-story-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.ookala-story-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.story-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 29, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.story-viewer-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    height: 88vh;
    max-height: 820px;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    direction: rtl;
    user-select: none;
}

@media (max-width: 480px) {
    .story-viewer-container {
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
}

/* TOP PROGRESS SEGMENTS */
.story-progress-segments {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 4px;
    z-index: 10;
}
.story-progress-bar-wrap {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    overflow: hidden;
}
.story-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 999px;
    transition: width 0.05s linear;
}
.story-progress-bar-wrap.completed .story-progress-bar-fill {
    width: 100% !important;
}

/* STORY HEADER */
.story-viewer-header {
    position: absolute;
    top: 24px;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.story-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.story-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}
.story-author-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    display: block;
}
.story-time-ago {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.75);
}
.story-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.story-pause-toggle-btn, .story-close-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.story-pause-toggle-btn:hover, .story-close-btn:hover {
    background: rgba(237, 25, 68, 0.85);
    border-color: #ed1944;
}

/* MEDIA WRAPPER */
.story-media-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
.story-media-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}
.story-media-item.active {
    display: block;
}

/* TAP ZONES FOR LEFT & RIGHT NAVIGATION */
.story-tap-zone {
    position: absolute;
    top: 60px;
    bottom: 80px;
    width: 45%;
    z-index: 5;
    cursor: pointer;
}
.story-tap-right {
    right: 0;
}
.story-tap-left {
    left: 0;
}

/* SIDE NAVIGATION BUTTONS */
.story-side-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 12;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}
.story-side-nav:hover {
    background: #ed1944;
    transform: translateY(-50%) scale(1.1);
}
.story-side-nav-prev {
    left: -55px;
}
.story-side-nav-next {
    right: -55px;
}
@media (max-width: 600px) {
    .story-side-nav {
        display: none;
    }
}

/* BOTTOM ACTION CTA */
.story-bottom-cta-wrap {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 10;
}
.story-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: all 0.25s ease;
}
.story-cta-button:hover {
    background: #ed1944;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(237, 25, 68, 0.4);
}


/* =========================================================================
   PERFECT INSTAGRAM-STYLE STORY TRAY & MODAL
   ========================================================================= */

.cat-stories-section {
    margin: 16px 0 28px 0;
    width: 100%;
}
.cat-stories-outer {
    position: relative;
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.cat-stories-wrap {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    overflow-x: auto;
    padding: 4px 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
}
.cat-stories-wrap::-webkit-scrollbar {
    display: none;
}
.cat-stories-wrap.is-dragging {
    cursor: grabbing;
}
.cat-story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
    width: 86px;
    cursor: pointer;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.cat-story-item:hover {
    transform: translateY(-3px);
}
.cat-story-icon-wrap {
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 14px rgba(220, 39, 67, 0.22);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.cat-story-item.seen .cat-story-icon-wrap {
    background: #cbd5e1;
    box-shadow: none;
}
.cat-story-item:hover .cat-story-icon-wrap {
    transform: scale(1.06);
    box-shadow: 0 8px 22px rgba(220, 39, 67, 0.38);
}
.cat-story-thumb-img {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    min-height: 62px !important;
    max-width: 62px !important;
    max-height: 62px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    background: #fff;
    border: 2px solid #fff;
    display: block !important;
}
.story-video-badge {
    position: absolute;
    bottom: 0px;
    left: 0px;
    background: #0f172a;
    color: #fff;
    font-size: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #fff;
}
.cat-story-title {
    font-size: 11px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    margin-top: 7px;
    text-align: center;
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================================
   STORY TRAY PADDING & ARROW POSITION FIX
   ========================================================================= */
.cat-stories-outer {
    position: relative;
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 0 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.cat-stories-wrap {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    overflow-x: auto;
    padding: 6px 44px !important; /* Extra padding on left & right so arrows never overlap stories */
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
}

.cat-stories-outer .deals-floating-arrow {
    width: 38px !important;
    height: 38px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
    z-index: 15 !important;
}

.cat-stories-outer .deals-floating-arrow-right {
    right: 6px !important;
}

.cat-stories-outer .deals-floating-arrow-left {
    left: 6px !important;
}

@media (max-width: 768px) {
    .cat-stories-wrap {
        padding: 6px 14px !important;
    }
}


/* =========================================================================
   RESPONSIVE HERO BANNERS (1 ROW LARGE + 1 ROW 2-COLUMN SIDE BANNERS ON MOBILE)
   ========================================================================= */

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .hero-slider {
        min-height: 240px !important;
        height: auto !important;
    }
    .hero-side-banners {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* 2 banners side-by-side in 1 row */
        gap: 14px !important;
        width: 100% !important;
    }
    .hero-side-banner {
        height: 140px !important;
        min-height: 140px !important;
    }
}

@media (max-width: 600px) {
    .hero-grid {
        gap: 10px !important;
    }
    .hero-slider {
        min-height: 180px !important;
    }
    .hero-side-banners {
        grid-template-columns: 1fr 1fr !important; /* 2 banners side-by-side */
        gap: 10px !important;
    }
    .hero-side-banner {
        height: 115px !important;
        min-height: 115px !important;
    }
}

/* ==========================================================================
   UNIVERSAL SITE PROMO BANNERS SYSTEM (RESPONSIVE ASPECT-RATIO ENGINE)
   ========================================================================== */
.ookala-promo-banner-wrap {
    display: block;
    width: 100%;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: #f8fafc;
    line-height: 0;
}

.ookala-promo-banner-wrap:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.ookala-banner-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    line-height: 0;
}

.ookala-banner-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

/* 1. Wide Top Hero Banner in Magazine */
.mag-top-hero-banner {
    margin-top: 10px;
    margin-bottom: 32px;
}
.mag-top-hero-banner .ookala-banner-img {
    aspect-ratio: 1200 / 300;
}

/* 2. 2-Grid Mid Banners in Magazine */
.mag-mid-banners-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 36px;
}
.mag-mid-banner-item .ookala-banner-img {
    aspect-ratio: 600 / 260;
}

/* 3. Sidebar Banners in Magazine */
.mag-sidebar-banner-widget {
    margin-bottom: 20px;
}
.mag-sidebar-banner-widget .ookala-banner-img {
    aspect-ratio: 360 / 270;
}

/* 4. Single Magazine Post Bottom Banner */
.mag-single-bottom-banner {
    margin: 32px 0 28px;
}
.mag-single-bottom-banner .ookala-banner-img {
    aspect-ratio: 900 / 240;
}

/* 5. Product Page Sidebar Banner */
.product-sidebar-promo-banner {
    margin-top: 18px;
    margin-bottom: 20px;
}
.product-sidebar-promo-banner .ookala-banner-img {
    aspect-ratio: 360 / 160;
}

/* 6. Product Page Bottom Wide Banner */
.product-bottom-wide-banner {
    margin-top: 36px;
    margin-bottom: 36px;
}
.product-bottom-wide-banner .ookala-banner-img {
    aspect-ratio: 1200 / 240;
}

/* Fallback Placeholder state (Aspect-ratio matched) */
.ookala-banner-placeholder {
    width: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 12px;
    line-height: 1.5;
    box-sizing: border-box;
}

.banner-placeholder-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.banner-placeholder-title {
    font-size: 15px;
    font-weight: 700;
    flex-grow: 1;
    color: #f8fafc;
}

.banner-placeholder-btn {
    background: var(--primary, #ed1944);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 8px;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

/* Responsive Mobile & Tablet Rules */
@media (max-width: 991px) {
    .mag-top-hero-banner .ookala-banner-img {
        aspect-ratio: 16 / 6;
    }
    .product-bottom-wide-banner .ookala-banner-img {
        aspect-ratio: 16 / 5;
    }
}

@media (max-width: 768px) {
    .mag-mid-banners-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .mag-top-hero-banner .ookala-banner-img {
        aspect-ratio: 16 / 7;
    }
    .mag-mid-banner-item .ookala-banner-img {
        aspect-ratio: 16 / 7;
    }
    .mag-single-bottom-banner .ookala-banner-img {
        aspect-ratio: 16 / 7;
    }
    .product-bottom-wide-banner .ookala-banner-img {
        aspect-ratio: 16 / 6;
    }
    .mag-sidebar-banner-widget .ookala-banner-img {
        aspect-ratio: 16 / 8;
        max-width: 480px;
        margin: 0 auto;
    }
    .product-sidebar-promo-banner .ookala-banner-img {
        aspect-ratio: 16 / 7;
    }
    .ookala-banner-placeholder {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 10px;
    }
    .banner-placeholder-title {
        font-size: 13.5px;
    }
    .banner-placeholder-btn {
        width: 100%;
        text-align: center;
    }
}
/* ==========================================================================
   MAGAZINE COMMENTS SYSTEM (NO-REGISTRATION, NAME + COMMENT ONLY)
   ========================================================================== */
.mag-comments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f1f5f9;
}

.comments-header-box {
    margin-bottom: 24px;
}

.comments-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-icon {
    font-size: 24px;
}

.comments-main-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-count-pill {
    background: #fee2e2;
    color: var(--primary, #ed1944);
    font-size: 13px;
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 700;
}

.comments-header-desc {
    font-size: 13px;
    color: #64748b;
    margin: 6px 0 0 0;
}

/* Comment List */
.mag-comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 36px 0;
}

.mag-comment-item {
    margin-bottom: 18px;
}

.mag-comment-item .children {
    list-style: none;
    padding-right: 32px;
    margin-top: 14px;
    border-right: 2px solid #e2e8f0;
}

.comment-card-inner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: border-color 0.2s;
}

.comment-card-inner:hover {
    border-color: #cbd5e1;
}

.comment-avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.comment-body-content {
    flex-grow: 1;
}

.comment-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-author-name {
    font-size: 14px;
    color: #1e293b;
    font-weight: 700;
}

.comment-date-badge {
    font-size: 11px;
    color: #94a3b8;
}

.comment-reply-link {
    font-size: 12px;
    color: var(--primary, #ed1944);
    text-decoration: none;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: #fff1f2;
    transition: all 0.2s;
}

.comment-reply-link:hover {
    background: var(--primary, #ed1944);
    color: #ffffff;
}

.comment-text-box {
    font-size: 13.5px;
    color: #334155;
    line-height: 1.7;
}

.comment-text-box p {
    margin: 0;
}

.comment-awaiting-moderation {
    font-size: 12px;
    color: #d97706;
    background: #fef3c7;
    padding: 6px 12px;
    border-radius: 6px;
    margin-top: 8px;
}

/* No comments notice */
.no-comments-box {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    color: #64748b;
    margin-bottom: 30px;
}

.no-comments-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.no-comments-box p {
    margin: 0;
    font-size: 13.5px;
}

/* Comment Form Box */
.mag-comment-form-container {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.form-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.form-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cancel-reply-btn a {
    color: #dc2626;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.form-notice {
    font-size: 12.5px;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 10px 0 18px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mag-form .form-group {
    margin-bottom: 16px;
}

.mag-form .form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.mag-form .required-star {
    color: #dc2626;
}

.mag-form .form-input,
.mag-form .form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13.5px;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.mag-form .form-input:focus,
.mag-form .form-textarea:focus {
    background: #ffffff;
    border-color: var(--primary, #ed1944);
    outline: none;
    box-shadow: 0 0 0 3px rgba(237, 25, 68, 0.12);
}

.form-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
}

.btn-submit-comment {
    background: var(--primary, #ed1944);
    color: #ffffff;
    border: none;
    padding: 11px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-submit-comment:hover {
    background: #d4143a;
    transform: translateY(-1px);
}

.form-safe-tip {
    font-size: 12px;
    color: #64748b;
}

@media (max-width: 600px) {
    .form-actions-row {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .btn-submit-comment {
        justify-content: center;
    }
    .mag-comment-item .children {
        padding-right: 14px;
    }
}

/* ==========================================================================
   CREATIVE INTERACTIVE CATEGORY EXPLORER & ARTICLE TAGS
   ========================================================================== */

/* Nav Trigger Button */
.mag-nav-actions-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-toggle-cat-explorer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    border: none;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-toggle-cat-explorer:hover {
    background: var(--primary, #ed1944);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 25, 68, 0.25);
}

.btn-toggle-cat-explorer .btn-badge {
    background: #ffffff;
    color: #0f172a;
    font-size: 11px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 999px;
}

.btn-toggle-cat-explorer:hover .btn-badge {
    background: #fee2e2;
    color: var(--primary, #ed1944);
}

.btn-toggle-cat-explorer .btn-arrow {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.btn-toggle-cat-explorer.is-open .btn-arrow {
    transform: rotate(180deg);
}

/* Quick Pills */
.mag-quick-pills-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}
.mag-quick-pills-nav::-webkit-scrollbar {
    display: none;
}

/* Modal Overlay & Drawer */
.mag-cat-explorer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 20px;
}

.mag-cat-explorer-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.mag-cat-explorer-modal {
    background: #ffffff;
    width: 100%;
    max-width: 860px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    padding: 28px;
    max-height: 88vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mag-cat-explorer-overlay.is-active .mag-cat-explorer-modal {
    transform: scale(1) translateY(0);
}

.cat-explorer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.cat-explorer-title-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.explorer-header-icon {
    font-size: 32px;
}

.explorer-header-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.explorer-header-desc {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
}

.btn-close-explorer {
    background: #f1f5f9;
    color: #475569;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-close-explorer:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Modal Search Filter */
.cat-explorer-search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
}

.cat-filter-input {
    width: 100%;
    padding: 12px 42px 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13.5px;
    background: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.cat-filter-input:focus {
    background: #ffffff;
    border-color: var(--primary, #ed1944);
    outline: none;
    box-shadow: 0 0 0 3px rgba(237, 25, 68, 0.12);
}

/* Category Grid Cards */
.cat-explorer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.cat-explorer-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.25s ease;
}

.cat-explorer-card:hover {
    background: #ffffff;
    border-color: var(--primary, #ed1944);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.cat-explorer-card.is-active {
    background: #fff1f2;
    border-color: var(--primary, #ed1944);
}

.cat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cat-card-icon {
    font-size: 26px;
}

.cat-card-count {
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.cat-explorer-card:hover .cat-card-count,
.cat-explorer-card.is-active .cat-card-count {
    background: #fee2e2;
    color: var(--primary, #ed1944);
}

.cat-card-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.4;
}

.cat-card-arrow {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary, #ed1944);
    margin-top: auto;
}

/* ==========================================================================
   ARTICLE KEYWORDS & TAGS STYLING
   ========================================================================== */
.mag-article-tags-wrap {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    margin: 28px 0;
}

.mag-tags-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.tags-icon {
    font-size: 18px;
}

.tags-title {
    font-size: 13px;
    font-weight: 800;
    color: #334155;
}

.mag-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mag-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mag-tag-pill span {
    color: var(--primary, #ed1944);
    font-weight: 800;
}

.mag-tag-pill:hover {
    background: #fff1f2;
    border-color: var(--primary, #ed1944);
    color: var(--primary, #ed1944);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(237, 25, 68, 0.15);
}

/* ==========================================================================
   MAGAZINE ARCHIVE PAGE SPECIFIC STYLES
   ========================================================================== */
.mag-archive-header-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    margin-bottom: 10px;
}

.archive-header-main-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.archive-header-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #fff1f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.archive-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.archive-breadcrumbs a {
    color: #64748b;
    text-decoration: none;
}

.archive-breadcrumbs a:hover {
    color: var(--primary, #ed1944);
}

.active-crumb {
    color: var(--primary, #ed1944);
    font-weight: 700;
}

.archive-main-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.archive-type-tag {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary, #ed1944);
    background: #fee2e2;
    padding: 2px 8px;
    border-radius: 6px;
}

.archive-main-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.archive-count-pill {
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Archive 3-Column Grid */
.mag-archive-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.mag-grid-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    transition: all 0.25s ease;
}

.mag-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.mag-grid-thumb {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f1f5f9;
}

.mag-grid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.mag-grid-card:hover .mag-grid-thumb img {
    transform: scale(1.05);
}

.mag-card-cat-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.mag-grid-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mag-grid-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.mag-grid-title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
    margin: 0 0 8px 0;
}

.mag-grid-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mag-grid-title a:hover {
    color: var(--primary, #ed1944);
}

.mag-grid-excerpt {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.mag-grid-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.mag-read-more-btn {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary, #ed1944);
    text-decoration: none;
}

.mag-views-tag {
    font-size: 11px;
    color: #94a3b8;
}

/* Sidebar Active Category Highlight */
.mag-cat-widget-list li.active-cat-item a {
    background: #fff1f2;
    color: var(--primary, #ed1944);
    font-weight: 800;
    border-right: 3px solid var(--primary, #ed1944);
}

.mag-cat-widget-list li.active-cat-item .count-badge {
    background: var(--primary, #ed1944);
    color: #ffffff;
}

/* Empty Archive Box */
.mag-empty-archive-box {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    margin-bottom: 30px;
}

.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.mag-empty-archive-box h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.mag-empty-archive-box p {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 20px 0;
}

.btn-return-mag {
    display: inline-block;
    background: var(--primary, #ed1944);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-return-mag:hover {
    background: #d4143a;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .mag-archive-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }
    .mag-archive-header-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .mag-archive-grid-3col {
        grid-template-columns: 1fr;
    }
    .mag-cat-explorer-modal {
        padding: 20px;
        border-radius: 16px;
    }
    .cat-explorer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .cat-explorer-card {
        padding: 12px;
    }
    .cat-card-title {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .cat-explorer-grid {
        grid-template-columns: 1fr;
    }
}


/* Subnav Clean Layout */
.mag-subnav-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
    position: relative;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.mag-subnav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
}

.mag-home-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mag-home-link-pill:hover,
.mag-home-link-pill.active {
    background: #fee2e2;
    color: var(--primary, #ed1944);
}

@media (max-width: 768px) {
    .mag-subnav-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .mag-brand-title {
        text-align: center;
        justify-content: center;
    }
    .mag-nav-actions-wrap {
        justify-content: center;
        width: 100%;
    }
    .btn-toggle-cat-explorer,
    .mag-home-link-pill {
        flex: 1;
        justify-content: center;
        text-align: center;
    }
}


/* =========================================================================
   SCROLL REVEAL ANIMATION (2026 Micro-Interactions)
   ========================================================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
}

.reveal-on-scroll.revealed {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Smoother scrollbar for webkit */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
