/*
 * Theme Name: Joom
 * Theme URI: https://siteexpert.in/joom-theme
 * Author: SiteExpert
 * Author URI: https://siteexpert.in
 * Description: A high-performance, conversion-focused WooCommerce theme developed by SiteExpert. Designed with a modern mobile-first UI, fast AJAX cart system, dynamic layouts, and seamless Elementor compatibility to create powerful eCommerce stores.
 * Version: 1.0.1
 * Requires at least: 6.0
 * Requires PHP: 7.4
 * Tested up to: 6.5
 * License: GPL v2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: joom
 * Domain Path: /languages
 * Tags: e-commerce, woocommerce, elementor, responsive, translation-ready, modern-ui, ajax, fast-loading, mobile-first
 */

/* =================================================
   GLOBAL CSS VARIABLES SETUP
   ================================================= */
:root {
  --primary-color: #FA3434;
  --secondary-color: #0f172a;
  --accent-color: #3b82f6;
  --text-color: #334155;
  --light-text-color: #64748b;
  --bg-color: #f8fafc;
  --card-bg-color: #ffffff;
  --border-color: #e2e8f0;
  
  --btn-bg-color: #FA3434;
  --btn-text-color: #ffffff;
  --btn-hover-bg-color: #e62e2e;
  --btn-hover-text-color: #ffffff;
  
  --link-color: #FA3434;
  --link-hover-color: #e62e2e;
  
  --header-bg-color: #ffffff;
  --header-text-color: #0f172a;
  
  --footer-bg-color: #0f172a;
  --footer-text-color: #cbd5e1;
  
  --price-color: #111827;
  --sale-price-color: #FA3434;
  --regular-price-color: #94a3b8;
  
  --add-to-cart-bg: #0f172a;
  --add-to-cart-hover: #FA3434;
  
  --sale-badge-bg: #FA3434;
  --sale-badge-text: #ffffff;
  
  --stock-in-color: #059669;
  --stock-out-color: #dc2626;
  --cart-total-color: #FA3434;
  
  --badge-new-bg: #10b981;
  --badge-featured-bg: #3b82f6;
  --badge-oos-bg: #64748b;
}

