/* BlogBag - Modern Redesign */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #10b981;
    --dark: #111827;
    --gray: #6b7280;
    --light: #f3f4f6;
    --white: #ffffff;
    --border: #e5e7eb;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --radius: 0.5rem;
    --radius-lg: 1rem;
    
    --font-sans: 'Plus Jakarta Sans', sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navigation */
.site-header {
    background-color: var(--white);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 2000;
    height: 72px;
    display: flex;
    align-items: center;
    overflow: visible !important;
}

.nav-search-desktop {
    display: flex;
    align-items: center;
}

@media (max-width: 1024px) {
    .nav-search-desktop {
        display: none !important;
    }
    .mobile-only {
        display: flex !important;
    }
}

@media (min-width: 1025px) {
    .mobile-only {
        display: none !important;
    }
    .nav-search-desktop {
        display: flex !important;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 3001; /* Ensure above mobile menu button */
}

.search-toggle-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.search-toggle-btn:hover {
    color: var(--primary);
}

.header-search-container {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--white) !important;
    padding: 1rem !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: var(--shadow-lg) !important;
    display: none;
    z-index: 4000 !important;
    animation: slideDown 0.3s ease-out;
}

.header-search-container.active {
    display: block !important;
}

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.header-search-form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    position: relative;
}

.header-search-form input {
    flex: 1;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.header-search-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.header-search-form button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1002;
    margin-top: 5px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: var(--light);
}

.suggestion-image {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.suggestion-info {
    flex: 1;
}

.suggestion-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    display: block;
}

.suggestion-type {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: capitalize;
}

.suggestion-image-placeholder {
    width: 40px;
    height: 40px;
    background: var(--light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suggestion-image-placeholder::before {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--gray);
}

.suggestion-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.85rem;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    overflow: visible !important;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark);
}

.logo-icon {
    color: var(--primary);
    font-size: 1.75rem;
}

.main-nav {
    display: flex;
    align-items: center;
    overflow: visible !important;
}

.nav-links {
    display: flex !important;
    align-items: center !important;
    gap: 2rem;
    flex-wrap: nowrap !important;
    overflow: visible !important;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray);
    font-size: 0.95rem;
    outline: none; /* Remove outline on click/focus */
    text-decoration: none; /* Ensure no underline */
}

.nav-categories-item {
    position: relative;
}

.nav-categories-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    background: transparent;
    color: var(--gray);
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.nav-categories-toggle i {
    transition: transform 0.25s ease;
}

.nav-categories-item.open .nav-categories-toggle i {
    transform: rotate(180deg);
}

.mobile-category-label {
    display: none;
}

.nav-categories-toggle:hover,
.nav-categories-toggle.active {
    color: var(--primary);
}

.nav-categories-dropdown {
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 0;
    min-width: 280px;
    max-height: 420px;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    padding: 0.6rem;
    z-index: 2100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.nav-categories-item:hover .nav-categories-dropdown,
.nav-categories-item.open .nav-categories-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-categories-dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0.75rem;
}

.nav-categories-dropdown a:hover {
    background: var(--light);
}

.nav-category-count {
    color: var(--gray);
    font-size: 0.82rem;
    font-weight: 700;
}

.nav-all-categories-link {
    margin-top: 0.3rem;
    border-top: 1px solid var(--border);
    padding-top: 0.9rem !important;
    font-weight: 700;
    color: var(--primary) !important;
    justify-content: flex-start !important;
}

@media (min-width: 1025px) {
    .nav-all-categories-link {
        display: inline-flex !important;
        width: auto;
        padding: 0.9rem 0 0 !important;
        border-radius: 0;
        background: transparent !important;
    }

    .nav-all-categories-link:hover {
        background: transparent !important;
        text-decoration: underline;
    }
}

.nav-links a:focus,
.nav-links a:active {
    outline: none;
    background: transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links .btn-nav-cta {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    transition: background-color 0.2s;
}

.nav-links .btn-nav-cta:hover {
    background-color: var(--primary-hover);
    color: white;
}

.nav-controls .controls-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

.nav-header {
    display: none;
}

/* Main Content */
.site-main {
    flex: 1;
    padding: 3rem 0;
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 2rem;
    text-align: center;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 3rem 0;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.catalog-content {
    min-width: 0;
}

.category-sidebar {
    position: sticky;
    top: 96px;
}

.category-sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.25rem;
}

.category-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-sidebar-header h2 {
    font-size: 1.1rem;
}

.category-clear-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.category-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-sidebar-item.active .category-link {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.08);
}

.category-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0.9rem;
    background: var(--light);
    border: 1px solid transparent;
}

.category-count {
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 700;
}

.category-menu-wrap {
    position: relative;
}

.category-menu-toggle {
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--gray);
    border-radius: 0.8rem;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    cursor: pointer;
}

.category-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    min-width: 140px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    box-shadow: var(--shadow-lg);
    padding: 0.4rem;
    display: none;
    z-index: 50;
}

.category-menu a {
    display: block;
    padding: 0.6rem 0.75rem;
    border-radius: 0.6rem;
}

.category-menu a:hover {
    background: var(--light);
}

.category-menu-wrap:hover .category-menu,
.category-menu-wrap:focus-within .category-menu {
    display: block;
}

.post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-image-link {
    position: relative;
    padding-top: 60%; /* Aspect ratio 16:9 approx */
    overflow: hidden;
    background: var(--light);
}

.post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-card:hover .post-image {
    transform: scale(1.05);
}

.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0 0.25rem;
}

.post-categories.detail {
    margin: 0 0 1rem;
}

