@media (max-width: 900px) {
  .joy-header-desktop { display: none !important; }
  .joy-container { width: min(100% - 28px, 640px); }
  .joy-section { padding: 28px 0; }
  .joy-section-head { align-items: flex-end; gap: 12px; margin-bottom: 16px; }
  .joy-section-head h2 { font-size: 27px; }
  .joy-section-head a { font-size: 13px; white-space: nowrap; }

  .joy-header-mobile { display: block; position: sticky; top: 0; z-index: 90; background: #fff; border-bottom: 1px solid var(--joy-line); }
  .joy-mobile-topbar { height: 32px; display: flex; align-items: center; justify-content: center; background: #111; color: #e8dbc7; font-size: 12px; }
  .joy-mobile-head { height: 66px; display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; gap: 8px; padding: 0 14px; }
  .joy-mobile-toggle { width: 42px; height: 42px; border: 1px solid var(--joy-line); border-radius: 12px; background: #fff; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; }
  .joy-mobile-toggle span { display: block; width: 18px; height: 1.5px; border-radius: 2px; background: #111; transition: transform .2s ease, opacity .2s ease; }
  .joy-mobile-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .joy-mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
  .joy-mobile-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .joy-mobile-logo { display: flex; justify-content: center; }
  .joy-mobile-logo .joy-logo { align-items: center; }
  .joy-mobile-logo .joy-logo span { font-size: 34px; }
  .joy-mobile-logo .joy-logo small { font-size: 9px; letter-spacing: .38em; }
  .joy-mobile-wa { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--joy-whatsapp); color: #fff; font-size: 12px; font-weight: 500; }
  .joy-mobile-search-wrap { padding: 0 14px 14px; }
  .joy-search--mobile input[type="search"] { height: 44px; border-radius: 14px; background: #f7f7f7; }
  .joy-mobile-menu { display: none; border-top: 1px solid var(--joy-line); background: #fff; padding: 8px 14px 16px; }
  .joy-mobile-menu.is-open { display: block; }
  .joy-mobile-menu .joy-menu-list { list-style: none; padding: 0; margin: 0; }
  .joy-mobile-menu li { border-bottom: 1px solid var(--joy-line); }
  .joy-mobile-menu a { display: block; padding: 14px 2px; font-size: 16px; font-weight: 400; }

  .joy-hero--desktop { display: none !important; }
  .joy-hero--mobile { padding: 14px 14px 0; background: #fff; }
  .joy-hero--mobile .joy-hero__media { border-radius: 20px; overflow: hidden; background: var(--joy-soft); min-height: 320px; }
  .joy-hero--mobile .joy-hero__media.has-image img { width: 100%; height: auto; object-fit: contain; }
  .joy-hero--mobile .joy-hero__media.no-image { display: flex; align-items: center; justify-content: center; min-height: 300px; }
  .joy-hero--mobile .joy-hero__content { padding: 20px 4px 0; }
  .joy-eyebrow { display: block; margin-bottom: 8px; color: var(--joy-gold); font-size: 11px; letter-spacing: .28em; font-weight: 500; }
  .joy-hero--mobile h1 { font-size: 36px; max-width: 320px; }
  .joy-hero--mobile p { margin-top: 10px; font-size: 15px; max-width: 330px; }
  .joy-hero__actions { margin-top: 18px; display: flex; }
  .joy-hero--mobile .joy-btn { width: 100%; }
  .joy-hero__placeholder { min-height: 280px; width: 100%; display: flex; align-items: center; justify-content: center; color: #8a7a68; border: 1px dashed #d4c2ad; padding: 22px; text-align: center; }

  .joy-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .joy-category-card { display: block; border: 1px solid var(--joy-line); border-radius: 18px; overflow: hidden; background: #fff; }
  .joy-category-card__image { aspect-ratio: 1.18 / 1; background: var(--joy-soft); display: flex; align-items: center; justify-content: center; color: #8a7a68; font-size: 12px; }
  .joy-category-card__image img { width: 100%; height: 100%; object-fit: cover; }
  .joy-category-card__body { padding: 12px; }
  .joy-category-card__body h3 { font-size: 17px; margin-bottom: 4px; }
  .joy-category-card__body p { font-size: 12px; }
  .joy-category-card__body span { display: none; }

  .joy-section-head--tabs { display: block; }
  .joy-tabs { margin-top: 14px; display: flex; gap: 16px; overflow-x: auto; padding-bottom: 5px; -webkit-overflow-scrolling: touch; }
  .joy-tabs a { flex: 0 0 auto; color: var(--joy-muted); font-size: 13px; border-bottom: 1px solid transparent; padding-bottom: 4px; }
  .joy-tabs a.active { color: var(--joy-text); border-color: var(--joy-text); }

  .joy-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .joy-product-card--mobile { border-radius: 16px; display: flex; flex-direction: column; min-height: 100%; }
  .joy-product-card--mobile .joy-product-card__image { aspect-ratio: 1 / 1; }
  .joy-product-card--mobile .joy-product-card__body { padding: 11px; display: flex; flex-direction: column; flex: 1; }
  .joy-product-card--mobile h3 { font-size: 13px; line-height: 1.25; min-height: 34px; margin-bottom: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .joy-product-card--mobile .joy-product-card__price { font-size: 16px; margin-bottom: 8px; }
  .joy-product-card--mobile .joy-product-card__meta { gap: 6px; margin-bottom: 10px; }
  .joy-product-card--mobile .joy-product-card__meta span { padding: 5px 7px; font-size: 10px; }
  .joy-product-card--mobile .joy-card-btn { width: 100%; min-height: 36px; border-radius: 9px; font-size: 12px; margin-top: auto; }

  .joy-videos { background: var(--joy-soft-2); }
  .joy-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .joy-video-card { border: 1px solid var(--joy-line); border-radius: 16px; overflow: hidden; background: #fff; }
  .joy-video-card__image { position: relative; aspect-ratio: 1.08 / 1; background: var(--joy-soft); display: flex; align-items: center; justify-content: center; color: #8a7a68; overflow: hidden; }
  .joy-video-card__image img { width: 100%; height: 100%; object-fit: cover; }
  .joy-video-card__image b { position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.94); color: #111; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 400; }
  .joy-video-card__body { padding: 11px; }
  .joy-video-card__body h3 { font-size: 14px; line-height: 1.25; margin-bottom: 4px; }
  .joy-video-card__body p { font-size: 12px; }

  .joy-footer { background: #fff; border-top: 1px solid var(--joy-line); margin-top: 24px; }
  .joy-footer__top { padding: 34px 0; display: grid; gap: 26px; }
  .joy-footer__brand p { margin-top: 14px; font-size: 14px; }
  .joy-footer h3 { font-size: 16px; margin-bottom: 10px; }
  .joy-footer__col, .joy-footer__contact { display: grid; gap: 8px; }
  .joy-footer__col a { color: var(--joy-muted); font-size: 14px; }
  .joy-footer__contact p { font-size: 14px; }
  .joy-footer__contact small { color: var(--joy-muted); }
  .joy-whatsapp-btn--footer { width: 100%; }
  .joy-footer__bottom { border-top: 1px solid var(--joy-line); color: var(--joy-muted); font-size: 12px; }
  .joy-footer__bottom .joy-container { min-height: 58px; display: grid; gap: 4px; align-content: center; }
}


/* V3.1 HERO IMAGE ONLY - mobile */
@media (max-width: 860px) {
  .joy-hero--mobile.joy-hero--image-only {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
  }

  .joy-hero--mobile.joy-hero--image-only .joy-hero__media {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    line-height: 0 !important;
  }

  .joy-hero--mobile.joy-hero--image-only .joy-hero__media.has-image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .joy-hero--mobile.joy-hero--image-only .joy-hero__placeholder {
    min-height: 260px !important;
  }
}

/* V3.2 MOBILE HERO SLIDER - mobile remains separate */
@media (max-width: 900px) {
  .joy-hero--mobile .joy-hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
  }

  .joy-hero--mobile .joy-hero-slide {
    display: none;
    width: 100%;
  }

  .joy-hero--mobile .joy-hero-slide.is-active {
    display: block;
  }

  .joy-hero--mobile.joy-hero--image-only .joy-hero__media.has-image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .joy-hero--mobile .joy-hero-slider__arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(17, 17, 17, .62);
    color: #fff;
    font-size: 25px;
    font-weight: 300;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
  }

  .joy-hero--mobile .joy-hero-slider__arrow--prev { left: 12px; }
  .joy-hero--mobile .joy-hero-slider__arrow--next { right: 12px; }

  .joy-hero--mobile .joy-hero-slider__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 6px;
  }

  .joy-hero--mobile .joy-hero-slider__dots button {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(255, 255, 255, .72);
  }

  .joy-hero--mobile .joy-hero-slider__dots button.is-active {
    width: 22px;
    background: #111;
  }
}

/* CATEGORY CLEAN V4 - mobile only */
@media (max-width: 860px) {
  .joy-categories--clean {
    padding-top: 22px;
    padding-bottom: 34px;
  }

  .joy-categories--clean .joy-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .joy-categories--clean .joy-category-card {
    display: block;
    height: 184px;
    border: 1px solid var(--joy-line);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 26px rgba(17, 17, 17, .06);
  }

  .joy-categories--clean .joy-category-card__image {
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: var(--joy-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .joy-categories--clean .joy-category-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
  }

  .joy-categories--clean .joy-category-card__body {
    display: none !important;
  }
}
/* JOY MOBILE CATEGORY CARD HEIGHT FIX */
@media (max-width: 860px) {
  .joy-categories--clean .joy-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .joy-categories--clean .joy-category-card {
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  .joy-categories--clean .joy-category-card__image {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    overflow: hidden !important;
  }

  .joy-categories--clean .joy-category-card__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }
}
/* JOY SINGLE PRODUCT MAIN IMAGE HEIGHT FIX - MOBILE */
@media (max-width: 900px) {
  .single-product .woocommerce-product-gallery .flex-viewport {
    height: 430px !important;
    max-height: 430px !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    background: #f8f7f5 !important;
  }

  .single-product .woocommerce-product-gallery__wrapper {
    height: 100% !important;
    margin: 0 !important;
  }

  .single-product .woocommerce-product-gallery__image {
    height: 430px !important;
    max-height: 430px !important;
    margin: 0 !important;
    background: #f8f7f5 !important;
  }

  .single-product .woocommerce-product-gallery__image a {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .single-product .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
  }

  .single-product .flex-control-nav.flex-control-thumbs,
  .single-product .woocommerce-product-gallery .flex-control-thumbs {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .single-product .flex-control-nav.flex-control-thumbs li,
  .single-product .woocommerce-product-gallery .flex-control-thumbs li {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .single-product .flex-control-nav.flex-control-thumbs img,
  .single-product .woocommerce-product-gallery .flex-control-thumbs img {
    width: 100% !important;
    height: 64px !important;
    object-fit: cover !important;
    border-radius: 9px !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    opacity: 1 !important;
  }
}
