/* NiPromo Redesign • Concept 1 (static demo)
   - No framework
   - Mobile-first, responsive
*/
:root{
  --bg:#0b0c10;
  --panel:#10121a;
  --panel2:#0f1118;
  --text:#f5f6fb;
  --muted:#b7bbcc;
  --line:rgba(255,255,255,.10);
  --shadow: 0 18px 55px rgba(0,0,0,.55);
  --shadow2: 0 12px 28px rgba(0,0,0,.35);
  --radius: 22px;
  --radius2: 16px;

  --accent:#f6a21a;
  --accent2:#ff6a3d;

  --container: 1160px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(246,162,26,.22), transparent 60%),
    radial-gradient(900px 600px at 80% 20%, rgba(255,106,61,.16), transparent 60%),
    radial-gradient(1000px 800px at 50% 120%, rgba(122,199,255,.12), transparent 65%),
    var(--bg);
  color:var(--text);
  line-height:1.4;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
.container{width:min(var(--container), calc(100% - 40px)); margin:0 auto}
.d-none{display:none !important}

.skip{
  position:absolute; left:-999px; top:-999px;
  background:var(--accent); color:#1a1a1a;
  padding:10px 14px; border-radius:12px; z-index:9999;
}
.skip:focus{left:16px; top:16px}

.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0}

.trustbar{
  background:rgba(10,10,12,.75);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(10px);
}
.trustbar__inner{
  display:flex; gap:14px; align-items:center;
  padding:8px 0;
  font-size:13px;
  color:rgba(245,246,251,.85);
}
.trustbar__dot{opacity:.5}
@media (max-width:640px){
  .trustbar__dot{display:none}
  .trustbar__item:nth-child(3), .trustbar__item:nth-child(5){display:none}
}

.header{
  position:sticky; top:0; z-index:50;
  background:rgba(11,12,16,.72);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:8px 0;
}
.brand{
    display:flex; align-items:baseline; gap:2px; font-weight:800; letter-spacing:.2px;
}
.brand img{
    height: 70px; 
}
.brand__mark{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:28px;
  border-radius:12px;
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  color:#121212;
  font-weight:900;
}
.brand__name{font-size:20px}
.brand--footer .brand__mark{width:42px; height:32px}

.nav{display:none; gap:16px; font-weight:650; color:rgba(245,246,251,.88)}
.nav a{padding:8px 10px; border-radius:12px}
.nav a:hover{background:rgba(255,255,255,.06)}
@media (min-width:980px){.nav{display:flex}}

.header__actions{display:flex; align-items:center; gap:10px}

.shopcart-wrap{position:relative; display:inline-flex}
.shopcart-wrap::after{
  content:'';
  position:absolute;
  top:100%;
  left:0;
  right:0;
  height:10px;
}
.shopcart-icon{position:relative}
.shopcart-icon .count{
  position:absolute; top:-4px; right:-4px;
  min-width:20px; height:20px; padding:0 6px;
  font-size:11px; line-height:20px;
}

/* Mini-cart dropdown (v2 styling) */
.mini-cart-dropdown{
  position:absolute; top:100%; right:0; margin-top:6px;
  min-width:320px; max-width:380px; max-height:75vh; overflow-y:auto;
  background:var(--panel); border:1px solid var(--line);
  border-radius:var(--radius); box-shadow:var(--shadow);
  z-index:100; padding:14px;
}
.mini-cart-dropdown .title{
  margin:0 0 12px; font-size:16px; font-weight:750;
}
.minicart-content .minicart-items{
  list-style:none; margin:0 0 12px; padding:0; border-bottom:1px solid var(--line);
}
.minicart-content .mini_cart_item{
  display:flex; gap:12px; padding:10px 0; border-top:1px solid var(--line);
  color:var(--text);
}
.minicart-content .mini_cart_item:first-child{border-top:0}
.minicart-content .product-media{
  flex-shrink:0; width:60px; height:60px; border-radius:10px; overflow:hidden;
}
.minicart-content .product-media img{width:100%; height:100%; object-fit:cover}
.minicart-content .product-details{flex:1; min-width:0}
.minicart-content .product-name{margin:0 0 2px; font-size:13px; font-weight:650}
.minicart-content .product-name a{color:inherit}
.minicart-content .product-name a:hover{color:var(--accent)}
.minicart-content .variations{font-size:11px; color:var(--muted); margin-bottom:2px}
.minicart-content .product-price, .minicart-content .product-quantity{font-size:12px; color:var(--muted)}
.minicart-content .product-remove{float:right}
.minicart-content .product-remove a{
  color:var(--muted); font-size:14px; padding:4px;
}
.minicart-content .product-remove a:hover{color:var(--accent)}
.minicart-content .subtotal{
  margin:0 0 12px; padding:10px 0; font-weight:750;
}
.minicart-content .subtotal .total-price{color:var(--accent)}
.minicart-content .actions{
  display:flex; gap:10px; flex-wrap:wrap;
}
.minicart-content .actions .button{
  flex:1; min-width:120px; padding:10px 14px; text-align:center;
  border-radius:12px; font-weight:700; font-size:13px;
}
.minicart-content .actions .button-checkout{
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  color:#121212; border:0;
}

