/* ToyMax Qatar / Sunny Discovery Shop — responsive archive-only stylesheet.
   Illustrations are REAL bundled backgrounds, not screenshots or text images.
   Native WooCommerce filters and native product grid remain untouched. */

:root {
  --tmxs-navy: #082b63;
  --tmxs-blue: #caeeff;
  --tmxs-cream: #fff9e9;
  --tmxs-yellow: #ffcb13;
  --tmxs-red: #f0062f;
  --tmxs-shadow: 0 8px 26px rgba(20, 57, 100, .09);
}

/* Title + category shortcuts: place shortcode ABOVE the WooCommerce grid. */
.tmx-sunny-shop-hero {
  position: relative;
  z-index: 3;
  width: 100%;
  color: var(--tmxs-navy);
  background-color: #d8f1ff;
  background-image: url('./sunny-banner-desktop.webp');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  isolation: isolate;
}
.tmx-sunny-shop-inner {
  width: min(100% - 40px, 1380px);
  margin-inline: auto;
  padding: clamp(25px, 2.5vw, 38px) 0 23px;
}
.tmx-sunny-shop-headline {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 92px;
  max-width: min(79%, 970px);
}
.tmx-sunny-shop-headline h1 {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 0 9px;
  color: var(--tmxs-navy);
  font-family: inherit;
  font-size: clamp(33px, 3.7vw, 58px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.08;
  text-transform: none;
}
.tmx-sunny-shop-headline h1::after {
  content: '';
  position: absolute;
  left: 34%;
  bottom: 0;
  width: 38%;
  height: 6px;
  background: var(--tmxs-red);
  border-radius: 999px;
  transform: rotate(-2deg);
}
.tmx-sunny-shop-headline p {
  margin: 0;
  padding-left: 25px;
  border-left: 2px solid #2378b2;
  font-size: clamp(15px, 1.3vw, 21px);
  font-weight: 750;
  line-height: 1.3;
  color: var(--tmxs-navy);
}

.tmx-sunny-categories {
  display: flex;
  position: relative;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: clamp(14px, 1.8vw, 26px);
}
.tmx-sunny-category-track {
  display: flex;
  align-items: stretch;
  min-width: 0;
  flex: 1;
  gap: 11px;
  padding: 3px 1px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
}
.tmx-sunny-category-track::-webkit-scrollbar { display: none; }
.tmx-sunny-category-track:focus-visible {
  outline: 2px solid #0e5aa6;
  outline-offset: 2px;
  border-radius: 12px;
}
.tmx-sunny-category-pill,
.tmx-sunny-all-categories > summary {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 45px;
  padding: 10px 17px;
  white-space: nowrap;
  border-radius: 999px;
  color: var(--tmxs-navy);
  border: 2px solid rgba(255, 255, 255, .85);
  box-shadow: 0 3px 7px rgba(45, 62, 91, .07);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform .18s ease, box-shadow .18s ease;
}
.tmx-sunny-category-pill:hover,
.tmx-sunny-all-categories > summary:hover {
  color: var(--tmxs-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(37, 70, 110, .12);
}
.tmx-sunny-category-pill:focus-visible,
.tmx-sunny-scroll-button:focus-visible,
.tmx-sunny-all-categories > summary:focus-visible {
  outline: 3px solid #0959b2;
  outline-offset: 3px;
}
.tmx-sunny-category-pill-all { background: #ffec95; }
.tmx-sunny-category-pill-0 { background: #ffd9ed; }
.tmx-sunny-category-pill-1 { background: #d8eeff; }
.tmx-sunny-category-pill-2 { background: #e7dcff; }
.tmx-sunny-category-pill-3 { background: #ffe0ed; }
.tmx-sunny-category-pill-4 { background: #dff7d9; }
.tmx-sunny-category-pill-5 { background: #ffedc4; }
.tmx-sunny-chip-symbol { font-size: 19px; line-height: 1; color: #fb1652; }
.tmx-sunny-category-pill-1 .tmx-sunny-chip-symbol { color: #168be0; }
.tmx-sunny-category-pill-2 .tmx-sunny-chip-symbol { color: #8050dc; }
.tmx-sunny-category-pill-4 .tmx-sunny-chip-symbol { color: #269b5c; }

.tmx-sunny-scroll-button {
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  border: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: #fff;
  color: #082b63;
  box-shadow: 0 2px 10px rgba(20, 61, 105, .11);
  font-size: 27px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
}
.tmx-sunny-scroll-button:disabled {
  opacity: .38;
  cursor: default;
  box-shadow: none;
}
.tmx-sunny-all-categories { flex: 0 0 auto; }
.tmx-sunny-all-categories > summary {
  list-style: none;
  background: #fff1bf;
  cursor: pointer;
  user-select: none;
}
.tmx-sunny-all-categories > summary::-webkit-details-marker { display: none; }
.tmx-sunny-all-categories[open] > summary { background: #ffdd64; }
.tmx-sunny-category-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: min(550px, 92vw);
  max-height: 320px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 14px;
  background: #fff;
  border: 1px solid #dfeef9;
  border-radius: 18px;
  box-shadow: 0 18px 32px rgba(9, 42, 87, .17);
}
.tmx-sunny-category-panel a {
  display: block;
  border-radius: 10px;
  padding: 11px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tmxs-navy);
  text-decoration: none;
}
.tmx-sunny-category-panel a:hover,
.tmx-sunny-category-panel a:focus-visible { background: #eaf6ff; }

/* Native WooCommerce/WoodMart sidebars — style, never replace filter forms.
   These selectors intentionally avoid product card markup and main widgets. */
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  :is(.shop-sidebar, .wd-sidebar, .sidebar-container, .area-sidebar-shop) {
  background: var(--tmxs-cream);
  border: 1px solid #f2e6c7;
  border-radius: 24px;
  padding: 13px;
  box-shadow: 0 8px 22px rgba(30, 55, 100, .065);
}
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  :is(.shop-sidebar, .wd-sidebar, .sidebar-container, .area-sidebar-shop)
  :is(.widget, .wd-widget) {
  position: relative;
  background: #fff;
  border: 1px solid rgba(18, 50, 92, .06);
  border-radius: 18px;
  padding: 20px 17px;
  margin: 0 0 14px;
  box-shadow: 0 3px 10px rgba(26, 62, 106, .065);
}
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  :is(.shop-sidebar, .wd-sidebar, .sidebar-container, .area-sidebar-shop)
  :is(.widget, .wd-widget):last-child { margin-bottom: 0; }
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  :is(.shop-sidebar, .wd-sidebar, .sidebar-container, .area-sidebar-shop)
  :is(.widget-title, .widgettitle, .wd-widget-title) {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
  color: var(--tmxs-navy);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -.025em;
  text-transform: none;
}
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  :is(.shop-sidebar, .wd-sidebar, .sidebar-container, .area-sidebar-shop)
  :is(.widget-title, .widgettitle, .wd-widget-title)::before {
  content: '★';
  color: #ffc115;
  font-size: 21px;
  line-height: 1;
}

/* Native WooCommerce price-slider markup. Keep JS handles/actions intact. */
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  :is(.shop-sidebar, .wd-sidebar, .sidebar-container, .area-sidebar-shop)
  .widget_price_filter .ui-slider { background: #dde6ed; height: 5px; border-radius: 999px; }
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  :is(.shop-sidebar, .wd-sidebar, .sidebar-container, .area-sidebar-shop)
  .widget_price_filter .ui-slider .ui-slider-range { background: #ffc914; }
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  :is(.shop-sidebar, .wd-sidebar, .sidebar-container, .area-sidebar-shop)
  .widget_price_filter .ui-slider .ui-slider-handle {
  background: #fff !important;
  border: 2.5px solid #ffb900 !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  top: 50% !important;
  margin-top: -9px !important;
  margin-left: -9px !important;
  box-shadow: 0 1px 5px rgba(30, 55, 100, .18) !important;
  cursor: pointer !important;
  outline: none !important;
}
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  :is(.shop-sidebar, .wd-sidebar, .sidebar-container, .area-sidebar-shop)
  .widget_price_filter .ui-slider .ui-slider-handle::before,
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  :is(.shop-sidebar, .wd-sidebar, .sidebar-container, .area-sidebar-shop)
  .widget_price_filter .ui-slider .ui-slider-handle::after {
  display: none !important;
  content: none !important;
}
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  :is(.shop-sidebar, .wd-sidebar, .sidebar-container, .area-sidebar-shop)
  .widget_price_filter button,
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  :is(.shop-sidebar, .wd-sidebar, .sidebar-container, .area-sidebar-shop)
  .price_slider_amount button {
  border-radius: 9px;
  background: var(--tmxs-red);
  color: #fff;
  font-weight: 700;
}

/* Stock widget and other native checkbox labels. */
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  :is(.shop-sidebar, .wd-sidebar, .sidebar-container, .area-sidebar-shop)
  :is(.widget, .wd-widget) label { color: var(--tmxs-navy); }
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  :is(.shop-sidebar, .wd-sidebar, .sidebar-container, .area-sidebar-shop)
  :is(.widget, .wd-widget) input[type='checkbox'] { accent-color: #1b75ba; }

/* WoodMart Stock status pill styling */
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  .wd-widget-stock-status ul.wd-checkboxes-on {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  .wd-widget-stock-status ul.wd-checkboxes-on li {
  margin: 0;
  padding: 0;
}
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  .wd-widget-stock-status ul.wd-checkboxes-on li a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tmxs-navy);
  text-decoration: none;
  transition: all 0.2s ease;
}
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  .wd-widget-stock-status ul.wd-checkboxes-on li:first-child a {
  border-radius: 999px;
  background: #dff7ce;
  padding: 7px 16px;
  color: #1e6328;
}
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  .wd-widget-stock-status ul.wd-checkboxes-on li:last-child a {
  border-radius: 999px;
  background: #d9f0ff;
  padding: 7px 16px;
  color: #084882;
}
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  .wd-widget-stock-status ul.wd-checkboxes-on li a:hover {
  transform: translateY(-1px);
  filter: brightness(0.96);
}

/* Top-rated/featured list is still generated by real WooCommerce widgets. */
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  :is(.shop-sidebar, .wd-sidebar, .sidebar-container, .area-sidebar-shop)
  .product_list_widget li {
  display: flow-root;
  padding: 10px 0;
  border-bottom: 1px solid #f0e6d4;
}
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  :is(.shop-sidebar, .wd-sidebar, .sidebar-container, .area-sidebar-shop)
  .product_list_widget li:last-child { border-bottom: 0; }
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  :is(.shop-sidebar, .wd-sidebar, .sidebar-container, .area-sidebar-shop)
  .product_list_widget img { border-radius: 8px; }

body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  .product_list_widget .widget-product-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  .product_list_widget .widget-product-img {
  flex: 0 0 56px !important;
  width: 56px !important;
  height: 56px !important;
  background: #fff8f0 !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border: 1px solid rgba(0,0,0,0.04) !important;
}
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  .product_list_widget .widget-product-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  .product_list_widget .wd-entities-title {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--tmxs-navy) !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  .product_list_widget .price {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--tmxs-navy) !important;
  margin-top: 4px !important;
  display: block !important;
}
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  .product_list_widget .price del {
  color: #8e9bb0 !important;
  font-size: 11px !important;
  margin-right: 6px !important;
}
body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
  .product_list_widget .price ins {
  text-decoration: none !important;
  font-weight: 900 !important;
}

@media (min-width: 1600px) {
  .tmx-sunny-shop-inner { padding-block: 35px 25px; }
  .tmx-sunny-shop-headline { min-height: 105px; }
  .tmx-sunny-category-pill { font-size: 13px; }
}
@media (max-width: 1199px) {
  .tmx-sunny-shop-headline { max-width: 79%; gap: 17px; }
  .tmx-sunny-shop-headline h1 { font-size: 36px; }
  .tmx-sunny-shop-headline p { font-size: 15px; padding-left: 17px; }
  .tmx-sunny-category-pill { min-height: 43px; padding: 8px 14px; }
}
@media (max-width: 1024px) {
  .tmx-sunny-shop-hero {
    background-image: url('./sunny-banner-mobile.webp');
    background-position: center 55%;
  }
  .tmx-sunny-shop-inner { width: min(100% - 30px, 820px); padding: 27px 0 25px; }
  .tmx-sunny-shop-headline { max-width: 72%; display: block; min-height: 92px; }
  .tmx-sunny-shop-headline h1 { font-size: clamp(30px, 4vw, 45px); }
  .tmx-sunny-shop-headline p { border: 0; padding: 0; margin-top: 13px; }
  .tmx-sunny-categories { margin-top: 20px; }
  .tmx-sunny-all-categories > summary { padding-inline: 14px; font-size: 11px; }
}
@media (max-width: 767px) {
  .tmx-sunny-shop-hero { background-position: center 70%; }
  .tmx-sunny-shop-inner { width: min(100% - 26px, 600px); padding: 22px 0 22px; }
  .tmx-sunny-shop-headline { max-width: 100%; min-height: 100px; padding-right: 70px; }
  .tmx-sunny-shop-headline h1 { font-size: clamp(29px, 7.7vw, 39px); }
  .tmx-sunny-shop-headline p { max-width: 260px; font-size: 13px; line-height: 1.35; }
  .tmx-sunny-categories { gap: 6px; margin-top: 32px; }
  .tmx-sunny-category-track { gap: 7px; }
  .tmx-sunny-category-pill { font-size: 11px; padding: 8px 11px; min-height: 40px; }
  .tmx-sunny-chip-symbol { font-size: 15px; }
  .tmx-sunny-scroll-button { display: none; }
  .tmx-sunny-all-categories > summary { min-height: 40px; padding: 7px 11px; font-size: 0; }
  .tmx-sunny-all-categories > summary span { font-size: 20px; }
  .tmx-sunny-category-panel { right: 0; grid-template-columns: minmax(0,1fr); width: min(340px, 92vw); }
  /* Do NOT hide the theme's filter sidebar: WoodMart controls its mobile drawer. */
  body:is(.woocommerce-shop, .post-type-archive-product, .tax-product_cat, .tax-product_tag)
    :is(.shop-sidebar, .wd-sidebar, .sidebar-container, .area-sidebar-shop) { padding: 8px; }
}
@media (max-width: 380px) {
  .tmx-sunny-shop-headline { padding-right: 45px; }
  .tmx-sunny-shop-headline h1 { font-size: 28px; }
  .tmx-sunny-shop-headline p { font-size: 12px; }
  .tmx-sunny-category-pill { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .tmx-sunny-category-pill, .tmx-sunny-all-categories > summary { transition: none; }
  .tmx-sunny-category-track { scroll-behavior: auto; }
}
