/* Mirror-only enhancements (not in the source). Loaded AFTER the original
   stylesheet so it overrides. Fixes the category "swipe" section:
   - hides the ugly native horizontal scrollbar the source leaves exposed
   - adds grab/grabbing affordance for the new drag-to-swipe (see mirror-fixes.js) */

.tms-category-track {
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* old Edge/IE */
  cursor: grab;
  scroll-padding-left: 4px;
  -webkit-overflow-scrolling: touch;
}
.tms-category-track::-webkit-scrollbar {   /* Chrome/Safari */
  width: 0;
  height: 0;
  display: none;
}
.tms-category-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;          /* follow the pointer 1:1 while dragging */
  scroll-snap-type: none;
}
.tms-category-track.is-dragging a {
  pointer-events: none;           /* don't trigger navigation mid-drag */
}

/* pl-img-fix: show whole product (contain, not cropped) + hide internal spec dump */
.tms-product-media img,.tms-category-carousel-media img,.tms-category-slide img,.tms-product-detail-media img,.tms-pdp-main-image img,.tms-pdp-thumb img,.pdp-thumb img{object-fit:contain !important;background:#fff;padding:8px}
.tms-category-carousel-media,.tms-product-media{background:#fff}
.pdp-specs{display:none !important}

/* pl-display-fix: un-crop PDP main image + show clean specs table */
.pdp-gallery img,.pdp-stage img{object-fit:contain !important;background:#fff}
.pdp-stage{background:#fff}
.pdp-specs{display:table !important}

/* pl-hide-badges */
.tms-sale-badge,.pdp-badges,.pdp-badge,.pdp-badge-sale,.pdp-badge-new,.pdp-badge-best{display:none !important}

/* pl-hide-icons: hide account + wishlist, keep cart */
.tms-header-action[aria-label="Account"],.tms-header-action[aria-label="Wishlist"]{display:none !important}
/* pl-polish-v1 */
.pdp-trust-item>span:first-child{font-size:0 !important;width:26px;height:26px;display:inline-flex;flex:none;background-repeat:no-repeat;background-position:center;background-size:24px 24px}
.pdp-trust-item:nth-child(1)>span:first-child{background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2314532d'%20stroke-width='1.7'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='4'%20y='10.5'%20width='16'%20height='10'%20rx='2'/%3E%3Cpath%20d='M8%2010.5V7a4%204%200%200%201%208%200v3.5'/%3E%3C/svg%3E")}
.pdp-trust-item:nth-child(2)>span:first-child{background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2314532d'%20stroke-width='1.7'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%206h11v9H3z'/%3E%3Cpath%20d='M14%209h3.5L21%2012.5V15h-7'/%3E%3Ccircle%20cx='7'%20cy='18'%20r='1.7'/%3E%3Ccircle%20cx='17.5'%20cy='18'%20r='1.7'/%3E%3C/svg%3E")}
.pdp-trust-item:nth-child(3)>span:first-child{background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2314532d'%20stroke-width='1.7'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%208h11a5%205%200%200%201%200%2010H8'/%3E%3Cpath%20d='M6%205%203%208l3%203'/%3E%3C/svg%3E")}
.pdp-trust-item:nth-child(4)>span:first-child{background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2314532d'%20stroke-width='1.7'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cline%20x1='19'%20y1='5'%20x2='5'%20y2='19'/%3E%3Ccircle%20cx='6.5'%20cy='6.5'%20r='2.5'/%3E%3Ccircle%20cx='17.5'%20cy='17.5'%20r='2.5'/%3E%3C/svg%3E")}
.pdp-trust-item:nth-child(5)>span:first-child{background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2314532d'%20stroke-width='1.7'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%203l7%203v5.5c0%204.5-3%207.5-7%208.5-4-1-7-4-7-8.5V6z'/%3E%3Cpath%20d='M9%2012l2%202%204-4'/%3E%3C/svg%3E")}
.pdp-tabbar{display:flex !important;flex-wrap:nowrap !important;gap:2px;overflow-x:auto;border-bottom:1px solid #e6ece8;scrollbar-width:none}
.pdp-tabbar::-webkit-scrollbar{display:none}
.pdp-tabbar>*{flex:0 0 auto;padding:12px 18px;font-size:14px;font-weight:600;color:#6b756f;background:none;border:0;border-bottom:2px solid transparent;white-space:nowrap;cursor:pointer;transition:color .15s}
.pdp-tabbar>*[aria-selected="true"],.pdp-tabbar>*.active,.pdp-tabbar>.is-active{color:#14532d;border-bottom-color:#14532d}
.tms-product-media{height:210px !important;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#fff;padding:10px}
.tms-product-media img{max-height:100%;max-width:100%;width:auto !important;height:auto !important;object-fit:contain}
.pdp-stage,.pdp-stage-img{max-height:460px}
.pdp-stage-img img,.pdp-stage img{max-height:440px;object-fit:contain}
.pdp-sticky-bar{display:none !important}
/* end-pl-polish-v1 */

/* pl-anuncio-drawer-fix: keep promo bar visible but BELOW the cart drawer/backdrop when open (was display:none) */
body:has(.tms-cart-drawer-head) #pl-anuncio,body:has(.tms-cart-drawer-body) #pl-anuncio,body:has(.tms-route-overlay) #pl-anuncio{z-index:150 !important}

/* pl-chat-drawer-fix: keep chat visible but BELOW the cart drawer/backdrop when open (was display:none) */
body:has(.tms-cart-drawer-head) #nv-chat-root,body:has(.tms-cart-drawer-body) #nv-chat-root,body:has(.tms-route-overlay) #nv-chat-root{z-index:150 !important}