.iconbtn{
  display:inline-flex; align-items:center; justify-content:center;
  width:42px; height:42px; border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.iconbtn:hover{transform: translateY(-1px); background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.18)}
.iconbtn svg{width:18px; height:18px; fill:currentColor; opacity:.92}

.btn{
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
  padding:12px 14px;
  border-radius:16px;
  font-weight:750;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.btn:hover{transform: translateY(-1px); background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.18)}
.btn--primary{
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  color:#121212;
  border-color:transparent;
  box-shadow: 0 12px 28px rgba(246,162,26,.18);
}
.btn--primary:hover{box-shadow: 0 16px 36px rgba(246,162,26,.22)}
.btn--ghost{background:rgba(255,255,255,.03)}
.btn--sm{padding:8px 10px; border-radius:14px; font-weight:800; font-size:12px}

.hero{
  position:relative;
  min-height: 560px;
  display:flex; align-items:center;
  overflow:hidden;
  border-bottom:1px solid var(--line);
}
.hero--compact{
  min-height:260px;
}
.hero--compact .hero__content{
  padding:28px 0 24px;
}
.hero__bg{
  position:absolute; inset:0;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.70)),
    url("/images/v2/hero.jpg");
  background-size:cover;
  background-position:center;
  transform: scale(1.02);
  filter: saturate(1.1) contrast(1.05);
}
.hero__content{
  position:relative; z-index:2;
  padding:64px 0 52px;
  text-align:center;
}
.hero h1{
  margin:0 0 10px;
  font-size: clamp(34px, 5vw, 56px);
  line-height:1.05;
  letter-spacing:-.6px;
  text-shadow: 0 18px 60px rgba(0,0,0,.55);
}
.lead{
  margin:0 auto 22px;
  max-width: 720px;
  font-size: clamp(16px, 2vw, 18px);
  color:rgba(245,246,251,.9);
}

.search{
  display:flex; gap:10px;
  width:min(860px, 100%);
  margin: 0 auto 14px;
  padding:10px;
  border-radius: 22px;
  background:rgba(10,10,12,.55);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.search input{
  flex:1;
  border:0; outline:0;
  background:transparent;
  color:var(--text);
  font-size:16px;
  padding:14px 14px;
}
.search input::placeholder{color:rgba(245,246,251,.55)}
@media (max-width:640px){
  .search{flex-direction:column}
  .search input{padding:12px 12px}
}

.chips{display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-bottom:16px}
.chip{
  padding:10px 14px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.28);
  color:rgba(245,246,251,.92);
  font-weight:750;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.chip:hover{transform: translateY(-1px); background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.26)}
.chip.is-active{
  background:linear-gradient(135deg, rgba(246,162,26,.35), rgba(255,106,61,.25));
  border-color: rgba(246,162,26,.45);
}

.hero__note{
  display:inline-flex; gap:10px; align-items:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.32);
  color:rgba(245,246,251,.86);
  backdrop-filter: blur(10px);
}
.badge{
  display:inline-flex; align-items:center; justify-content:center;
  padding:4px 10px;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(246,162,26,.95), rgba(255,106,61,.95));
  color:#101010;
  font-weight:900;
}

.section{padding:68px 0}
.section--alt{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.section__head{margin-bottom:22px; text-align:center}
.section__head--row{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; text-align:left}
.section__head h2{
  margin:0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing:-.4px;
}
.section__head p{margin:0; color:var(--muted)}
@media (max-width:880px){.section__head--row{flex-direction:column; align-items:flex-start}}

.grid{display:grid; gap:16px}
.grid--cats{grid-template-columns: repeat(12, 1fr)}
.grid--offers{grid-template-columns: repeat(12, 1fr)}
.grid--two{grid-template-columns: repeat(12, 1fr); align-items:start}
/* two-column forms (auto-stack on mobile) */
.grid--form{grid-template-columns: repeat(2, minmax(0,1fr))}
@media (max-width:980px){
  .grid--cats, .grid--offers, .grid--two{grid-template-columns: 1fr}
}
@media (max-width:640px){
  .grid--form{grid-template-columns:1fr}
}

.details-product{
  display:grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1.9fr);
  gap:20px;
  align-items:flex-start;
  margin-top:24px;
}
@media (max-width:980px){
  .details-product{
    grid-template-columns:1fr;
  }
  .details-thumd,
  .details-infor{
    width:100%;
  }
}
.details-thumd,
.details-infor{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.03);
  box-shadow:var(--shadow2);
  padding:16px;
}
.details-thumd .image-preview-container{
  position:relative;
  border-radius:14px;
  overflow:hidden;
}
.details-thumd .btn-zoom.open_qv{
  position:absolute;
  top:12px;
  right:12px;
  width:44px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:rgba(0,0,0,.5);
  border:1px solid rgba(255,255,255,.2);
  color:#fff;
  z-index:10;
  transition: background .2s ease, transform .2s ease;
}
.details-thumd .btn-zoom.open_qv:hover{
  background:rgba(0,0,0,.75);
  color:var(--accent);
  transform:scale(1.06);
}
.details-thumd img{
  width:100%;
  height:auto;
  display:block;
}
.details-infor .product-title{
  margin:0 0 8px;
  font-size:24px;
}
.details-infor .availability{
  margin-top:4px;
  font-size:13px;
  color:var(--muted);
}
.details-infor .price{
  margin-top:10px;
  font-size:22px;
  font-weight:800;
  color:var(--text);
}
.details-infor .group-button{
  margin-top:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.details-infor .size-text{
  font-weight:700;
}
.details-infor .list-size{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:6px;
}
.details-infor .list-size a{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  font-size:13px;
  color:rgba(245,246,251,.86);
  transition:background .12s ease, border-color .12s ease, transform .12s ease;
}
.details-infor .list-size a:hover{
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.26);
  transform:translateY(-1px);
}
.details-infor .list-size a.active{
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  border-color:transparent;
  color:#111;
}
.details-infor .quantity-add-to-cart{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:20px;
}
.details-infor .quantity .control{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  border:1px solid var(--line);
  overflow:hidden;
}
.details-infor .quantity .control a,
.details-infor .quantity .control input{
  background:transparent;
  border:0;
}
.details-infor .quantity .control a{
  padding:6px 10px;
  cursor:pointer;
}
.details-infor .quantity .control input{
  width:40px;
  text-align:center;
  color:var(--text);
}

