/**
 * AASHMINA - DEDICATED RESPONSIVE STYLESHEET (assets/css/responsive.css)
 * Complete multi-device optimization across Desktop, Laptop, Tablet, and Mobile.
 *
 * BREAKPOINTS:
 * - Large Desktops / TVs: > 1440px
 * - Standard Desktops / Laptops: 1024px - 1439px
 * - Tablets & Small Laptops: 768px - 1023px
 * - Mobile Phones: < 768px
 * - Small Mobile Phones: < 480px
 */

/* ==========================================================================
   1. GLOBAL RESPONSIVE FOUNDATIONS & RESET
   ========================================================================== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body.menu-modal-open,
body.filter-drawer-open {
  overflow: hidden !important;
}

/* Fluid Responsive Container */
.container {
  width: 100%;
  max-width: var(--container-max, 1280px);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(14px, 3.2vw, 28px);
  padding-right: clamp(14px, 3.2vw, 28px);
  box-sizing: border-box;
}

/* Prevent Media Overflow */
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

/* Accessible Touch Targets */
button, a, input, select, textarea {
  touch-action: manipulation;
}

/* Prevent auto-zoom on iOS inputs */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

.mobile-filter-btn,
.mobile-filter-drawer-header {
  display: none;
}

/* ==========================================================================
   2. HEADER LOWER STRIP & MENU ICON DROPDOWN
/* Hide menu button on desktop screens - only meant for mobile view */
@media (min-width: 768px) {
  .strip-menu-btn,
  #stripMenuDropdownBtn {
    display: none !important;
  }
  .strip-menu-dropdown-wrap {
    display: contents !important;
  }
}

.strip-menu-dropdown-wrap {
  position: relative;
  z-index: 100002 !important;
  flex-shrink: 0;
}

.strip-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 20px;
  height: 42px;
  background: rgba(38, 13, 27, 0.95);
  border: 1.5px solid #C49746;
  border-radius: 4px;
  color: #FAF4EB;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.strip-menu-btn:hover,
.strip-menu-btn.active {
  background: #C49746;
  color: #240C19 !important;
  box-shadow: 0 4px 16px rgba(196, 151, 70, 0.4);
}

.strip-menu-icon {
  flex-shrink: 0;
  stroke: currentColor;
  transition: transform 0.25s ease;
}

.strip-menu-btn:hover .strip-menu-icon,
.strip-menu-btn.active .strip-menu-icon {
  transform: rotate(90deg);
}

.strip-menu-btn-label {
  font-weight: 700;
  line-height: 1;
}

.strip-menu-chevron {
  flex-shrink: 0;
  stroke: currentColor;
  transition: transform 0.22s ease;
}

.strip-menu-btn.active .strip-menu-chevron {
  transform: rotate(180deg);
}

/* Mega Dropdown Panel */
.strip-mega-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: min(880px, 94vw);
  background: linear-gradient(180deg, #2D0F21 0%, #1A0713 100%);
  border: 1.5px solid #C49746;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(196, 151, 70, 0.2);
  display: none;
  z-index: 100005 !important;
  box-sizing: border-box;
  animation: megaFadeDown 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  overflow: hidden;
}

.strip-mega-dropdown.show {
  display: block;
}

@keyframes megaFadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.strip-mega-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr 1.1fr;
  gap: 28px;
  padding: 28px 32px;
  box-sizing: border-box;
}

.strip-mega-col {
  display: flex;
  flex-direction: column;
}

.strip-mega-col-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #C49746;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(196, 151, 70, 0.28);
  display: block;
}

.strip-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.strip-mega-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  color: #FAF4EB;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s ease;
  line-height: 1.35;
}

.strip-mega-link:hover {
  background: rgba(196, 151, 70, 0.18);
  color: #F8E2B8;
  transform: translateX(4px);
}

.strip-mega-link.active {
  background: rgba(196, 151, 70, 0.25);
  color: #F3CD85;
  font-weight: 700;
}

.mega-link-icon {
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
  color: #C49746;
  flex-shrink: 0;
}

.mega-craft-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #C49746;
  flex-shrink: 0;
}

.strip-mega-divider {
  height: 1px;
  background: rgba(196, 151, 70, 0.2);
  margin: 6px 0;
}

.strip-mega-link.text-logout {
  color: #E5A3A3;
}