/* =================================================
   MODERN RESET & BASE STYLES (PLUGIN-FRIENDLY)
   ================================================= */
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* Header Top Bar */
.header-top {
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.header-top .container-fluid,
.site-header .container-fluid,
.navigation-main-wrapper .container-fluid {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 -0.5rem;
}

.header-top-wrapper {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 8px;
}

.top-left,
.top-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-link {
  color: var(--header-text-color);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
}

.top-link:hover {
  color: #000;
}

/* Main Header Styles */
.site-header {
  background-color: var(--header-bg-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  padding: 0;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.site-header.scrolled {
  padding: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 8px 1.5rem;
  height: auto;
}

.logo-wrapper {
  flex-shrink: 0;
}


/* --- Search Box Responsive Fix --- */
.search-bar-wrapper {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.search-bar-wrapper input[type="search"],
.search-bar-wrapper input[type="text"] {
  flex: 1 1 0%;
  min-width: 0;
  font-size: 0.89rem;
  padding: 0.7rem 1rem;
  border-radius: 12px 0 0 12px;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  outline: none;
  background: #fff;
  height: 44px;
  border-right: none;
}

.search-bar-wrapper button[type="submit"] {
  flex: none;
  width: 100px;
  max-width: 100%;
  border-radius: 0 12px 12px 0;
  height: 44px;
  font-size: 0.89rem;
  font-weight: 500;
  background: var(--primary-color);
  color: var(--btn-text-color);
  border: 1px solid var(--primary-color);
  border-left: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(246,67,67,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-bar-wrapper button[type="submit"]:hover {
  background: var(--btn-hover-bg-color);
}

@media (max-width: 600px) {
  .search-bar-wrapper {
    max-width: 100%;
    padding: 0 0.5rem;
  }
  .search-bar-wrapper input[type="search"],
  .search-bar-wrapper input[type="text"] {
    font-size: 1rem;
    padding: 0.7rem 1rem;
    height: 44px;
    border-radius: 8px 0 0 8px;
  }
  .search-bar-wrapper button[type="submit"] {
    font-size: 1rem;
    width: 90px;
    max-width: 100%;
    height: 44px;
    border-radius: 0 8px 8px 0;
    padding: 0;
  }
}

@media (max-width: 1024px) {
  .site-header {
    padding: 0;
  }
  .header-wrapper {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    grid-template-areas:
      "menu logo icons"
      "search search search";
    align-items: center;
    column-gap: 0.5rem;
    row-gap: 0.75rem;
    padding: 0.5rem 1rem;
  }
body .menu-toggle{
grid-area:menu;
display:inline-flex;
align-items:center;
    justify-content: center;
  }
  .logo-wrapper {
    grid-area: logo;
    justify-self: center;
    min-width: auto;
    margin-left: 0;
  }
  .header-icons-wrapper {
    grid-area: icons;
    justify-self: end;
    gap: 0.35rem;
    display: flex;
    align-items: center;
  }
  .header-icon {
    min-width: auto;
    flex-direction: row;
    gap: 0.25rem;
    padding: 0.25rem 0.2rem;
  }
  .header-icon .icon-label {
    display: none;
  }
  .header-icon .icon-wrapper {
    width: 28px;
    height: 28px;
  }
  .header-icon svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .header-wrapper {
    padding: 8px 12px;
    column-gap: 10px;
    row-gap: 10px;
  }
  .header-icons-wrapper {
    gap: 16px;
  }
  .header-icon {
    padding: 0;
    min-width: auto;
    position: relative;
  }
  .header-icon .icon-wrapper {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .header-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.6;
  }
}

/* Header badge sizing on small phones */
@media (max-width: 600px) {
  .header-icon .icon-badge,
  .site-header .woosw-count.mobile-badge,
  .site-header .cart-count.mobile-badge {
    top: -4px;
    right: -6px;
    min-width: 15px;
    height: 15px;
    font-size: 9px;
    line-height: 15px;
    border: 1px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 0 3px;
  }
}

/* =================================================
   GLOBAL PRODUCT BADGES & PRICING UI
   ================================================= */
.mj-badges-wrap {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  z-index: 10;
  pointer-events: none;
}

.mj-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mj-badge-sale { background-color: var(--sale-badge-bg, #FA3434); color: var(--sale-badge-text, #ffffff); }
.mj-badge-new { background-color: var(--badge-new-bg, #10b981); }
.mj-badge-featured { background-color: var(--badge-featured-bg, #3b82f6); }
.mj-badge-oos { background-color: var(--badge-oos-bg, #64748b); }

/* Global Cards Price Format */
.mj-price-wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 17px;
  font-weight: 800;
  color: var(--price-color, #111827);
  line-height: 1.2;
}

.mj-price-wrap del {
  display: none !important;
  color: var(--regular-price-color, #94a3b8);
  font-size: 13px;
  font-weight: 500;
  text-decoration: line-through;
}

.mj-price-wrap ins {
  text-decoration: none;
  color: var(--sale-price-color, #FA3434);
}

.mj-price-wrap .woocommerce-Price-amount {
  color: inherit;
}

.language-selector,
.currency-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.flag-icon {
  font-size: 1rem;
}

.language-selector select,
.currency-selector select {
  border: none;
  background-color: transparent;
  font-size: 0.8125rem;
  cursor: pointer;
  color: #333;
  padding: 0 0.25rem 0 0;
  outline: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.language-selector select:hover,
.currency-selector select:hover {
  color: #e85d75;
}

.joom-geek-btn {
  background: #000;
  padding: 0.4375rem 0.875rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.8125rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.joom-geek-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
}

.joom-geek-text {
  font-weight: 800;
  font-size: 12px;
  color: #fff;
  letter-spacing: 0.3px;
}

.joom-geek-sub {
  color: #ff4747;
  font-style: italic;
  font-weight: 700;
  font-size: 13px;
}

/* --- Site Logo & Animations --- */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.site-logo:hover {
  transform: translateY(-3px);
}

.site-logo:hover .logo-first-letter {
  transform: scale(1.1) rotateZ(5deg);
  box-shadow: 0 8px 20px rgba(250, 67, 67, 0.35);
}

.site-logo:hover .logo-text {
  color: var(--primary-color);
}

.logo-icon {
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(250, 52, 52, 0.4);
  animation: logoIconPulse 3s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes logoIconPulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(250, 52, 52, 0.35);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 16px rgba(250, 52, 52, 0.5);
    transform: scale(1.15);
  }
}

.logo-text {
  font-size: 1.85rem;
  font-weight: 950;
  letter-spacing: -0.6px;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: all 0.3s ease;
  color: var(--header-text-color);
}

.logo-first-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-weight: 950;
  font-size: 1.35rem;
  box-shadow: 0 6px 20px rgba(250, 52, 52, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  transform: translateZ(0);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.logo-first-letter::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.site-logo:hover .logo-first-letter::before {
  left: 100%;
}

.logo-image {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

.site-logo:hover .logo-image {
  transform: scale(1.08);
}

.logo-desktop {
  display: block;
}

.logo-mobile {
  display: none;
}

@media (max-width: 768px) {
  body .logo-desktop {
    display: none;
  }
  
  body .logo-mobile {
    display: block;
  }
}

.logo:hover {
  color: var(--secondary-color);
}

body .search-camera-btn {
  display: none;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  color: #aaa;
  font-size: 1.1rem;
  padding: 0 0.75rem;
  margin: 0;
  transition: all 0.2s ease;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.search-camera-btn:focus {
  outline: none;
  box-shadow: none;
}

.search-camera-btn:hover {
  color: #333;
  background-color: transparent;
}

.search-camera-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

/* --- Social Proof & Live Viewers Badge --- */
.joom-live-viewing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 0;
  padding: 6px 12px 6px 10px;
  background: #fff8f0;
  border: 1px solid #fcd9a0;
  border-radius: 999px;
  font-size: 13px;
  color: #92400e;
  font-weight: 500;
  line-height: 1;
}
.joom-live-viewing::before {
  content: "\1F525";
  font-size: 14px;
  line-height: 1;
  animation: joom-fire-flicker 1.2s ease-in-out infinite alternate;
}
@keyframes joom-fire-flicker {
  0%   { transform: scale(1)    rotate(-3deg); }
  50%  { transform: scale(1.15) rotate(2deg);  }
  100% { transform: scale(1.05) rotate(-2deg); }
}
.joom-live-viewers-count {
  font-weight: 700;
  font-size: 14px;
  color: #c2410c;
}

/* --- Flash Sale Countdown Timer --- */
.joom-countdown-wrap {
  margin-top: 15px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff7ed 0%, #fff1e6 100%);
  border: 1px solid #fed7aa;
  overflow: hidden;
}
.joom-countdown-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  flex-wrap: wrap;
}
.joom-countdown-label {
  font-size: 13px;
  color: #c2410c;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.1px;
}
.joom-countdown {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
}
.joom-cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #1c1917;
  color: #fff;
  border-radius: 7px;
  height: 46px;
  padding: 5px 11px;
  min-width: 46px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  box-sizing: border-box;
}
.joom-cd-block span:first-child {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}
.joom-cd-unit {
  font-size: 9px;
  text-transform: uppercase;
  color: #a8a29e;
  margin-top: 4px;
  letter-spacing: 0.6px;
}
.joom-cd-sep {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  height: 46px;
  font-size: 18px;
  font-weight: 800;
  color: #c2410c;
  margin-bottom: 0;
  line-height: 1;
  padding: 0 1px;
}

@media (max-width: 768px) {
  .joom-countdown-wrap {
    margin-top: -15px;
    margin-bottom: 15px;
  }

  .joom-countdown-inner {
    padding: 12px;
  }
}

/* --- Scroll To Top Floating Button --- */
.scroll-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--btn-text-color);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  box-shadow: 0 8px 22px rgba(255, 71, 71, 0.35);
  padding: 0;
  line-height: 1;
}

.scroll-to-top.show {
  display: inline-flex;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 16px;
}

@media (max-width: 768px) {
  .scroll-to-top {
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
  }
}

/* --- Category Description Section --- */


.mj-category-description-section {
    background-color: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0); /* शैडो हटाने के बाद स्ट्रक्चर के लिए हल्का बॉर्डर */
    border-radius: 24px;
    padding: 20px; /* ज्यादा ब्रीदिंग स्पेस */
    box-shadow: none; /* शैडो पूरी तरह हटा दी गई है */
    line-height: 1.85;
    color: var(--text-color, #334155);
    position: relative;
}

.mj-category-description-content {
    max-height: 160px; /* डिफ़ॉल्ट रूप से इतना ही दिखेगा */
    overflow: hidden;
    position: relative;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15.5px;
}

.mj-category-description-content.expanded {
    max-height: 5000px; /* पूरा कंटेंट दिखाने के लिए */
}

.mj-category-description-content:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px; 
    background: linear-gradient(to top, #ffffff 20%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.mj-read-more-wrapper {
    text-align: left;
    margin-top: 15px;
}

.mj-read-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #475569;
    border: 1.5px solid #cbd5e1;
    border-radius: 50px;
    padding: 8px 24px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.mj-read-more-btn:hover {
    background-color: #f8fafc;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.mj-read-more-btn.hidden {
    display: none;
}

.mj-read-more-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mj-category-description-content.expanded + .mj-read-more-wrapper .mj-read-more-btn i {
    transform: rotate(180deg);
}

/* Ensure inner HTML elements respect theme typography */
.mj-category-description-content p {
    margin-bottom: 1.2em;
}
.mj-category-description-content h1,
.mj-category-description-content h2,
.mj-category-description-content h3,
.mj-category-description-content h4,
.mj-category-description-content h5,
.mj-category-description-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.mj-category-description-content h1 { font-size: 1.8em; }
.mj-category-description-content h2 { font-size: 1.45rem; border-left: 4px solid var(--primary-color); padding-left: 15px; }
.mj-category-description-content h3 { font-size: 1.25rem; }

.mj-category-description-content ul,
.mj-category-description-content ol {
    padding-left: 20px;
    margin-bottom: 1em;
}
.mj-category-description-content li {
    margin-bottom: 0.5em;
}

@media (max-width: 768px) {
    .mj-category-footer-wrapper { padding: 30px 10px; } /* मोबाइल पर वर्टिकल पैडिंग कम की गई */
    .mj-category-description-section {
        padding: 25px; /* मोबाइल के हिसाब से अंदरूनी स्पेसिंग */
        border-radius: 15px;
    }
    .mj-category-description-content {
        max-height: 120px; /* Slightly less height on mobile */
    }
    .mj-read-more-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}
/* --- Primary Content Area --- */
#primary {
  padding: 2rem 0;
  background-color: transparent;
}

body.single-post #primary,
body.blog #primary {
  padding-top: 0;
}

body.single-post #primary .container,
body.blog #primary .container {
  padding-top: 20px;
}

.content-area {
  background-color: transparent;
}

/* --- Universal 1300px Container --- */
.mj-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

/* --- Main Navigation Wrapper --- */
.navigation-main-wrapper {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mobile-menu-close {
  display: none;
}

.nav-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0.85rem 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

.nav-content.secondary-nav {
  display: none;
}

.all-categories-btn {
  background: var(--secondary-color);
  color: var(--btn-text-color);
  border: none;
  padding: 0.7rem 1.25rem;
  border-radius: 100px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 14.5px;
  line-height: 1.2;
  margin-right: 0.75rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  letter-spacing: 0.3px;
}

.all-categories-btn:hover {
  background: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
}

.all-categories-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.all-categories-btn svg {
  width: 16px;
  height: 16px;
}

/* --- Categories Menu Items --- */
.category-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.joom-primary-menu-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.joom-primary-menu-list > li {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.joom-primary-menu-list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card-bg-color, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  min-width: 220px;
  padding: 10px 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  pointer-events: none;
}

.joom-primary-menu-list li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.joom-primary-menu-list .sub-menu li {
  position: relative;
  padding: 0;
  margin: 0;
}

.joom-primary-menu-list .sub-menu .menu-link {
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color, #334155);
  background: transparent;
}

.joom-primary-menu-list .sub-menu .menu-link:hover {
  color: var(--primary-color, #FA3434);
  background: var(--bg-color, #f8fafc);
  padding-left: 24px;
}

.joom-primary-menu-list .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  transform: translateX(10px);
}

.joom-primary-menu-list .sub-menu li:hover > .sub-menu {
  transform: translateX(0);
}

.joom-primary-menu-list .sub-menu .mj-menu-initial-icon {
  display: none !important;
}

.categories-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  right: 0;
  width: 100%;
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  padding: 0;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  overflow: hidden;
}

.nav-content.is-categories-open .categories-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* --- New JOOM-Style Mega Menu Structure --- */
.joom-mega-menu-wrapper {
  display: flex;
  height: 62vh;
  min-height: 480px;
  max-height: 700px;
  background: #fff;
}

.joom-mega-menu-sidebar {
  width: 290px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  overflow-y: auto;
  padding: 16px 12px;
  scrollbar-width: thin;
  flex-shrink: 0;
}

.joom-mega-menu-sidebar::-webkit-scrollbar { width: 5px; }
.joom-mega-menu-sidebar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.joom-mega-menu-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.joom-mega-menu-sidebar li {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #334155;
  border: 1px solid transparent;
}

.joom-mega-menu-sidebar li:hover {
  background: #f1f5f9;
}

.joom-mega-menu-sidebar li.active {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  color: var(--primary-color, #FA3434);
  font-weight: 700;
}

.j-cat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-color, #FA3434);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border: 1px solid #f1f5f9;
}
.j-cat-icon img { width: 100%; height: 100%; object-fit: cover; }

.j-cat-name { flex: 1; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.j-cat-arrow { font-size: 12px; color: #94a3b8; transition: transform 0.2s ease; opacity: 0; transform: translateX(-4px); }
.joom-mega-menu-sidebar li:hover .j-cat-arrow,
.joom-mega-menu-sidebar li.active .j-cat-arrow { opacity: 1; transform: translateX(0); color: inherit; }

.joom-mega-menu-content { flex: 1; background: #fff; overflow-y: auto; padding: 32px 40px; position: relative; }
.joom-mega-menu-content::-webkit-scrollbar { width: 6px; }
.joom-mega-menu-content::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.joom-mega-menu-pane { display: none; animation: megaFadeIn 0.3s ease forwards; }
.joom-mega-menu-pane.active { display: block; }

@keyframes megaFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.j-pane-header { margin-bottom: 30px; border-bottom: 2px solid #f1f5f9; padding-bottom: 16px; }
.j-pane-header h3 { margin: 0; font-size: 22px; font-weight: 800; }
.j-pane-header h3 a { color: #0f172a; text-decoration: none; display: inline-flex; align-items: center; transition: color 0.2s ease; }
.j-pane-header h3 a:hover { color: var(--primary-color, #FA3434); }

.j-pane-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 32px 24px; }

.j-subcat-card { display: flex; flex-direction: column; }
.j-subcat-title-link { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; text-decoration: none; }

.j-subcat-img { width: 52px; height: 52px; border-radius: 12px; background: #f8fafc; overflow: hidden; flex-shrink: 0; border: 1px solid #f1f5f9; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.j-subcat-img img { width: 100%; height: 100%; object-fit: cover; }
.j-subcat-title-link:hover .j-subcat-img { transform: scale(1.06); border-color: #e2e8f0; }

.j-subcat-name { font-size: 15px; font-weight: 700; color: #0f172a; line-height: 1.3; transition: color 0.2s ease; }
.j-subcat-title-link:hover .j-subcat-name { color: var(--primary-color, #FA3434); }

.j-grandchild-list { list-style: none; margin: 0; padding: 0 0 0 66px; display: flex; flex-direction: column; gap: 8px; }
.j-grandchild-list li a { font-size: 13.5px; color: #64748b; text-decoration: none; transition: color 0.2s ease; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.j-grandchild-list li a:hover { color: var(--primary-color, #FA3434); }
.j-grandchild-list li a.j-view-more { color: #0f172a; font-weight: 600; }

.j-no-subcats-wrap { text-align: left; padding-top: 20px; }
.j-no-subcats { color: #64748b; font-size: 15px; margin-bottom: 20px; }
.site-main .j-shop-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  background: #0f172a;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
}
.site-main .j-shop-all-btn:hover {
  background: var(--primary-color, #FA3434);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(250, 52, 52, 0.25);
}

.menu-link {
  color: var(--text-color);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 100px;
  position: relative;
  letter-spacing: 0;
  line-height: 1.3;
  transition: all 0.2s ease;
}

body .mj-menu-initial-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--primary-color);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.menu-link:hover {
  color: var(--primary-color);
  background-color: var(--bg-color);
}

.menu-link:hover .mj-menu-initial-icon {
  background-color: #ffeaea;
  transform: scale(1.1);
}

.outlet-link .mj-menu-initial-icon, 
.promo-link .mj-menu-initial-icon {
  background-color: #ffffff;
}

.menu-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.menu-link:hover svg {
  transform: scale(1.1);
}

body .outlet-link, body .promo-link {
  color: #FA3434;
  font-weight: 700;
}

body .outlet-link svg, body .promo-link svg {
  color: #FA3434;
}

body .outlet-link:hover, body .promo-link:hover {
  color: #e62e2e;
}

body .outlet-link:hover svg, body .promo-link:hover svg {
  color: #e62e2e;
}

/* Active State for Primary Menu */
body .menu-link.current-cat {
  color: var(--primary-color);
  background-color: var(--bg-color);
}

body .menu-link.current-cat svg {
  color: var(--primary-color);
}

/* --- Mobile Menu Toggle Button --- */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition);
  pointer-events: auto;
  z-index: 999;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle i {
  color: inherit;
  pointer-events: none;
}

body .menu-toggle:hover,
body .menu-toggle:focus,
body .menu-toggle:focus-visible,
body .menu-toggle:active,
body .menu-toggle.active {
  background: transparent;
  color: var(--primary-color);
  border-color: transparent;
  outline: none;
  box-shadow: none;
}

/* --- Hero / Banner Section --- */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 6rem 1.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="10" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="80" r="15" fill="rgba(255,255,255,0.05)"/></svg>');
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  color: #ffffff;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* --- Category Cards Grid --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 200px;
  cursor: pointer;
}

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

.category-card:hover img {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: var(--transition);
}

.category-card:hover .category-overlay {
  background-color: rgba(0, 0, 0, 0.6);
}

.category-name {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
  z-index: 2;
  position: relative;
}

/* --- Promotional Banners --- */
.banner-section {
  background: linear-gradient(120deg, #667eea 0%, #764ba2 100%);
  padding: 3rem;
  border-radius: 8px;
  color: #ffffff;
  margin-bottom: 2rem;
  text-align: center;
}

.banner-section h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.banner-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

/* --- Widgets & Sidebars --- */
.sidebar {
  background-color: var(--light-bg);
  padding: -0.5rem;
  border-radius: 8px;
}

.widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: none;
}

.widget ul {
  list-style: none;
}

.widget ul li {
  padding: 0.6rem 0;
  border-bottom: none;
  color: rgba(255,255,255,0.75);
}
.widget ul li:last-child {
  border-bottom: none;
}

.widget a {
  color: var(--text-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget a:hover {
  color: var(--secondary-color);
}

.badge {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--btn-text-color);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* --- Breadcrumbs --- */
body .breadcrumb {
  background-color: transparent;
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  display: none;
  visibility: hidden;
}

.breadcrumb-item {
  display: inline;
  margin-right: 0.5rem;
  color: var(--light-text-color);
}

.breadcrumb-item:before {
  content: ' / ';
  margin-right: 0.5rem;
}

.breadcrumb-item:first-child:before {
  content: '';
}

.breadcrumb-item a {
  color: var(--secondary-color);
}

/* --- Dynamic Page Title Hiding --- */
body .page-title,
body .entry-title,
body h1.page-title,
body h1.entry-title,
body.woocommerce h1.page-title,
body.woocommerce-account h1 {
  display: none;
  visibility: hidden;
}

/* --- Search Results Archive --- */
.search-results {
  margin-bottom: 2rem;
}

.search-result-count {
  color: var(--light-text-color);
  margin-bottom: 1.5rem;
}

/* --- Global Form Elements --- */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--card-bg-color, #ffffff);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-color, #333333);
  transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- WooCommerce Notice Styles --- */
.woocommerce-notice {
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-color);
  background-color: rgba(52, 152, 219, 0.1);
}

.woocommerce-notice.notice-success {
  border-left-color: var(--success-color);
  background-color: rgba(39, 174, 96, 0.1);
}

.woocommerce-notice.notice-error {
  border-left-color: var(--danger-color);
  background-color: rgba(231, 76, 60, 0.1);
}



/* --- Universal Utility Classes --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--light-text-color); }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }

.px-1 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }

.flex-center { justify-content: center; align-items: center; }
.flex-between { justify-content: space-between; align-items: center; }
.flex-column { flex-direction: column; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.rounded { border-radius: 4px; }
.rounded-lg { border-radius: 8px; }
.rounded-full { border-radius: 50%; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* --- Loaders & Animations --- */
.loading:not(.button):not(.btn):not(.add_to_cart_button):not(.btn-add-cart):not(.mj-cart-btn) {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

body .button.loading,
body .btn.loading,
body .add_to_cart_button.loading,
body .btn-add-cart.loading,
body .mj-cart-btn.loading {
  opacity: 0.8;
  pointer-events: none;
  color: transparent;
  position: relative;
}

body .button.loading svg,
body .btn.loading svg,
body .add_to_cart_button.loading svg,
body .btn-add-cart.loading svg,
body .mj-cart-btn.loading svg {
  opacity: 0;
}

body .button.loading::after,
body .btn.loading::after,
body .add_to_cart_button.loading::after,
body .btn-add-cart.loading::after,
body .mj-cart-btn.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
  .site-content h1 { font-size: 1.75rem; }
  .site-content h2 { font-size: 1.5rem; }
  .site-content h3 { font-size: 1.25rem; }

  .col-1 { grid-column: span 3; }
  .col-2 { grid-column: span 6; }
  .col-3 { grid-column: span 6; }
  .col-4 { grid-column: span 12; }
  .col-5 { grid-column: span 12; }
  .col-6 { grid-column: span 12; }
  .col-8 { grid-column: span 12; }
  .col-9 { grid-column: span 12; }

  .menu-toggle i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .navigation-main-wrapper.active {
    display: block;
  }
}

@media (max-width: 480px) {
  .site-content h1 { font-size: 1.5rem; }
  .site-content h2 { font-size: 1.25rem; }
  .site-content h3 { font-size: 1rem; }

  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    grid-column: span 1;
  }

  .navigation-main {
    gap: 0.5rem;
  }
}

/* --- Print Stylesheets --- */
@media print {
  .site-header,
  .navigation-main,
  .search-bar {
    display: none;
  }

  a {
    color: black;
  }
}

/* --- Dark Mode Preferences --- */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1a1a;
    color: #e0e0e0;
  }
}

/* --- RTL (Right-to-Left) Language Support --- */
[dir="rtl"] .breadcrumb-item:before {
  content: ' \\ ';
}

[dir="rtl"] .navigation-main {
  flex-direction: row-reverse;
}

[dir="rtl"] .product-actions {
  flex-direction: row-reverse;
}

/* =================================================
   MOBILE DRAWER MENU (<1024px)
   ================================================= */

.buyon-mobile-menu {
  display: none;
}
  .buyon-mobile-menu.active {
    pointer-events: all;
    opacity: 1;
    visibility: visible;
  }

  .buyon-mobile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(17, 24, 39, 0.35), rgba(0, 0, 0, 0.72));
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .buyon-mobile-menu.active .buyon-mobile-overlay {
    opacity: 1;
  }

  .buyon-mobile-drawer {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 86%;
    max-width: 360px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transform: translate3d(-100%, 0, 0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 36px rgba(15, 23, 42, 0.28);
    border-radius: 0 18px 18px 0;
    overflow: hidden;
    will-change: transform;
    backface-visibility: hidden;
    contain: paint;
  }

  .buyon-mobile-menu.active .buyon-mobile-drawer {
    transform: translate3d(0, 0, 0);
  }

#buyon-mobile-menu .buyon-mobile-header {
  background: #0f172a; /* Premium Dark */
    color: #ffffff;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }

  .buyon-mobile-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .buyon-user-icon {
    width: 26px;
    height: 26px;
    stroke: #ffffff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  }

  .buyon-mobile-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.25px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }

#buyon-mobile-menu .buyon-mobile-title,
#buyon-mobile-menu .buyon-mobile-title:visited,
#buyon-mobile-menu a.buyon-mobile-title,
#buyon-mobile-menu a.buyon-mobile-title:visited {
  color: #ffffff;
  text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
  }

#buyon-mobile-menu a.buyon-mobile-title:hover,
#buyon-mobile-menu a.buyon-mobile-title:focus {
  color: #ffffff;
  text-decoration: none;
    opacity: 0.95;
  }

  .buyon-mobile-close {
    background: rgba(255, 255, 255, 0.18);
    border: none;
    padding: 8px;
    border-radius: 999px;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }

#buyon-mobile-menu .buyon-mobile-close:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: transparent;
  color: #ffffff;
    transform: scale(1.05);
  }

  .buyon-mobile-close:active {
    transform: scale(0.95);
  }

  .buyon-mobile-close svg {
    stroke: #ffffff;
  }

  .buyon-mobile-tabs {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #eceff3;
    flex-shrink: 0;
    box-shadow: inset 0 -1px 0 #f4f5f7;
    padding: 4px;
    gap: 4px;
  }

  .buyon-tab-btn {
    flex: 1;
    padding: 11px 14px;
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 700;
    color: #8b93a6;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    border-radius: 9px;
  }

  .buyon-tab-btn:active {
    transform: scale(0.98);
  }

#buyon-mobile-menu .buyon-tab-btn:hover {
  background: #f8fafc;
  color: #111827;
  border-color: transparent;
}

#buyon-mobile-menu .buyon-tab-btn.active,
#buyon-mobile-menu .buyon-tab-btn.active:hover {
  color: #FA3434;
  background: #fff5f5;
  box-shadow: inset 0 0 0 1px #ffeaea;
  border-color: transparent;
}

  .buyon-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #FA3434;
    animation: slideIn 0.3s ease;
  }

  @keyframes slideIn {
    from {
      transform: scaleX(0);
    }
    to {
      transform: scaleX(1);
    }
  }

  .buyon-mobile-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 0 0;
    -webkit-overflow-scrolling: touch;
  }

  .buyon-mobile-content::-webkit-scrollbar {
    width: 4px;
  }

  .buyon-mobile-content::-webkit-scrollbar-track {
    background: #f5f5f5;
  }

  .buyon-mobile-content::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 2px;
  }

  .buyon-mobile-content::-webkit-scrollbar-thumb:hover {
    background: #FF4444;
  }

  .buyon-tab-content {
    display: none;
  }

  .buyon-tab-content.active {
    display: block;
  }

  .buyon-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .buyon-menu-list > li {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
  }

  .buyon-menu-list > li:hover {
    background: #fafafa;
  }

  .buyon-menu-list > li > a {
    display: block;
    padding: 15px 20px;
    color: #333333;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    pointer-events: auto;
  }

  .buyon-menu-list > li > a:hover,
  .buyon-menu-list > li > a:focus {
    color: #FF4444;
    padding-left: 24px;
  }

  .buyon-menu-list > li > a:active {
    background: rgba(255, 68, 68, 0.08);
  }

  .buyon-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .buyon-category-item {
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
  }

  .buyon-category-header {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    gap: 14px;
    transition: all 0.2s ease;
  }

  .buyon-category-header:hover {
    background: #fafafa;
  }

  .buyon-category-item.is-open .buyon-category-header {
    background: #f8fafc;
    border-left: 3px solid #FA3434;
    padding-left: 13px;
  }

  .buyon-category-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #FA3434;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
  overflow: hidden;
  }

  .buyon-category-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  }

  .buyon-category-item.is-open .buyon-category-icon {
    background: #ffeaea;
    box-shadow: none;
  }

  .buyon-category-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    pointer-events: auto;
  }

  .buyon-category-name:active {
    color: #FF4444;
  }

  .buyon-category-item.is-open .buyon-category-name {
    color: #FF4444;
    font-weight: 700;
  }

  .buyon-category-toggle {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
  }

#buyon-mobile-menu .buyon-category-toggle:hover {
  background: #e2e8f0;
  color: #1e293b;
  border-color: transparent;
}

#buyon-mobile-menu .buyon-category-toggle:active {
  transform: scale(0.95);
}

#buyon-mobile-menu .buyon-category-item.is-open .buyon-category-toggle,
#buyon-mobile-menu .buyon-category-item.is-open .buyon-category-toggle:hover {
  background: #FA3434;
  color: #ffffff;
  border-color: transparent;
  transform: rotate(180deg);
}

  .buyon-category-toggle .icon-minus {
    display: none;
  }

  .buyon-category-item.is-open .buyon-category-toggle .icon-plus {
    display: none;
  }

  .buyon-category-item.is-open .buyon-category-toggle .icon-minus {
    display: block;
  }

  .buyon-category-toggle svg {
    width: 12px;
    height: 12px;
  }

  .buyon-subcategory-toggle svg {
    width: 11px;
    height: 11px;
  }

  .buyon-subcategory-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #fafafa 0%, #f6f7f9 100%);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid #ffdede;
  }

  .buyon-category-item.is-open > .buyon-subcategory-list {
    max-height: 1000px;
    animation: fadeIn 0.3s ease;
  }

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

  .buyon-subcategory-item {
    border-top: 1px solid #efefef;
    transition: background 0.2s ease;
  }

  .buyon-subcategory-item:hover {
    background: #ffffff;
  }

  .buyon-subcategory-header {
    display: flex;
    align-items: center;
    padding: 11px 16px 11px 62px;
    gap: 10px;
  }

  .buyon-subcategory-item.is-open .buyon-subcategory-header {
    background: rgba(255, 68, 68, 0.05);
  }

  .buyon-subcategory-name {
    flex: 1;
    font-size: 13.5px;
    font-weight: 500;
    color: #666666;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    pointer-events: auto;
  }

  .buyon-subcategory-name:hover {
    color: #FF4444;
    padding-left: 8px;
  }

  .buyon-subcategory-name:active {
    color: #FF3333;
  }

  .buyon-subcategory-item.is-open .buyon-subcategory-name {
    color: #FF4444;
    font-weight: 600;
  }

  .buyon-subcategory-toggle {
    width: 28px;
    height: 28px;
    background: #f1f5f9;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
  }

#buyon-mobile-menu .buyon-subcategory-toggle:hover {
  background: #e2e8f0;
  color: #1e293b;
  border-color: transparent;
}

#buyon-mobile-menu .buyon-subcategory-toggle:active {
  transform: scale(0.92);
}

#buyon-mobile-menu .buyon-subcategory-item.is-open .buyon-subcategory-toggle,
#buyon-mobile-menu .buyon-subcategory-item.is-open .buyon-subcategory-toggle:hover {
  background: #111827;
  color: #ffffff;
  border-color: transparent;
  transform: rotate(180deg);
}

  .buyon-subcategory-toggle .icon-minus {
    display: none;
  }

  .buyon-subcategory-item.is-open .buyon-subcategory-toggle .icon-plus {
    display: none;
  }

  .buyon-subcategory-item.is-open .buyon-subcategory-toggle .icon-minus {
    display: block;
  }

  .buyon-grandchild-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #f8f8f8 0%, #f0f0f0 100%);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 2px solid #FFCCCC;
  }

  .buyon-subcategory-item.is-open > .buyon-grandchild-list,
  .buyon-grandchild-item.is-open > .buyon-grandchild-list {
    max-height: 800px;
    animation: fadeIn 0.3s ease;
  }

  .buyon-grandchild-item {
    border-top: 1px solid #efefef;
    transition: all 0.2s ease;
  }

  .buyon-grandchild-item:hover {
    background: #ffffff;
    transform: translateX(3px);
  }

  .buyon-grandchild-name {
    display: block;
    padding: 10px 20px 10px 84px;
    font-size: 13px;
    color: #888888;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    pointer-events: auto;
  }



  .buyon-grandchild-name:hover,
  .buyon-grandchild-name:focus {
    color: #FF4444;
    padding-left: 90px;
  }

  .buyon-grandchild-name:hover::before {
    color: #FF4444;
    left: 75px;
  }

  .buyon-grandchild-name:active {
    background: rgba(255, 68, 68, 0.1);
    color: #FF3333;
  }

  .buyon-mobile-footer {
    padding: 10px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid #eceff3;
    background: linear-gradient(180deg, #fbfbfc 0%, #f5f6f8 100%);
    flex-shrink: 0;
    box-shadow: 0 -4px 14px rgba(15, 23, 42, 0.07);
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .buyon-mobile-footer::-webkit-scrollbar {
    display: none;
  }

  .buyon-social-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.1);
  }

  .buyon-social-icon:hover,
  .buyon-social-icon:focus {
    background: #FA3434;
    color: #ffffff;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 16px rgba(250, 52, 52, 0.25);
  }

  .buyon-social-icon:active {
    transform: translateY(-2px) scale(1.05);
  }

  .buyon-social-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    stroke: none;
    transition: all 0.3s ease;
  }

/* --- Single Post Responsive Fixes --- */
body.single-post article.post {
    background: #ffffff;
    padding: 20px 60px 50px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-bottom: 60px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
}

body.single-post .entry-header {
    order: -1;
    margin-bottom: 32px;
    border-bottom: none;
    padding-bottom: 0;
    text-align: left;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

body.single-post .entry-title {
    font-size: 52px;
    letter-spacing: -1.5px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 20px;
    line-height: 1.15;
}

/* Featured Image scaling fix */
body.single-post .entry-thumbnail {
    order: -2;
    margin-top: 0;
    margin-bottom: 40px;
}
body.single-post .entry-thumbnail img {
    max-height: 600px;
    width: 100%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: none;
}

body.single-post .entry-content {
    max-width: 100%;
    margin: 0 auto;
}


body.single-post .joom-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0;
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
}

body.single-post .joom-post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.single-post .joom-post-meta span::after {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #cbd5e1;
    margin-left: 12px;
}

body.single-post .joom-post-meta span:last-child::after {
    display: none;
}

body.single-post .joom-post-meta i {
    display: none; /* Hide icons to match modern minimal look */
}

body.single-post .joom-post-meta a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

body.single-post .joom-post-meta a:hover {
    color: var(--primary-color);
}


@media (max-width: 991px) {
  body.single-post article[id^="post-"] {
    padding: 20px 16px;
    border-radius: 16px;
    margin-bottom: 24px;
  }
  body.single-post .entry-header,
  body.single-post .entry-content,
  body.single-post .entry-footer,
  body.single-post .entry-thumbnail {
    width: 100%;
  }
  body.single-post .entry-header {
    margin-bottom: 24px;
  }
  body.single-post .entry-title,
  body.single-post h1.entry-title,
  .single-post .site-main .entry-title,
  .single-post .site-main h1.entry-title {
    display: block;
    visibility: visible;
    font-size: 26px !important;
    line-height: 1.3;
    letter-spacing: -0.5px;
  }
  body.single-post .entry-thumbnail {
    margin-top: 16px;
    margin-bottom: 24px;
  }
  body.single-post .entry-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
  }
  body.single-post .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    line-height: 1.5;
  }
  body.single-post .entry-content img,
  body.single-post .entry-content iframe,
  body.single-post .entry-content video,
  body.single-post .entry-content table {
    max-width: 100%;
  }
  body.single-post #primary .row {
    display: block;
  }
  body.single-post #primary .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
  body.single-post #primary .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  body.blog .site-main,
  body.archive:not(.post-type-archive-product) .site-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* =================================================
   AUTH MODAL (LOGIN/REGISTER POPUP)
   ================================================= */