.badge--success{
  background:linear-gradient(135deg, #24c26a, #1b9a54);
  color:#101010;
}
.badge--danger{
  background:linear-gradient(135deg, #ff4b4b, #d72525);
  color:#101010;
}

.radio.radio--v2{
  position:relative;
  padding-left:30px;
  font-size:13px;
  color:var(--muted);
}
.radio.radio--v2 input[type="radio"]{
  position:absolute;
  left:0;
  top:2px;
  width:20px;
  height:20px;
  margin:0;
  opacity:0;
  cursor:pointer;
}
.radio.radio--v2 label{
  position:relative;
  cursor:pointer;
}
.radio.radio--v2 label::before{
  content:"";
  position:absolute;
  left:-28px;
  top:0;
  width:18px;
  height:18px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(0,0,0,.5);
}
.radio.radio--v2 input[type="radio"]:checked + label::before{
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  border-color:transparent;
}
.radio.radio--v2 input[type="radio"]:checked + label::after{
  content:"";
  position:absolute;
  left:-22px;
  top:6px;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#121212;
}

.checkbox.checkbox--v2{
  position:relative;
  display:inline-flex;
  align-items:flex-start;
  gap:10px;
  padding-left:0;
}
.checkbox.checkbox--v2 input[type="checkbox"]{
  position:absolute;
  left:0;
  top:2px;
  width:20px;
  height:20px;
  margin:0;
  opacity:0;
  cursor:pointer;
}
.checkbox.checkbox--v2 label{
  position:relative;
  display:inline-block;
  font-size:13px;
  line-height:1.45;
  color:var(--muted);
  padding-left:30px;
  cursor:pointer;
}
.checkbox.checkbox--v2 label::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:18px;
  height:18px;
  border-radius:6px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(0,0,0,.5);
}
.checkbox.checkbox--v2 input[type="checkbox"]:checked + label::before{
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  border-color:transparent;
}
.checkbox.checkbox--v2 input[type="checkbox"]:checked + label::after{
  content:"";
  position:absolute;
  left:6px;
  top:3px;
  width:5px;
  height:10px;
  border:2px solid #121212;
  border-top:0;
  border-left:0;
  transform:rotate(45deg);
}

.related-v2{
  margin-top:32px;
  position:relative;
  padding:0 68px;
  overflow:visible;
}
.related-v2 .section__head{
  text-align:left;
}
.carousel--v2{
  position:relative;
  overflow:visible;
}
.carousel--v2 .owl-nav{
  position:absolute;
  top:50%;
  left:-60px;
  right:-60px;
  transform:translateY(-50%);
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin:0;
  padding:0;
  z-index:20 !important;
  pointer-events:none;
}
.carousel--v2 .owl-nav .owl-prev,
.carousel--v2 .owl-nav .owl-next,
.carousel--v2 .owl-nav button{
  pointer-events:auto !important;
  width:52px;
  height:52px;
  border:1px solid rgba(255,255,255,.3) !important;
  background:linear-gradient(135deg, var(--accent), var(--accent2)) !important;
  color:#121212 !important;
  font-weight:900;
  line-height:1;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  cursor:pointer !important;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  box-shadow:0 4px 16px rgba(246,162,26,.25);
}
.carousel--v2 .owl-nav .owl-prev{
  border-radius:999px 0 0 999px;
}
.carousel--v2 .owl-nav .owl-next{
  border-radius:0 999px 999px 0;
}
.carousel--v2 .owl-nav .owl-prev:hover,
.carousel--v2 .owl-nav .owl-next:hover,
.carousel--v2 .owl-nav button:hover{
  transform:scale(1.08);
  box-shadow:0 8px 24px rgba(246,162,26,.4);
  border-color:rgba(255,255,255,.5) !important;
}
.carousel--v2 .owl-nav .carousel-arrow,
.carousel--v2 .owl-nav button span{
  display:block;
  line-height:1;
  font-size:24px !important;
}
.carousel--v2 .owl-dots{display:none}
@media (max-width:768px){
    .header__inner{
        flex-wrap: wrap;
        gap: 7px;
    }
    .brand{
        width:100%;
        flex: 0 0 100%;
        display:flex;
        justify-content:center;
    }
    .brand img{
        width:auto;
        height:60px;
        max-width:100%;
    }
  .mini-cart-dropdown{
    position:fixed; left:5px; right:5px; top:76px;
    width:calc(100% - 10px); max-width:none; min-width:0;
    margin-top:0;
  }
  .related-v2{padding:0 0 26px}
  .carousel--v2 .owl-nav{
    left:0;
    right:0;
    top:auto;
    bottom:-48px;
    transform:none;
    justify-content:center;
    gap:12px;
  }
  .carousel--v2 .owl-nav .owl-prev,
  .carousel--v2 .owl-nav .owl-next,
  .carousel--v2 .owl-nav button{
    width:48px;
    height:40px;
    border-radius:20px !important;
  }
  .carousel--v2 .owl-nav .carousel-arrow,
  .carousel--v2 .owl-nav button span{
    font-size:20px !important;
  }
}

.card{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  overflow:hidden;
}

#contact-form.card{
  overflow: visible;
}

