/* ===============================
PRODUCT_STYLES.CSS — CLEAN VERSION 2026+
структурирован и без дублей
улучшен: premium ui / glass / luxury glow / smoother interactions
=============================== */

:root{
  --bg:#0b0c0f;
  --panel:#111319;
  --panel2:#151926;
  --text:#f6f7fb;
  --muted:rgba(246,247,251,.68);
  --line:rgba(255,255,255,.10);
  --accent:#ffb300;
  --accent2:#ff6a00;
  --shadow:0 22px 80px rgba(0,0,0,.60);
  --shadow2:0 12px 36px rgba(0,0,0,.38);
  --radius:18px;
  --ring:0 0 0 3px rgba(255,179,0,.18);
}

*{box-sizing:border-box}

/* =========================
GLOBAL SMOOTH UI
========================= */

a,
button,
.card,
.option-item,
.media-thumb img,
.media-thumb video,
.cart-btn,
.sticky-bar,
.info-card,
.product-container,
.product-media,
.product-info,
.stock-status{
  transition:
    background .25s ease,
    border-color .25s ease,
    color .2s ease,
    transform .2s ease,
    box-shadow .25s ease,
    opacity .2s ease,
    filter .25s ease;
}

/* =========================
PAGE CONTAINER
========================= */

.container{
  padding:30px;
  max-width:1200px;
  margin:auto;
}

/* =========================
PRODUCT GRID
========================= */

.product-container{
  display:flex;
  flex-wrap:wrap;
  gap:40px;
  align-items:flex-start;
}

/* =========================
MEDIA GALLERY
========================= */

.product-media{
  flex:1;
  min-width:280px;
}

.media-main{
  width:100%;
  height:420px;
  object-fit:cover;
  border-radius:22px;
  cursor:pointer;
  background:#000;
  border:1px solid rgba(255,255,255,.12);
  transition:
opacity .18s ease,
transform .25s ease;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 24px 80px rgba(0,0,0,.55);
  position:relative;
  overflow:hidden;
}

/* luxury glow effect */
.product-media-main{
  position:relative;
  border-radius:24px;
}

.product-media-main::before{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius:28px;
  background:
    radial-gradient(520px 180px at 18% 0%, rgba(255,210,120,.18), transparent 48%),
    radial-gradient(520px 180px at 82% 100%, rgba(255,106,0,.10), transparent 48%);
  filter:blur(20px);
  opacity:.95;
  pointer-events:none;
  z-index:0;
}

.product-media-main > *{
  position:relative;
  z-index:1;
}

.media-main::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(700px 260px at 18% 0%, rgba(255,200,120,.12), transparent 55%),
    radial-gradient(900px 420px at 50% 120%, rgba(0,0,0,.45), transparent 55%);
}

.product-media-main:hover .media-main{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 28px 90px rgba(0,0,0,.62),
    0 0 0 1px rgba(255,179,0,.08);
}

.media-thumbs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.media-thumb{
  border:none;
  padding:0;
  background:transparent;
  cursor:pointer;
  width:78px;
  height:66px;
  border-radius:16px;
  overflow:hidden;
}

.media-thumb img,
.media-thumb video{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
}

.media-thumb:hover img,
.media-thumb:hover video{
  transform:scale(1.05);
  border-color:rgba(255,179,0,.25);
  box-shadow:0 10px 24px rgba(0,0,0,.22);
}

.media-thumb.active img,
.media-thumb.active video{
  border-color:rgba(255,179,0,.85);
  box-shadow:0 0 0 2px rgba(255,179,0,.18);
}

/* =========================
PRODUCT INFO
========================= */

.product-info{
  flex:1;
  min-width:280px;
}

.product-info h1{
  margin-top:0;
  font-size:28px;
  font-weight:950;
}

/* =========================
PRICE BLOCK
========================= */

.price-container,
.price-strip{
  display:flex;
  align-items:baseline;
  gap:10px;
  margin:12px 0;
  padding:12px;
  border-radius:18px;
  background:
    radial-gradient(820px 260px at 20% 0%, rgba(255,200,120,.14), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.34));
  border:1px solid rgba(255,255,255,.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 12px 34px rgba(0,0,0,.20);
}

.old-price{
  text-decoration:line-through;
  color:rgba(246,247,251,.55);
  font-size:14px;
}

.price,
.price-value{
  font-size:22px;
  font-weight:950;
  color:var(--accent);
}

/* =========================
ADD TO CART BUTTON
========================= */

.cart-btn{
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:#111;
  font-weight:950;
  font-size:16px;
  padding:13px 20px;
  border-radius:18px;
  border:none;
  cursor:pointer;
  margin-top:14px;
  box-shadow:0 18px 50px rgba(255,179,0,.16);
  position:relative;
  overflow:hidden;
}