.strip-mega-link.text-logout:hover {
  background: rgba(229, 163, 163, 0.15);
  color: #FFC0C0;
}

/* Quick Search Tags */
.strip-mega-quick-tags {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(196, 151, 70, 0.25);
}

.strip-mega-tags-label {
  display: block;
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(250, 244, 235, 0.65);
  margin-bottom: 8px;
  font-weight: 700;
}

.strip-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.strip-tag-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(196, 151, 70, 0.35);
  color: #F3CD85;
  font-size: 0.74rem;
  text-decoration: none;
  transition: all 0.18s ease;
}

.strip-tag-chip:hover {
  background: #C49746;
  color: #200B1A;
  border-color: #C49746;
}

/* Lower Strip Container Alignment */
.lower-strip-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: nowrap;
}

/* ==========================================================================
   2b. WIDE DESKTOP SCREENS (>= 1200px)
   Ensure at least 4 product cards fit easily in each row
   ========================================================================== */
@media (min-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

/* ==========================================================================
   3. LAPTOP & SMALL DESKTOP SCREENS (1024px to 1366px)
   ========================================================================== */
@media (max-width: 1366px) {
  .header-wing .nav-menu {
    gap: 18px;
  }

  .header-wing .nav-link {
    font-size: 0.88rem;
  }

  .strip-box-btn {
    padding: 10px 20px;
    font-size: 0.84rem;
    letter-spacing: 0.12em;
  }

  .strip-search-input-box {
    width: 220px;
  }

  .strip-search-input-box:focus-within {
    width: 260px;
  }

  /* Catalog Grid: 3 balanced columns */
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 1200px) {
  .header-split-bar {
    grid-template-columns: 1fr auto 1fr;
  }

  .header-center-pod .brand-name {
    font-size: 1.85rem;
  }

  .header-center-pod .brand-subtitle {
    font-size: 0.68rem;
  }

  /* Category Roundels on Laptop */
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  /* Featured artisan card: slightly more compact padding */
  .featured-shop-left {
    flex: 0 0 380px;
    width: 380px;
    min-width: 380px;
    max-width: 380px;
  }

  .featured-shop-right {
    padding: 24px 34px 20px 24px;
  }

  .bestseller-clean-card {
    width: 124px;
  }

  .bestseller-clean-img-wrap {
    width: 124px;
    height: 86px;
  }

  /* Product details page */
  .pdp-grid {
    grid-template-columns: 48% 52%;
    gap: 36px;
  }
}

/* ==========================================================================
   4. TABLETS & SMALL LAPTOPS (768px to 1023px)
   ========================================================================== */
@media (max-width: 1023px) {
  /* Hide direct shortcut buttons on strip to prevent long awkward strip */
  .strip-shortcut-item {
    display: none !important;
  }

  .lower-strip-container {
    justify-content: space-between;
    width: 100%;
  }

  .strip-search-input-box {
    width: 240px;
  }

  .strip-search-input-box:focus-within {
    width: 280px;
  }

  /* Upper Header Left Wing: Compact */
  .header-nav-left {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  /* Mosaic Hero Strip: 3x2 Grid */
  .hero-craft-mosaic .mosaic-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    height: 380px;
  }

  .hero-craft-mosaic .mosaic-pane {
    height: 190px;
  }

  .mosaic-banner-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
  }

  /* Trust Badges: 2x2 */
  .trust-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Dual Split Showcase on Tablets: Stacks gracefully into single column */
  .split-duo-layout {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .split-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .featured-shops-vertical-stack {
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
  }

  .shop-card-ambient-band {
    padding: 12px !important;
    border-radius: 16px !important;
  }

  .shop-card-ambient-band::before {
    width: 100% !important;
    border-radius: 16px !important;
  }

  /* Catalog Page: Sidebar & Grid */
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  /* Centered Modal Popup on Mobile/Phones for Filter Menu */
  .catalog-sidebar {
    display: none;
  }

  .catalog-sidebar.active {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(440px, 92vw) !important;
    max-height: 86vh !important;
    height: auto !important;
    background: #FAF8F5 !important;
    border: 2px solid #C49746 !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 0 100vmax rgba(20, 5, 15, 0.65) !important;
    z-index: 999999 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 22px 20px !important;
    animation: filterPopCenter 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }

  @keyframes filterPopCenter {
    from {
      opacity: 0;
      transform: translate(-50%, -46%) scale(0.96);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
  }

  .common-filter-refresh-wrap {
    display: none !important;
  }

  .mobile-filter-modal-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 18px !important;
    padding-top: 14px !important;
    border-top: 1px solid rgba(196, 151, 70, 0.3) !important;
  }

  .mobile-filter-apply-btn {
    flex: 1 !important;
    background: #2D0F21 !important;
    color: #FAF4EB !important;
    border: 1.5px solid #C49746 !important;
    padding: 10px 16px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    cursor: pointer !important;
  }

  .mobile-filter-close-btn {
    background: #FAF8F5 !important;
    color: #4A3A4E !important;
    border: 1px solid #D6CEBE !important;
    padding: 10px 16px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    cursor: pointer !important;
  }

  .mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #FFFFFF;
    border: 1.5px solid #C49746;
    border-radius: 6px;
    color: #2D0F21;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .mobile-filter-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1.5px solid #E8E1D9;
    font-family: var(--font-heading);
    font-size: 1.12rem;
    color: #2D0F21;
    font-weight: 700;
  }

  .close-filter-drawer-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #C49746;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
  }

  .close-filter-drawer-btn:hover {
    color: #2D0F21;
  }

  .catalog-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
  }

  .catalog-sort-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
    justify-content: flex-end;
  }

  .catalog-sort-wrap label {
    font-size: 0.80rem;
    color: #514A58;
    white-space: nowrap;
  }

  .catalog-sort-select {
    max-width: 170px;
    width: 100%;
    font-size: 0.82rem;
    padding: 6px 8px;
    box-sizing: border-box;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* PDP: Stacks smoothly */
  .pdp-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pdp-gallery-wrap {
    position: static;
  }

  /* Cart & Wishlist */
  .cart-page-grid,
  .catalog-section .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  /* Seller Studio: Metrics in 2x2 */
  .studio-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

/* ==========================================================================
   5. MOBILE PHONES (< 768px)
   ========================================================================== */
/* ==========================================================================
   5. MOBILE & TABLET LAYOUTS (< 1024px, < 768px)
   ========================================================================== */
@media (max-width: 1023px) {
  /* On tablets/mobiles, hide upper wing desktop links */
  .header-wing .header-nav-left {
    display: none !important;
  }

  .mobile-nav-toggle {
    display: inline-flex !important;
  }
}

@media (max-width: 768px) {
  /* Header Compact & Perfectly Centered */
  .site-header {
    border-bottom: 1px solid rgba(196, 151, 70, 0.35);
  }

  /* Grid Layout: Exactly 56px Left (Menu), 1fr Center (Aashmina), 56px Right (Cart) */
  .header-split-bar {
    display: grid !important;
    grid-template-columns: 56px 1fr 56px !important;
    align-items: stretch !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Left Wing: Menu Icon ONLY */
  .header-wing-left {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    width: 56px !important;
    min-width: 56px !important;
    background: transparent !important;
  }

  .header-wing-left .header-nav-left {
    display: none !important;
  }

  .mobile-nav-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    color: #FAF4EB !important;
  }

  .mobile-nav-toggle svg {
    width: 24px !important;
    height: 24px !important;
    stroke: #FAF4EB !important;
  }

  /* Center Pod: Perfectly Centered Brand Pod */
  .header-center-pod {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 4px 6px !important;
    border-left: 1.5px solid #C49746 !important;
    border-right: 1.5px solid #C49746 !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }

  .header-center-pod .brand-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .header-center-pod .brand-name {
    font-size: 1.35rem !important;
    letter-spacing: 0.08em !important;
    line-height: 1.1 !important;
  }

  .header-center-pod .brand-subtitle {
    display: none !important;
  }

  .header-center-pod .brand-emblem-svg {
    width: 18px !important;
    height: 18px !important;
    margin-bottom: 2px !important;
  }

  /* Right Wing: Cart Icon ONLY (Account and Wishlist Hidden) */
  .header-wing-right {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    width: 56px !important;
    min-width: 56px !important;
    background: transparent !important;
  }

  .header-actions-group {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    margin: 0 !important;
  }

  /* Hide account dropdown and wishlist button from top bar on mobile */
  .user-dropdown-wrap,
  #headerWishlistBtn {
    display: none !important;
  }

  /* Display only Cart button */
  #headerCartBtn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    position: relative !important;
    color: #FAF4EB !important;
    padding: 0 !important;
  }

  #headerCartBtn svg {
    width: 22px !important;
    height: 22px !important;
    stroke: #FAF4EB !important;
  }

  #headerCartBadge {
    top: 2px !important;
    right: 2px !important;
  }

  /* Lower Strip Mobile: Clean Full-Width Search */
  .header-lower-strip {
    padding: 6px 0;
  }

  .lower-strip-container {
    padding-left: 10px;
    padding-right: 10px;
    gap: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  /* Hide duplicate menu button on lower strip on mobile */
  .strip-menu-dropdown-wrap .strip-menu-btn {
    display: none !important;
  }

  .lower-strip-menu {
    flex: 1;
    min-width: 0;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .lower-strip-search-item {
    width: 100%;
  }

  .strip-search-form {
    width: 100%;
    display: flex;
  }

  .strip-search-input-box {
    width: 100% !important;
    height: 38px;
    padding: 0 10px;
  }

  .strip-search-btn-action {
    height: 38px;
    padding: 0 14px;
    font-size: 0.78rem;
  }

  /* Mobile Mega Header with Close Button */
  .mobile-mega-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(196, 151, 70, 0.3);
    background: rgba(0, 0, 0, 0.25);
  }

  .mobile-mega-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C49746;
  }

  .mobile-mega-close {
    background: transparent;
    border: none;
    color: #FAF4EB;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s ease;
  }

  .mobile-mega-close:hover {
    color: #F8DFB4;
  }

  /* Full-Screen / Modal Slide Down for Mega Dropdown on Mobile */
  .strip-mega-dropdown {
    position: fixed;
    top: 104px;
    left: 8px;
    right: 8px;
    width: auto;
    max-height: calc(100vh - 114px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    z-index: 999999 !important;
  }

  .strip-mega-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 16px;
  }

  /* Mosaic Hero Strip on Mobile: 2 columns x 3 rows */
  .hero-craft-mosaic .mosaic-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    height: 320px;
  }

  .hero-craft-mosaic .mosaic-pane {
    height: 106px;
  }

  .mosaic-banner-overlay-content {
    padding: 0 16px;
  }

  .mosaic-banner-title {
    font-size: 1.45rem;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .mosaic-banner-cta-row {
    gap: 10px;
  }

  .btn-mosaic-cta {
    padding: 8px 20px;
    font-size: 0.82rem;
  }

  /* Indian Craft Clusters on Mobile: 2 Columns */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }

  .category-roundel-media {
    width: 110px;
    height: 110px;
  }

  .category-roundel-name {
    font-size: 0.95rem;
  }

  .category-roundel-count {
    font-size: 0.76rem;
  }

  /* Trust Badges: 1 Column */
  .trust-strip-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .trust-card {
    padding: 14px 16px;
  }

  /* Featured Artisan Shops: Mobile Vertical View */
  .shops-slider-viewport {
    height: 800px !important;
    min-height: 800px !important;
    max-height: 800px !important;
    border-radius: 16px;
  }

  .featured-shop-slide {
    flex-direction: column !important;
    height: 800px !important;
    min-height: 800px !important;
    max-height: 800px !important;
  }

  .featured-shop-left {
    flex: 0 0 240px !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
    padding: 12px !important;
  }

  .featured-shop-right {
    height: 560px !important;
    max-height: 560px !important;
    padding: 18px 20px !important;
  }

  .shop-banner-overlay {
    padding: 30px 16px 16px 16px !important;
  }

  .shop-banner-overlay-title {
    font-size: 1.35rem !important;
  }

  .shop-banner-overlay-loc {
    font-size: 0.84rem !important;
  }

  .bestsellers-showcase-row {
    gap: 10px;
  }

  .bestseller-clean-card {
    width: 95px !important;
  }

  .bestseller-clean-img-wrap {
    width: 95px !important;
    height: 68px !important;
  }

  .bestseller-clean-title,
  .bestseller-item-title {
    font-size: 0.70rem !important;
  }

  .bestseller-clean-price,
  .bestseller-item-price {
    font-size: 0.78rem !important;
  }

  .btn-shop-storefront,
  .btn-shop-view-more {
    padding: 10px 16px !important;
    font-size: 0.80rem !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .shop-banner-top {
    height: 190px !important;
    min-height: 190px !important;
    max-height: 190px !important;
  }

  .shop-banner-title {
    font-size: 1.3rem !important;
  }

  .shop-card-body {
    padding: 16px 14px !important;
    gap: 10px !important;
  }

  /* Catalog / Shop: 2-Column Product Grid (Ensuring at least 4 cards fit easily in 2x2 with no right-cropping) */
  .catalog-section .container,
  .container-split-duo {
    padding-left: 10px !important;
    padding-right: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .catalog-grid,
  .products-grid,
  .split-products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .product-card {
    border-radius: 8px !important;
    padding: 8px 8px 10px 8px !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .product-media-container {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    margin-bottom: 8px !important;
  }

  .product-info-wrap {
    min-width: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .product-title {
    font-size: 0.80rem !important;
    line-height: 1.24 !important;
    word-break: break-word !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    margin-bottom: 4px !important;
  }

  .product-artisan-origin {
    font-size: 0.70rem !important;
    margin-bottom: 2px !important;
  }

  .product-meta-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 2px 4px !important;
  }

  .product-price {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }

  .product-rating {
    font-size: 0.72rem !important;
  }

  .product-footer-origin {
    margin-top: 6px !important;
    padding-top: 6px !important;
    border-top: 1px dashed rgba(196, 151, 70, 0.25) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 2px 4px !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .product-store-text {
    font-size: 0.70rem !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    flex: 1 1 50px !important;
    min-width: 0 !important;
  }

  .product-custom-text,
  .product-cat-text {
    font-size: 0.65rem !important;
    flex-shrink: 0 !important;
  }

  /* Cart Item Card for Mobile */
  .cart-item-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 10px;
    gap: 12px;
  }

  .cart-item-thumb {
    width: 76px;
    height: 76px;
  }

  .cart-item-controls {
    width: 100%;
    justify-content: space-between;
    margin-top: 6px;
  }

  /* Responsive Table Wrapper with Horizontal Scroll */
  .table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle, #E8E1D9);
    background: #FFFFFF;
  }

  .table-responsive-wrapper table {
    min-width: 580px;
    width: 100%;
    margin-bottom: 0;
  }

  /* Seller Studio Nav: Swipable Horizontal Tabs */
  .studio-nav-bar {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 4px;
    gap: 8px;
  }

  .studio-nav-bar::-webkit-scrollbar {
    display: none;
  }

  .studio-nav-item {
    padding: 8px 14px;
    font-size: 0.82rem;
    flex-shrink: 0;
  }

  .studio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .studio-header-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .studio-header-actions a {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  .studio-stats-grid {
    grid-template-columns: 1fr !important;
  }

  /* Footer Mobile */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  /* Customer Reflections / Reviews: 1 Column */
  .reviews-slider-track {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   6. SMALL MOBILE PHONES (< 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .strip-menu-btn {
    padding: 8px 10px;
    font-size: 0.74rem;
  }

  .strip-menu-btn-label {
    display: none; /* Icon-only on very narrow screens for maximum search width */
  }

  .strip-search-input-box input {
    font-size: 0.80rem;
  }

  .mosaic-banner-title {
    font-size: 1.25rem;
  }

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

  .category-roundel-media {
    width: 90px;
    height: 90px;
  }

  .category-roundel-name {
    font-size: 0.84rem;
  }

  .pdp-thumbnails-strip {
    gap: 6px;
  }

  .pdp-thumb-item {
    width: 58px;
    height: 58px;
  }
}

/* ==========================================================================
   7. CUSTOM COMMISSION SECTION RESPONSIVE ADAPTATIONS
   ========================================================================== */
@media (max-width: 992px) {
  .commission-steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .form-row-duo {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .custom-commission-section {
    padding: 36px 0;
  }

  .custom-commission-card {
    padding: 22px 16px !important;
    border-radius: 12px !important;
  }

  .commission-head-row {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
  }

  .commission-steps-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
    padding-bottom: 20px !important;
  }

  .commission-step-item {
    padding: 16px 14px;
  }

  .commission-atelier-form-wrap {
    padding: 18px 14px !important;
  }

  .form-row-duo {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .form-action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .btn-submit-commission {
    width: 100% !important;
    padding: 12px 18px !important;
  }

  .btn-toggle-commission-form {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 0.88rem !important;
  }
}

