/* ========== SLY base ========== */
:root{
  --bg:#0b0b0c; --fg:#f2f2f2; --muted:#b3b3b3;
  --maxw:1200px; --sly-vh:1vh;
  --hdr-h: 68px;
}

*{ box-sizing:border-box }
html,body{ height:100% }
body.sly{
  margin:0; background:var(--bg); color:var(--fg);
  font:400 16px/1.5 Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  scroll-snap-type:y proximity; overscroll-behavior-y:none;
}

/* ========== Screens (full-bleed, gapless) ========== */
.sly-screen{
  position:relative; isolation:isolate;
  min-height:calc(var(--sly-vh)*100);
  display:grid; place-items:center;
  overflow:hidden; scroll-snap-align:start;
}
@supports (min-height: 100dvh){ .sly-screen{ min-height:100dvh; } }

.overlay{
  position:absolute; inset:0;
  background:radial-gradient(80% 60% at center, rgba(0,0,0,.0) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.75) 100%);
  z-index:1;
}
.intro-content{ position:relative; z-index:2; text-align:center; padding:24px }
.brand{ letter-spacing:.2em; text-transform:uppercase; font-weight:600; opacity:.9 }
.headline{ font-size:clamp(36px,6vw,72px); margin:8px 0 4px; line-height:1.1 }
.sub{ color:var(--muted); margin:0 0 16px; font-size:clamp(14px,2vw,18px) }

/* videos/bg */
.intro-video .video-wrap,
.hero-video  .video-wrap{ position:absolute; inset:0; height:calc(var(--sly-vh)*100) }
@supports (height: 100dvh){ .intro-video .video-wrap, .hero-video .video-wrap{ height:100dvh; } }
.bg-video{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:center; display:block;
  filter:saturate(1) contrast(1.05) brightness(.9);
}
.intro-video .bg-video{ object-position:center center; }

/* URBAN caption */
.hero-video .urban-caption{
  position:absolute; inset:0; z-index:2; display:grid; place-items:center;
  text-align:center; color:#fff; padding:24px;
}
.hero-video .urban-caption .headline{ display:inline; padding:5.0em .35em 0 0; font-weight:800; }
.hero-video .urban-caption .sub{ display:inline; margin:0; opacity:.9; }

/* Model section bg */
.model-section{ background-size:cover; background-position:center; }
.model-overlay{ position:absolute; inset:0; background:linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.45) 70%, rgba(0,0,0,.65) 100%); z-index:0 }
.model-header{ position:relative; z-index:2; width:min(100%,var(--maxw)); margin:0 auto; padding:clamp(12px,3vw,24px) }
.model-title{ margin:0; font-size:clamp(34px,6vw,64px); letter-spacing:.02em }

/* appear anim */
.sly-screen .intro-content{ opacity:0; transform:translateY(24px) scale(.985); transition:opacity .6s ease, transform .6s cubic-bezier(.2,.65,.2,1) }
.sly-screen.in .intro-content{ opacity:1; transform:translateY(0) scale(1) }

/* ========== Variant row (BIG cards) ========== */
.sly-variant-row{
  position:relative; z-index:2; width:min(100%,var(--maxw));
  margin:0 auto; padding:12px clamp(16px,3vw,28px) 42px;
  padding-left:5mm; padding-right:5mm;
}
.sly-variant-row .swiper-wrapper{ align-items:stretch; gap:18px; }
.sly-variant-row .swiper-slide{ flex:0 0 auto !important; }

.sly-variant-row .swiper-slide.variant-thumb{
  width: min( calc(100vw - 10mm), 680px ) !important;
}
@media (min-width:1600px){
  .sly-variant-row .swiper-slide.variant-thumb{ width: min( calc(100vw - 10mm), 760px ) !important; }
}

/* Variant card */
.variant-thumb{ position:relative; border-radius:22px; overflow:hidden; transition:transform .25s ease, box-shadow .25s ease; }
@media (hover:hover){ .variant-thumb:hover{ transform:translateY(-4px); box-shadow:0 16px 40px rgba(0,0,0,.4); } }

.variant-thumb-img{
  width:100%; aspect-ratio:1/1; border-radius:22px; overflow:hidden;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 10px 36px rgba(0,0,0,.35);
}
.variant-thumb-img img{ width:100%; height:100%; object-fit:cover; object-position:center; display:block; }

.variant-thumb{ container-type:inline-size; }
.variant-thumb-title{
  margin-top:12px; text-align:center; font-weight:800; letter-spacing:.01em; line-height:1.1;
  font-size: clamp(20px, 8cqi, 46px);
}
@supports not (font-size: 1cqi){ .variant-thumb-title{ font-size:clamp(20px,6vw,42px); } }

.variant-caption{
  position:absolute; left:0; right:0; bottom:0; padding:14px 16px;
  background:linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0));
  color:#fff; transform:translateY(100%); opacity:0;
  transition:transform .35s ease, opacity .35s ease;
  border-top-left-radius:0; border-top-right-radius:0;
  border-bottom-left-radius:22px; border-bottom-right-radius:22px;
  pointer-events:none;
}
.variant-caption .v-name{ font-size:clamp(18px,3.6vw,24px); font-weight:800; margin:0 0 8px; }
.variant-caption .v-price{ font-weight:700; font-size:clamp(14px,2.6vw,16px); margin:0 0 4px; }
.variant-caption .v-excerpt{ font-size:clamp(12px,2.4vw,14px); line-height:1.4; opacity:.95; }

@media (hover:hover) and (pointer:fine){
  .variant-thumb:hover .variant-caption, .variant-thumb:focus-within .variant-caption{ transform:translateY(0); opacity:1; pointer-events:auto; }
}
@media (hover:none), (pointer:coarse){
  .variant-thumb.is-open .variant-caption{ transform:translateY(0); opacity:1; pointer-events:auto; }
}

/* arrows */
.variant-row-prev, .variant-row-next{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border-radius:999px;
  border:1px solid rgba(255,255,255,.20);
  background:rgba(0,0,0,.35); color:#fff; box-shadow:0 10px 28px rgba(0,0,0,.35);
  cursor:pointer; z-index:3;
}
.variant-row-prev{ left:6px } .variant-row-next{ right:6px }
.variant-row-prev:hover, .variant-row-next:hover{ background:rgba(0,0,0,.5) }

/* ========== Social ========== */
.social-bar{
  position:fixed; right:18px; bottom:18px; z-index:50;
  display:flex; gap:10px; padding:8px 10px; border-radius:999px;
  background:rgba(0,0,0,.35); border:1px solid rgba(255,255,255,.08);
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  opacity:0; pointer-events:none; transform:translateY(10px);
  transition:opacity .25s ease, transform .25s ease;
}
.social-bar.is-visible{ opacity:1; pointer-events:auto; transform:translateY(0) }
.social-bar img{ width:22px; height:22px; display:block }