.post-category-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    font-size: 0.8rem;
    font-weight: 700;
}

.post-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-weight: 600;
    font-size: 1.25rem;
}

/* Banner Carousel */
.banner-hero {
    position: relative;
    margin: 0 auto 2rem;
    max-width: 1280px;
    padding: 0 1.5rem;
}
.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    background: var(--white);
    border: 1px solid var(--border);
}
.banner-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease;
    will-change: transform;
}
.banner-slide {
    position: relative;
    min-width: 100%;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
}
.banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    background-color: var(--light);
}
.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 1rem 1.5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}
.banner-slide:hover .banner-content,
.banner-link:hover .banner-content {
    opacity: 1;
    transform: translateY(0);
}
.banner-link {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
}
.banner-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.banner-subtitle {
    font-size: 1rem;
    color: #e5e7eb;
}
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.badge-promo { background: #2563eb; }
.badge-ad { background: #10b981; }
.badge-announcement { background: #f59e0b; }

.banner-content .banner-title,
.banner-content .banner-subtitle {
    color: #ffffff;
}
[data-theme="dark"] .banner-content {
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
}
[data-theme="dark"] .banner-content .banner-subtitle {
    color: #f3f4f6;
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: var(--dark);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 10;
    pointer-events: auto;
}
.banner-nav:hover {
    background: white;
}
.banner-nav.prev { left: 12px; }
.banner-nav.next { right: 12px; }

/* Skeleton while banners load */
.banner-skeleton {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.skeleton-slide {
    height: 120px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 37%, #e5e7eb 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

/* Bottom loader indicator */
.banner-loader {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    border-radius: 9999px;
    background: rgba(0,0,0,0.15);
    z-index: 4;
}
.loader-bar {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 2.5s linear;
}

@media (max-width: 768px) {
    .banner-slide { height: 180px; }
    .banner-title { font-size: 1.25rem; }
    .banner-subtitle { font-size: 0.9rem; }
    
    .header-search-container {
        padding: 0.75rem;
        top: 72px; /* Header height */
    }
    .header-search-form input {
        padding: 0.6rem 2.5rem 0.6rem 0.75rem;
        font-size: 0.9rem;
    }
    .search-suggestions {
        max-height: 300px;
    }
    .search-toggle-btn {
        font-size: 1.4rem;
        padding: 0.75rem;
    }
}
/* Badges */
.badge-new, .badge-popular, .discount-tag {
    position: absolute;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge-new {
    top: 1rem;
    left: 1rem;
    background-color: var(--secondary);
    color: white;
}

.badge-popular {
    top: 1rem;
    right: 1rem;
    background-color: var(--warning);
    color: white;
}

.discount-tag {
    bottom: 1rem;
    right: 1rem;
    background-color: var(--danger);
    color: white;
}
        
.discount-tag.top-right {
    top: 1rem;
    right: 1rem;
    bottom: auto;
}

.post-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-content .btn {
    margin-top: 1.5rem;
    width: 100%;
    justify-content: center;
}

.post-type {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.post-title a:hover {
    color: var(--primary);
}

.post-description {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray);
    font-size: 0.875rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Single Post Styles */
.single-post {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.post-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    color: var(--gray);
    font-weight: 500;
}

.back-link:hover {
    color: var(--primary);
}

.post-main-content {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .post-main-content:not(.type-blog) {
        grid-template-columns: 1fr 1fr;
    }
}

/* Blog Type Specifics */
.post-main-content.type-blog {
    display: flex;
    flex-direction: column;
}

/* Post Media Carousel */
.main-media-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.media-slide {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.media-slide.active {
    display: flex;
}

.post-main-video {
    max-width: 100%;
    max-height: 500px;
    width: 100%;
}

.media-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.media-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.media-nav-btn.prev { left: 10px; }
.media-nav-btn.next { right: 10px; }

.media-thumbnails {
    display: flex;
    gap: 10px;
    padding: 10px 2rem;
    overflow-x: auto;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.thumb-item {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.thumb-item.active {
    border-color: var(--primary);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumb {
    width: 100%;
    height: 100%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Action Buttons */
.post-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-learn-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.1rem;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-learn-more:hover {
    background-color: var(--primary-hover);
    color: white;
}

@media (min-width: 640px) {
    .btn-learn-more {
        width: auto;
    }
}
@media (max-width: 640px) {
    .post-actions {
        flex-direction: column;
    }
}

.post-main-content.type-blog .post-media {
    min-height: auto;
    padding: 0;
    position: relative;
    z-index: 1;
    overflow: hidden; /* Important for blur clipping */
}

.post-main-content.type-blog .post-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.9);
    z-index: -1;
    transform: scale(1.1); /* Avoid white edges */
}

.post-main-content.type-blog .post-main-image {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.post-main-content.type-blog .post-details {
    padding: 2.5rem 2rem;
}

.post-main-content.type-blog .post-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--dark);
    margin-bottom: 2rem;
}

.post-media {
    background: var(--light);
    min-height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.post-main-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 500px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.post-main-image:hover {
    transform: scale(1.02);
}

.post-details {
    padding: 2rem;
}

.post-details .post-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.pricing-section {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    border: 1px solid var(--border);
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-top: 0.5rem;
}

.current-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
}

.old-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 1rem;
}

.savings {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.875rem;
}

.btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--dark);
    color: white;
    padding: 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.1rem;
    gap: 0.5rem;
    margin-bottom: 2rem;
    transition: background-color 0.2s;
}

.btn-buy:hover {
    background-color: black;
}

/* Engagement Section */
.engagement-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.btn-like {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-like:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: var(--danger);
}

.btn-like.liked {
    background: #fee2e2;
    border-color: #fecaca;
    color: var(--danger);
}

.btn-like.liked svg {
    fill: currentColor;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light);
    color: var(--gray);
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    background: var(--primary);
    color: white;
}

/* Comments */
.comments-section {
    padding: 2rem;
    border-top: 1px solid var(--border);
    background: #fafafa;
}

[data-theme="dark"] .comments-section {
    background: var(--light); /* Dark background in dark mode */
    border-top-color: var(--border);
}

.comments-section h2 {
    margin-bottom: 1.5rem;
}

.comment-form {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

[data-theme="dark"] .comment-form {
    background: var(--white); /* This is #1f2937 in dark mode */
    border-color: var(--border);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--white);
    color: var(--dark);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
    background-color: var(--light); /* Darker input background */
    color: var(--dark); /* Light text */
    border-color: var(--border);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

[data-theme="dark"] .form-group label {
    color: var(--gray);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--dark);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .btn-secondary {
    background-color: var(--white);
    color: var(--dark);
    border-color: var(--border);
}

.btn-secondary:hover {
    background-color: var(--light);
}

[data-theme="dark"] .btn-secondary:hover {
    background-color: rgba(255,255,255,0.05);
}

.comment {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

[data-theme="dark"] .comment {
    background: var(--white); /* #1f2937 */
    border-color: var(--border);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 700;
    color: var(--dark);
}

[data-theme="dark"] .comment-author {
    color: var(--dark); /* Light text */
}

.comment-date {
    font-size: 0.8rem;
    color: var(--gray);
}

[data-theme="dark"] .comment-text {
    color: var(--gray);
}

/* Footer */
.site-footer {
    background-color: var(--dark);
    color: #9ca3af;
    padding-top: 4rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.developer-credit a {
    color: var(--secondary);
    font-weight: 600;
}

.developer-credit a:hover {
    text-decoration: underline;
}

/* Admin Styles */
.admin-header {
    background: var(--dark);
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 1.25rem;
}

.admin-header nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-header nav a {
    margin-left: 1.5rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.admin-header nav a:hover {
    color: white;
}

.admin-header .theme-toggle-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1.5rem;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-header .theme-toggle-btn:hover {
    color: white;
    background: rgba(255,255,255,0.1);
    transform: rotate(15deg);
}

.admin-hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.admin-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-hover) 100%);
    z-index: 1000;
    transition: left 0.3s ease;
    padding: 1.5rem;
    overflow-y: auto;
}

.admin-sidebar.active {
    left: 0;
}

.admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.admin-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.admin-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-sidebar-header h2 {
    color: white;
    font-size: 1.25rem;
}

.admin-sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius);
    transition: background 0.2s ease;
}

.admin-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.admin-sidebar-nav a:hover,
.admin-sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.admin-sidebar-nav a i {
    width: 20px;
    text-align: center;
}

.admin-sidebar-theme {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-sidebar-theme .theme-toggle-btn {
    background: transparent;
    border: none;
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s ease;
}

.admin-sidebar-theme .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.admin-sidebar-theme .theme-toggle-btn i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.admin-sidebar-theme .theme-toggle-btn:hover i {
    transform: rotate(15deg);
}

@media (max-width: 768px) {
    .admin-header nav {
        display: none;
    }
    
    .admin-hamburger {
        display: block;
    }
    
    .admin-header h1 {
        font-size: 1rem;
    }
}

[data-theme="dark"] .admin-sidebar {
    background: #000000;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray);
    font-weight: 500;
}

.admin-form-section, .admin-posts-section, .admin-comments-section {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.admin-form-section h2, .admin-posts-section h2, .admin-comments-section h2 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 1.5rem;
}

.category-picker {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    max-height: 220px;
    overflow-y: auto;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #f8fafc;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.category-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 0.92rem;
    line-height: 1.35;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.category-option:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.category-option input {
    accent-color: var(--primary);
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.category-option span {
    color: var(--dark);
    font-weight: 500;
}

.category-option input:checked + span {
    color: var(--primary);
    font-weight: 700;
}

.category-option:has(input:checked) {
    border-color: rgba(79, 70, 229, 0.35);
    background: rgba(79, 70, 229, 0.08);
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.08);
}

[data-theme="dark"] .category-picker {
    background: #111827;
    border-color: #374151;
}

[data-theme="dark"] .category-option span {
    color: #f9fafb;
}

[data-theme="dark"] .category-option {
    background: #0f172a;
    border-color: #374151;
}

[data-theme="dark"] .category-option:hover {
    background: #111827;
}

[data-theme="dark"] .category-option input:checked + span {
    color: #a5b4fc;
}

[data-theme="dark"] .category-option:has(input:checked) {
    background: rgba(79, 70, 229, 0.16);
    border-color: rgba(129, 140, 248, 0.45);
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.1);
}

[data-theme="dark"] .category-picker::-webkit-scrollbar-thumb {
    background: #4b5563;
}

.category-admin-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-admin-chip {
    display: inline-flex;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    font-weight: 700;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.admin-posts-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    font-weight: 600;
    color: var(--gray);
    background: var(--light);
    white-space: nowrap;
}

td {
    vertical-align: middle;
}

td img {
    border-radius: var(--radius);
    object-fit: cover;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-product {
    background: #dbeafe;
    color: #1e40af;
}

.badge-blog {
    background: #fce7f3;
    color: #9d174d;
}

.discount-badge {
    display: inline-block;
    background: var(--danger);
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.actions {
    display: flex;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
}

.btn-view {
    background: var(--light);
    color: var(--dark);
}

.btn-edit {
    background: #dbeafe;
    color: #1e40af;
}

.btn-delete {
    background: #fee2e2;
    color: #991b1b;
}

.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Login Styles */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.login-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border);
}

.login-box h1 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.login-box h2 {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--gray);
    font-weight: 500;
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

.login-box .back-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    /* FIX: Ensure header doesn't clip fixed elements and remove backdrop filter which can cause containing block issues */
    .site-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        overflow: visible !important;
        background: var(--white); /* Ensure background is solid since blur is gone */
    }

    header {
        overflow: visible !important;
    }

    .mobile-menu-btn {
        display: block;
        position: relative; /* Fix z-index context */
        z-index: 3010; /* Much higher than main-nav (2005) to ensure it stays clickable */
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--dark); /* Ensure icon is visible */
        background: transparent; /* Ensure no white bg blocking */
    }

.menu-open .mobile-menu-btn {
    display: none !important;
}

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        z-index: 2005; /* Increased to 2005 to cover mobile-menu-btn (2002) */
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        display: flex; /* Ensure flex is active */
        overflow: hidden;
    }

    .main-nav .nav-search-desktop {
        display: none !important;
    }

    .main-nav.active {
        right: 0 !important; /* Force visibility */
    }

    .nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0; /* Prevent header from shrinking */
    }

    .nav-logo {
        font-weight: 700;
        font-size: 1.25rem;
        color: var(--dark);
        text-decoration: none;
    }

    .close-menu-btn {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--gray);
        padding: 0.5rem; /* Better touch target */
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 1rem 0;
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        height: calc(100vh - 88px);
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--light); /* Separator lines */
    }

    .nav-links a,
    .nav-categories-toggle {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        color: var(--dark); /* Explicit color */
        border-left: 4px solid transparent; /* Indicator strip */
        text-decoration: none;
        width: 100%;
        text-align: left;
    }

    .nav-links a:hover,
    .nav-links a.active,
    .nav-categories-toggle:hover,
    .nav-categories-item.open .nav-categories-toggle {
        background: var(--light);
        color: var(--primary);
        border-left-color: var(--primary);
    }

    .nav-categories-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .desktop-category-label {
        display: none;
    }

    .mobile-category-label {
        display: inline;
    }

    .nav-categories-dropdown {
        position: static;
        min-width: 100%;
        max-height: 45vh;
        padding: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 0.75rem;
        overflow-y: auto;
        overscroll-behavior: contain;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        max-height: 0;
        margin-bottom: 0;
        transition: max-height 0.28s ease, margin-bottom 0.28s ease;
        -webkit-overflow-scrolling: touch;
    }

    .nav-categories-item.open .nav-categories-dropdown {
        max-height: 45vh;
        margin-bottom: 0.75rem;
    }

    .nav-categories-dropdown a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.85rem 2rem;
        border-left: 4px solid transparent;
        border-radius: 0;
    }

    .nav-categories-dropdown a:hover {
        background: var(--light);
        border-left-color: var(--primary);
    }

    .nav-all-categories-link {
        border-top: 1px solid var(--border);
        padding-top: 0.85rem !important;
    }

    .nav-links .btn-nav-cta {
        margin: 1rem 1.5rem;
        text-align: center;
        display: block;
        width: calc(100% - 3rem);
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .theme-toggle-btn {
        margin: 1rem 1.5rem;
        width: 40px;
        height: 40px;
        justify-content: center;
        border-radius: 50%;
        padding: 0;
        background: transparent;
        font-size: 1.25rem;
    }

    .theme-toggle-btn:hover {
        background-color: var(--light);
    }

    .nav-links .nav-controls {
        border-bottom: 1px solid var(--light);
        padding: 0.75rem 1.5rem 1rem;
        display: flex !important;
        justify-content: center;
    }
    .nav-controls .controls-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: nowrap !important;
    }
    .nav-controls #translateBtn,
    .nav-controls #currencyBtn,
    .nav-controls .theme-toggle-btn {
        margin: 0;
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav .mobile-menu-btn {
        display: none !important;
    }
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --light: #111827;
    --white: #1f2937;
    --dark: #f9fafb;
    --gray: #9ca3af;
    --border: #374151;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--dark);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s;
    margin-left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.theme-toggle-btn:hover {
    background-color: var(--light);
}

/* Admin specific overrides for dark mode */
[data-theme="dark"] .admin-header {
    background: #000000;
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .admin-form-section, 
[data-theme="dark"] .admin-posts-section, 
[data-theme="dark"] .admin-comments-section,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .login-box {
    background: var(--white);
    border-color: var(--border);
}

[data-theme="dark"] th {
    background: #111827;
    color: var(--gray);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background-color: var(--white);
    color: var(--dark);
    border-color: var(--border);
}

[data-theme="dark"] .site-footer {
    background-color: #0f172a;
    color: var(--gray);
}

/* Utility to hide elements */
.hidden {
    display: none !important;
}

/* Pricing Section Styles */
.pricing-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.pricing-section h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.old-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 1.1rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Dark Mode Pricing Fixes */
[data-theme="dark"] .current-price {
    color: #a5b4fc; /* Lighter shade for visibility on dark bg */
}

[data-theme="dark"] .pricing-section {
    background-color: var(--white); /* Slightly lighter dark background */
}

.current-price.large {
    font-size: 2rem;
}

.savings {
    background-color: var(--secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    transition: all 0.2s;
    width: 100%;
}

[data-theme="dark"] .btn-buy {
    background-color: var(--primary);
    color: white;
}

.btn-buy:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

@media (min-width: 640px) {
    .btn-buy {
        width: auto;
    }
}

.star-btn {
    cursor: pointer;
    font-size: 2.5rem; /* Bigger stars for better visibility */
    padding: 0 10px; /* Larger hit area for touch */
    transition: transform 0.2s, color 0.2s;
    display: inline-block;
}

.star-btn:hover {
    transform: scale(1.1);
}

.star-btn.selected, .star-btn.hover {
    color: var(--warning);
}

/* Mobile Menu Dark Mode Fix */
[data-theme="dark"] .main-nav {
    background-color: var(--white); /* Ensures dark background in dark mode */
}

[data-theme="dark"] .nav-links a {
    color: var(--dark); /* Ensures light text in dark mode */
}

[data-theme="dark"] .nav-categories-toggle {
    color: var(--dark);
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active,
[data-theme="dark"] .nav-categories-toggle:hover,
[data-theme="dark"] .nav-categories-item.open .nav-categories-toggle {
    background-color: transparent;
    color: var(--primary);
}

[data-theme="dark"] .nav-categories-dropdown,
[data-theme="dark"] .category-card {
    background: #111827;
    border-color: #374151;
}

/* Post Full Content (Single Page) */
.post-full-content {
    padding: 2rem;
    border-top: 1px solid var(--border);
    width: 100%;
}

.post-full-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: justify;
}

/* Ensure media inside content scales nicely */
.content-text img,
.blog-content img {
    max-width: min(100%, 900px) !important;
    width: auto !important;
    height: auto;
    display: block !important;
    margin: 1rem auto !important;
    border-radius: 6px;
    float: none !important;
    clear: both;
}

/* Neutralize any inline float/align styles from editors */
.content-text img[style*="float"],
.blog-content img[style*="float"],
.content-text [style*="float"] img,
.blog-content [style*="float"] img {
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.content-text iframe,
.blog-content iframe,
.content-text video,
.blog-content video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
    border-radius: 6px;
    margin: 1rem 0;
}

/* Make links in blog content appear as clickable blue links */
.content-text a {
    color: #4f46e5; /* Primary color */
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.content-text a:hover {
    color: #4338ca; /* Darker primary color on hover */
    text-decoration: underline;
}

/* Auto-detected links */
.auto-link {
    color: #4f46e5; /* Primary color */
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.auto-link:hover {
    color: #4338ca; /* Darker primary color on hover */
    text-decoration: underline;
}

/* Style for blog content specifically */
.blog-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--dark);
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: justify;
}

.content-text::after,
.blog-content::after {
    content: "";
    display: block;
    clear: both;
}

.post-full-content .content-text > *,
.post-full-content .blog-content > * {
    max-width: 100%;
}

.content-text p,
.blog-content p,
.content-text ul,
.blog-content ul,
.content-text ol,
.blog-content ol,
.content-text blockquote,
.blog-content blockquote {
    width: 100%;
    margin: 0 0 1rem;
}

/* Default text flow should occupy full card width */
.content-text p,
.blog-content p,
.content-text li,
.blog-content li {
    text-align: justify !important;
}

/* Quill alignment support on frontend */
.content-text .ql-align-center,
.blog-content .ql-align-center {
    text-align: center;
}

.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.category-card {
    display: block;
    background: linear-gradient(160deg, #ffffff 0%, #eef6ff 100%);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-card h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.category-card p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.category-card span {
    color: var(--primary);
    font-weight: 700;
}

.content-text .ql-align-right,
.blog-content .ql-align-right {
    text-align: right;
}

.content-text .ql-align-justify,
.blog-content .ql-align-justify {
    text-align: justify;
}

.content-text .ql-align-left img,
.blog-content .ql-align-left img {
    margin-left: 0;
    margin-right: auto;
}

.content-text .ql-align-center img,
.blog-content .ql-align-center img {
    margin-left: auto;
    margin-right: auto;
}

.content-text .ql-align-right img,
.blog-content .ql-align-right img {
    margin-left: auto;
    margin-right: 0;
}

.content-text figure,
.blog-content figure {
    width: 100%;
    margin: 1rem 0;
    text-align: center;
}

.content-text figure img,
.blog-content figure img {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Preserve explicit alignment over default justify */
.content-text p.ql-align-left,
.blog-content p.ql-align-left {
    text-align: left !important;
}

.content-text p.ql-align-center,
.blog-content p.ql-align-center {
    text-align: center !important;
}

.content-text p.ql-align-right,
.blog-content p.ql-align-right {
    text-align: right !important;
}

/* Preserve alignment generated by Jodit/inline styles */
.content-text [style*="text-align: left"],
.blog-content [style*="text-align: left"] {
    text-align: left !important;
}

.content-text [style*="text-align: center"],
.blog-content [style*="text-align: center"] {
    text-align: center !important;
}

.content-text [style*="text-align: right"],
.blog-content [style*="text-align: right"] {
    text-align: right !important;
}

.content-text [style*="text-align: justify"],
.blog-content [style*="text-align: justify"] {
    text-align: justify !important;
}

/* Keep editor-defined image alignment/float */
.content-text img[style*="float: left"],
.blog-content img[style*="float: left"],
.content-text img.jodit_f-left,
.blog-content img.jodit_f-left {
    float: left !important;
    margin: 1rem 1.25rem 1rem 0 !important;
}

.content-text img[style*="float: right"],
.blog-content img[style*="float: right"],
.content-text img.jodit_f-right,
.blog-content img.jodit_f-right {
    float: right !important;
    margin: 1rem 0 1rem 1.25rem !important;
}

.content-text img[style*="display: block"],
.blog-content img[style*="display: block"] {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Legacy/custom content classes used in saved posts */
.content-text .bdfont,
.blog-content .bdfont,
.content-text .mar1,
.blog-content .mar1 {
    width: 100%;
    display: block;
    float: none !important;
    clear: both;
}

.blog-content a {
    color: #4f46e5;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
    border-bottom: 1px dotted #4f46e5; /* Add subtle border to highlight links */
}

.blog-content a:hover {
    color: #4338ca;
    text-decoration: underline;
    background-color: rgba(79, 70, 229, 0.1); /* Subtle highlight on hover */
    padding: 2px 4px;
    border-radius: 4px;
}

/* Ensure links open in new tab if they are external */
.blog-content a[href^="http://"],
.blog-content a[href^="https://"] {
    position: relative;
    padding-right: 16px;
}

.blog-content a[href^="http://"]:after,
.blog-content a[href^="https://"]:after {
    content: "↗";
    position: absolute;
    right: 0;
    font-size: 0.8em;
}

/* Utilities */
.text-warning { color: var(--warning); }

/* =========================================
   LANDING PAGE STYLES (Merged from index.html)
   ========================================= */

/* SLIDER CONTROLS */
.slider-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(91,108,255,.9);
  border:none;
  color:#fff;
  font-size:28px;
  width:45px;
  height:45px;
  border-radius:50%;
  cursor:pointer;
  z-index:10;
  transition:.3s;
}
.slider-btn:hover{background:#4a5bff}

.slider-btn.left{left:-10px}
.slider-btn.right{right:-10px}

/* smooth manual scroll */
.product-slider{
  overflow: visible; /* 🔥 important */
  position: relative;
  padding-bottom: 20px; /* zoom ke liye space */
}

.product-track{
  display:flex;
  gap:25px;
  transform:translateX(0);
  will-change:transform;
}

.product-slider .product-card img{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:12px;
  margin-bottom:15px;
}

/* HERO */
.hero{
  min-height:75vh;
  background:linear-gradient(rgba(11,15,26,.7),rgba(11,15,26,.85)),
  url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  text-align:center;
  padding:70px 40px 40px;
  color: #fff; /* Force white text in Hero */
}

.hero h1{font-size:3rem;font-weight:700;margin-bottom:15px; color: #fff;}
.hero p{max-width:700px;margin:0 auto 30px;color:#cfd6ff}
.btn-group{display:flex;gap:20px;justify-content:center;flex-wrap:wrap}

@media (max-width:768px){
  .hero{
    min-height:58vh;
    padding:50px 18px 30px;
  }
  .hero h1{
    font-size:1.9rem;
    margin-bottom:10px;
  }
  .hero p{
    font-size:0.88rem;
    margin-bottom:18px;
  }
  .btn-group{
    gap:14px;
  }
}

/* Product Card Animation (Landing Page) */
.product-slider .product-card{
  transition: transform .35s ease, box-shadow .35s ease;
  min-width:260px;
  background:#12172a;
  padding:25px;
  border-radius:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.4);
  color: #fff;
}

.product-slider .product-card:hover{
  transform: scale(1.15);
  z-index: 5;
  box-shadow: 
    0 0 35px rgba(255,215,0,0.35),
    0 15px 40px rgba(0,0,0,.6);
}
.product-slider .product-card h3{font-size:1.05rem;margin-bottom:8px; color: #fff;}
.product-slider .product-card .category{font-size:.85rem;color:#9aa3ff;margin-bottom:10px}
.product-slider .product-card .price{font-weight:600;margin-bottom:15px; color: #fff;}
.product-slider .product-card del{color:#777;margin-right:6px}

/* FEATURES */
.section{padding:80px 8%}
.section h2{text-align:center;font-size:2.2rem;margin-bottom:50px}

.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:30px}
.features .card{
    background:#12172a;
    padding:30px;
    border-radius:16px;
    box-shadow:0 10px 30px rgba(0,0,0,.4);
    color: #fff;
}
.features .card img{width:60px;margin-bottom:15px}
.features .card h3{margin-bottom:10px; color: #fff;}
.features .card p{color:#b8c0ff;font-size:.95rem}

/* ABOUT */
.about-section {
  padding: 80px 20px;
  text-align: center;
  background: radial-gradient(circle at top, #0b0f2a, #050713);
}

.about-section h2 {
  color: #ffd700;
  margin-bottom: 50px;
  font-size: 36px;
  text-shadow: 0 0 12px rgba(255,215,0,0.6);
}

.about-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.about-card {
  background: linear-gradient(145deg, rgba(255,215,0,0.08), rgba(0,0,0,0.7));
  border: 1px solid rgba(255,215,0,0.25);
  box-shadow: 0 0 25px rgba(255,215,0,0.2);
  border-radius: 20px;
  padding: 30px 20px;
  max-width: 300px;
  color: #eaeaff;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 40px rgba(255,215,0,0.5);
}

.card-logo {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.about-card h3 {
  color: #ffd700;
  margin-bottom: 10px;
}

.about-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #cfd4ff;
}

@media(max-width: 900px) {
  .about-cards {
    flex-direction: column;
    align-items: center;
  }
}

/* CTA */
.cta{
  background:linear-gradient(135deg,#5b6cff,#7f8bff);
  text-align:center;padding:70px 20px;border-radius:30px;margin:0 8% 80px;
  color: #fff;
}
.cta h2{margin-bottom:15px; color: #fff;}
.cta p{margin-bottom:25px; color: #fff;}
.cta .btn{background:#fff;color:#5b6cff}
.cta .btn:hover{background:#e8ebff}

/* LEGAL FOOTER */
.legal-footer {
  background: #0b0b10;
  padding: 70px 20px 30px;
  color: #ccc;
}
.legal-title {
  text-align: center;
  color: #f5c16c;
  margin-bottom: 40px;
  font-size: 28px;
}
.legal-cards {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}
.legal-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
}
.legal-card:hover {
  transform: translateY(-8px);
  border-color: #f5c16c;
  box-shadow: 0 0 20px rgba(245,193,108,0.2);
}
.legal-card h3 {
  color: #f5c16c;
  margin-bottom: 10px;
}
.short-text {
  font-size: 14px;
  color: #aaa;
}
.legal-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 15px;
  color: #ccc;
}
.legal-card:hover .legal-content {
  max-height: 420px;
  overflow-y: auto;
}
.legal-bottom {
  text-align: center;
  margin-top: 50px;
  font-size: 13px;
  color: #777;
}

/* LIVE REVIEWS */
.live-reviews {
  padding: 80px 20px;
  text-align: center;
  background: radial-gradient(circle at top,#0b0f2a,#050713);
  position: relative;
}
.live-reviews h2 {
  color: #ffd700;
  margin-bottom: 40px;
  text-shadow: 0 0 12px rgba(255,215,0,.6);
}
.review-box {
  max-width: 650px;
  margin: auto;
  padding: 30px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,215,0,.08), rgba(0,0,0,.7));
  border: 1px solid rgba(255,215,0,.25);
  box-shadow: 0 0 35px rgba(255,215,0,.25);
  animation: fadeUp .8s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.review-avatar, .review-popup .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid gold;
}
.review-text {
  color: #eaeaff;
  font-size: 18px;
}
.review-name {
  margin-top: 10px;
  color: #ffd700;
  font-weight: 600;
}
.review-stars {
  margin-top: 5px;
  color: gold;
  font-size: 20px;
}
.review-time {
  display: block;
  margin-top: 8px;
  color: #8fa1ff;
  font-size: 13px;
}
@keyframes fadeUp {
  from {opacity:0; transform:translateY(10px);}
  to {opacity:1; transform:translateY(0);}
}
.review-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0,0,0,0.85);
  padding: 12px 16px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 20px gold;
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  z-index: 9999;
}
.review-popup.show {
  opacity: 1;
  transform: translateY(0);
}
.popup-content small {
  color: #ffd700;
}
@media(max-width:768px){
  .review-box {
    cursor: grab;
  }
}

/* LIVE STATS */
.live-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  padding: 70px 20px;
  background: linear-gradient(145deg, rgba(255,215,0,0.08), rgba(0,0,0,0.6));
  border: 1px solid rgba(255,215,0,0.25);
  box-shadow:
    0 0 20px rgba(255,215,0,0.15),
    inset 0 0 20px rgba(255,215,0,0.08);
  transition: transform .3s ease, box-shadow .3s ease; 
}
.stat-card {
  background: rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 30px 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 35px rgba(255,215,0,0.35),
    inset 0 0 25px rgba(255,215,0,0.15);
}
.stat-card h3 {
 color: #ffd700;
  font-weight: 600;
  margin-top: 15px;
}
.stat-card p {
  color: #d6d6ff;
  font-size: 14px;
}
.circle {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}
.circle circle {
  fill: none;
  stroke-width: 10;
  cx: 60;
  cy: 60;
  r: 50;
}
.circle circle:first-child {
  stroke: #1e244f;
}
.circle circle:last-child {
  stroke: #faff70;
  filter: drop-shadow(0 0 6px gold);
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 2s ease;
}

/* CONTACT FOOTER */
.contact-footer {
  background: #05050b;
  padding: 70px 20px 40px;
  color: #ccc;
  text-align: center;
}
.contact-footer h2 {
  color: #f5c16c;
  margin-bottom: 40px;
  font-size: 30px;
}
.contact-cards {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}
.contact-card {
  background: #0f0f16;
  border: 1px solid #222;
  border-radius: 14px;
  padding: 30px 20px;
  transition: 0.35s ease;
}
.contact-card:hover {
  transform: translateY(-6px);
}

/* Currency Selector Styles */
.currency-selector {
  position: relative;
  display: inline-block;
}

#currencyBtn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

#currencyBtn .currency-symbol {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.currency-dropdown {
  position: absolute !important;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 320px;
  max-width: 400px;
  max-height: 400px;
  overflow: hidden;
  z-index: 9999 !important;
  display: none;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: all 0.2s ease;
}



.currency-search {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--light);
}

.currency-search input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  background: var(--white);
  color: var(--dark);
  transition: border-color 0.2s;
}

.currency-search input:focus {
  outline: none;
  border-color: var(--primary);
}

.currency-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 0.5rem;
}

.currency-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: left;
}

.currency-option:hover {
  background: var(--light);
}

.currency-option.active {
  background: var(--primary);
  color: var(--white);
}

.currency-option.active .currency-name,
.currency-option.active .currency-full {
  color: var(--white);
}

.currency-flag {
  font-size: 1.25rem;
  line-height: 1;
}

.currency-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.currency-name {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.875rem;
}

.currency-full {
  color: var(--gray);
  font-size: 0.75rem;
}

.currency-symbol {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.875rem;
}

.currency-option.active .currency-symbol {
  color: var(--white);
}

/* Dark mode styles for currency selector */
[data-theme="dark"] .currency-dropdown {
  background: var(--white);
  border-color: var(--border);
}

[data-theme="dark"] .currency-search {
  background: var(--white);
}

[data-theme="dark"] .currency-search input {
  background: var(--light);
  color: var(--dark);
}

[data-theme="dark"] .currency-option {
  color: var(--dark);
}

[data-theme="dark"] .currency-option:hover {
  background: var(--white);
}

[data-theme="dark"] .currency-name {
  color: var(--dark);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .currency-dropdown {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin-top: 0;
    min-width: 100%;
    max-width: 100%;
    max-height: 60vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    z-index: 9999 !important;
    transform: translateY(100%);
  }
  
  .currency-dropdown.active {
    transform: translateY(0);
  }
  
  .currency-option {
    padding: 0.875rem 1rem;
  }
  
  .currency-flag {
    font-size: 1.25rem;
  }
  
  .currency-name {
    font-size: 0.875rem;
  }
  
  .currency-full {
    font-size: 0.75rem;
  }
  
  .currency-list {
    max-height: calc(60vh - 60px);
  }
}
.contact-card h3 {
  color: #f5c16c;
  margin-bottom: 12px;
}
.contact-card a {
  color: #9bb6ff;
  text-decoration: none;
}
.contact-card a:hover {
  text-decoration: underline;
}

/* =========================================
   MOBILE RESPONSIVE FIXES
   ========================================= */
@media (max-width: 768px) {
    /* Prevent horizontal scrolling/shifting */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    /* Ensure all main containers respect width */
    .section, footer, .main-content {
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* Container should not hide overflow as it might clip the nav if it was relative, 
       but here nav is fixed. However, header having overflow hidden is risky. */
    .container {
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    header {
        max-width: 100vw;
        box-sizing: border-box;
        /* Removed overflow-x: hidden to prevent clipping of fixed children */
    }

    /* Fix Product Slider Overflow */
    .product-slider {
        overflow: hidden; /* Prevents slider from pushing page width */
        padding: 10px 0 30px 0; /* Adjust padding */
    }

    /* Adjust Grids for Mobile */
    .features,
    .live-stats,
    .legal-cards,
    .contact-cards {
        grid-template-columns: 1fr; /* Force single column */
        gap: 20px;
        padding: 0 10px;
    }

    /* Adjust specific grid gaps */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .category-sidebar {
        position: static;
    }

    /* Adjust Padding for Sections */
    .section, 
    .about-section, 
    .live-reviews, 
    .live-stats, 
    .contact-footer, 
    .legal-footer,
    .cta {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }
    
    .cta {
        margin: 0 15px 50px; /* Adjust margin for CTA */
        width: auto;
    }

    /* Fix image max-width */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Ensure star rating is tap-friendly */
    .star-btn {
        font-size: 3rem; /* Even larger on mobile for easy tapping */
        padding: 10px;
    }

    /* Single Post Mobile Fixes */
    .single-post {
        max-width: 100%;
        overflow: hidden; /* Ensure content stays inside rounded corners */
        margin-bottom: 2rem;
    }

    .post-details, 
    .post-header,
    .post-full-content,
    .comments-section,
    .comment-form {
        padding: 1rem; /* Significantly reduce padding to give content more room */
    }

    .pricing-section {
        padding: 1rem;
        margin: 1rem 0;
    }

    .post-media {
        min-height: auto;
        height: auto;
        aspect-ratio: 16/9; /* Maintain a nice aspect ratio */
    }
    
    .post-main-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        max-height: 300px;
    }

    /* Ensure content stays within */
    .post-title {
        font-size: 1.5rem !important;
        line-height: 1.3;
        word-wrap: break-word;
    }
    
    .price-display {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Fix buttons overflowing */
    .btn-buy {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        white-space: normal; /* Allow text to wrap if needed */
        text-align: center;
    }

    /* Fix Grid on Mobile */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-sidebar-item {
        align-items: stretch;
    }

    .category-menu-toggle {
        width: 40px;
        min-width: 40px;
    }

    .content-text {
        word-break: break-word; /* Prevent long words/URLs from breaking layout */
    }
}
/* ===== SINGLE POST MOBILE CARD FIX ===== */
@media (max-width: 768px) {

    .container {
        padding: 0 1rem;
    }

    .single-post {
        border-radius: 1rem;
        overflow: hidden;
    }

    /* Header stays inside card */
    .post-header {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Force everything inside card */
    .post-main-content {
        display: block;
        width: 100%;
    }

    /* Image section */
    .post-media {
        width: 100%;
        min-height: auto;
        aspect-ratio: 16 / 9;
    }

    .post-main-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        max-height: 400px;
    }

    /* Text + buttons container */
    .post-details {
        padding: 1.25rem;
    }

    .post-details .post-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .post-description {
        font-size: 0.95rem;
    }

    /* Pricing card stays inside */
    .pricing-section {
        margin: 1rem 0;
        padding: 1rem;
    }

    /* Buy Now button FIX */
    .btn-buy {
        margin: 1rem 0 0;
        width: 100%;
        border-radius: 0.75rem;
    }

    /* Rating & engagement wrap properly */
    .rating-section {
        margin-top: 1.5rem;
    }

    .engagement-section {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .share-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Full content inside card */
    .post-full-content {
        padding: 1.25rem;
    }

    /* Comments inside card */
    .comments-section {
        padding: 1.25rem;
    }
}