.joom-login-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  contain: layout style paint;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.1s ease, visibility 0s linear 0.1s;
}

.joom-login-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.1s ease;
}

.joom-login-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.1s ease;
}

.joom-login-modal.open .joom-login-overlay {
  opacity: 1;
}

.joom-login-content {
  position: relative;
  background: #fff;
  padding: 30px 40px 40px;
  width: 90%;
  max-width: 440px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid #f1f5f9;
  z-index: 1;
  will-change: transform, opacity;
  transform: translate3d(0, 12px, 0) scale(0.985);
  opacity: 0;
  transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.1s ease;
  backface-visibility: hidden;
}

.joom-login-modal.open .joom-login-content {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

body.joom-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .joom-login-content {
    padding: 24px 20px 30px;
    border-radius: 16px;
  }
  .joom-login-overlay {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.joom-login-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #999;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  float: none;
}

.joom-login-modal .joom-login-close:hover {
  background: #f5f5f5;
  color: #333;
}

.joom-login-close svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.joom-auth-header-modal {
  text-align: center;
  margin-bottom: 24px;
}

.joom-auth-icon-modal {
  width: 56px;
  height: 56px;
  background: #fff5f5;
  color: #FA3434;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.joom-auth-icon-modal.dark-icon {
  background: #f1f5f9;
  color: #111827;
}

.joom-auth-icon-modal svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
}