/* ========== Single Product (layout) ========== */
.sly-product{ --pad: clamp(12px, 2.4vw, 24px); --radius: 22px; --mm: 5mm; }
.sly-p__hero{ display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:clamp(14px,2.4vw,28px); max-width:1200px; margin:0 auto; padding:var(--pad); }
.sly-p__media{ background:rgba(255,255,255,.02); border:1px solid rgba(255,255,255,.06); border-radius:var(--radius); padding:clamp(8px,1.2vw,12px); }
.sly-p__gallery{ position:relative; } .sly-p__shot{ margin:0; display:none; } .sly-p__shot.is-active{ display:block; }
.sly-p__shot img{ width:100%; height:auto; display:block; border-radius:calc(var(--radius) - 6px); object-fit:cover; object-position:center; }
.sly-p__thumbs{ display:flex; gap:10px; margin-top:10px; overflow:auto; padding:2px; }
.sly-p__thumb{ flex:0 0 auto; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.02); border-radius:12px; padding:4px; cursor:pointer; transition:border-color .2s ease, transform .15s ease; }
.sly-p__thumb.is-active{ border-color:rgba(255,255,255,.35); transform:translateY(-1px); }
.sly-p__thumb img{ width:70px; height:70px; object-fit:cover; border-radius:8px; display:block; }
.sly-p__info{ align-self:start; padding:clamp(8px,1.4vw,16px); background:rgba(255,255,255,.02); border:1px solid rgba(255,255,255,.06); border-radius:var(--radius); }
.sly-p__title{ font-size:clamp(28px,5.6vw,60px); line-height:1.05; font-weight:900; margin:4px 0 10px; letter-spacing:.01em; }
.sly-p__price{ font-size:clamp(18px,2.6vw,24px); font-weight:800; margin-bottom:10px; }
.sly-p__excerpt{ color:var(--muted); font-size:clamp(14px,2.2vw,16px); line-height:1.5; }
.sly-p__purchase{ margin-top:14px; }
.sly-p__purchase .variations select, .sly-p__purchase .qty{ background:rgba(255,255,255,.06); color:#fff; border:1px solid rgba(255,255,255,.14); border-radius:999px; padding:10px 14px; outline:none; }
.sly-p__purchase .button{ display:inline-flex; align-items:center; justify-content:center; padding:12px 18px; border-radius:999px; background:rgba(255,255,255,.12); color:#fff; border:1px solid rgba(255,255,255,.25); font-weight:700; }
.sly-p__meta{ margin-top:10px; color:var(--muted); font-size:14px; }
.sly-p__details{ max-width:1200px; margin:0 auto; padding:var(--pad); }
.sly-p__tabs{ display:flex; gap:8px; margin-bottom:10px; }
.sly-tab{ padding:10px 14px; border-radius:999px; cursor:pointer; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); color:#fff; font-weight:600; }
.sly-tab.is-active{ background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.28); }
.sly-panels{ background:rgba(255,255,255,.02); border:1px solid rgba(255,255,255,.06); border-radius:var(--radius); padding:clamp(12px,2vw,18px); }
.sly-panel{ display:none; } .sly-panel.is-active{ display:block; }
.sly-p__related{ max-width:1200px; margin:0 auto; padding:var(--pad) }
@media (max-width:980px){ .sly-p__hero{ grid-template-columns:1fr; } }
@media (max-width:780px){ .sly-p__hero, .sly-p__details, .sly-p__related{ padding-left:5mm; padding-right:5mm; } }

/* Related/Upsells grid */
.sly-p__related ul.products,
.sly-p__upsells  ul.products{
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; list-style:none; margin:0 !important; padding:0 !important;
}
.sly-p__related ul.products::before,
.sly-p__related ul.products::after,
.sly-p__upsells  ul.products::before,
.sly-p__upsells  ul.products::after{ content:none !important; }
.sly-p__related ul.products li.product,
.sly-p__upsells  ul.products li.product{
  float:none !important; width:auto !important; margin:0 !important;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px; padding: 16px; text-align:center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sly-p__related ul.products li.product:hover,
.sly-p__upsells  ul.products li.product:hover{
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.sly-p__related ul.products li.product img,
.sly-p__upsells  ul.products li.product img{
  width:100% !important; height:auto !important; aspect-ratio:1/1; object-fit:cover; border-radius:14px !important; margin:0 0 12px;
}

/* ========== Header (UNIFIED) ========== */
.sly-header{
  position:sticky; top:0; z-index:9999;
  backdrop-filter: blur(8px);
  background: rgba(10,10,11,.45);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition:background .25s ease, border-color .25s ease, box-shadow .25s ease;
  isolation: isolate;
}
.sly-header.scrolled{
  background:rgba(10,10,12,.72);
  border-color:rgba(255,255,255,.10);
  box-shadow:0 8px 30px rgba(0,0,0,.25);
}
.sly-header__inner{
  height: var(--hdr-h);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr; /* logo 25% | menu 50% | actions 25% */
  align-items: center;
  gap: 20px;
}
/* Logo - left aligned */
.sly-logo{ 
  display: inline-flex;
  align-items: center;
}
.sly-logo img, .sly-logo .custom-logo,
.sly-logo, .custom-logo-link {
  height: clamp(24px, 3.6vw, 36px) !important;
  max-height: clamp(24px, 3.6vw, 36px) !important;
  max-width: 200px !important;
  width: auto !important;
  display: block !important;
  object-fit: contain !important;
}
/* Navigation - centered */
.sly-nav{ 
  display: flex;
}
/* Actions - right aligned */
.sly-actions{
  display: flex;
  gap: 12px;
  align-items: center;
}
.sly-menu{
  margin:0; padding:0; list-style:none;
  display:flex; gap: clamp(18px, 3.2vw, 42px);
  align-items:center; font-family: "Manrope", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600; letter-spacing: .01em;
}
.sly-menu > li > a{
  color:#fff; text-decoration:none; display:inline-block; line-height:1;
  padding:8px 0; position:relative; opacity:.95; transition:opacity .2s ease;
}
.sly-menu > li > a::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px;
  transform: scaleX(0); transform-origin: 50% 50%;
  background: linear-gradient(90deg, rgba(255,255,255,.0), rgba(255,255,255,.85), rgba(255,255,255,.0));
  transition: transform .22s ease;
}
.sly-menu > li > a:hover{ opacity:1; }
.sly-menu > li > a:hover::after{ transform: scaleX(1); }
.sly-search-icon,
.sly-account-icon,
.sly-cart-icon{
  background:none; border:none; color:#fff; cursor:pointer; padding:8px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:8px; transition:all .25s ease;
  opacity:.85; position:relative;
}
.sly-search-icon:hover,
.sly-account-icon:hover,
.sly-cart-icon:hover{
  opacity:1; background:rgba(255,255,255,.08);
}
.sly-cart-icon .sly-cart-count{
  position:absolute; top:-2px; right:-2px;
  background:#ff0000; color:#fff;
  font-size:10px; font-weight:700;
  padding:2px 5px; border-radius:10px;
  min-width:16px; text-align:center;
}
.sly-actions a{ text-decoration:none; color:inherit; }
.sly-burger{
  width:40px; height:40px; border-radius:10px; border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06); color:#fff; display:none;
  align-items:center; justify-content:center; gap:4px; cursor:pointer;
}
.sly-burger span{ width:18px; height:2px; background:#fff; display:block; border-radius:2px; transition: transform .2s ease, opacity .2s ease; }
.sly-header.is-open .sly-burger span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.sly-header.is-open .sly-burger span:nth-child(2){ opacity:0; }
.sly-header.is-open .sly-burger span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* drawer */
.sly-drawer{
  position: fixed !important;
  top: var(--hdr-h) !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 2147483647 !important;
  background: rgba(0,0,0,.88) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  transform: translateY(-6px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
  padding: 18px 16px 28px;
  overflow-y: auto;
  isolation: isolate !important;
}
.sly-drawer.is-open,
.sly-header.is-open .sly-drawer{ 
  transform:none; 
  opacity:1 !important; 
  pointer-events:auto !important;
  display:block !important;
  isolation: isolate;
}

/* Force drawer on top - must be outside header's stacking context */
body .sly-drawer,
body .sly-drawer.is-open,
body .sly-header.is-open .sly-drawer,
header .sly-drawer,
header .sly-drawer.is-open {
  position: fixed !important;
  z-index: 2147483647 !important;
  isolation: isolate !important;
}
.sly-drawer__menu{
  list-style:none !important;
  margin:0;
  padding: 8px 0;
  display:flex;
  flex-direction: column;
  gap:14px;
  font-family: "Manrope", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
}
.sly-drawer__menu li{
  display:block !important;
  list-style:none !important;
  margin:0;
  padding:0;
}
.sly-drawer__menu a{
  color:#fff !important;
  text-decoration:none !important;
  opacity:1 !important;
  display:block !important;
  padding:12px 0 !important;
  border-bottom:1px solid rgba(255,255,255,.1) !important;
  cursor:pointer;
}
.sly-drawer__menu a:hover{
  opacity:.8 !important;
}

/* Desktop: fix header layout */
@media (min-width: 981px){
  .sly-header__inner{
    grid-template-columns: 1fr 2fr 1fr !important;
  }
  .sly-logo{ 
    justify-self: start !important;
  }
  .sly-nav{ 
    justify-self: center !important;
  }
  .sly-actions{ 
    justify-self: end !important;
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
  }
}

@media (max-width: 980px){
  .sly-nav{ display:none; }
  .sly-burger{ display:inline-flex; }
  .sly-header__inner{ 
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }
  .sly-logo{ justify-self: start; }
  .sly-actions{ justify-self: end; display: flex; align-items: center; gap: 8px; }
  .sly-search-icon{
    display:inline-flex;
  }
  .sly-account-icon{
    display:none;
  }
  .sly-cart-icon{ display:inline-flex; }
}

/* ========== SHOP (archive) ========== */
.sly-hero--shop{
  position:relative; min-height:40vh;
  display:flex; align-items:center; justify-content:center; text-align:center; color:#fff;
}
.sly-hero__bg{ position:absolute; inset:0; background-size:cover; background-position:center; filter:brightness(.45); }
.sly-hero__inner{ position:relative; z-index:2; max-width:var(--maxw); padding: 0 16px; }
.sly-hero__title{ font-size: clamp(28px,5vw,56px); font-weight:800; letter-spacing:.03em; margin:0; }
.sly-hero__subtitle{ font-size: clamp(14px,2vw,20px); opacity:.8; margin:6px 0 0; }
.sly-shop-hero__desc{ margin: 10px auto 0; max-width: 900px; color:#ddd; }

/* grid (Woo UL → grid) */
.sly-shop__wrap ul.products{
  display:grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: clamp(14px,2.4vw,24px);
  list-style:none; margin: 24px auto 0; padding: 0 16px; max-width: var(--maxw);
}
@media (max-width:1180px){ .sly-shop__wrap ul.products{ grid-template-columns: repeat(3,1fr); } }
@media (max-width:820px){  .sly-shop__wrap ul.products{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:540px){  .sly-shop__wrap ul.products{ grid-template-columns: 1fr; } }

/* card (loop) */
.sly-card{
  background:#0e0e0f; border:1px solid rgba(255,255,255,.08);
  border-radius:16px; padding:14px; transition:.25s transform, .25s box-shadow, .25s border-color;
  display:flex; flex-direction:column; overflow:hidden;
}
  .sly-card:hover{ transform:translateY(-4px); border-color:rgba(255,255,255,.18); box-shadow:0 16px 36px rgba(0,0,0,.45); }
.sly-card__image img{ width:100% !important; height:auto !important; aspect-ratio:1/1; object-fit:cover; border-radius:12px; display:block; }
.sly-card__body{ padding:10px 6px 4px; text-align:center; }
.sly-card__title{ margin:8px 0 6px; font-size:16px; font-weight:800; }
.sly-card__title a{ color:#fff; text-decoration:none; }
.sly-card__title a:hover{ text-decoration:underline; }
.sly-card__price{ color:#e0df61; font-weight:700; margin-bottom:8px; }
.sly-card__buy .button{
  width:100%; display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px; border-radius:999px;
  background: rgba(255,255,255,.12); color:#fff; border:1px solid rgba(255,255,255,.22);
}

/* safety: убираем max-width, флоаты и маркеры woo */
.woocommerce ul.products li.product a img{ max-width:none !important; }
.woocommerce ul.products li:before{ display:none !important; }
.sly .woocommerce ul.products li.product{ float:none !important; width:auto !important; margin:0 !important; }

/* Logo unified size */
.sly-header .custom-logo,
.sly-header .sly-logo img,
.sly-header .custom-logo-link {
  height: 32px !important;
  max-height: 32px !important;
  max-width: 200px !important;
  width: auto !important;
  display: block;
  object-fit: contain;
}
@media (min-width: 1024px){
  .sly-header .custom-logo,
  .sly-header .sly-logo img,
  .sly-header .custom-logo-link { 
    height: 36px !important;
    max-height: 36px !important;
  }
}

/* === FIX 2: Shop — карточки не растягиваются на весь экран === */
/* Сетка: авто-заполнение, но с нижней границей ширины карточки */
.sly-shop__wrap ul.products{
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}

/* Карточка: ставим разумный максимум ширины и центрируем */
.sly-shop__wrap ul.products li.product{
  max-width: 320px;         /* <- предел размера карточки на больших экранах */
  margin: 0 auto !important;
}

/* Картинка внутри карточки остаётся квадратом и не «надувается» */
.sly-card__image img,
.sly-shop .products li.product img{
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* === FIX 3: Related / Upsells — аккуратные карточки, не гигантские === */
.sly-p__related ul.products,
.sly-p__upsells  ul.products{
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.sly-p__related ul.products li.product,
.sly-p__upsells  ul.products li.product{
  max-width: 280px;         /* <- предел размера в related/upsells */
  margin: 0 auto !important;
}

.sly-p__related ul.products li.product img,
.sly-p__upsells  ul.products li.product img{
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* === FIX SHOP CATEGORY CARDS === */

/* Сетка категорий/Shop */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
}

/* Каждая карточка */
.woocommerce ul.products li.product {
  max-width: 300px;     /* предел ширины карточки */
  margin: 0 auto !important;
  text-align: center;
}

/* Изображения внутри карточки */
.woocommerce ul.products li.product img {
  width: 100%;
  height: 280px;        /* фиксированная высота */
  object-fit: cover;    /* картинка обрезается, а не тянется */
  border-radius: 12px;
  display: block;
}

/* ===== Flagship Grid for Shop/Category ===== */
.woocommerce ul.products {
  display:grid !important;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap: 26px;
  margin: 0; padding: 0;
}
@media (max-width: 1400px){ .woocommerce ul.products{ grid-template-columns:repeat(5,1fr); } }
@media (max-width: 1180px){ .woocommerce ul.products{ grid-template-columns:repeat(4,1fr); } }
@media (max-width: 900px){  .woocommerce ul.products{ grid-template-columns:repeat(3,1fr); } }
@media (max-width: 680px){  .woocommerce ul.products{ grid-template-columns:repeat(2,1fr); } }
@media (max-width: 400px){  .woocommerce ul.products{ grid-template-columns:1fr; } }

/* Карточка (единая высота, аккуратный подъём) */
.sly-card--pro{
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  overflow:hidden;
  display:flex; flex-direction:column;
  transition: transform .18s ease, box-shadow .2s ease, border-color .18s ease;
}
@media (hover:hover){
  .sly-card--pro:hover{
    transform: translateY(-4px);
    border-color: rgba(255,255,255,.18);
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
  }
}

/* Медиа-рамка с двумя слоями для ховера */
.sly-card__media{ position:relative; display:block; aspect-ratio: 4/5; }
.sly-card__img{
  position:absolute; inset:0;
  display:block;
  border-radius: 14px;
  overflow:hidden;
}
.sly-card__img img{
  width:100%; height:100%; object-fit:cover; display:block;
}
.sly-card__img--hover{ opacity:0; transition:opacity .25s ease; }
@media (hover:hover){
  .sly-card--pro:hover .sly-card__img--hover{ opacity:1; }
}

/* Бейджи */
.sly-card__badges{
  position:absolute; top:10px; left:10px; display:flex; gap:6px; z-index:2;
}
.sly-badge{
  display:inline-flex; align-items:center; height:24px; padding:0 10px;
  border-radius:999px; font-size:12px; font-weight:800; letter-spacing:.02em;
  background:rgba(0,0,0,.6); color:#fff; border:1px solid rgba(255,255,255,.18);
}
.sly-badge--sale{ background:#e74c3c; color:#fff; }
.sly-badge--new{ background:#2ecc71; }
.sly-badge--limited{ background:#8e44ad; }

/* Тело карточки */
.sly-card__body{ padding:12px 12px 14px; display:grid; gap:8px; }
.sly-card__title{ margin:0; font-weight:900; letter-spacing:.01em; font-size:16px; }
.sly-card__title a{ color:#fff; text-decoration:none; }
.sly-card__price{ color:#e0df61; font-weight:800; }

/* Свотчи (если есть) */
.sly-card__swatches{ display:flex; gap:8px; margin-top:2px; }
.sly-swatch{
  width:16px; height:16px; border-radius:50%;
  border:1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}

/* ===== RAY-BAN STYLE PRODUCT CARDS (Category Page) ===== */
/* Shop page background */
.sly-shop {
  background:#fff !important;
}

.sly-shop .products {
  background:#fff !important;
}

.sly-shop .products li.product {
  background:#fff !important;
}

.sly-card--rb {
  background:#fff;
  border:none;
  border-radius:0;
  padding:0;
  display:flex;
  flex-direction:column;
  transition:transform .2s ease;
  list-style:none;
}

.sly-card--rb:hover {
  transform:translateY(-2px);
}

/* Product Image */
.sly-card__media {
  position:relative;
  width:100%;
  aspect-ratio:1/1;
  overflow:hidden;
  background:#f5f5f5;
}

.sly-card__image-link {
  display:block;
  width:100%;
  height:100%;
  text-decoration:none;
}

.sly-card__image-wrapper {
  position:relative;
  width:100%;
  height:100%;
}

.sly-card__main-image {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:opacity .3s ease;
}

/* Badges for RB style */
.sly-card--rb .sly-card__badges {
  position:absolute;
  top:12px;
  left:12px;
  display:flex;
  flex-direction:column;
  gap:6px;
  z-index:2;
}

.sly-card--rb .sly-badge {
  display:inline-block;
  padding:4px 8px;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.5px;
  border-radius:4px;
  line-height:1.2;
}

.sly-card--rb .sly-badge--sale {
  background:#e00;
  color:#fff;
}

.sly-card--rb .sly-badge--new {
  background:#000;
  color:#fff;
}

.sly-card--rb .sly-badge--limited {
  background:#ffd700;
  color:#000;
}

/* Wishlist Icon */
.sly-card__wishlist {
  position:absolute;
  top:12px;
  right:12px;
  width:36px;
  height:36px;
  padding:0;
  background:rgba(255,255,255,.9);
  border:none;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:2;
  transition:background .2s ease, transform .2s ease;
}

.sly-card__wishlist:hover {
  background:#fff;
  transform:scale(1.1);
}

.sly-card__wishlist svg {
  width:18px;
  height:18px;
  color:#000;
  stroke-width:2;
}

/* Product Body for RB style */
.sly-card--rb .sly-card__body {
  padding:16px 0 0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.sly-card--rb .sly-card__title {
  margin:0;
  font-size:14px;
  font-weight:700;
  line-height:1.4;
  text-transform:uppercase;
  letter-spacing:.5px;
}

.sly-card--rb .sly-card__title a {
  color:#000;
  text-decoration:none;
  transition:opacity .2s ease;
}

.sly-card--rb .sly-card__title a:hover {
  opacity:.7;
}

/* Polarized Badge */
.sly-card__polarized {
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:-4px;
}

.sly-polarized-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  background:#000;
  color:#fff;
  border-radius:50%;
  font-size:11px;
  font-weight:700;
}

.sly-polarized-text {
  font-size:11px;
  color:#666;
  text-transform:uppercase;
  letter-spacing:.5px;
}

/* Colors Count */
.sly-card__colors-count {
  font-size:12px;
  color:#666;
  margin-top:-4px;
}

.sly-colors-current {
  font-weight:700;
  color:#000;
}

/* Color Swatches for RB style */
.sly-card--rb .sly-card__swatches {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
  margin-bottom:4px;
}

.sly-card__swatch {
  width:32px;
  height:32px;
  padding:0;
  border:2px solid transparent;
  border-radius:50%;
  background:#fff;
  cursor:pointer;
  overflow:hidden;
  transition:border-color .2s ease, transform .2s ease;
  position:relative;
}

.sly-card__swatch:hover {
  transform:scale(1.1);
  border-color:#000;
}

.sly-card__swatch.is-active {
  border-color:#000;
}

.sly-swatch__inner {
  width:100%;
  height:100%;
  background-size:cover;
  background-position:center;
  border-radius:50%;
  display:block;
}

/* Price for RB style */
.sly-card--rb .sly-card__price {
  font-size:16px;
  font-weight:700;
  color:#000;
  margin-top:4px;
}

/* Actions */
.sly-card__actions {
  margin-top:12px;
}

.sly-card__customize-btn {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:10px 16px;
  background:#000;
  color:#fff;
  text-decoration:none;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
  border-radius:0;
  transition:background .2s ease, transform .2s ease;
}

.sly-card__customize-btn:hover {
  background:#333;
  transform:translateY(-1px);
  color:#fff;
}

.sly-card__customize-btn svg {
  width:14px;
  height:14px;
}

/* Кнопка */
.sly-card__buy .button,
.sly-card__btn{
  width:100%;
  display:inline-flex; align-items:center; justify-content:center;
  height:38px; border-radius:999px;
  background: rgba(255,255,255,.12); color:#fff; border:1px solid rgba(255,255,255,.22);
  text-decoration:none; font-weight:800;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.sly-card__buy .button:hover,
.sly-card__btn:hover{ transform:translateY(-1px); background: rgba(255,255,255,.18); }

/* ===== RAY-BAN STYLE PRODUCT PAGE ===== */

/* Main Layout */
.sly-rb-main {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  width: 100%;
  margin: 0;
  padding: 20px;
  background: #1a1a1a;
  min-height: 100vh;
}

/* LEFT: Product Gallery */
.sly-rb-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sly-rb-main-image {
  position: relative;
  width: 100%;
  height: 70vh;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

.sly-rb-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sly-rb-main-image:hover img {
  transform: scale(1.05);
}

.sly-rb-zoom-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sly-rb-main-image:hover .sly-rb-zoom-overlay {
  opacity: 1;
}

.sly-rb-zoom-content {
  color: #fff;
  font-weight: 600;
  text-align: center;
}

.sly-rb-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.sly-rb-gallery-item {
  aspect-ratio: 1;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.sly-rb-gallery-item:hover {
  transform: scale(1.02);
}

.sly-rb-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sly-rb-view-more {
  background: none;
  border: 2px solid #fff;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.sly-rb-view-more:hover {
  background: #fff;
  color: #1a1a1a;
}

/* RIGHT: Product Options */
.sly-rb-options {
  background: #1a1a1a;
  color: #fff;
  padding: 30px;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 25px;
  height: fit-content;
}

.sly-rb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sly-rb-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.sly-rb-association {
  font-size: 14px;
  color: #ccc;
  font-style: italic;
  margin: 2px 0 20px 0;
  line-height: 1.3;
}

.sly-rb-heart {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  transition: color 0.3s ease;
}

.sly-rb-heart:hover {
  color: #ff0000;
}

/* Color Variations */
.sly-rb-colors-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.sly-rb-colors-count {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.sly-rb-view-all {
  background: none;
  border: none;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
}

.sly-rb-colors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sly-rb-color-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.sly-rb-color-thumb.active {
  border-color: #fff;
}

.sly-rb-color-thumb:hover {
  transform: scale(1.05);
}

.sly-rb-color-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sly-rb-discount {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #ff0000;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

/* Product Properties */
.sly-rb-properties {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sly-rb-property {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sly-rb-property-label {
  font-weight: 600;
  color: #fff;
}

.sly-rb-property-value {
  font-weight: 500;
  color: #fff;
}

.sly-rb-try-lenses-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
}

.sly-rb-protection {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sly-rb-protection-label {
  font-weight: 600;
  color: #fff;
}

.sly-rb-protection-value {
  font-weight: 500;
  color: #fff;
}

.sly-rb-polarized {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sly-rb-polarized-icon {
  background: #4CAF50;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.sly-rb-info-icon {
  background: #666;
  color: #fff;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: help;
}

/* Size and Fit */
.sly-rb-size-fit {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sly-rb-size-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sly-rb-size-label {
  font-weight: 600;
  color: #fff;
}

.sly-rb-size-value {
  font-weight: 500;
  color: #fff;
}

.sly-rb-size-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.sly-rb-fit {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sly-rb-fit-label {
  font-weight: 600;
  color: #fff;
}

.sly-rb-geofit-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* Delivery and Help */
.sly-rb-delivery {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sly-rb-delivery-label {
  font-weight: 600;
  color: #fff;
}

.sly-rb-delivery-date {
  font-weight: 500;
  color: #4CAF50;
}

.sly-rb-help {
  text-align: right;
}

.sly-rb-help-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
}

/* Purchase Section */
.sly-rb-purchase {
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.sly-rb-price-section {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.sly-rb-price-current {
  font-size: 24px;
  font-weight: 700;
  color: #000;
}

.sly-rb-price-original {
  font-size: 18px;
  color: #999;
  text-decoration: line-through;
}

.sly-rb-discount-badge {
  background: #ff0000;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.sly-rb-add-to-cart .single_add_to_cart_button {
  background: #ff0000;
  color: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.sly-rb-add-to-cart .single_add_to_cart_button:hover {
  background: #cc0000;
  transform: translateY(-2px);
}

/* Product Details Section */
.sly-rb-details-section {
  background: #1a1a1a;
  color: #fff;
  padding: 30px;
  border-radius: 0;
  box-shadow: none;
  margin: 40px auto;
  width: 100%;
}

.sly-rb-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #333;
}

.sly-rb-details-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.sly-rb-model-code {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #ccc;
  padding: 10px 0;
  border-bottom: 1px solid #333;
}

.sly-rb-detail-section {
  margin-bottom: 25px;
}

.sly-rb-detail-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 15px 0;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

.sly-rb-detail-section h3::before {
  content: '';
  width: 20px;
  height: 20px;
  margin-right: 10px;
  background-size: contain;
  background-repeat: no-repeat;
}

.sly-rb-detail-section:nth-child(3) h3::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
}

.sly-rb-detail-section:nth-child(4) h3::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>');
}

.sly-rb-detail-section:nth-child(5) h3::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
}

.sly-rb-detail-section:nth-child(6) h3::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
}

.sly-rb-detail-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  padding: 4px 0;
}

.sly-rb-detail-item span:first-child {
  font-weight: 500;
  color: #ccc;
  margin-right: 10px;
  min-width: 120px;
}

.sly-rb-detail-item span:last-child {
  font-weight: 600;
  color: #fff;
  flex: 1;
}

/* Accessories Section */
.sly-rb-accessories-section {
  background: #1a1a1a;
  color: #fff;
  padding: 30px;
  border-radius: 0;
  box-shadow: none;
  margin: 40px auto;
  width: 100%;
}

.sly-rb-accessories-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.sly-rb-accessories-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.sly-rb-accessories-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.sly-rb-accessories-grid::-webkit-scrollbar {
  height: 6px;
}

.sly-rb-accessories-grid::-webkit-scrollbar-track {
  background: #333;
  border-radius: 3px;
}

.sly-rb-accessories-grid::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 3px;
}

.sly-rb-accessories-grid::-webkit-scrollbar-thumb:hover {
  background: #888;
}

.sly-rb-accessory-item {
  position: relative;
  border: 1px solid #333;
  border-radius: 0;
  padding: 0;
  text-align: center;
  transition: transform 0.3s ease;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  background: #2a2a2a;
  min-width: calc((100vw - 120px) / 3.2);
  max-width: calc((100vw - 120px) / 3.2);
  flex-shrink: 0;
}

.sly-rb-accessory-image-container {
  width: 100%;
  height: 100%;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.sly-rb-accessory-item img {
  width: 100%;
  height: 100%;
  max-width: calc((100vw - 120px) / 3.2);
  max-height: calc((100vw - 120px) / 3.2);
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0;
}

.sly-rb-related-item img {
  width: 100%;
  height: 100%;
  max-width: calc((100vw - 120px) / 3.2);
  max-height: calc((100vw - 120px) / 3.2);
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0;
}

.sly-rb-accessory-item h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #fff;
  padding: 8px;
  background: #2a2a2a;
}

.sly-rb-accessory-price {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 5;
}

.sly-rb-accessory-item:hover {
  transform: translateY(-5px);
}

.sly-rb-accessory-heart {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(42, 42, 42, 0.9);
  border: none;
  color: #ccc;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  z-index: 10;
}

/* Related Products Section */
.sly-rb-related-section {
  background: #1a1a1a;
  color: #fff;
  padding: 30px;
  border-radius: 0;
  box-shadow: none;
  margin: 40px auto;
  width: 100%;
}

.sly-rb-related-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.sly-rb-related-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.sly-rb-related-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.sly-rb-related-grid::-webkit-scrollbar {
  height: 6px;
}

.sly-rb-related-grid::-webkit-scrollbar-track {
  background: #333;
  border-radius: 3px;
}

.sly-rb-related-grid::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 3px;
}

.sly-rb-related-grid::-webkit-scrollbar-thumb:hover {
  background: #888;
}

.sly-rb-related-item {
  position: relative;
  border: 1px solid #333;
  border-radius: 0;
  padding: 0;
  text-align: center;
  transition: transform 0.3s ease;
  background: #2a2a2a;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  min-width: calc((100vw - 120px) / 3.2);
  max-width: calc((100vw - 120px) / 3.2);
  flex-shrink: 0;
}

.sly-rb-related-image-container {
  width: 100%;
  height: 100%;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.sly-rb-related-item:hover {
  transform: translateY(-5px);
}

.sly-rb-related-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(42, 42, 42, 0.9);
  border: none;
  color: #ccc;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  z-index: 10;
}

.sly-rb-related-item h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #fff;
  padding: 8px;
  background: #2a2a2a;
}

.sly-rb-related-price {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 5;
}

/* Popups */
.sly-rb-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
}

.sly-rb-popup.active {
  display: flex;
}

.sly-rb-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
}

.sly-rb-popup-content {
  position: relative;
  background: #fff;
  color: #000;
  max-width: 500px;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  z-index: 1;
}

.sly-rb-popup-right {
  margin-left: auto;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.sly-rb-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.sly-rb-popup-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #000;
}

.sly-rb-popup-back,
.sly-rb-popup-close {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 8px;
}

.sly-rb-popup-body {
  padding: 20px;
}

/* Hide WooCommerce default variation form and duplicate elements */
.sly-product .variations_form,
.sly-product .woocommerce-variation-add-to-cart,
.sly-product .woocommerce-variation-add-to-cart-disabled,
.sly-product .woocommerce-variations,
.sly-product .woocommerce-variations-description,
.sly-product .woocommerce-variation-price,
.sly-product .woocommerce-variation-availability,
.sly-product .woocommerce-variation-description,
.sly-product .woocommerce-product-attributes,
.sly-product .product_meta,
.sly-product .woocommerce-product-details__short-description,
.sly-product .woocommerce-variation,
.sly-product .woocommerce-variation-add-to-cart,
.sly-product .woocommerce-variation-add-to-cart-disabled,
.sly-product .woocommerce-variations,
.sly-product .woocommerce-variations-description,
.sly-product .woocommerce-variation-price,
.sly-product .woocommerce-variation-availability,
.sly-product .woocommerce-variation-description,
.sly-product .woocommerce-product-attributes,
.sly-product .product_meta,
.sly-product .woocommerce-product-details__short-description,
.sly-product .variations,
.sly-product .variations_form,
.sly-product .woocommerce-variation-add-to-cart,
.sly-product .woocommerce-variation-add-to-cart-disabled,
.sly-product .woocommerce-variations,
.sly-product .woocommerce-variations-description,
.sly-product .woocommerce-variation-price,
.sly-product .woocommerce-variation-availability,
.sly-product .woocommerce-variation-description,
.sly-product .woocommerce-product-attributes,
.sly-product .product_meta,
.sly-product .woocommerce-product-details__short-description {
  display: none !important;
}

/* Show only our custom add to cart button */
.sly-product .sly-rb-add-to-cart {
  display: block !important;
}

.sly-rb-add-to-cart .single_add_to_cart_button {
  background: #ff0000;
  color: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.sly-rb-add-to-cart .single_add_to_cart_button:hover {
  background: #cc0000;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .sly-rb-main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 15px;
  }
  
  .sly-rb-main-image {
    height: 50vh;
  }
  
  .sly-rb-gallery {
    order: 1;
  }
  
  .sly-rb-options {
    order: 2;
  }
  
  .sly-rb-popup-content {
    max-width: 100%;
  }
  
  /* Tablet - 3 товара на экран */
  .sly-rb-accessory-item,
  .sly-rb-related-item {
    min-width: calc((100vw - 100px) / 2.5);
    max-width: calc((100vw - 100px) / 2.5);
  }
  
  .sly-rb-accessory-item img,
  .sly-rb-related-item img {
    max-width: calc((100vw - 100px) / 2.5);
    max-height: calc((100vw - 100px) / 2.5);
  }
}

@media (max-width: 768px) {
  .sly-rb-main {
    padding: 10px;
    gap: 20px;
  }
  
  .sly-rb-main-image {
    height: 40vh;
  }
  
  .sly-rb-options {
    padding: 20px;
  }
  
  .sly-rb-title {
    font-size: 24px;
  }
  
  .sly-rb-colors-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  .sly-rb-gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  /* Mobile - 2 товара на экран */
  .sly-rb-accessory-item,
  .sly-rb-related-item {
    min-width: calc((100vw - 80px) / 2.2);
    max-width: calc((100vw - 80px) / 2.2);
  }
  
  .sly-rb-accessory-item img,
  .sly-rb-related-item img {
    max-width: calc((100vw - 80px) / 2.2);
    max-height: calc((100vw - 80px) / 2.2);
  }
  
  .sly-rb-accessory-item h3,
  .sly-rb-related-item h3 {
    font-size: 12px;
    padding: 6px;
  }
  
  .sly-rb-accessory-price,
  .sly-rb-related-price {
    font-size: 14px;
    padding: 3px 6px;
  }
}

/* ===== DYNAMIC VARIATION UPDATES ===== */
.sly-rb-main-image {
  transition: opacity 0.3s ease;
}

.sly-rb-property-value,
.sly-rb-size-value,
.sly-rb-protection-value {
  transition: all 0.3s ease;
}

.sly-rb-price-current,
.sly-rb-price-old {
  transition: all 0.3s ease;
  color: #fff !important; /* Make price white */
}

/* Loading state for main image */
.sly-rb-main-image.loading {
  opacity: 0.5;
}

/* ===== CUSTOM ADD TO CART BUTTON ===== */
.sly-rb-add-to-cart-btn {
  background: #ff0000 !important; /* Ярко-красный как скидка */
  color: #fff;
  border: none;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
  width: 100%;
}

.sly-rb-add-to-cart-btn:hover {
  background: #cc0000 !important; /* Темнее красный при наведении */
  transform: translateY(-2px);
}

/* ===== STICKY RIGHT PANEL ===== */
.sly-rb-right-panel {
  position: sticky;
  top: 20px;
  transition: all 0.3s ease;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

/* ===== SEARCH MODAL FULL SCREEN (RAY-BAN STYLE) ===== */
.sly-search-modal-full{
  position:fixed; inset:0; z-index:10000;
  background:rgba(0,0,0,.85);
  display:none;
  pointer-events:none;
  overflow-y:auto;
}
.sly-search-modal-full.active{
  display:block !important;
  pointer-events:auto;
}
.sly-search-close-large{
  position:fixed; top:40px; right:40px;
  background:none;
  border:none;
  color:#fff;
  width:60px; height:60px;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  transition:opacity .25s ease;
  z-index:10001;
  font-size:48px;
  line-height:1;
  font-weight:300;
}
.sly-search-close-large:hover{
  opacity:.6;
}
.sly-search-full-content{
  max-width:1400px;
  margin:0 auto;
  padding:100px 40px 60px;
  color:#fff;
}
.sly-search-results-light{
  background:#2a2a2a;
  padding:40px;
  border-radius:4px;
  color:#fff;
}
.sly-search-full-bar{
  display:flex; align-items:center; gap:20px;
  border-bottom:2px solid #fff;
  padding:20px 0;
  margin-bottom:60px;
}
.sly-search-icon-large{
  color:#fff;
  flex-shrink:0;
}
.sly-search-full-bar input[type="search"]{
  flex:1;
  background:none;
  border:none;
  color:#fff;
  font-size:24px;
  font-weight:400;
  outline:none;
}
.sly-search-full-bar input::placeholder{
  color:#ccc;
  text-transform:uppercase;
  letter-spacing:1px;
  font-weight:400;
}
.sly-search-clear-inline{
  background:none;
  border:none;
  color:#999;
  font-size:32px;
  line-height:1;
  cursor:pointer;
  padding:0;
  transition:color .25s ease;
}
.sly-search-clear-inline:hover{
  color:#000;
}
.sly-search-results-container{
  min-height:400px;
  margin-bottom:80px;
  color:#000;
}
.sly-search-popular-searches{
  margin-bottom:80px;
}
.sly-search-popular-searches h3,
.sly-search-popular-products h3,
.sly-search-useful-links h3{
  font-size:12px;
  font-weight:700;
  color:#666;
  text-transform:uppercase;
  letter-spacing:2px;
  margin:0 0 40px;
  letter-spacing:3px;
}
.sly-popular-tags{
  display:flex; flex-wrap:wrap; gap:12px;
}
.sly-popular-tag{
  background:#fff;
  border:1px solid #ddd;
  border-radius:0;
  padding:12px 24px;
  color:#000;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition:all .25s ease;
  text-transform:uppercase;
  letter-spacing:1px;
}
.sly-popular-tag:hover{
  background:#000;
  color:#fff;
  border-color:#000;
}

/* Frame Shape Filters */
.sly-search-frame-shapes{
  margin:40px 0;
}
.sly-filter-tags{
  display:flex; flex-wrap:wrap; gap:10px;
}
.sly-filter-tag{
  background:#fff;
  border:1px solid #ddd;
  border-radius:0;
  padding:10px 20px;
  color:#000;
  font-size:11px;
  font-weight:600;
  cursor:pointer;
  transition:all .25s ease;
  text-transform:uppercase;
  letter-spacing:1px;
}
.sly-filter-tag:hover{
  background:#f5f5f5;
  border-color:#999;
}
.sly-filter-tag.active{
  background:#000;
  color:#fff;
  border-color:#000;
}
.sly-products-grid-small{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:30px;
}

/* Tablet: 3 items */
@media (max-width: 980px) {
  .sly-products-grid-small{
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Mobile: 2 items */
@media (max-width: 640px) {
  .sly-products-grid-small{
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}
.sly-product-item-small{
  text-decoration:none;
  color:#000;
  transition:opacity .25s ease;
  display:flex;
  flex-direction:column;
  height:100%;
}
.sly-product-item-small:hover{
  opacity:.6;
}
.sly-product-image-small{
  background:#f5f5f5;
  width:100%;
  aspect-ratio: 1;
  overflow:hidden;
  border-radius:0;
  margin-bottom:12px;
  display:block;
}
.sly-product-image-small img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.sly-product-name-small{
  font-weight:700;
  font-size:14px;
  margin-bottom:8px;
  line-height:1.3;
}
.sly-product-price-small{
  font-size:14px;
  font-weight:400;
}
.sly-search-popular-products{
  margin-bottom:80px;
}
.sly-search-useful-links{
  margin-top:40px;
}
.sly-links-list{
  display:flex; flex-direction:column; gap:20px;
}
.sly-links-list a{
  color:#000;
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.sly-links-list a:hover{
  opacity:.7;
}

/* ===== MY ACCOUNT PAGE ===== */
.sly-my-account-page{
  background:#1a1a1a;
  min-height:100vh;
  padding:40px 20px;
}
.sly-my-account{
  max-width:1200px; margin:0 auto;
  background:#1a1a1a; color:#fff;
}
.sly-my-account__header{
  display:flex; justify-content:space-between;
  align-items:center; margin-bottom:40px;
  padding-bottom:30px;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.sly-my-account__header h1{
  font-size:32px; font-weight:800; margin:0; color:#fff;
}
.sly-my-account__user{
  display:flex; align-items:center; gap:15px;
}
.sly-my-account__user .avatar{
  border-radius:50%; border:2px solid rgba(255,255,255,.2);
}
.sly-my-account__name{
  font-weight:700; font-size:16px; margin:0 0 4px;
}
.sly-my-account__email{
  font-size:14px; color:rgba(255,255,255,.6); margin:0;
}
.sly-my-account__logout{
  padding:10px 20px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.2);
  border-radius:8px;
  color:#fff;
  text-decoration:none;
  font-weight:600;
  transition:all .25s ease;
}
.sly-my-account__logout:hover{
  background:rgba(255,255,255,.15);
}
.sly-my-account__content{
  display:grid;
  grid-template-columns:250px 1fr;
  gap:40px;
}
.sly-my-account__nav{
  display:flex; flex-direction:column; gap:8px;
}
.sly-my-account__nav-item{
  padding:12px 16px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
  border-radius:8px;
  color:#fff;
  text-decoration:none;
  transition:all .25s ease;
  font-weight:600;
}
.sly-my-account__nav-item:hover{
  background:rgba(255,255,255,.1);
  transform:translateX(4px);
}
.sly-my-account__nav-item.is-active{
  background:#ff0000;
  border-color:#ff0000;
  color:#fff;
}
.sly-my-account__panel{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
  border-radius:16px;
  padding:30px;
}
.sly-my-account__panel h2,
.sly-my-account__panel h3{
  color:#fff; margin-top:0;
}
.sly-my-account__panel table{
  width:100%; border-collapse:collapse;
  background:rgba(255,255,255,.03);
  border-radius:8px; overflow:hidden;
}
.sly-my-account__panel table th,
.sly-my-account__panel table td{
  padding:12px 16px;
  text-align:left; border-bottom:1px solid rgba(255,255,255,.1);
}
.sly-my-account__panel table th{
  background:rgba(255,255,255,.08);
  font-weight:700;
  color:#fff;
}
.sly-my-account__panel .button{
  background:#ff0000;
  color:#fff;
  padding:12px 24px;
  border-radius:8px;
  font-weight:600;
  border:none;
  cursor:pointer;
  transition:background .25s ease;
}
.sly-my-account__panel .button:hover{
  background:#cc0000;
}
@media (max-width:980px){
  .sly-my-account__content{
    grid-template-columns:1fr;
  }
  .sly-my-account__nav{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));
    gap:8px;
  }
}

/* ===== SEARCH PAGE ===== */
.sly-search-page{
  background:#1a1a1a;
  color:#fff;
  min-height:100vh;
  padding:60px 20px;
}
.sly-search-bar{
  max-width:800px;
  margin:0 auto 60px;
}
.sly-search-form{
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  background:#2a2a2a;
  border:1px solid rgba(255,255,255,.1);
  border-radius:12px;
  padding:16px 20px;
}
.sly-search-form svg{
  color:rgba(255,255,255,.5);
}
.sly-search-form input[type="search"]{
  flex:1;
  background:none;
  border:none;
  color:#fff;
  font-size:16px;
  outline:none;
}
.sly-search-form input::placeholder{
  color:rgba(255,255,255,.3);
  text-transform:uppercase;
}
.sly-search-clear{
  background:none;
  border:none;
  color:rgba(255,255,255,.5);
  font-size:20px;
  cursor:pointer;
  padding:0;
  width:24px;
  height:24px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.sly-search-clear:hover{
  color:#fff;
}
.sly-search-results{
  max-width:1200px;
  margin:0 auto;
}
.sly-search-title{
  font-size:18px;
  font-weight:700;
  margin:0 0 30px;
  color:#fff;
  text-transform:uppercase;
  letter-spacing:1px;
}
.sly-search-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(250px, 1fr));
  gap:24px;
  margin-bottom:40px;
}
.sly-search-post{
  background:#2a2a2a;
  border:1px solid rgba(255,255,255,.1);
  border-radius:12px;
  padding:20px;
}
.sly-search-post h3{
  font-size:16px;
  margin:0 0 10px;
}
.sly-search-post h3 a{
  color:#fff;
  text-decoration:none;
}
.sly-search-post h3 a:hover{
  color:#ff0000;
}
.sly-search-excerpt{
  color:rgba(255,255,255,.7);
  font-size:14px;
  line-height:1.6;
  margin-bottom:12px;
}
.sly-search-link{
  color:#ff0000;
  text-decoration:none;
  font-weight:600;
}
.sly-search-no-results{
  max-width:1200px;
  margin:0 auto;
}
.sly-search-popular{
  margin-bottom:60px;
}
.sly-popular-title{
  font-size:14px;
  font-weight:700;
  margin:0 0 20px;
  color:rgba(255,255,255,.6);
  text-transform:uppercase;
  letter-spacing:1px;
}
.sly-popular-tags{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.sly-popular-tag{
  background:#2a2a2a;
  border:1px solid rgba(255,255,255,.1);
  border-radius:8px;
  padding:10px 20px;
  color:#fff;
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  transition:all .25s ease;
}
.sly-popular-tag:hover{
  background:#3a3a3a;
  border-color:rgba(255,255,255,.2);
}
.sly-products-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
  gap:24px;
  margin-bottom:60px;
}
.sly-search-links{
  margin-top:60px;
}
.sly-links-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.sly-links-list a{
  color:#fff;
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.sly-links-list a:hover{
  color:#ff0000;
}