#contact-form .card__body{
  overflow: visible;
}

.v2-contact-form{
  overflow: visible;
  position: relative;
}

.card--cat{
  grid-column: span 4;
  min-height: 190px;
  position:relative;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.75)),
    var(--img);
  background-size: cover;
  background-position:top center;
  transform: translateZ(0);
  transition: transform .14s ease, border-color .14s ease;
}
.card--cat:hover{transform: translateY(-3px); border-color:rgba(255,255,255,.22)}
.card--wide{grid-column: span 8}

.card__overlay{
  position:absolute; inset:0;
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:16px 16px 14px;
  gap:8px;
}
.card__overlay h3{margin:0; font-size:20px; letter-spacing:-.2px}
.meta{display:flex; justify-content:space-between; color:rgba(245,246,251,.86); font-weight:650}
.meta b{color:var(--text)}
@media (max-width:980px){
  .card--cat{grid-column: auto}
  .card--wide{grid-column:auto}
}

.card--offer{grid-column: span 3; display:flex; flex-direction:column}
@media (max-width:980px){.card--offer{grid-column:auto}}

.card__img{
     height: 230px;
    background-image: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.6)), var(--img);
    background-size: cover;          /* ← key change */
    background-position: center top; /* ← keeps faces */
    background-repeat: no-repeat;
}
.card__body{padding:14px 14px 16px}
.card__body h3{margin:2px 0 6px; font-size:18px; letter-spacing:-.2px}
.muted{color:var(--muted)}
.priceRow{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px}
.priceRow--inactive{justify-content:flex-start}
.offer-status{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  padding:6px 10px;
  border-radius:8px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.01em;
  line-height:1.25;
}
.offer-status--inactive{
  background:#fff;
  color:#c62828;
  border:1px solid rgba(198,40,40,.28);
  box-shadow:0 1px 0 rgba(255,255,255,.06);
}
.price{font-size:13px; color:rgba(245,246,251,.86); display:flex; flex-direction:column; gap:2px}
.price-line{
  display:flex;
  align-items:baseline;
  gap:4px;
}
.price-label{
  display:inline-block;
  min-width:20px;
  font-size:12px;
  color:var(--muted);
}
.price-value{
  font-size:17px;
  font-weight:700;
  color:var(--text);
}
.price-line--secondary .price-value{
  color:var(--text);
}

.steps{display:grid; grid-template-columns: repeat(12, 1fr); gap:16px}
.step{grid-column: span 4; padding:18px}
.step__icon{
  width:44px; height:44px; border-radius:16px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, rgba(246,162,26,.22), rgba(255,106,61,.16));
  border:1px solid rgba(246,162,26,.25);
  font-weight:900;
  margin-bottom:12px;
}
.steps--about .step{
  text-align:center;
}
.steps--about .step__icon{
  margin-left:auto;
  margin-right:auto;
  width:56px;
  height:56px;
  border-radius:18px;
}
.steps--about .step__icon svg{
  width:48px;
  height:48px;
  fill:currentColor;
}
.step h3{margin:0 0 8px}
.step p{margin:0; color:var(--muted)}
@media (max-width:980px){
  .steps{grid-template-columns:1fr}
  .step{grid-column:auto}
}