.joom-login-modal .joom-auth-header-modal h2 {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.joom-login-modal .joom-auth-header-modal p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.joom-login-content h3 {
  display: none;
}

.joom-login-content form .login-username,
.joom-login-content form .login-password,
.joom-login-content form .login-email {
  margin-bottom: 20px;
}

.joom-login-content label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #334155;
  font-size: 14px;
}

.joom-login-content input[type="text"],
.joom-login-content input[type="password"],
.joom-login-content input[type="email"],
.joom-login-content .input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  background: #f8fafc;
  color: #0f172a;
  transition: all 0.2s ease;
}

.joom-login-modal .joom-login-content input[type="text"]:focus,
.joom-login-modal .joom-login-content input[type="password"]:focus,
.joom-login-modal .joom-login-content input[type="email"]:focus {
  background: #ffffff;
  border-color: #FA3434;
  box-shadow: 0 0 0 3px rgba(250, 52, 52, 0.1);
  outline: none;
}

.joom-login-content .login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14.5px;
  color: #475569;
  font-weight: 500;
}

.joom-login-content .login-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.joom-login-modal .joom-login-content input[type="submit"] {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FA3434;
  color: #fff;
  border: none;
  height: 50px;
  padding: 0 20px;
  line-height: 1;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.2s ease;
  margin-top: 10px;
  float: none;
  border-left: none;
  box-shadow: 0 4px 12px rgba(250, 52, 52, 0.2);
}