.cart-btn::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(115deg, transparent 20%, rgba(255,255,255,.28) 50%, transparent 80%);
  transform:translateX(-120%);
  transition:transform .55s ease;
}

.cart-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 58px rgba(255,179,0,.22);
}

.cart-btn:hover::after{
  transform:translateX(120%);
}

.cart-btn:active{
  transform:translateY(0);
}

.cart-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.cart-btn.in-cart{
  background:linear-gradient(135deg,#28d17c,#18aa5b) !important;
}

/* =========================
INFO CARD
========================= */

.info-card{
  margin-top:18px;
  padding:18px;
  border-radius:22px;
  background:
    radial-gradient(1000px 320px at 15% 0%, rgba(255,179,0,.08), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.20));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 14px 38px rgba(0,0,0,.22);
}

.info-card h3{
  margin:0 0 12px;
  font-size:16px;
  font-weight:950;
  color:var(--accent);
}

.info-card ul{
  list-style:none;
  padding:0;
  margin:0;
}

.info-card li{
  padding:9px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
}


/* =========================
OPTIONS
========================= */
/* FIX MARKETPLACE OPTIONS LAYOUT */
.option-top-row{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
    margin-bottom:8px;
}

.option-bottom-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
}

@media (max-width:640px){

    .option-top-row,
    .option-bottom-row{
        flex-direction:column;
        align-items:flex-start;
    }

    .option-price{
        font-size:18px;
    }

}


.options-list{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:16px;
}

.option-item{
    position:relative;
    display:flex;
    align-items:center;
    gap:14px;

    width:100%;
    min-height:88px;

    padding:14px;

    border-radius:22px;

    background:#101114;
    border:2px solid rgba(255,179,0,.08);

    transition:.2s ease;
    overflow:hidden;
}

.option-item.active{
    border-color:#ffb300;
    background:linear-gradient(
        135deg,
        rgba(255,179,0,.12),
        rgba(255,179,0,.03)
    );
    box-shadow:
        0 0 0 1px rgba(255,179,0,.25),
        0 10px 30px rgba(0,0,0,.35);
}

.option-item.out{
    opacity:.45;
    filter:grayscale(1);
}

.option-image-wrap{
    width:64px;
    height:64px;
    min-width:64px;

    border-radius:16px;
    overflow:hidden;

    background:#1a1a1a;
}

.option-image{
    width:100%;
    height:100%;
    object-fit:cover;
}

.option-content{
    flex:1;
    min-width:0;
}

.option-title{
    font-size:17px;
    font-weight:800;
    color:#fff;

    margin-bottom:6px;

    line-height:1.2;
}

.option-meta{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;

    margin-bottom:6px;
}

.option-badge{
    padding:5px 10px;
    border-radius:999px;

    font-size:11px;
    font-weight:700;
}

.option-badge.in{
    background:rgba(0,255,120,.12);
    color:#7dffb0;
}

.option-badge.out{
    background:rgba(255,70,70,.12);
    color:#ff9090;
}

.option-price{
    font-size:22px;
    font-weight:900;
    color:#ffcc5c;
}

.option-stock-text{
    font-size:13px;
    color:rgba(255,255,255,.6);
}

.option-item.active::after{
    content:'✓';

    position:absolute;
    top:12px;
    right:12px;

    width:26px;
    height:26px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#ffb300;
    color:#000;

    font-weight:900;
}

/* =========================
STOCK STATUS
========================= */

.stock-status{
  margin:12px 0;
  padding:10px 12px;
  border-radius:14px;
  font-weight:900;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  backdrop-filter:blur(8px);
}

.stock-status.in{
  color:#b9ffd6;
  border-color:rgba(36,199,111,.28);
  box-shadow:0 0 0 1px rgba(36,199,111,.08);
}

.stock-status.low{
  color:#ffe3a6;
  border-color:rgba(255,179,0,.28);
  box-shadow:0 0 0 1px rgba(255,179,0,.08);
}

.stock-status.out{
  color:#ffb3b3;
  border-color:rgba(255,77,77,.28);
  box-shadow:0 0 0 1px rgba(255,77,77,.08);
}

/* =========================
LIGHTBOX
========================= */

#lightbox{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.90);
  z-index:9999998;
  justify-content:center;
  align-items:center;
  backdrop-filter:blur(8px);
}

#lightbox img,
#lightbox video{
  max-width:90vw;
  max-height:85vh;
  border-radius:18px;
  box-shadow:0 30px 80px rgba(0,0,0,.45);
}

#lb-close{
  position:absolute;
  top:22px;
  right:26px;
  color:white;
  font-size:30px;
  cursor:pointer;
}

/* =========================
LIGHTBOX NAV BUTTONS FIX
========================= */

#lb-prev,
#lb-next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:70px;
  height:70px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:34px;
  color:#fff;
  cursor:pointer;
  user-select:none;
  border-radius:50%;
  background:rgba(0,0,0,.35);
  backdrop-filter:blur(6px);
}