.ctaCard{
  margin-top:18px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:18px;
  background:
    radial-gradient(700px 220px at 20% 10%, rgba(246,162,26,.18), transparent 55%),
    radial-gradient(800px 260px at 85% 40%, rgba(255,106,61,.14), transparent 55%),
    rgba(255,255,255,.03);
}
.ctaCard h3{margin:0 0 6px}
.ctaCard p{margin:0}
@media (max-width:880px){.ctaCard{flex-direction:column; align-items:flex-start}}

.grid--two > div:first-child{grid-column: span 6}
.grid--two > div:last-child{grid-column: span 6}
@media (max-width:980px){
  .grid--two > div:first-child, .grid--two > div:last-child{grid-column:auto}
}

/* Product tabs */
.tab-details-product{
  margin-top:26px;
}
.tab-details-product .tab-link{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:0 0 12px;
  padding:0;
  list-style:none;
}
.tab-details-product .tab-link li a{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.25);
  color:rgba(245,246,251,.86);
  font-size:13px;
  font-weight:700;
  text-decoration:none;
  transition:background .12s ease, border-color .12s ease, transform .12s ease;
}
.tab-details-product .tab-link li.active a{
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  border-color:transparent;
  color:#111;
  transform:translateY(-1px);
}
.tab-details-product .tab-panel{
  display:none;
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.28);
  padding:18px;
}
.tab-details-product .tab-panel.active{
  display:block;
}

/* Rating stars – read + edit */
.rating-stars{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:8px;
  line-height:1;
}
.rating-stars__icons,
.rating-stars--edit{
  display:inline-flex;
  gap:2px;
}
.rating-stars__star{
  color:rgba(255,255,255,.28);
  font-size:16px;
  line-height:1;
  border:0;
  background:transparent;
  padding:0;
  cursor:default;
}
.rating-stars--edit .rating-stars__star{
  cursor:pointer;
  font-size:22px;
  color:rgba(255,255,255,.28);
}
.rating-stars__star.is-active{
  color:var(--accent);
}
.rating-stars__meta{
  font-size:13px;
}
.card--offer .rating-stars,
.card--cat .rating-stars,
.product-info .rating-stars{
  margin-top:6px;
}

/* Product comments tab */
.product-comments__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.product-comments__title{
  margin:0;
  font-size:18px;
  font-weight:800;
  letter-spacing:-.2px;
  line-height:1.3;
}
.product-comments__title .muted{
  font-weight:600;
  font-size:.92em;
}
.product-comments .commentlist{
  list-style:none;
  padding:0;
  margin:0;
}
.product-comments__item{
  margin-bottom:14px;
}
.product-comments__item:last-child{
  margin-bottom:0;
}
.product-comments__card{
  padding:16px;
}
.product-comments__meta{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:8px;
  margin:8px 0;
  justify-content:flex-start;
}
.product-comments__meta .author{
  font-size:15px;
}
.product-comments__date{
  font-size:12px;
  font-weight:500;
}
.product-comments__card .description p{
  margin:0;
}
.product-comments .comment-reply{
  margin-top:12px;
  padding-left:14px;
  border-left:2px solid var(--line);
}
.product-comments__empty{
  margin-top:12px;
}

/* Mobile polish */
@media (max-width:640px){
  .section{padding:40px 0}

  .hero{
    min-height:210px;
    align-items:flex-end;
  }
  .hero__content{
    padding:40px 0 32px;
  }

  .card--cat{
    min-height:150px;
  }
  .card__overlay{
    padding:14px 14px 12px;
    gap:6px;
  }
  .card__overlay h3{
    font-size:18px;
  }
  .meta{
    flex-direction:column;
    align-items:flex-start;
    gap:2px;
  }

  .steps{
    gap:12px;
  }
  .step{
    padding:14px;
  }

  .ctaCard{
    padding:14px;
    gap:12px;
  }
}