.joom-login-modal .joom-login-content input[type="submit"].joom-auth-btn-dark-modal {
  background: #111827;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.2);
}

.joom-login-modal .joom-login-content input[type="submit"].joom-auth-btn-dark-modal:hover {
  background: #000000;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.joom-login-modal .joom-login-content .button,
.joom-login-modal .joom-login-content button {
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  float: none;
}

.joom-login-modal .joom-login-content .login-submit {
  float: none;
  clear: both;
  margin: 0 0 12px 0;
}

.joom-login-modal .joom-login-content input[type="submit"]:hover {
  background: #e62e2e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(250, 52, 52, 0.3);
}

.joom-login-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  display: block;
  font-size: 14px;
  text-align: center;
  clear: both;
}

.joom-login-footer a {
  display: inline-block;
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.joom-login-footer a:hover {
  color: #111827;
  text-decoration: none;
}

.joom-login-footer a,
.joom-login-footer p {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.5;
}

.joom-login-tabs {
  display: flex;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 26px;
}

.joom-login-modal .joom-login-tab {
  flex: 1;
  padding: 14px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  height: auto;
  font-weight: 700;
  cursor: pointer;
  color: #94a3b8;
  transition: all 0.3s ease;
  font-size: 15px;
  float: none;
}

.joom-login-modal .joom-login-tab:hover {
  color: #111827;
  background: transparent;
}

.joom-login-modal .joom-login-tab.active {
  color: #111827;
  border-bottom-color: #FA3434;
}

.joom-login-modal button.joom-login-tab,
.joom-login-modal .joom-login-close {
  background-image: none;
  box-shadow: none;
  text-transform: none;
  letter-spacing: normal;
}

.joom-login-modal .joom-form-content {
  display: none;
}

.joom-login-modal .joom-form-content.active {
  display: block;
  visibility: visible;
  opacity: 1;
}

.joom-login-content .joom-form-content form p {
  display: block;
  float: none;
  clear: both;
  width: 100%;
  margin: 0 0 16px 0;
}

.joom-login-content .joom-form-content form p:last-child {
  margin-bottom: 0;
}

.joom-login-content #joom-register-form .login-username,
.joom-login-content #joom-register-form .login-email,
.joom-login-content #joom-register-form .login-submit {
  display: block;
  visibility: visible;
  opacity: 1;
  height: auto;
  max-height: none;
  overflow: visible;
  margin-bottom: 16px;
}

