/* ==========================================================================
   BehzadPro Responsive Breakpoints & Glassmorphism Mobile Adaptations
   ========================================================================== */

/* --- Desktop Small / Tablet (992px - 1200px) --- */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .header-search {
    flex: 0 1 380px;
  }

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

/* --- Mobile Landscape / Tablet Small (768px - 992px) --- */
@media (max-width: 992px) {
  .top-bar-right .top-bar-item:nth-child(2) {
    display: none;
  }

  .main-header {
    height: 72px;
  }

  .header-search {
    order: 3;
    width: 100%;
    flex: 1 0 100%;
    margin-top: 10px;
  }

  .main-header .container {
    flex-wrap: wrap;
  }

  /* Hamburger Off-Canvas Navigation Trigger */
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 22px;
    color: var(--navy);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: var(--glass-blur);
    border-radius: 8px;
    border: var(--glass-border-gold);
  }

  .nav-header {
    display: none;
  }

  .launch-countdown {
    margin: 0 15px 35px;
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .launch-story {
    flex-direction: column;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .featured-spotlight {
    flex-direction: column;
    text-align: center;
    padding: 35px 20px;
    min-height: auto;
  }

  .featured-spotlight img {
    margin-top: 24px;
    max-width: 70%;
    height: auto;
  }

  .shop-layout,
  .behzad-shop-layout {
    grid-template-columns: 1fr !important;
    display: block !important;
    gap: 0 !important;
  }

  .shop-sidebar,
  .behzad-shop-sidebar {
    display: none !important;
  }

  .shop-sidebar.active {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10000;
    overflow-y: auto;
  }
}

/* --- Mobile Portrait (<576px) --- */
@media (max-width: 576px) {
  .top-bar {
    font-size: 11px;
  }

  .hero-slide {
    min-height: 380px;
    padding: 30px 20px;
  }

  .hero-slide-content {
    padding: 20px;
  }

  .hero-slide-title {
    font-size: 28px;
  }

  .hero-slide-desc {
    font-size: 13px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card {
    padding: 10px;
  }

  .product-card-title {
    font-size: 13px;
    height: 38px;
  }

  .price-main {
    font-size: 15px;
  }

  .footer-features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom-flex {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Glass Off-Canvas Navigation Drawer for Mobile */
.offcanvas-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 27, 56, 0.6);
  backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition-fast);
}

.offcanvas-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.offcanvas-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 86vw);
  height: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: var(--glass-blur-heavy);
  z-index: 9999;
  box-shadow: -5px 0 30px rgba(16, 27, 56, 0.2);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
  padding: 30px 20px;
  overflow-y: auto;
  border-left: var(--glass-border-gold);
  transform: translateX(110%);
  visibility: hidden;
  pointer-events: none;
}

.offcanvas-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.offcanvas-close {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 22px;
  cursor: pointer;
  color: var(--navy);
}

.mobile-menu li {
  margin-bottom: 14px;
}