.logos{
  padding:14px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
.logo{
  border:1px dashed rgba(255,255,255,.18);
  border-radius: 16px;
  padding:12px;
  text-align:center;
  color:rgba(245,246,251,.85);
  background:rgba(0,0,0,.22);
  font-weight:800;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:130px;
}
/* Generic tooltip helper hook (JS positions the bubble) */
[data-tooltip]{
  position:relative;
  cursor:help;
}
@media (max-width:520px){.logos{grid-template-columns:1fr 1fr}}

.reviews{display:grid; gap:12px}
.review{padding:16px}
.review blockquote{margin:0; color:rgba(245,246,251,.92); font-weight:650}
.review figcaption{margin-top:10px; color:var(--muted); font-weight:750}

.footer{
  padding:42px 0 16px;
  border-top:1px solid var(--line);
  background:rgba(0,0,0,.22);
}
.footer__grid{
  display:grid; gap:18px;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
}
.footer__grid h4{margin:0 0 10px}
.footer__grid a{display:block; color:rgba(245,246,251,.86); padding:6px 0}
.footer__grid a:hover{color:var(--text)}
.footer__bottom{padding-top:14px; border-top:1px solid rgba(255,255,255,.06); margin-top:18px}
.newsletter{display:flex; gap:10px}
.newsletter input{
  flex:1;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  color:var(--text);
  padding:12px 12px;
  outline:none;
}
.newsletter input::placeholder{color:rgba(245,246,251,.55)}
@media (max-width:980px){.footer__grid{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.footer__grid{grid-template-columns:1fr} .newsletter{flex-direction:column}}

/* Cart page (v2) */
.cart-v2__table-wrap{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.03);
  overflow:hidden;
  margin-bottom:20px;
}
.cart-v2__table{
  width:100%;
  border-collapse:collapse;
  color:var(--text);
}
.cart-v2__table th,
.cart-v2__table td{
  padding:14px 12px;
  text-align:left;
  border-bottom:1px solid var(--line);
}
.cart-v2__table tbody td{
  vertical-align:middle;
}
.cart-v2__table thead th{
  font-weight:750;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--muted);
  background:rgba(0,0,0,.2);
}
.cart-v2__table tbody .cart_item:hover{
  background:rgba(255,255,255,.02);
}
.cart-v2__table .product-remove{width:44px; text-align:center}
.cart-v2__remove{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px; height:32px;
  border-radius:50%;
  color:var(--muted);
  font-size:20px;
  line-height:1;
  transition:color .2s, background .2s;
}
.cart-v2__remove:hover{color:#e74c3c; background:rgba(231,76,60,.15)}
.cart-v2__table .product-thumbnail{width:80px}
.cart-v2__thumb{
  width:70px; height:70px;
  object-fit:cover;
  border-radius:12px;
}
.cart-v2__name{
  font-weight:700;
  color:var(--text);
}
.cart-v2__name:hover{color:var(--accent)}
.cart-v2__attrs{
  margin-top:4px;
  font-size:12px;
  color:var(--muted);
}
.cart-v2__attrs .attributes-select{display:block}
.cart-v2__qty{
  display:inline-flex;
  align-items:center;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(0,0,0,.25);
  overflow:hidden;
}
.cart-v2__qty .quantity-minus,
.cart-v2__qty .quantity-plus{
  width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--text);
  font-size:18px;
  transition:background .2s, color .2s;
}
.cart-v2__qty .quantity-minus:hover,
.cart-v2__qty .quantity-plus:hover{background:rgba(255,255,255,.08); color:var(--accent)}
.cart-v2__qty .input-qty{
  width:48px;
  text-align:center;
  border:0;
  background:transparent;
  color:var(--text);
  font-weight:700;
  font-size:14px;
}
.cart-v2__table .product-price,
.cart-v2__table .product-subtotal{
  font-weight:700;
  font-size:15px;
  line-height:1.35;
  color:var(--text);
}
.cart-v2__table .product-price .amount,
.cart-v2__table .product-subtotal .amount{
  font-size:inherit;
  line-height:inherit;
}
.cart-v2__cell-inner{
  min-height:70px;
  display:flex;
  align-items:center;
}
.cart-v2__footer-cell{
  background:rgba(0,0,0,.2);
  padding:20px 12px !important;
  border-bottom:0 !important;
}
.cart-v2__totals .order-totals{
  display:flex;
  justify-content:space-between;
  gap:12px;
}
.cart-v2__totals .title{color:var(--muted)}
.cart-v2__grand-total{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid var(--line);
  font-size:18px;
}
.cart-v2__grand-total .total{color:var(--accent); font-weight:800}
.cart-v2__actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:flex-start;
}
.cart-v2__actions .btn{min-width:160px}
@media (max-width:768px){
  .cart-v2__table thead{display:none}
  .cart-v2__table .cart_item{display:block; padding:14px; border-bottom:1px solid var(--line)}
  .cart-v2__table .cart_item td{display:block; padding:6px 0; border:0}
  .cart-v2__table .cart_item td::before{
    content:attr(data-title);
    font-size:11px;
    color:var(--muted);
    text-transform:uppercase;
    margin-right:8px;
  }
  .cart-v2__table .product-thumbnail,
  .cart-v2__table .product-remove{display:inline-block !important; vertical-align:top}
  .cart-v2__table .product-name{font-size:14px}
}