.joom-login-content #joom-register-form label {
  display: block;
  visibility: visible;
  opacity: 1;
  height: auto;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.joom-login-content #joom-register-form input[type="text"],
.joom-login-content #joom-register-form input[type="email"],
.joom-login-content #joom-register-form .input {
  display: block;
  width: 100%;
  visibility: visible;
  opacity: 1;
  height: auto;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
}

@media (max-width: 1023px) {
  body .site-header {
    position: sticky;
    top: 0;
    margin-top: 0;
    transform: none;
  }

  html,
  body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body .header-icons-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
  }

  body .header-icon {
    min-width: auto;
    flex-direction: row;
    gap: 0;
  }

  body .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Old nav should stay hidden on mobile; drawer handles navigation */
  body .navigation-main-wrapper {
    display: none;
  }

  body .buyon-mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10020;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body .buyon-mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body .buyon-mobile-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  body .buyon-mobile-drawer {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 340px);
    height: 100dvh;
    z-index: 2;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.2;
  }

  body .buyon-mobile-drawer,
  body .buyon-mobile-drawer * {
    box-sizing: border-box;
  }

  body .buyon-mobile-header {
    min-height: 76px;
    padding: 14px 16px;
  }

  body .buyon-mobile-title {
    font-size: 17px;
    line-height: 1;
  }

  body .buyon-mobile-close {
    width: 44px;
    height: 44px;
    padding: 0;
    flex: 0 0 44px;
  }

  body .buyon-mobile-tabs {
    min-height: 54px;
  }

  body .buyon-tab-btn {
    min-height: 54px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  body .buyon-mobile-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body .buyon-mobile-footer {
    margin-top: auto;
    position: sticky;
    bottom: 0;
    z-index: 3;
  }
}

@media (min-width: 1024px) {
  body .buyon-mobile-menu {
    display: none;
  }
}

/* --- Header Icons Global Styles --- */
body .header-icons-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-left: auto;
  flex-wrap: nowrap;
}

body .header-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #111827;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
}
body .header-icon .icon-wrapper {
  position: relative;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body .header-icon .icon-label {
  color: #111827;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
}

body .header-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

body .header-icon:hover,
body .header-icon:hover .icon-label,
body .header-icon:hover svg {
  color: #0f172a;
}

body .header-icon .icon-badge,
body .site-header .woosw-count.mobile-badge,
body .site-header .cart-count.mobile-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ff3b30;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  padding: 0 4px;
  border: 1px solid #fff;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  z-index: 2;
}

@media (max-width: 600px) {
  body .site-header .search-bar-wrapper .search-button {
    flex: 0 0 102px;
    min-width: 96px;
  }

  body .site-header .search-camera-btn {
    display: none;
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  body .site-header .search-camera-btn svg {
    width: 22px;
    height: 22px;
  }
}


@media (max-width: 1024px) {
  body .header-icon {
    font-size: 0.9rem;
  }

  body .header-icons-wrapper {
    gap: 0.45rem;
  }
}

@media (max-width: 1023px) {
  body #primary,
  body .content-area,
  body .site-main,
  body #main {
    margin-top: 0;
    padding-top: 0;
  }
}

/* --- Header Account Dropdown --- */
.header-icon-wrap {
  position: relative;
}

.header-icon-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  right: -10px;
  background-color: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 10px;
  min-width: 220px;
  z-index: 1010;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}

.header-icon-wrap:hover .header-icon-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Invisible Bridge to prevent hover loss */
.header-icon-dropdown::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
}

.header-icon-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-icon-dropdown ul li {
  border-bottom: 1px solid #e2e8f0;
}

.header-icon-dropdown ul li:last-child {
  border-bottom: none;
}

.header-icon-dropdown ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: #000000;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-icon-dropdown ul li a svg {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.header-icon-dropdown ul li a:hover {
  background-color: #f8fafc;
  color: var(--primary-color, #FA3434);
  transform: translateX(4px);
}

.header-icon-dropdown ul li a:hover svg {
  color: var(--primary-color, #FA3434);
}

.header-icon-dropdown ul li.logout-link {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

body .header-icon-dropdown ul li.logout-link a {
  color: #000000;
}

.header-icon-dropdown ul li.logout-link a svg {
  color: #94a3b8;
}

.header-icon-dropdown ul li.logout-link a:hover {
  background-color: #f8fafc;
  color: var(--primary-color, #FA3434);
}

@media (max-width: 1023px) {
  body #buyon-mobile-menu,
  body #buyon-mobile-menu * {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body #buyon-mobile-menu .buyon-mobile-header {
    min-height: 72px;
    padding: 14px 16px;
    align-items: center;
  }

  body #buyon-mobile-menu .buyon-mobile-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
  }

  body #buyon-mobile-menu .buyon-mobile-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body #buyon-mobile-menu .buyon-mobile-tabs {
    min-height: 54px;
  }

  body #buyon-mobile-menu .buyon-tab-btn {
    min-height: 54px;
    height: 54px;
    padding: 0 14px;
    font-size: 13px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body #buyon-mobile-menu .buyon-category-toggle {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: none;
  }

  body #buyon-mobile-menu .buyon-mobile-footer {
    width: 100%;
    margin-top: auto;
    position: sticky;
    bottom: 0;
    z-index: 4;
    padding: 12px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  body #buyon-mobile-menu .buyon-mobile-footer::-webkit-scrollbar {
    display: none;
  }

  body #buyon-mobile-menu .buyon-social-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    flex: 0 0 38px;
  }

  body #buyon-mobile-menu .buyon-social-icon svg {
    width: 16px;
    height: 16px;
  }
}

/* =================================================
   WPC SMART WISHLIST POPUP UI
   ================================================= */

/* Hide stock status from wishlist popup */
:is(#woosw_popup, .woosw-popup) .stock {
    display: none;
}

/* =================================================
   WISHLIST STRIP UI - ABSOLUTE CART CLONE
   ================================================= */
html body .woosw-list.woosw-list {
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
    padding: 0 8px;
}

/* Reset table to behave like the div-based cart layout */
html body .woosw-list.woosw-list table,
html body .woosw-list.woosw-list tbody {
    display: block !important;
    width: 100% !important;
    border: none !important;
}

/* Empty State UI */
html body .woosw-empty.woosw-empty {
    text-align: center;
    padding: 100px 20px;
    background: #fff;
    border-radius: 24px;
    font-size: 24px;
    color: #111827;
    font-weight: 800;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid #f3f4f6;
}
.woosw-empty::before {
    content: "\f004";
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
    display: block;
    font-size: 72px;
    color: #e2e8f0;
    margin-bottom: 20px;
}

/* Wishlist Header - Matches Cart Header */
html body .woosw-list .woosw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #fff;
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 16px rgba(0,0,0,0.02);
}

/* Item Card - Matching .joom-cart-item-card exactly with Checkbox */
html body .woosw-list.woosw-list td {
    display: block !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Hide MRP (del) in wishlist price */
html body .woosw-list td[class*="price"] del {
    display: none !important;
}

html body .woosw-list td[class*="add"] .button {
    height: 48px;
    background: #111827;
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    padding: 0 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}
html body .woosw-list td[class*="add"] .button:hover {
    background: var(--primary-color, #FA3434);
    box-shadow: 0 6px 16px rgba(250,52,52,0.2);
}

html body .woosw-list .woosw-item--remove > * {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #f1f5f9;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #94a3b8 !important;
    text-decoration: none !important;
}
html body .woosw-list .woosw-item--remove > * i {
    font-size: 18px !important; 
}
html body .woosw-list .woosw-item--remove > *:hover {
    background: #fee2e2;
    color: #ef4444 !important;
    transform: rotate(9deg) scale(1.05);
}

/* Hide stock column */
html body .woosw-list td[class*="stock"] { display: none !important; }

/* =================================================
   ULTRA PREMIUM HEADER UI - App Like Design
   ================================================= */
   
/* 1. Dark Premium Top Bar */
body .header-top {
    background: #0f172a;
    border-bottom: none;
}
body .top-link {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 13px;
    transition: color 0.2s ease;
}
body .top-link:hover {
    color: #ffffff;
}
body .language-selector select, 
body .currency-selector select {
    color: #ffffff;
}
body .language-selector select:hover, 
body .currency-selector select:hover {
    color: #ffffff;
}
body .joom-geek-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: none;
}
body .joom-geek-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* 2. Glassmorphism Sticky Header */
body .site-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

body .site-header.scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.98);
}

