/* Layout guards for the static live-DOM render (no Oakley JS running). */
.firstLevelMenu.firstLevelMenu__closed,
.secondLevelMenu.secondLevelMenu__closed { display: none !important; }
.overlay.hide,
#header-float.hide,
.telecomando-container.hide,
.frameadv-wrapper,
.sizeadv-wrapper,
.startChatbot,
.cart-flyout,
#oo-quiz-overlay,
.updateEmailAlert,
.feedback-wrapper,
.wishlist-tooltip-mobile-wrapper,
#oakleynocookies,
#oakleynoexperience { display: none !important; }
/* the captured DOM carries inline skeleton heights that JS would clear */
.skeleton { opacity: 0 !important; }
/* language / region flyouts keep their closed state without Oakley's JS */
.oo-hdr-language, .oo-hdr-language-wrapper, #global-header-dropdown { display: none !important; }
/* language selector dropdown: live uses JS to toggle */
.lang-selector-desktop__dropdown { display: none !important; }
.lang-selector-desktop { max-width: 60px; }
/* store-locator side tab (JS-injected on the reference) */
.oo-store-tab{position:fixed;left:0;top:52%;z-index:60;display:flex;align-items:center;gap:6px;background:#222;color:#fff;
  writing-mode:vertical-rl;transform:rotate(180deg);padding:14px 8px;font:700 11px/1 "AvenirNext",sans-serif;letter-spacing:.08em;text-decoration:none}
.oo-store-tab svg{width:12px;height:12px;transform:rotate(90deg)}
.oo-store-tab span{transform:rotate(180deg)}
/* owl carousel: reference lets the controls take part in layout (24px dots + 12px margin) */
.cmd-carousel.owl-carousel { height: auto !important; overflow: visible; }
.cmd-carousel.owl-carousel .owl-controls { position: static !important; display: block !important; margin-top: 12px !important; }

/* PLP: reference keeps the filter drawer and SEO category tree collapsed by default */
.oo_flyout-overlay-wrapper{display:none !important}
.oo_flyout-overlay-wrapper.is-open{display:block !important}
.categoryTreeSection{display:none !important}
.js-wishlist-badge-plp{display:none !important}
.plp-listing .pageNumber{display:none !important}

/* PLP hydration fallbacks (the reference removes these classes with JS) */
.withSkeleton{opacity:1 !important}
.oo-plp-tiles-a,.oo-plp-tiles-b{display:contents}

/* PLP grid: reference renders 4 tiles per row on desktop, 3 on laptop, 2 below */
@media (min-width:992px) and (max-width:1199px){
  .product-listing .prod-tiles-list .prod-tile-wrapper{width:33.33% !important}
}
@media (min-width:768px) and (max-width:991px){
  .product-listing .prod-tiles-list .prod-tile-wrapper{width:50% !important}
}

/* PLP grid + tile media stabilisation (reference relies on JS-added classes) */
.product-listing .prod-tiles-list{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;column-gap:24px !important;row-gap:0 !important;padding:0 30px 30px !important}
@media (max-width:991px){.product-listing .prod-tiles-list{grid-template-columns:repeat(2,minmax(0,1fr)) !important}}
.product-listing .prod-tiles-list > .prod-tile-wrapper{float:none !important;width:auto !important;margin:0 !important;height:auto !important;padding-bottom:30px !important}
.product-listing .prod-tiles-list > .placement-wrapper{grid-column:1 / -1}
.product-listing .prod-tile .preview{position:relative;height:0;padding-bottom:100%}
.product-listing .prod-tile .preview_image{position:absolute !important;inset:0 !important;padding-bottom:0 !important;display:block !important;background:#f6f6f6}
.product-listing .prod-tile .preview_image img{position:absolute !important;inset:0 !important;width:100% !important;height:100% !important;object-fit:contain;padding:10px}
.product-listing .prod-tile{display:block !important;padding:0 !important}