/* Checkout v2 */
.checkout-v2{
  margin-top:24px;
}
.checkout-v2 .shipping-address-form-wrapp{
  margin-bottom:0;
}
.checkout-v2 .shipping-address-form.checkout-form{
  display:grid;
  grid-template-columns: 1fr minmax(280px, 360px);
  gap:32px 40px;
  align-items:start;
}
.checkout-v2 .row-col-1{
  min-width:0;
}
.checkout-v2 .row-col-2{
  position:sticky;
  top: 100px;
}
.checkout-v2 .title-form{
  margin:0 0 16px;
  font-size:18px;
  font-weight:800;
  color:var(--heading);
  letter-spacing:.02em;
}
.checkout-v2 .auth-form .title-form,
.checkout-v2 .payment-method .title-form,
.checkout-v2 .shipping-address .title-form{
  margin-top:28px;
}
.checkout-v2 .auth-form .title-form:first-child{margin-top:0}
.checkout-v2 .form-row{
  margin-bottom:14px;
}
.checkout-v2 .form-row .text{
  display:block;
  margin-bottom:6px;
  font-size:13px;
  font-weight:600;
  color:var(--muted);
}
.checkout-v2 .input-text{
  width:100%;
  padding:12px 14px;
  font-size:15px;
  line-height:1.4;
  color:var(--text);
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
  border-radius:14px;
  transition: border-color .14s ease, background .14s ease;
}
.checkout-v2 .input-text:focus{
  outline:none;
  border-color:var(--accent);
  background:rgba(255,255,255,.06);
}
.checkout-v2 .input-text::placeholder{color:var(--muted)}
.checkout-v2 .group-button-payment{
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
}
.checkout-v2 .group-button-payment .variant.radio,
.checkout-v2 .group-button-payment .radio{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.checkout-v2 .group-button-payment input[type="radio"]{
  margin:0;
}
.checkout-v2 .group-button-payment label{
  margin:0;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}
.checkout-v2 #delivery_types{
  display:flex;
  flex-wrap:wrap;
  gap:12px 20px;
  margin-bottom:16px;
}
.checkout-v2 #delivery_types .radio{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.checkout-v2 #delivery_types input[type="radio"]{margin:0}
.checkout-v2 #delivery_types label{margin:0; font-weight:600; cursor:pointer}
.checkout-v2 #rights-section .checkbox.checkbox--v2{
  margin-bottom:14px;
}
.checkout-v2 #rights-section .checkbox.checkbox--v2 label a{color:var(--accent)}
.checkout-v2__payments-info{
  margin-top:12px;
  padding:14px 16px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
  border-radius:14px;
  font-size:13px;
  line-height:1.5;
  color:var(--muted);
}
.checkout-v2__payments-info:empty{display:none}
.checkout-v2__delivery-form{margin-top:4px}
.checkout-delivery-v2{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.checkout-v2 .your-order{
  padding:20px;
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:18px;
}
.checkout-v2 .your-order .title-form{margin-top:0; margin-bottom:16px}
.checkout-v2 .your-order .list-product-order{
  list-style:none;
  margin:0 0 16px;
  padding:0;
  border-bottom:1px solid var(--line);
  padding-bottom:14px;
}
.checkout-v2 .your-order .product-item-order{
  display:flex;
  gap:12px;
  margin-bottom:14px;
}
.checkout-v2 .your-order .product-item-order:last-child{margin-bottom:0}
.checkout-v2 .your-order .product-thumb{
  flex-shrink:0;
  width:56px;
  height:56px;
  border-radius:12px;
  overflow:hidden;
  background:rgba(255,255,255,.06);
}
.checkout-v2 .your-order .product-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.checkout-v2 .your-order .product-order-inner{min-width:0}
.checkout-v2 .your-order .product-name{
  margin:0 0 4px;
  font-size:14px;
  font-weight:600;
}
.checkout-v2 .your-order .product-name a{color:inherit}
.checkout-v2 .your-order .product-name a:hover{color:var(--accent)}
.checkout-v2 .your-order .attributes-select{font-size:12px; color:var(--muted)}
.checkout-v2 .your-order .order-totals-section .order-totals{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
  font-size:14px;
}
.checkout-v2 .your-order .order-totals-section .title{color:var(--muted)}
.checkout-v2 .your-order .order-subtotal .total{font-weight:800; color:var(--accent)}
.checkout-v2__actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:flex-start;
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid var(--line);
}
.checkout-v2__actions .btn{min-width:160px}
@media (max-width:980px){
  .checkout-v2 .shipping-address-form.checkout-form{
    grid-template-columns:1fr;
  }
  .checkout-v2 .row-col-2{position:static}
}

/* Drawer */
.drawer{position:fixed; inset:0; pointer-events:none; z-index:80}
.drawer.is-open{pointer-events:auto}
.drawer__backdrop{
  position:absolute; inset:0;
  background:rgba(0,0,0,.6);
  opacity:0;
  transition: opacity .16s ease;
}
.drawer.is-open .drawer__backdrop{opacity:1}
.drawer__panel{
  position:absolute; right:0; top:0; bottom:0;
  width:min(360px, 92vw);
  background:rgba(12,12,16,.92);
  border-left:1px solid rgba(255,255,255,.12);
  transform: translateX(102%);
  transition: transform .18s ease;
  padding:14px;
  backdrop-filter: blur(12px);
}
.drawer.is-open .drawer__panel{transform: translateX(0)}
.drawer__head{display:flex; align-items:center; justify-content:space-between; gap:10px; padding:6px 0 10px}
.drawer__nav{display:grid; gap:6px; padding:8px 0 14px}
.drawer__nav a{
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
}
.drawer__nav a:hover{background:rgba(255,255,255,.06)}
.drawer__cta{padding-top:8px; border-top:1px solid rgba(255,255,255,.08)}