/* 3. Premium Pill-Shaped Search Bar */
body .site-header .search-bar-wrapper {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    padding: 5px;
    height: 54px;
    transition: all 0.3s ease;
}

body .site-header .search-bar-wrapper:focus-within {
    background: #ffffff;
    border-color: #FA3434;
    box-shadow: 0 0 0 4px rgba(250, 52, 52, 0.1);
}

body .site-header .search-input {
    background: transparent;
    border: none;
    height: 100%;
    padding: 0 20px;
    font-size: 15px;
    color: #0f172a;
    font-weight: 500;
}

body .site-header .search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

body .site-header .search-button {
    background: #FA3434;
    color: #ffffff;
    border-radius: 100px;
    height: 100%;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 4px 12px rgba(250, 52, 52, 0.25);
    transition: all 0.2s ease;
}

body .site-header .search-button:hover {
    background: #e62e2e;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(250, 52, 52, 0.35);
}

/* 4. App-Like Header Icons */
body .header-icons-wrapper {
    gap: 12px;
}

body .header-icon {
    padding: 6px 16px 6px 6px;
    border-radius: 50px;
    background: transparent;
    transition: all 0.2s ease;
    gap: 10px;
}

body .header-icon:hover {
    background: #f8fafc;
}

body .header-icon .icon-wrapper {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    transition: all 0.2s ease;
}

body .header-icon svg {
    width: 18px;
    height: 18px;
    stroke: #475569;
    stroke-width: 2.2;
    transition: all 0.2s ease;
}

body .header-icon:hover .icon-wrapper {
    background: #ffeaea;
}

body .header-icon:hover svg {
    stroke: #FA3434;
}

body .header-icon .icon-label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

body .header-icon:hover .icon-label {
    color: #0f172a;
}

/* 5. Mobile & Tablet Refinements */
@media (max-width: 1024px) {
    body .header-wrapper {
        padding: 12px 16px;
        gap: 16px;
        grid-template-columns: auto 1fr auto;
    }
    body .menu-toggle {
        display: inline-flex;
        grid-area: menu;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        color: #0f172a;
        box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    }
    body .logo-wrapper {
        justify-self: flex-start;
        margin-left: 10px;
    }
    body .header-icon {
        padding: 0;
    }
    body .header-icon .icon-wrapper {
        width: 44px;
        height: 44px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    }
    body .header-icon:hover .icon-wrapper {
        background: #ffeaea;
        border-color: #ffd4d4;
    }
    body .header-icon svg {
        width: 20px;
        height: 20px;
    }
    body .site-header .search-bar-wrapper {
        border-radius: 16px;
        height: 50px;
    }
    body .site-header .search-button {
        border-radius: 12px;
        min-width: 90px;
        padding: 0 16px;
    }
}

/* ==============================================
   WooCommerce Product Description & Editor Content Styling
   - perfectly matches WordPress block/classic editor
   - avoids !important to allow inline styles to work
   - uses modern typography scale
   ============================================== */
.woocommerce-product-details__short-description,
.woocommerce-Tabs-panel--description,
.joom-description-full,
.joom-desc-preview,
.entry-content {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.7;
  color: inherit;
  word-break: break-word;
}

/* Restore natural margins for paragraphs */
.woocommerce-product-details__short-description p,
.woocommerce-Tabs-panel--description p,
.joom-description-full p,
.joom-desc-preview p,
.entry-content p {
  margin: 0 0 1.5em;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}


/* Headings mapped to editor scale */
.woocommerce-product-details__short-description h1,
.woocommerce-product-details__short-description h2,
.woocommerce-product-details__short-description h3,
.woocommerce-product-details__short-description h4,
.woocommerce-product-details__short-description h5,
.woocommerce-product-details__short-description h6,
.woocommerce-Tabs-panel--description h1,
.woocommerce-Tabs-panel--description h2,
.woocommerce-Tabs-panel--description h3,
.woocommerce-Tabs-panel--description h4,
.woocommerce-Tabs-panel--description h5,
.woocommerce-Tabs-panel--description h6,
.joom-description-full h1,
.joom-description-full h2,
.joom-description-full h3,
.joom-description-full h4,
.joom-description-full h5,
.joom-description-full h6,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: inherit;
  font-weight: 600;
  line-height: 1.3;
  margin: 0.5em 0 0.5em;
  clear: both;
}

.woocommerce-product-details__short-description h1, .woocommerce-Tabs-panel--description h1, .joom-description-full h1, .entry-content h1 { font-size: 2.25em; }
.woocommerce-product-details__short-description h2, .woocommerce-Tabs-panel--description h2, .joom-description-full h2, .entry-content h2 { font-size: 1.75em; }
.woocommerce-product-details__short-description h3, .woocommerce-Tabs-panel--description h3, .joom-description-full h3, .entry-content h3 { font-size: 1.5em; }
.woocommerce-product-details__short-description h4, .woocommerce-Tabs-panel--description h4, .joom-description-full h4, .entry-content h4 { font-size: 1.25em; }
.woocommerce-product-details__short-description h5, .woocommerce-Tabs-panel--description h5, .joom-description-full h5, .entry-content h5 { font-size: 1em; }
.woocommerce-product-details__short-description h6, .woocommerce-Tabs-panel--description h6, .joom-description-full h6, .entry-content h6 { font-size: 0.875em; }

/* Proper list styling */
.woocommerce-product-details__short-description ul,
.woocommerce-product-details__short-description ol,
.woocommerce-Tabs-panel--description ul,
.woocommerce-Tabs-panel--description ol,
.joom-description-full ul,
.joom-description-full ol,
.joom-desc-preview ul,
.joom-desc-preview ol,
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.5em;
  padding-left: 2em;
}

.woocommerce-product-details__short-description li,
.woocommerce-Tabs-panel--description li,
.joom-description-full li,
.joom-desc-preview li,
.entry-content li {
  margin-bottom: 0.5em;
}

/* Formats & Media */
.woocommerce-product-details__short-description strong, .woocommerce-Tabs-panel--description strong, .joom-description-full strong, .entry-content strong { font-weight: 700; }
.woocommerce-product-details__short-description em, .woocommerce-Tabs-panel--description em, .joom-description-full em, .entry-content em { font-style: italic; }
.woocommerce-product-details__short-description img, .woocommerce-Tabs-panel--description img, .joom-description-full img, .entry-content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1.5em;
  display: block;
}

/* Fallback wrapper resets */
.woocommerce-product-details__short-description > *:last-child,
.woocommerce-Tabs-panel--description > *:last-child,
.joom-description-full > *:last-child,
.joom-desc-preview > *:last-child,
.entry-content > *:last-child {
  margin-bottom: 0;
}

/* =================================================
   MODERN MINIMALIST BLOG UI (SIMPLE & COOL)
   ================================================= */
.joom-modern-header {
    text-align: center;
    padding: 20px 20px 60px;
    background: #f8fafc;
    border-radius: 24px;
    margin-bottom: 50px;
    border: 1px solid #e2e8f0;
}

.joom-modern-title {
    font-size: 46px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -1px;
    margin: 0 0 12px 0;
    line-height: 1.1;
}

.joom-modern-subtitle {
    font-size: 18px;
    color: var(--light-text-color, #64748b);
    max-width: 600px;
    margin: 0 auto;
}

.joom-modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.joom-modern-card {
    background: #ffffff;
    border-radius: 20px;
    border: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03), 0 1px 3px rgba(0,0,0,0.02);
    padding: 0 !important;
    margin: 0 !important;
}

.joom-modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
}

.modern-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f1f5f9;
}

.modern-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.joom-modern-card:hover .modern-card-image img {
    transform: scale(1.05);
}

.modern-fallback-bg {
    width: 100%; height: 100%; background: #e2e8f0;
}

.modern-card-cat {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.modern-card-cat:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.modern-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.modern-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 12px;
}

.modern-dot { color: #cbd5e1; }

.modern-card-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 12px 0;
}

.modern-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.modern-card-title a:hover {
    color: var(--primary-color);
}

.modern-card-excerpt {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
}

.modern-card-excerpt p { margin: 0; }