.mobile-menu li a {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

/* Automatic Mobile & Tablet App View Bottom Bar (Ultra-Premium Glass Floating Pill) */
.auto-mobile-app-nav {
  display: none;
}

@media (max-width: 992px) {
  body.single-product {
    padding-bottom: 180px !important;
  }

  /* One Unified Floating Box Container */
  .auto-mobile-app-nav {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    bottom: 10px !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: calc(100% - 20px) !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    background: rgba(16, 27, 56, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1.5px solid var(--gold) !important;
    border-radius: 26px !important;
    z-index: 999999 !important;
    box-shadow: 
      0 20px 50px rgba(10, 18, 36, 0.65),
      0 0 25px rgba(218, 179, 105, 0.2) !important;
    overflow: hidden !important;
  }

  /* Upper Row: Product Buy Box */
  .mobile-nav-upper-buy-panel {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 8px 12px !important;
    border-bottom: 1px dashed rgba(218, 179, 105, 0.35) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .mobile-nav-upper-buy-panel.is-variable {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .nav-buy-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
  }

  .nav-buy-price-wrap {
    display: flex;
    flex-direction: column;
    min-width: 85px;
  }

  .nav-buy-price-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
  }

  .nav-buy-price-val {
    font-size: 13px;
    font-weight: 900;
    color: var(--gold);
    line-height: 1.2;
  }

  .nav-buy-price-val ins {
    color: var(--gold);
    text-decoration: none;
  }

  .nav-buy-price-val del {
    font-size: 10px;
    opacity: 0.6;
    color: #ffffff;
    margin-left: 4px;
  }

  .nav-buy-cart-form {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .nav-buy-qty-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(218, 179, 105, 0.4);
    border-radius: 16px;
    height: 36px;
  }

  .nav-buy-qty-btn {
    width: 26px;
    height: 100%;
    background: none;
    color: var(--gold);
    font-size: 16px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-buy-qty-input {
    width: 28px;
    background: none;
    color: #ffffff;
    border: none;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    -moz-appearance: textfield;
  }

  .nav-buy-qty-input::-webkit-outer-spin-button,
  .nav-buy-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  .nav-buy-add-btn {
    background: var(--gold);
    color: var(--navy);
    border: none;
    height: 36px;
    padding: 0 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(218, 179, 105, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  /* Lower Row: 5 Navigation Icons */
  .auto-mobile-nav-items {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    height: 54px !important;
    width: 100% !important;
    padding: 0 6px !important;
    box-sizing: border-box !important;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 4px 4px;
    border-radius: 14px;
    flex: 1;
    text-align: center;
  }

  .mobile-nav-item i {
    font-size: 18px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease;
  }

  .mobile-nav-item.active {
    color: var(--gold);
    background: rgba(218, 179, 105, 0.14);
  }

  .mobile-nav-item.active i {
    transform: translateY(-2px) scale(1.15);
    color: var(--gold);
    text-shadow: 0 0 12px rgba(218, 179, 105, 0.5);
  }

  .mobile-nav-item:hover {
    color: #ffffff;
  }

  .mobile-cart-count {
    position: absolute;
    top: 2px;
    right: 8px;
    left: auto;
    background: var(--gold);
    color: var(--navy);
    font-size: 10px;
    font-weight: 900;
    min-width: 18px;
    width: auto;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    overflow: visible;
    max-width: none;
    pointer-events: none;
    z-index: 2;
  }

  .mobile-cart-count.is-zero {
    display: none !important;
  }

  body {
    padding-bottom: 90px !important;
  }
}

/* ==========================================================================
   GLOBAL MOBILE APP-VIEW TRANSFORMATIONS (Applied automatically <= 992px)
   ========================================================================== */
@media (max-width: 992px) {
  /* Stop App Kit pages from rubber-banding left/right */
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* 1. Global Page Background & Container Padding */
  body {
    background-color: #0d1527 !important;
  }

  .site-wrapper {
    background-color: #f8fafc;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow-x: hidden;
    max-width: 100%;
  }

  /* 2. Top Bar & Main Header App View Styling */
  .top-bar {
    display: none !important;
  }

  .main-header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(218, 179, 105, 0.3) !important;
    padding: 12px 16px !important;
    height: auto !important;
  }

  .header-search {
    order: 2;
    margin-top: 10px;
    width: 100%;
  }

  .search-form-wrap input.search-input {
    height: 46px;
    border-radius: 23px;
    font-size: 13px;
    background: #f1f5f9;
    border: 1px solid rgba(218, 179, 105, 0.35);
  }

  /* 3. All Product Cards Automatically Become App-View Cards */
  body.woocommerce-shop,
  body.tax-product_cat,
  body.tax-product_tag,
  body.post-type-archive-product {
    overflow-x: hidden;
  }

  .behzad-archive-hero {
    margin: 10px auto 14px !important;
    padding: 0 12px;
    max-width: 100%;
  }

  .behzad-archive-hero-card {
    padding: 18px 16px !important;
    border-radius: 18px !important;
  }

  .behzad-archive-hero-icon {
    font-size: 96px !important;
    left: -8px !important;
    bottom: -18px !important;
  }

  .behzad-archive-title {
    font-size: 20px !important;
    line-height: 1.35;
  }

  .behzad-archive-desc {
    font-size: 12px !important;
    line-height: 1.65;
  }

  .behzad-archive-count {
    font-size: 11px !important;
    padding: 6px 12px !important;
  }

  .behzad-archive-hero-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .behzad-shop-wrap {
    margin-bottom: 100px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }

  .behzad-shop-main {
    width: 100%;
    min-width: 0;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .behzad-shop-toolbar,
  .behzad-shop-main > .behzad-glass-card {
    border-radius: 14px !important;
    padding: 12px 14px !important;
    margin-bottom: 14px !important;
    flex-direction: column;
    align-items: stretch !important;
  }

  .behzad-ordering-wrap,
  .behzad-ordering-wrap select,
  .behzad-ordering-wrap .orderby {
    width: 100% !important;
    max-width: 100%;
  }

  .behzad-shop-grid,
  .behzad-shop-grid.cols-2,
  .behzad-shop-grid.cols-3,
  .behzad-shop-grid.cols-4,
  .behzad-shop-main .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding: 0 !important;
    width: 100%;
  }

  .behzad-pagination {
    margin-top: 24px !important;
    padding: 0 12px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 12px;
  }

  .product-card {
    background: #ffffff !important;
    border-radius: 18px !important;
    border: 1px solid rgba(218, 179, 105, 0.3) !important;
    padding: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    position: relative;
  }

  .product-card .product-thumb-wrap,
  .product-card .product-card-thumb {
    border-radius: 14px !important;
    overflow: hidden;
    margin-bottom: 8px !important;
  }

  .product-card .product-thumb-wrap img,
  .product-card .product-card-thumb img {
    height: 140px !important;
    object-fit: cover !important;
  }

  .product-card-title {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: var(--navy) !important;
    line-height: 1.35 !important;
    height: 35px !important;
    overflow: hidden !important;
    margin-top: 6px !important;
  }

  .product-card-footer {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-top: 8px !important;
  }

  .product-card-footer .product-card-price {
    flex: 1 1 auto;
    min-width: 0;
  }

  .price-main {
    font-size: 13px !important;
    font-weight: 900 !important;
    color: var(--navy) !important;
  }

  .product-card .btn-add-to-cart {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    background: var(--navy) !important;
    color: var(--gold) !important;
    border: 1.5px solid var(--gold) !important;
    box-shadow: 0 4px 12px rgba(16, 27, 56, 0.2) !important;
    font-size: 14px !important;
    flex: 0 0 38px !important;
  }

  .product-card .btn-add-to-cart .btn-label {
    display: none !important;
  }

  .product-card .btn-add-to-cart i {
    margin: 0 !important;
    color: var(--gold) !important;
    font-size: 14px !important;
  }

  .product-card .btn-add-to-cart:hover,
  .product-card .btn-add-to-cart:focus-visible,
  .product-card .btn-add-to-cart.added {
    background: #1c2b54 !important;
    color: var(--gold) !important;
  }

  /* 4. Single Product Pages Become App-View Details */
  .single-product-container {
    padding: 12px !important;
  }

  .product-gallery-wrap {
    border-radius: 20px !important;
    overflow: hidden;
  }

  .quantity-wrap {
    border-radius: 20px !important;
    height: 48px !important;
  }

  .btn-primary {
    border-radius: 24px !important;
    height: 48px !important;
    font-weight: 800 !important;
  }

  /* 5. Footer Clean Adaptation */
  .site-footer {
    border-radius: 28px 28px 0 0 !important;
    margin-top: 30px !important;
    padding-bottom: 90px !important;
  }
}

/* Header Brand Link & Clean Flat Title (No Effects) */
.header-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-brand-logo-img {
  width: 48px;
  height: 48px;
  max-height: 48px;
  width: auto;
  object-fit: contain;
  background: #ffffff;
  padding: 3px 6px;
  border-radius: 10px;
  border: 1px solid rgba(218, 179, 105, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  transition: max-height 0.2s ease;
}

.header-brand-title-wrap {
  display: flex;
  align-items: center;
}

.header-brand-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: normal;
  text-shadow: none !important;
  transition: font-size 0.2s ease;
}

/* Responsive Scaling for Mobile & Tablet */
@media (max-width: 992px) {
  .header-brand-title-wrap {
    display: flex !important;
  }
  .header-brand-logo-img {
    max-height: 38px;
    padding: 2px 4px;
  }
  .header-brand-title {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .header-brand-logo-img {
    max-height: 34px;
    padding: 2px 4px;
  }
  .header-brand-title {
    font-size: 14px;
  }
  .header-brand-link {
    gap: 6px;
  }
}

/* Vertical Categories Off-Canvas Mega Drawer (Right Side — manual open only) */
.mobile-cat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 27, 56, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000050;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-cat-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-cat-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  max-height: 100dvh;
  background: #ffffff;
  z-index: 10000060;
  box-shadow: -10px 0 40px rgba(16, 27, 56, 0.3);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
}

.mobile-cat-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

body.behzad-cat-open {
  overflow: hidden;
}

/* Ajax Cart Off-Canvas Side Drawer */
.behzad-ajax-cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(400px, 92vw);
  height: 100%;
  background: #f8fafc;
  z-index: 10000060;
  box-shadow: 12px 0 40px rgba(16, 27, 56, 0.28);
  display: flex;
  flex-direction: column;
  transform: translateX(-105%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
  pointer-events: none;
}

.behzad-ajax-cart-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 992px) {
  .behzad-ajax-cart-drawer {
    width: min(360px, 94vw);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .cart-drawer-body {
    padding-bottom: 24px;
  }

  .ajax-cart-checkout-card {
    margin-bottom: 8px;
  }

  .cart-toggle-label {
    display: none;
  }

  .cart-toggle-btn {
    padding: 8px 12px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }

  .header-actions {
    position: relative;
    z-index: 6;
    flex-shrink: 0;
    gap: 8px !important;
  }

  .bb-partner-cta {
    padding: 7px 10px;
    gap: 7px;
  }

  .bb-partner-cta > i {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .bb-partner-cta__text strong {
    font-size: 11px;
  }

  .bb-partner-cta__text em {
    display: none;
  }

  .header-cart-wrap {
    position: relative;
    z-index: 7;
  }
}

/* Mobile App View Transformations for Single Product Pages */
@media (max-width: 992px) {
  /* Increase body bottom padding so content scrolls freely above fixed bars */
  body.single-product {
    padding-bottom: 170px !important;
  }

  .single-product-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
  }

  .product-gallery-stage {
    position: relative;
    top: 0 !important;
  }

  /* Upgraded Image Gallery Box in Mobile App View */
  .product-gallery-stage > div {
    position: relative !important;
    top: 0 !important;
    border-radius: 24px !important;
    padding: 20px 16px !important;
    background: #ffffff !important;
    border: 1.5px solid rgba(218, 179, 105, 0.4) !important;
    box-shadow: 0 12px 35px rgba(16, 27, 56, 0.08) !important;
  }

  .main-cover-box img {
    max-height: 290px !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 30px rgba(16, 27, 56, 0.22) !important;
  }

  .product-info-stage > div {
    border-radius: 24px !important;
    padding: 18px !important;
    background: #ffffff !important;
    border: 1.5px solid rgba(218, 179, 105, 0.35) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04) !important;
  }

  .product-info-stage h1 {
    font-size: 20px !important;
    line-height: 1.35 !important;
  }

  /* Single Product Mobile: padding so content doesn't hide behind bottom dock */
  body.single-product {
    padding-bottom: 165px !important;
  }

  body.single-product.product-type-variable {
    padding-bottom: 230px !important;
  }

  /* Hide in-page cart on mobile — dock handles purchase + variation chips */
  body.single-product .desktop-cart-form-wrap {
    display: none !important;
  }

  /* form.cart inside the NAV dock is styled by the inline CSS — do NOT reposition form.cart globally */

  /* Desktop cart form styling — scoped so it never affects the mobile nav dock form */
  .desktop-cart-form-wrap .quantity-wrap,
  .desktop-cart-form-wrap .quantity {
    background: #ffffff !important;
    border: 1px solid rgba(218, 179, 105, 0.45) !important;
    border-radius: 12px !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
  }

  .desktop-cart-form-wrap .quantity-wrap button,
  .desktop-cart-form-wrap .quantity button {
    background: #f1f5f9 !important;
    color: var(--navy) !important;
    font-size: 18px !important;
    border: none !important;
  }

  .desktop-cart-form-wrap .quantity-wrap input,
  .desktop-cart-form-wrap .quantity input {
    background: #ffffff !important;
    color: var(--navy) !important;
    font-size: 16px !important;
    border: none !important;
  }

  .desktop-cart-form-wrap button.btn-primary,
  .desktop-cart-form-wrap .single_add_to_cart_button {
    flex: 1 !important;
    background: var(--gold) !important;
    color: var(--navy) !important;
    border-radius: 12px !important;
    height: 52px !important;
    font-weight: 900 !important;
    font-size: 16px !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  /* Product Tabs Mobile App Accordion Transformation */
  .product-tabs-container {
    border-radius: 24px !important;
    padding: 18px !important;
    background: #ffffff !important;
    border: 1.5px solid rgba(218, 179, 105, 0.35) !important;
  }

  .product-tab-buttons {
    flex-direction: column !important;
    gap: 8px !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 16px !important;
  }

  .product-tab-btn {
    width: 100% !important;
    text-align: right !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
    font-size: 13px !important;
  }

  .behzad-specs-table th, .behzad-specs-table td {
    padding: 10px 12px !important;
    font-size: 12px !important;
  }
}

.cat-drawer-header {
  padding: 18px 20px;
  background: var(--navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--gold);
}

.cat-drawer-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

.cat-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cat-tree-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cat-tree-item {
  border-bottom: 1px solid #f1f5f9;
}

.cat-tree-link-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px;
}

.cat-tree-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  flex: 1;
}

.cat-count-badge {
  background: #f1f5f9;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  margin-right: auto;
  margin-left: 8px;
}

.cat-toggle-btn {
  background: none;
  border: none;
  color: var(--navy);
  font-size: 14px;
  cursor: pointer;
  padding: 6px 10px;
  transition: transform 0.2s ease;
}

.cat-tree-item.open .cat-toggle-btn i {
  transform: rotate(180deg);
}

.cat-sub-tree-list {
  list-style: none;
  padding: 8px 16px 10px 0;
  margin: 0;
  display: none;
  background: #f8fafc;
  border-radius: 10px;
}

.cat-tree-item.open .cat-sub-tree-list {
  display: block;
}

.cat-sub-tree-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
}

/* ==========================================================================
   Cart — Mobile App Kit (checkout app styles live in cart-checkout.css)
   ========================================================================== */
@media (max-width: 992px) {
  .bb-cart-page {
    padding: 16px 0 120px;
  }

  .bb-cart-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .bb-cart-title {
    font-size: 22px !important;
  }

  .bb-cart-layout {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .bb-cart-item {
    padding: 12px !important;
    border-radius: 16px !important;
  }

  .bb-cart-item-thumb {
    width: 72px !important;
    height: 72px !important;
  }

  .bb-cart-item-title {
    font-size: 13px !important;
  }

  .bb-cart-summary {
    order: 2;
  }

  .sticky-summary {
    position: static !important;
  }

  .bb-cart-checkout-btn,
  .bb-cart-continue {
    width: 100%;
  }

  .bb-cart-item-top,
  .bb-cart-item-bottom {
    align-items: flex-start;
  }
}