/* Fancybox (product gallery lightbox) – v2: transparent fade overlay + visible close */
.fancybox-overlay{
  background: rgba(0,0,0,.9) !important;
  background-image: none !important;
}
.fancybox-lock body{
  overflow: visible !important;
}
.fancybox-overlay-fixed{
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100vh !important;
}
.fancybox-skin{
  background: #0b0c10 !important;
  color: #f5f6fb;
}
.fancybox-close{
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,.6) !important;
  background-image: none !important;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  transition: background .2s ease, transform .2s ease;
}
.fancybox-close:hover{
  background: rgba(0,0,0,.85) !important;
  transform: scale(1.08);
}
.fancybox-close::before,
.fancybox-close::after{
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  margin: -1px 0 0 -11px;
  background: #fff;
  border-radius: 1px;
}
.fancybox-close::before{ transform: rotate(45deg); }
.fancybox-close::after{ transform: rotate(-45deg); }

/* Order result (success / unsuccess) – v2 */
.order-result-v2.card{
  overflow: visible;
}
.order-result-v2__icon{
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  position: relative;
}
.order-result-v2__icon--success{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.order-result-v2__icon--success::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 22px;
  margin: -14px 0 0 -7px;
  border: 3px solid #121212;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}
.order-result-v2__icon--error{
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}
.order-result-v2__icon--error::before,
.order-result-v2__icon--error::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 3px;
  margin: -1px 0 0 -12px;
  background: #fff;
  border-radius: 2px;
}
.order-result-v2__icon--error::before{ transform: rotate(45deg); }
.order-result-v2__icon--error::after{ transform: rotate(-45deg); }
.order-result-v2__title{
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  color: var(--heading);
}
.order-result-v2__message{
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.order-result-v2__message p{ margin: 0 }
.order-result-v2__alert{
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
}
.order-result-v2__alert--error{
  background: rgba(231,76,60,.12);
  border: 1px solid rgba(231,76,60,.35);
  color: #f5a0a0;
}

/* Voucher check page – v2 */
.voucher-v2.card{ overflow: visible; }
.voucher-v2__alert{
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 24px;
}
.voucher-v2__alert--success{
  background: rgba(39,174,96,.12);
  border: 1px solid rgba(39,174,96,.35);
  color: #7dcea0;
}
.voucher-v2__alert--error{
  background: rgba(231,76,60,.12);
  border: 1px solid rgba(231,76,60,.35);
  color: #f5a0a0;
}
.voucher-v2__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.voucher-v2__logo img{
  display: block;
  max-width: 180px;
  height: auto;
}
.voucher-v2__meta{ margin: 0 }
.voucher-v2__meta-row{
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
.voucher-v2__meta-row:last-child{ margin-bottom: 0 }
.voucher-v2__meta-row strong{ color: var(--text) }
.voucher-v2__body{
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.voucher-v2__thumb{
  flex-shrink: 0;
  width: 160px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
}
.voucher-v2__thumb img{
  display: block;
  width: 100%;
  height: auto;
}
.voucher-v2__details{ flex: 1; min-width: 0 }
.voucher-v2__product-name{
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.3;
}
.voucher-v2__detail{
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
.voucher-v2__detail:last-child{ margin-bottom: 0 }
.voucher-v2__qrwrap{
  flex-shrink: 0;
  text-align: right;
}
.voucher-v2__qr{
  display: block;
  width: 100px;
  height: 100px;
  object-fit: contain;
}
@media (max-width: 640px){
  .voucher-v2__head{ flex-direction: column; align-items: flex-start }
  .voucher-v2__body{ flex-direction: column }
  .voucher-v2__qrwrap{ align-self: flex-start }
}

/* jQuery UI Autocomplete – v2 dark theme (checkout град/адрес) */
.ui-autocomplete{
  background: #0e0e12 !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 40px rgba(0,0,0,.6) !important;
  padding: 10px 0 !important;
  max-height: 280px;
  overflow-y: auto;
}
.ui-menu.ui-widget.ui-widget-content{
  background: #0e0e12 !important;
  border: 0 !important;
  color: var(--text) !important;
  padding: 0 8px !important;
}
.ui-menu .ui-menu-item{
  border: 0 !important;
  margin: 0 0 4px !important;
  border-radius: 10px !important;
  overflow: hidden;
}
.ui-menu .ui-menu-item:last-child{ margin-bottom: 0 !important }
.ui-menu .ui-menu-item-wrapper{
  padding: 12px 16px !important;
  color: var(--text) !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  transition: background .12s ease, color .12s ease;
}
.ui-menu .ui-menu-item-wrapper:hover,
.ui-menu .ui-state-focus .ui-menu-item-wrapper,
.ui-menu .ui-state-active .ui-menu-item-wrapper{
  background: rgba(255,255,255,.08) !important;
  color: var(--accent) !important;
}

.section.section--affiliate-banner{
  padding-top: 0;
}
.affiliate-banner{display:block; line-height:0}
.affiliate-banner img{
  display:block;
  width:100%;
  height:auto;
  max-width:100%;
  border-radius:12px;
}