.modern-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.modern-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-card-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.modern-card-author span {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.modern-read-more {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.joom-modern-card:hover .modern-read-more {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateX(4px);
}

/* Feature the first card horizontally */
.joom-modern-grid article:first-child {
    grid-column: span 3;
    flex-direction: row;
    align-items: stretch;
}

.joom-modern-grid article:first-child .modern-card-image {
    width: 55%;
    height: auto;
    min-height: 380px;
}

.joom-modern-grid article:first-child .modern-card-content {
    width: 45%;
    padding: 40px;
    justify-content: center;
}

.joom-modern-grid article:first-child .modern-card-title {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 16px;
}

.joom-modern-grid article:first-child .modern-card-excerpt {
    font-size: 16px;
}

/* Editorial Pagination overrides */
.pagination-wrapper { margin-top: 40px; text-align: center; }
.pagination-wrapper .nav-links { display: inline-flex; gap: 8px; }
.pagination-wrapper .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid #e2e8f0; color: #0f172a; font-weight: 700; text-decoration: none; transition: all 0.2s;
    border-radius: 4px;
}
.pagination-wrapper .page-numbers:hover { background: #f1f5f9; }
.pagination-wrapper .page-numbers.current { background: #0f172a; color: #fff; border-color: #0f172a; }

/* --- RESPONSIVE MODERN UI --- */
@media (max-width: 1024px) {
    .joom-modern-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .joom-modern-grid article:first-child { grid-column: span 2; }
}

@media (max-width: 768px) {
    .joom-modern-header { padding: 30px 16px; border-radius: 16px; margin-bottom: 24px; }
    .joom-modern-title { font-size: 26px; }
    .joom-modern-subtitle { font-size: 15px; margin-top: 8px; }
    
    .joom-modern-grid { grid-template-columns: 1fr; gap: 20px; }
    .joom-modern-grid article:first-child { grid-column: span 1; flex-direction: column; }
    .joom-modern-grid article:first-child .modern-card-image { width: 100%; min-height: 200px; height: 200px; }
    .joom-modern-grid article:first-child .modern-card-content { width: 100%; padding: 16px; }
    .joom-modern-grid article:first-child .modern-card-title { font-size: 20px; }
    
    .modern-card-content { padding: 16px; }
    .modern-card-title { font-size: 18px; }
    .modern-card-excerpt { font-size: 14px; margin-bottom: 16px; }
    .modern-card-meta { font-size: 12px; margin-bottom: 8px; }
}

/* =================================================
   SINGLE POST - COMMENTS, NAV & RELATED PRO UI
   ================================================= */
/* Pro Post Navigation (Prev/Next) */
body.single-post .post-navigation {
    margin: 80px auto;
    max-width: 1300px;
    border-top: 1px solid #e2e8f0;
    padding-top: 60px;
}
body.single-post .post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
body.single-post .post-navigation .nav-previous,
body.single-post .post-navigation .nav-next {
    background: #f8fafc;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: none;
}
body.single-post .post-navigation .nav-previous a,
body.single-post .post-navigation .nav-next a {
    padding: 30px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
body.single-post .post-navigation .nav-previous:hover,
body.single-post .post-navigation .nav-next:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.05);
    transform: translateY(-4px);
}
body.single-post .post-navigation .meta-nav {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
    font-weight: 800;
    margin-bottom: 12px;
    display: block;
}
body.single-post .post-navigation .post-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    display: block;
    transition: color 0.2s ease;
}
body.single-post .post-navigation a:hover .post-title {
    color: var(--primary-color);
}
body.single-post .post-navigation .nav-previous { text-align: left; }
body.single-post .post-navigation .nav-next { text-align: right; }
body.single-post .post-navigation .screen-reader-text { display: none; }

/* Pro Comments UI */
body.single-post .comments-area {
    max-width: 1300px;
    margin: 0 auto 80px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}
body.single-post .comments-title,
body.single-post .comment-reply-title {
    font-size: 26px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}
body.single-post .comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}
body.single-post .comment-list .comment {
    background: #ffffff;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;
    padding: 30px 0;
    margin-bottom: 0;
    box-shadow: none;
}
body.single-post .comment-list .comment:last-child {
    border-bottom: none;
}
body.single-post .comment-list .children {
    margin-top: 10px;
    padding-left: 40px;
    list-style: none;
    border-left: 2px solid #f1f5f9;
}
body.single-post .comment-list .children .comment {
    padding: 20px 0;
    background: transparent;
}
body.single-post .comment-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
body.single-post .comment-meta img.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
body.single-post .comment-meta .fn {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    display: block;
    font-style: normal;
}
body.single-post .comment-meta .fn a { color: inherit; text-decoration: none; }
body.single-post .comment-metadata {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    display: block;
    margin-top: 4px;
}
body.single-post .comment-metadata a { color: inherit; text-decoration: none; }
body.single-post .comment-content {
    font-size: 16px;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 16px;
}
body.single-post .comment-content p:last-child { margin-bottom: 0; }
body.single-post .reply a {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s ease;
}
body.single-post .reply a:hover {
    background: #0f172a;
    color: #ffffff;
}

/* Pro Comment Form */
body.single-post .comment-respond {
    background: #f8fafc;
    padding: 32px;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
}
body.single-post .comment-form .comment-notes {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 24px;
}
body.single-post .comment-form label {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    display: block;
}
body.single-post .comment-form input[type="text"],
body.single-post .comment-form input[type="email"],
body.single-post .comment-form input[type="url"],
body.single-post .comment-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    font-size: 16px;
    color: #0f172a;
    transition: all 0.2s ease;
    margin-bottom: 20px;
    font-family: inherit;
}
body.single-post .comment-form input:focus,
body.single-post .comment-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(250,52,52,0.1);
    outline: none;
    background: #ffffff;
}
body.single-post .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #475569;
    margin-bottom: 24px;
}
body.single-post .comment-form-cookies-consent input {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}
body.single-post .form-submit { margin-bottom: 0; }
body.single-post .form-submit input[type="submit"] {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    display: inline-block;
}
body.single-post .form-submit input[type="submit"]:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(250,52,52,0.25);
}

/* Pro Related Posts */
body.single-post .related-posts,
body.single-post .jp-relatedposts {
    margin: 80px auto;
    max-width: 1300px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
    clear: both;
}
body.single-post .related-posts-title,
body.single-post .jp-relatedposts-headline {
    font-size: 26px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    margin-bottom: 32px !important;
    letter-spacing: -0.5px;
    border: none !important;
    padding: 0 !important;
}
body.single-post .related-posts-grid,
body.single-post .jp-relatedposts-items {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
}
body.single-post .related-post-card,
body.single-post .jp-relatedposts-post {
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    opacity: 1 !important;
    width: 100% !important;
    float: none !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02) !important;
}
body.single-post .related-post-card:hover,
body.single-post .jp-relatedposts-post:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.06), 0 10px 10px -5px rgba(0,0,0,0.04) !important;
    border-color: #cbd5e1 !important;
}
body.single-post .related-post-thumb,
body.single-post .jp-relatedposts-post-img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    background: #f1f5f9 !important;
    display: block !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
}
body.single-post .related-post-info,
body.single-post .jp-relatedposts-post-context {
    padding: 20px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
}
body.single-post .related-post-title,
body.single-post .jp-relatedposts-post-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
    margin: 0 0 10px 0 !important;
}
body.single-post .related-post-date,
body.single-post .jp-relatedposts-post-date {
    font-size: 13px !important;
    color: #64748b !important;
    margin-top: auto !important;
    font-weight: 600 !important;
    display: block !important;
    opacity: 1 !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    body.single-post .post-navigation, body.single-post .comments-area, body.single-post .related-posts, body.single-post .jp-relatedposts {
        margin: 40px auto;
        padding-top: 30px;
    }
    body.single-post .post-navigation .nav-links {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    body.single-post .post-navigation .nav-next { text-align: left; }
    
    body.single-post .related-posts-grid,
    body.single-post .jp-relatedposts-items {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 600px) {
    body.single-post .related-posts-grid,
    body.single-post .jp-relatedposts-items {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    body.single-post .post-navigation, body.single-post .comments-area, body.single-post .related-posts, body.single-post .jp-relatedposts {
        padding-left: 16px;
        padding-right: 16px;
    }
    body.single-post .comments-title, body.single-post .comment-reply-title, body.single-post .related-posts-title, body.single-post .jp-relatedposts-headline {
        font-size: 20px !important;
        margin-bottom: 16px !important;
    }
    body.single-post .post-navigation .nav-previous a, body.single-post .post-navigation .nav-next a {
        padding: 16px;
    }
    body.single-post .post-navigation .post-title {
        font-size: 16px;
    }
    body.single-post .comment-list .comment {
        padding: 20px 0;
    }
    body.single-post .comment-meta img.avatar { width: 36px; height: 36px; }
    body.single-post .comment-meta .fn { font-size: 15px; }
    body.single-post .comment-content { font-size: 15px; }
    body.single-post .comment-list .children {
        padding-left: 16px;
    }
    body.single-post .comment-respond {
        padding: 24px 16px;
    }
    body.single-post .related-post-title, body.single-post .jp-relatedposts-post-title { font-size: 16px !important; margin-bottom: 8px !important; }
    body.single-post .related-post-thumb, body.single-post .jp-relatedposts-post-img { height: 160px !important; }
    body.single-post .related-post-info, body.single-post .jp-relatedposts-post-context { padding: 16px !important; }
}