#lb-prev:hover,
#lb-next:hover{
  background:rgba(0,0,0,.55);
}

#lb-prev{
  left:10px;
}

#lb-next{
  right:10px;
}

@media (max-width:768px){
  #lb-prev,
  #lb-next{
    width:90px;
    height:90px;
    font-size:30px;
  }

  #lb-prev{
    left:0;
  }

  #lb-next{
    right:0;
  }
}

/* =========================
STICKY BAR
========================= */

.sticky-bar{
  display:none;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  border-top:1px solid rgba(255,255,255,.10);
  background:rgba(10,11,14,.72);
  backdrop-filter:blur(14px);
  box-shadow:0 -10px 28px rgba(0,0,0,.18);
  transform:translateY(0);
}

.sticky-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex:1 1 auto;
}

.sticky-thumb{
  width:40px;
  height:40px;
  object-fit:cover;
  border-radius:12px;
  flex:0 0 auto;
  box-shadow:0 8px 18px rgba(0,0,0,.18);
}

.sticky-meta{
  min-width:0;
  flex:1 1 auto;
}

.sticky-title{
  font-size:12px;
  font-weight:950;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.sticky-price{
  display:flex;
  gap:6px;
  align-items:baseline;
  margin-top:2px;
}

.sticky-old{
  font-size:11px;
  color:rgba(246,247,251,.55);
  text-decoration:line-through;
}

.sticky-new{
  color:var(--accent);
  font-weight:950;
  font-size:13px;
}

.sticky-bar .cart-btn,
#stickyAddToCart{
  flex:0 0 auto;
  width:auto;
  min-width:110px;
  padding:10px 12px;
  font-size:13px;
  line-height:1;
  border-radius:14px;
  margin-top:0;
  box-shadow:0 10px 28px rgba(255,179,0,.16);
}

@media (max-width:768px){
  .sticky-bar{
    display:flex;
  }
}

/* =========================
PREMIUM CARD POLISH
========================= */

.card,
.product-container,
.admin-card,
.info-card{
  box-shadow:
    0 1px 2px rgba(0,0,0,.04),
    0 4px 12px rgba(0,0,0,.06),
    0 12px 32px rgba(0,0,0,.05);
}

.card:hover{
  transform:translateY(-6px) scale(1.01);
  box-shadow:
    0 30px 80px rgba(0,0,0,.60),
    0 10px 40px rgba(0,0,0,.35);
}

/* =========================
DESKTOP PRODUCT REBALANCE
========================= */
.product-container{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);
  gap:28px;
  align-items:start;
}

.product-info{
  min-width:0;
}

.product-summary-card{
  padding:22px;
  border-radius:24px;
  background:
    radial-gradient(900px 260px at 14% 0%, rgba(255,179,0,.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.26));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 16px 44px rgba(0,0,0,.24);
}

.product-meta-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
  flex-wrap:wrap;
}

.product-category-badge{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:var(--text);
  text-decoration:none;
  font-size:13px;
  font-weight:800;
}

.stock-pill{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:900;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
}
.stock-pill.in{color:#b9ffd6;border-color:rgba(36,199,111,.28);}
.stock-pill.low{color:#ffe3a6;border-color:rgba(255,179,0,.28);}
.stock-pill.out{color:#ffb3b3;border-color:rgba(255,77,77,.28);}

.product-mini-features{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:16px 0 6px;
}

.mini-feature{
  padding:12px 14px;
  border-radius:16px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  font-size:13px;
  line-height:1.35;
  color:var(--text);
}

.product-side-cards{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:14px;
}

.compact-info-card{
  margin-top:0;
}

.compact-info-card li:last-child,
.specs-list li:last-child{
  border-bottom:none;
}

.product-details-grid{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);
  gap:24px;
  margin-top:26px;
  align-items:start;
}

.product-description-card,
.product-specs-card{
  margin-top:0;
}

.product-description-text{
  color:var(--text);
  line-height:1.7;
  font-size:15px;
}

.specs-list{
  list-style:none;
  padding:0;
  margin:0;
}

.specs-list li{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.specs-list li span{
  color:var(--muted);
}

.specs-list li strong{
  color:var(--text);
  text-align:right;
}

@media (min-width: 1025px){
  .product-info{
    position:sticky;
    top:96px;
  }
}

@media (max-width: 1024px){
  .product-container,
  .product-details-grid,
  .product-mini-features,
  .product-side-cards{
    grid-template-columns:1fr;
  }

  .product-info{
    position:static;
  }
}

@media (max-width: 768px){
  .product-summary-card{
    padding:18px;
    border-radius:20px;
  }

  .product-mini-features,
  .product-side-cards,
  .product-details-grid{
    gap:12px;
  }

  .specs-list li{
    flex-direction:column;
    align-items:flex-start;
  }

  .specs-list li strong{
    text-align:left;
  }
}
