@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* =============================================
   DARK THEME (default)
   ============================================= */
:root {
  --bg: #040811;
  --bg2: #08111e;
  --bg3: #0d1220;
  --panel: rgba(10,18,30,.50);
  --panel-2: rgba(10,18,30,.62);
  --card-bg: linear-gradient(180deg, rgba(13,18,28,.78), rgba(10,15,23,.88));
  --card-border: rgba(174,196,214,.09);
  --header-bg: rgba(4,8,17,.95);
  --header-border: rgba(220,60,60,.08);
  --stroke: rgba(200,50,50,.15);
  --stroke-2: rgba(200,50,50,.25);
  --text: #f8f9fa;
  --text-2: #f0f3f6;
  --muted: #9aa3ad;
  --muted2: #6e7a87;
  --input-bg: rgba(8,13,22,.7);
  --input-border: rgba(255,255,255,.08);
  --red: #e05050;
  --red-2: #c03535;
  --red-glow: rgba(220,60,60,.30);
  --green: #7ec47c;
  --shadow: 0 12px 35px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.04);
  --radius: 18px;
  --body-bg1: #02060d;
  --body-bg2: #050911;
  --body-bg3: #03070f;
  --nav-link: #dfe5eb;
  --footer-bg: rgba(4,8,17,.97);
  --search-bg: #0d1520;
  --admin-sidebar-bg: rgba(3,6,14,.98);
  --table-hover: rgba(220,60,60,.02);
  --badge-text: #fff;
}

/* =============================================
   LIGHT THEME
   ============================================= */
[data-theme="light"] {
  --bg: #f5f6fa;
  --bg2: #eef0f5;
  --bg3: #ffffff;
  --panel: rgba(255,255,255,.8);
  --panel-2: rgba(255,255,255,.9);
  --card-bg: linear-gradient(180deg, #ffffff, #f8f9fc);
  --card-border: rgba(0,0,0,.08);
  --header-bg: rgba(255,255,255,.97);
  --header-border: rgba(220,60,60,.15);
  --stroke: rgba(200,50,50,.2);
  --stroke-2: rgba(200,50,50,.3);
  --text: #1a1d23;
  --text-2: #1a1d23;
  --muted: #5a6270;
  --muted2: #7a8290;
  --input-bg: #ffffff;
  --input-border: rgba(0,0,0,.12);
  --red: #d03030;
  --red-2: #b02020;
  --red-glow: rgba(200,40,40,.2);
  --green: #2e9e4f;
  --shadow: 0 4px 20px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.8);
  --radius: 18px;
  --body-bg1: #f5f6fa;
  --body-bg2: #eef0f5;
  --body-bg3: #f0f2f7;
  --nav-link: #2a2d35;
  --footer-bg: #1a1d23;
  --search-bg: #ffffff;
  --admin-sidebar-bg: #1a1d23;
  --table-hover: rgba(200,40,40,.03);
  --badge-text: #fff;
}
*{box-sizing:border-box;margin:0;padding:0;}
html,body{height:100%;}
body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  font-family:'Inter',system-ui,sans-serif;
  color:var(--text);
  background: linear-gradient(180deg, var(--body-bg1) 0%, var(--body-bg2) 45%, var(--body-bg3) 100%);
  overflow-x:hidden;
  transition: background .3s, color .3s;
}
body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.18;
  background:
    radial-gradient(circle at 12% 22%, rgba(200,40,40,.15) 0, transparent 25%),
    radial-gradient(circle at 72% 20%, rgba(180,30,30,.10) 0, transparent 24%),
    repeating-linear-gradient(90deg, rgba(180,30,30,.02) 0 1px, transparent 1px 80px);
  mix-blend-mode:screen;
}
[data-theme="light"] body:before { opacity: .05; }
a{text-decoration:none;color:inherit;}
img{max-width:100%;}

/* PAGE WRAPPER */
.page{
  width:min(1185px, calc(100% - 64px));
  margin:0 auto;
  padding:20px 0 44px;
  position:relative;
  flex:1;
}

/* HEADER */
.header{
  height:88px;
  display:flex;
  align-items:center;
  background:var(--header-bg);
  border-bottom:1px solid var(--header-border);
  position:sticky;
  top:0;
  z-index:100;
  backdrop-filter:blur(12px);
  transition: background .3s, border-color .3s;
}
.header-inner{
  width:min(1185px, calc(100% - 64px));
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  width:100%;
  max-width:1185px;
  padding:0 32px;
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
}
.brand-mark{
  width:40px;
  height:52px;
  display:block;
  filter:drop-shadow(0 0 16px rgba(198,231,194,.12));
}
.brand-text{line-height:1;}
.brand-title{
  font-size:17px;
  font-weight:700;
  letter-spacing:.01em;
  color:#eef2f5;
}
.brand-sub{
  margin-top:7px;
  font-size:11px;
  color:#8692a0;
  font-weight:500;
}
.nav{
  display:flex;
  align-items:center;
  gap:41px;
  margin-left:34px;
}
.nav a{
  color:var(--nav-link);
  text-decoration:none;
  font-size:15px;
  font-weight:500;
  opacity:.88;
  transition:.2s;
}
.nav a:hover{opacity:1;color:var(--red);}
.head-right{
  display:flex;
  align-items:center;
  gap:14px;
}
.icon-btn{
  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(12,18,28,.32);
  display:grid;
  place-items:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  cursor:pointer;
  transition:.2s;
  position:relative;
}
.icon-btn:hover{border-color:rgba(220,60,60,.25);}
.search-dropdown{
  display:none;
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  width:280px;
  background:#0d1520;
  border:1px solid rgba(151,185,159,.15);
  border-radius:12px;
  padding:8px;
  z-index:200;
}
.search-dropdown input{
  width:100%;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  border-radius:8px;
  padding:10px 14px;
  color:#fff;
  font-size:14px;
  outline:none;
  font-family:'Inter',sans-serif;
}
.search-dropdown input:focus{border-color:rgba(184,229,174,.3);}
#searchResults{
  margin-top:6px;
  max-height:260px;
  overflow-y:auto;
}
.icon-btn.open .search-dropdown{display:block;}
.auth{
  display:flex;
  align-items:center;
  border:1px solid rgba(220,60,60,.15);
  background:rgba(10,16,25,.5);
  border-radius:12px;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.auth a,.auth button{
  height:42px;
  padding:0 26px;
  border:0;
  background:transparent;
  color:#f0f4f8;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  display:flex;
  align-items:center;
  white-space:nowrap;
  transition:.2s;
}
.auth a:hover{color:#e05050;}
.auth .primary{
  background:linear-gradient(180deg, rgba(210,55,55,.92), rgba(165,30,30,.88));
  color:#fff;
  box-shadow:0 0 26px rgba(210,55,55,.32);
}
.auth .primary:hover{box-shadow:0 0 38px rgba(210,55,55,.50);}
.cart-wrap{
  position:relative;
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  cursor:pointer;
}
.cart-badge{
  position:absolute;
  top:-2px;
  right:-1px;
  min-width:19px;
  height:19px;
  padding:0 4px;
  border-radius:999px;
  background:linear-gradient(180deg,#e86060,#c03030);
  color:#fff;
  font-size:11px;
  font-weight:700;
  display:grid;
  place-items:center;
  box-shadow:0 0 14px rgba(210,60,60,.35);
}
.top-line{
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(156,173,199,.18) 12%, rgba(156,173,199,.12) 88%, transparent);
  margin-top:6px;
}

/* HERO */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:1.02fr .98fr;
  min-height:456px;
  padding-top:52px;
}
.copy{
  padding-top:42px;
  position:relative;
  z-index:2;
}
.copy h1{
  margin:0;
  font-size:77px;
  line-height:.98;
  letter-spacing:-.055em;
  font-weight:800;
  max-width:560px;
}
.copy h1 .dot{
  color:#e05050;
  text-shadow:0 0 24px rgba(220,60,60,.25);
}
.copy p{
  margin:28px 0 0;
  max-width:575px;
  color:#8d96a3;
  font-size:18px;
  line-height:1.68;
  letter-spacing:-.01em;
}
.copy p{
  margin:28px 0 0;
  max-width:575px;
  color:var(--muted);
  font-size:18px;
  line-height:1.68;
  letter-spacing:-.01em;
}
.cta-row{
  display:flex;
  gap:16px;
  margin-top:34px;
}
.btn{
  height:58px;
  padding:0 34px;
  border-radius:13px;
  border:1px solid rgba(184,225,181,.10);
  font-size:17px;
  font-weight:600;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:14px;
  letter-spacing:-.01em;
  transition:.25s;
  font-family:'Inter',sans-serif;
}
.btn-main{
  background:linear-gradient(180deg,#d94848,#aa2828);
  color:#fff;
  box-shadow:0 0 35px rgba(200,50,50,.30), inset 0 1px 0 rgba(255,255,255,.12);
}
.btn-main:hover{box-shadow:0 0 52px rgba(200,50,50,.50), inset 0 1px 0 rgba(255,255,255,.12);}
.btn-dark{
  background:rgba(15,20,31,.42);
  color:#f3f5f7;
  box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,.08);
}
.btn-dark:hover{border-color:rgba(220,60,60,.30);color:#e05050;}
/* Маленькие кнопки для других страниц */
.btn-sm{height:36px;padding:0 16px;font-size:13px;border-radius:9px;}
.btn-danger{background:#c0392b;color:#fff;border-color:transparent;}
.btn-danger:hover{box-shadow:0 0 20px rgba(192,57,43,.4);}
.social-proof{
  display:flex;
  align-items:center;
  gap:15px;
  margin-top:26px;
}
.avatars{display:flex;}
.avatars span{
  width:37px;
  height:37px;
  border-radius:50%;
  border:2px solid #09111b;
  background-size:cover;
  background-position:center;
  margin-left:-10px;
  box-shadow:0 0 0 1px rgba(255,255,255,.05);
  background-color:#1a2535;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
}
.avatars span:first-child{margin-left:0;}
.social-proof small{
  font-size:15px;
  color:#9ca5af;
}
.hero-visual{
  position:relative;
  overflow:visible;
}
.hero-glow{
  position:absolute;
  right:42px;
  top:72px;
  width:470px;
  height:420px;
  background:radial-gradient(circle at 40% 36%, rgba(200,50,50,.14), transparent 55%);
  filter:blur(22px);
}
.arc{
  position:absolute;
  right:32px;
  top:8px;
  width:565px;
  height:565px;
  border-radius:50%;
  border:1px solid rgba(220,60,60,.14);
  box-shadow:0 0 80px rgba(200,50,50,.07);
  clip-path:inset(0 0 54% 0);
  filter:drop-shadow(0 0 18px rgba(200,50,50,.09));
}
.arc:before{
  content:"";
  position:absolute;
  inset:-4px;
  border-radius:50%;
  border:1px solid rgba(220,60,60,.07);
}
.bag-wrap{
  position:absolute;
  right:8px;
  top:48px;
  width:700px;
  z-index:2;
  filter:drop-shadow(0 34px 44px rgba(0,0,0,.35));
}
.bag{width:100%;display:block;}

/* FEATURES */
.features{
  position:relative;
  margin-top:14px;
  z-index:5;
}
.features-box{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  min-height:132px;
  border:1px solid rgba(220,60,60,.10);
  border-radius:22px;
  background:linear-gradient(180deg, rgba(12,18,29,.62), rgba(9,15,24,.72));
  backdrop-filter:blur(16px);
  box-shadow:0 0 0 1px rgba(255,255,255,.015) inset, 0 24px 60px rgba(0,0,0,.28);
  overflow:hidden;
}
.feature{
  display:flex;
  align-items:center;
  gap:22px;
  padding:0 40px;
  position:relative;
  cursor:pointer;
  transition:.2s;
}
.feature:hover{background:rgba(220,60,60,.03);}
.feature:not(:last-child):after{
  content:"";
  position:absolute;
  right:0;
  top:24px;
  bottom:24px;
  width:1px;
  background:linear-gradient(180deg, transparent, rgba(220,60,60,.08), transparent);
}
.fi{
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  color:#7ec47c;
  opacity:.95;
  flex-shrink:0;
}
.fi svg{
  width:44px;
  height:44px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  filter:drop-shadow(0 0 10px rgba(126,196,124,.12));
}
.ft strong{
  display:block;
  font-size:15px;
  font-weight:600;
  color:#edf1f5;
  letter-spacing:-.01em;
}
.ft span{
  display:block;
  margin-top:10px;
  font-size:13px;
  color:#788391;
}

/* SECTION HEAD */
.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:34px;
  margin-bottom:18px;
}
.section-head h2{
  margin:0;
  font-size:21px;
  font-weight:700;
  letter-spacing:-.02em;
}
.more{
  display:flex;
  align-items:center;
  gap:12px;
  color:#d7dde4;
  text-decoration:none;
  font-size:15px;
  transition:.2s;
}
.more:hover{color:#e05050;}
.more svg{
  width:18px;
  height:18px;
  stroke:#b0bcc8;
  fill:none;
  stroke-width:1.7;
}

/* PRODUCT CARDS */
.products{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}
.card{
  position:relative;
  min-height:272px;
  border-radius:20px;
  padding:20px 18px 18px;
  background:var(--card-bg);
  border:1px solid var(--card-border);
  box-shadow:var(--shadow);
  overflow:hidden;
  cursor:pointer;
  transition:.25s;
}
.card:before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 50% 12%, rgba(61,95,180,.11), transparent 35%);
  pointer-events:none;
}
.card:hover{transform:translateY(-4px);box-shadow:0 0 0 1px rgba(184,229,174,.12) inset, 0 24px 50px rgba(0,0,0,.32);}
.card-media{
  height:136px;
  display:grid;
  place-items:center;
  position:relative;
  margin-bottom:12px;
}
.card-media:after{
  content:"";
  position:absolute;
  left:18%;
  right:18%;
  bottom:9px;
  height:18px;
  border-radius:50%;
  background:radial-gradient(ellipse at center, rgba(0,0,0,.48), transparent 72%);
  filter:blur(6px);
}
.card img{
  position:relative;
  z-index:2;
  max-width:84%;
  max-height:125px;
  object-fit:contain;
  filter:drop-shadow(0 14px 18px rgba(0,0,0,.35));
}
.card .cat{font-size:12px;color:#808b98;}
.card .name{
  margin-top:8px;
  font-size:16px;
  font-weight:600;
  color:var(--text-2);
  letter-spacing:-.015em;
}
.card .meta{margin-top:8px;font-size:14px;color:var(--muted2);}
.card .price{
  margin-top:14px;
  font-size:18px;
  font-weight:700;
  letter-spacing:-.02em;
}
.plus{
  position:absolute;
  right:16px;
  bottom:14px;
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(200,80,80,.18);
  background:linear-gradient(180deg, rgba(180,40,40,.55), rgba(130,20,20,.75));
  color:#fff;
  font-size:33px;
  line-height:1;
  display:grid;
  place-items:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 0 12px rgba(200,60,60,.15);
  cursor:pointer;
  transition:.2s;
}
.plus:hover{border-color:rgba(200,80,80,.4);box-shadow:0 0 20px rgba(200,60,60,.30), inset 0 1px 0 rgba(255,255,255,.08);}

/* BOTTOM STRIP */
.bottom-strip{
  margin-top:28px;
  min-height:106px;
  border-radius:22px;
  border:1px solid rgba(165,188,209,.12);
  background:linear-gradient(180deg, rgba(11,16,25,.60), rgba(9,14,23,.72));
  box-shadow:0 0 0 1px rgba(255,255,255,.015) inset, 0 16px 34px rgba(0,0,0,.24);
  display:grid;
  grid-template-columns:1.25fr 1.55fr 1fr;
  overflow:hidden;
  position:relative;
}
.bottom-strip:before{
  content:"";
  position:absolute;
  left:-8%;top:10%;width:32%;height:80%;
  background:radial-gradient(circle at 30% 50%, rgba(172,227,162,.15), transparent 58%);
  filter:blur(18px);
}
.bottom-strip:after{
  content:"";
  position:absolute;
  right:-4%;top:8%;width:26%;height:82%;
  background:radial-gradient(circle at 50% 50%, rgba(172,227,162,.12), transparent 58%);
  filter:blur(18px);
}
.bottom-left,.bottom-steps,.bottom-phone{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
}
.bottom-left{padding:0 28px;gap:18px;}
.mini-mark{width:38px;height:50px;color:#b7dfad;}
.bottom-left strong{display:block;font-size:17px;font-weight:600;line-height:1.35;}
.bottom-steps{
  justify-content:center;
  gap:18px;
  border-left:1px solid rgba(166,188,209,.08);
  border-right:1px solid rgba(166,188,209,.08);
}
.step{display:flex;align-items:center;gap:14px;}
.circle{
  width:49px;height:49px;border-radius:50%;
  border:1px solid rgba(220,60,60,.30);
  display:grid;place-items:center;
  color:#f8f9fa;
  background:rgba(8,13,22,.42);
  box-shadow:0 0 0 5px rgba(200,50,50,.05), inset 0 1px 0 rgba(255,255,255,.04);
  font-weight:600;
  flex-shrink:0;
}
.step .txt{font-size:14px;line-height:1.3;color:#eef1f3;}
.arr{color:#7da585;font-size:22px;margin:0 2px;}
.bottom-phone{
  padding:0 34px;
  justify-content:center;
  flex-direction:column;
  align-items:flex-start;
}
.bottom-phone strong{font-size:18px;color:#e05050;letter-spacing:-.02em;}
.bottom-phone span{margin-top:8px;font-size:13px;color:#7f8a98;}

/* FILTERS (catalog) */
.filters{display:flex;gap:12px;margin-bottom:24px;flex-wrap:wrap;align-items:center;}
.filter-select{
  background:rgba(13,18,28,.78);
  border:1px solid rgba(174,196,214,.09);
  border-radius:10px;
  padding:9px 14px;
  color:#ccc;
  font-size:14px;
  outline:none;
  cursor:pointer;
  font-family:'Inter',sans-serif;
}
.filter-select:focus{border-color:rgba(184,229,174,.25);}
.filter-label{font-size:14px;color:#788391;}

/* CART */
.cart-page{padding:40px 0;}
.cart-table{width:100%;border-collapse:collapse;}
.cart-table th{text-align:left;padding:12px 16px;color:#788391;font-size:13px;border-bottom:1px solid rgba(166,188,209,.08);}
.cart-table td{padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.04);vertical-align:middle;}
.qty-control{display:flex;align-items:center;gap:10px;}
.qty-btn{
  width:30px;height:30px;border-radius:8px;
  background:rgba(13,18,28,.78);
  border:1px solid rgba(174,196,214,.09);
  color:#fff;cursor:pointer;font-size:16px;
  display:flex;align-items:center;justify-content:center;transition:.2s;
}
.qty-btn:hover{border-color:rgba(220,60,60,.35);color:#e05050;}
.cart-summary{
  background:linear-gradient(180deg, rgba(13,18,28,.78), rgba(10,15,23,.88));
  border-radius:20px;padding:28px;
  max-width:360px;margin-left:auto;margin-top:24px;
  border:1px solid rgba(174,196,214,.09);
}
.cart-total{font-size:24px;font-weight:700;color:#f0f3f6;margin-bottom:20px;}
.promo-wrap{display:flex;gap:10px;margin-bottom:20px;}
.promo-wrap input{
  flex:1;background:rgba(8,13,22,.5);
  border:1px solid rgba(174,196,214,.09);
  border-radius:10px;padding:10px 14px;
  color:#fff;font-size:14px;outline:none;
  font-family:'Inter',sans-serif;
}
.promo-wrap input:focus{border-color:rgba(184,229,174,.25);}

/* FORMS */
.form-page{padding:60px 0;max-width:640px;margin:0 auto;}
.form-title{font-size:28px;font-weight:700;color:#f0f3f6;margin-bottom:30px;letter-spacing:-.02em;}
.form-group{margin-bottom:20px;}
.form-group label{display:block;font-size:13px;color:#788391;margin-bottom:8px;}
.form-group input,.form-group select,.form-group textarea{
  width:100%;
  background:rgba(13,18,28,.78);
  border:1px solid rgba(174,196,214,.09);
  border-radius:10px;padding:12px 16px;
  color:#f0f3f6;font-size:14px;outline:none;transition:.2s;
  font-family:'Inter',sans-serif;
}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:rgba(184,229,174,.3);}
.form-group textarea{resize:vertical;min-height:100px;}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.form-error{color:#e05c5c;font-size:13px;margin-top:6px;}
.form-link{color:#e05050;font-size:14px;}
.form-link:hover{text-decoration:underline;}

/* ALERTS */
.alert{padding:12px 18px;border-radius:10px;font-size:14px;margin-bottom:16px;}
.alert-success{background:rgba(126,196,124,.08);border:1px solid rgba(126,196,124,.2);color:#7ec47c;}
.alert-error{background:rgba(220,60,60,.08);border:1px solid rgba(220,60,60,.2);color:#e05050;}

/* PROFILE */
.profile-page{padding:40px 0;}
.profile-tabs{display:flex;gap:4px;margin-bottom:30px;border-bottom:1px solid rgba(166,188,209,.08);}
.profile-tab{padding:12px 24px;cursor:pointer;font-size:14px;color:#788391;border-bottom:2px solid transparent;transition:.2s;}
.profile-tab.active,.profile-tab:hover{color:#e05050;border-bottom-color:#e05050;}
.profile-section{display:none;}
.profile-section.active{display:block;}

/* ORDERS / TABLES */
.orders-table,.admin-table{width:100%;border-collapse:collapse;}
.orders-table th,.admin-table th{text-align:left;padding:12px 16px;color:#788391;font-size:13px;border-bottom:1px solid rgba(166,188,209,.08);white-space:nowrap;}
.orders-table td,.admin-table td{padding:12px 16px;border-bottom:1px solid rgba(255,255,255,.04);font-size:14px;vertical-align:middle;}
.admin-table tr:hover td{background:rgba(184,229,174,.02);}
.status-badge{padding:4px 12px;border-radius:20px;font-size:12px;font-weight:600;}
/* статусы: выполнен/в наличии — зелёный, остальные по смыслу */
.status-new{background:rgba(220,60,60,.10);color:#e05050;}
.status-processing{background:rgba(255,193,7,.10);color:#ffc107;}
.status-shipping{background:rgba(90,171,245,.10);color:#5aabf5;}
.status-completed{background:rgba(126,196,124,.10);color:#7ec47c;}
.status-canceled{background:rgba(220,60,60,.10);color:#e05050;}
.admin-actions{display:flex;gap:8px;}
.table-wrap{
  background:linear-gradient(180deg, rgba(13,18,28,.78), rgba(10,15,23,.88));
  border-radius:20px;
  border:1px solid rgba(200,80,80,.08);
  overflow:hidden;
}
.table-toolbar{
  display:flex;justify-content:space-between;align-items:center;
  padding:16px 20px;border-bottom:1px solid rgba(166,188,209,.08);
  gap:12px;flex-wrap:wrap;
}
.table-search{
  background:rgba(8,13,22,.5);
  border:1px solid rgba(174,196,214,.09);
  border-radius:10px;padding:9px 14px;
  color:#fff;font-size:14px;outline:none;width:240px;
  font-family:'Inter',sans-serif;
}
.table-search:focus{border-color:rgba(184,229,174,.25);}

/* MODAL */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.75);z-index:1000;display:none;align-items:center;justify-content:center;}
.modal-overlay.open{display:flex;}
.modal{
  background:linear-gradient(180deg, rgba(13,18,28,.98), rgba(10,15,23,.99));
  border-radius:20px;padding:32px;max-width:500px;width:90%;
  border:1px solid rgba(174,196,214,.09);position:relative;
}
.modal-close{position:absolute;top:16px;right:16px;background:none;border:none;color:#788391;font-size:22px;cursor:pointer;}
.modal-close:hover{color:#fff;}
.modal-title{font-size:20px;font-weight:700;color:#f0f3f6;margin-bottom:20px;}

/* ADMIN LAYOUT */
.admin-layout{display:flex;min-height:100vh;}
.admin-sidebar{
  width:240px;
  background:rgba(3,6,14,.98);
  border-right:1px solid rgba(220,60,60,.08);
  padding:0;flex-shrink:0;
  position:sticky;top:0;height:100vh;overflow-y:auto;
}
.admin-nav a{
  display:flex;align-items:center;gap:12px;
  padding:11px 24px;color:#6e7a87;font-size:14px;transition:.2s;
  border-left:2px solid transparent;
}
.admin-nav a:hover,.admin-nav a.active{color:#e05050;background:rgba(220,60,60,.05);border-left-color:#e05050;}
.admin-content{flex:1;padding:36px;overflow-x:auto;background:rgba(4,8,17,.6);}
.admin-title{font-size:26px;font-weight:800;color:#f0f3f6;margin-bottom:28px;letter-spacing:-.03em;}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:32px;}
.stat-card{
  background:linear-gradient(180deg, rgba(13,18,28,.90), rgba(10,15,23,.95));
  border-radius:16px;padding:24px;
  border:1px solid rgba(220,60,60,.10);
  position:relative;overflow:hidden;
}
.stat-card:before{content:"";position:absolute;top:-20px;right:-20px;width:80px;height:80px;border-radius:50%;background:rgba(220,60,60,.06);}
.stat-value{font-size:30px;font-weight:800;color:#e05050;letter-spacing:-.03em;}
.stat-label{font-size:13px;color:#6e7a87;margin-top:6px;}
.admin-table{width:100%;border-collapse:collapse;}
.admin-table th{text-align:left;padding:13px 18px;color:#6e7a87;font-size:12px;border-bottom:1px solid rgba(220,60,60,.08);white-space:nowrap;text-transform:uppercase;letter-spacing:.05em;}
.admin-table td{padding:14px 18px;border-bottom:1px solid rgba(255,255,255,.04);font-size:14px;vertical-align:middle;}
.admin-table tr:hover td{background:rgba(220,60,60,.02);}
.admin-actions{display:flex;gap:8px;}
.table-wrap{
  background:linear-gradient(180deg, rgba(13,18,28,.85), rgba(10,15,23,.92));
  border-radius:16px;
  border:1px solid rgba(220,60,60,.08);
  overflow:hidden;
}
.table-toolbar{
  display:flex;justify-content:space-between;align-items:center;
  padding:18px 20px;border-bottom:1px solid rgba(220,60,60,.08);
  gap:12px;flex-wrap:wrap;
}
.table-search{
  background:rgba(8,13,22,.7);
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;padding:9px 14px;
  color:#fff;font-size:14px;outline:none;width:240px;
  font-family:'Inter',sans-serif;transition:.2s;
}
.table-search:focus{border-color:rgba(220,60,60,.3);}
.admin-form-wrap{
  background:linear-gradient(180deg, rgba(13,18,28,.85), rgba(10,15,23,.92));
  border-radius:16px;border:1px solid rgba(220,60,60,.08);
  padding:28px;margin-bottom:24px;
}
.admin-form-title{font-size:17px;font-weight:700;color:#f0f3f6;margin-bottom:22px;letter-spacing:-.01em;}
.admin-form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
.admin-form-grid .full{grid-column:1/-1;}
.admin-field{display:flex;flex-direction:column;}
.admin-field label{font-size:12px;color:#6e7a87;margin-bottom:7px;text-transform:uppercase;letter-spacing:.05em;}
.admin-field input,.admin-field select,.admin-field textarea{
  background:rgba(8,13,22,.7);
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;padding:11px 14px;
  color:#f0f3f6;font-size:14px;outline:none;transition:.2s;
  font-family:'Inter',sans-serif;
}
.admin-field input:focus,.admin-field select:focus,.admin-field textarea:focus{border-color:rgba(220,60,60,.35);}
.admin-field textarea{resize:vertical;min-height:90px;}
.file-upload-wrap{position:relative;}
.file-upload-wrap input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;}
.file-upload-btn{
  display:flex;align-items:center;justify-content:center;gap:10px;
  width:100%;padding:14px;border-radius:10px;
  border:2px dashed rgba(220,60,60,.25);
  background:rgba(220,60,60,.04);
  color:#9aa3ad;font-size:14px;cursor:pointer;transition:.2s;
}
.file-upload-btn:hover{border-color:rgba(220,60,60,.45);color:#e05050;background:rgba(220,60,60,.08);}
.file-upload-btn svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;}

/* SALE BADGE */
.sale-badge{
  position:absolute;top:12px;left:12px;z-index:3;
  background:linear-gradient(135deg,#e05050,#c03030);
  color:#fff;font-size:11px;font-weight:700;
  padding:4px 10px;border-radius:8px;
  box-shadow:0 0 14px rgba(220,60,60,.4);
  letter-spacing:.04em;text-transform:uppercase;
}
.old-price{
  color:#6e7a87;
  text-decoration:line-through;
  font-size:14px;
  font-weight:400;
  margin-right:6px;
}

/* PRODUCT PAGE */
.product-page{padding:40px 0;display:grid;grid-template-columns:1fr 1fr;gap:50px;max-width:1100px;}
.product-gallery{display:flex;flex-direction:column;gap:12px;}
.product-main-img{
  width:100%;border-radius:20px;aspect-ratio:1;object-fit:contain;
  background:linear-gradient(180deg, rgba(13,18,28,.78), rgba(10,15,23,.88));
  border:1px solid rgba(174,196,214,.09);padding:20px;
}
.product-thumbs{display:flex;gap:10px;}
.product-thumb{
  width:70px;height:70px;border-radius:10px;object-fit:cover;
  cursor:pointer;border:2px solid transparent;transition:.2s;
  background:rgba(13,18,28,.78);
}
.product-thumb:hover,.product-thumb.active{border-color:rgba(220,60,60,.50);}
.product-info h1{font-size:30px;font-weight:700;color:#f0f3f6;letter-spacing:-.02em;}
.product-info .cat{color:#e05050;font-size:13px;margin-top:6px;}
.product-price{font-size:32px;font-weight:700;color:#f0f3f6;margin:20px 0;letter-spacing:-.02em;}
.product-desc{color:#788391;font-size:15px;line-height:1.7;margin-bottom:24px;}
.qty-wrap{display:flex;align-items:center;gap:16px;margin-bottom:24px;}

/* FOOTER */
footer{
  background:var(--footer-bg);
  border-top:1px solid rgba(220,60,60,.08);
  padding:40px 0;
  transition: background .3s;
}
.footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:32px;}
.footer-col h4{color:#edf1f5;font-size:14px;font-weight:600;margin-bottom:16px;}
.footer-col a,.footer-col p{display:block;color:#6e7a87;font-size:13px;margin-bottom:8px;transition:.2s;}
.footer-col a:hover{color:#e05050;}
.footer-bottom{margin-top:32px;padding-top:20px;border-top:1px solid rgba(220,60,60,.06);text-align:center;color:#3a4050;font-size:13px;}

/* RESPONSIVE */
@media(max-width:1180px){
  .page{width:calc(100% - 30px);}
  .hero{grid-template-columns:1fr;min-height:auto;}
  .hero-visual{height:430px;margin-top:24px;}
  .bag-wrap{right:50%;transform:translateX(50%);width:430px;}
  .arc{right:50%;transform:translateX(50%);width:480px;height:480px;}
  .features-box,.products,.bottom-strip{grid-template-columns:1fr 1fr;}
}
@media(max-width:820px){
  .nav{display:none;}
  .copy h1{font-size:54px;}
  .features-box,.products,.bottom-strip{grid-template-columns:1fr;}
  .feature{padding:26px;}
  .bottom-steps{border:0;padding:24px 20px;}
  .stats-grid{grid-template-columns:repeat(2,1fr);}
  .admin-sidebar{display:none;}
  .product-page{grid-template-columns:1fr;}
  .form-row{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr 1fr;}
}
@media(max-width:480px){
  .copy h1{font-size:38px;}
  .products{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
}

/* =============================================
   MOBILE APP STYLES
   ============================================= */

/* Нижнее меню — только в PWA / мобильном */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(6, 10, 20, 0.97);
  border-top: 1px solid rgba(220,60,60,.12);
  backdrop-filter: blur(20px);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}
.mobile-nav-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  color: #4a5568;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  transition: .2s;
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.mobile-nav-btn svg {
  width: 24px; height: 24px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: .2s;
}
.mobile-nav-btn.active { color: #e05050; }
.mobile-nav-btn.active svg { filter: drop-shadow(0 0 6px rgba(220,60,60,.5)); }
.mobile-nav-btn:hover { color: #9aa3ad; }
.mobile-nav-badge {
  position: absolute;
  top: 4px; right: calc(50% - 18px);
  min-width: 17px; height: 17px;
  background: #e05050; color: #fff;
  font-size: 10px; font-weight: 700;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* Мобильный хедер */
.mobile-header {
  display: none;
  position: sticky; top: 0; z-index: 100;
  background: rgba(4,8,17,.97);
  border-bottom: 1px solid rgba(220,60,60,.08);
  backdrop-filter: blur(12px);
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
}
.mobile-header img { height: 110px; width: auto; }
.mobile-header-right { display: flex; align-items: center; gap: 10px; }

/* Скрываем десктопный хедер на мобиле */
@media (max-width: 768px) {
  .header { display: none !important; }
  .top-line { display: none !important; }
  .mobile-header { display: flex; }
  .mobile-nav { display: block; }

  /* Отступ снизу под нижнее меню */
  .page {
    width: 100%;
    padding: 16px 16px calc(80px + env(safe-area-inset-bottom));
    margin: 0;
  }

  /* Скрываем десктопный футер */
  footer { display: none !important; }

  /* Карточки товаров — 2 колонки */
  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .card {
    min-height: 220px;
    padding: 14px 12px 14px;
    border-radius: 16px;
  }
  .card-media { height: 100px; margin-bottom: 8px; }
  .card img { max-height: 90px; }
  .card .name { font-size: 13px; margin-top: 4px; }
  .card .meta { font-size: 12px; margin-top: 4px; }
  .card .price { font-size: 15px; margin-top: 8px; }
  .plus { width: 36px; height: 36px; font-size: 26px; right: 10px; bottom: 10px; border-radius: 10px; }

  /* Фильтры */
  .filters { gap: 8px; }
  .filter-select { font-size: 13px; padding: 8px 10px; }

  /* Заголовок секции */
  .section-head { margin-top: 20px; margin-bottom: 14px; }
  .section-head h2 { font-size: 18px; }

  /* Корзина — мобильная */
  .cart-mobile { display: flex; flex-direction: column; gap: 12px; }
  .cart-mobile-item {
    background: linear-gradient(160deg,rgba(13,18,28,.9),rgba(10,15,23,.95));
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px;
    padding: 14px;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
  }
  .cart-mobile-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
  .cart-mobile-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
  .cart-mobile-controls button {
    width: 30px; height: 30px; border-radius: 8px;
    background: rgba(8,13,22,.6); border: 1px solid rgba(255,255,255,.08);
    color: #fff; font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }

  /* Профиль — мобильный */
  .profile-tabs-mobile {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    margin-bottom: 20px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .profile-tabs-mobile::-webkit-scrollbar { display: none; }
  .profile-tab-mobile {
    flex-shrink: 0;
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(8,13,22,.5);
    color: #6e7a87;
    font-size: 13px; font-weight: 500;
    cursor: pointer; white-space: nowrap;
    font-family: 'Inter', sans-serif;
    transition: .2s;
  }
  .profile-tab-mobile.active {
    background: rgba(220,60,60,.12);
    color: #e05050;
    border-color: rgba(220,60,60,.25);
  }

  /* Формы */
  .form-page { padding: 20px 0; }
  .form-row { grid-template-columns: 1fr; }

  /* Страница товара */
  .product-page {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px 0;
  }

  /* Алерты */
  .alert { font-size: 13px; }
}

/* Планшет */
@media (min-width: 769px) and (max-width: 1024px) {
  .products { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .mobile-header { display: flex; }
  .header { display: none !important; }
  .top-line { display: none !important; }
  .mobile-nav { display: block; }
  .page { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  footer { display: none !important; }
}

/* Профиль — мобильная адаптация */
@media(max-width:768px){
  /* Табы профиля — горизонтальный скролл */
  #profile-tabs-wrap {
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  #profile-tabs-wrap::-webkit-scrollbar { display: none; }
  #profile-tabs-wrap > div {
    width: max-content;
  }

  /* Двухколоночные блоки профиля — в одну колонку */
  .profile-two-col {
    grid-template-columns: 1fr !important;
  }

  /* Заголовок профиля */
  .profile-header-wrap {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  /* Корзина десктоп — скрыть */
  .cart-desktop-wrap { display: none !important; }
  .cart-m { display: block !important; }

  /* Логин/регистрация */
  .auth-page-wrap { padding: 20px 0 !important; }

  /* Страница товара */
  .product-page { padding: 12px 0 !important; }

  /* Заголовок h1 */
  h1 { font-size: 24px !important; }
}

/* =============================================
   CATALOG FILTERS — новые
   ============================================= */
.catalog-filters {
  margin-bottom: 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.filter-chip-select {
  flex: 1;
  background: rgba(13,18,28,.8);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 10px 14px;
  color: #f0f3f6;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: .2s;
  height: 42px;
}
.filter-chip-select:focus { border-color: rgba(220,60,60,.3); }
.filter-chip-select option { background: #0d1220; }

/* Чипы категорий */
.filter-chips-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filter-chips-wrap::-webkit-scrollbar { display: none; }
.filter-chips {
  display: flex;
  gap: 8px;
  width: max-content;
  padding-bottom: 2px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(13,18,28,.7);
  color: #9aa3ad;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: .2s;
  cursor: pointer;
}
.filter-chip:hover {
  border-color: rgba(220,60,60,.3);
  color: #f0f3f6;
}
.filter-chip.active {
  background: rgba(220,60,60,.12);
  border-color: rgba(220,60,60,.35);
  color: #e05050;
  font-weight: 600;
}

/* Нижняя строка фильтров */
.filter-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-price-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(13,18,28,.7);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 6px 12px;
}
.filter-label-sm {
  font-size: 13px;
  color: #6e7a87;
  white-space: nowrap;
}
.filter-input-sm {
  width: 64px;
  background: transparent;
  border: none;
  outline: none;
  color: #f0f3f6;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  padding: 2px 4px;
}
.filter-input-sm::placeholder { color: #4a5568; }
.filter-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(13,18,28,.7);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 6px 12px;
}
.filter-select-sm {
  background: transparent;
  border: none;
  outline: none;
  color: #f0f3f6;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}
.filter-select-sm option { background: #0d1220; }
.filter-reset {
  font-size: 13px;
  color: #6e7a87;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06);
  transition: .2s;
}
.filter-reset:hover { color: #e05050; border-color: rgba(220,60,60,.2); }

/* Мобильные фильтры */
@media(max-width:768px) {
  .catalog-filters { gap: 8px; margin-bottom: 16px; }
  .filter-chip-select { flex: 1; max-width: none; font-size: 13px; padding: 9px 12px; }
  .filter-chip { padding: 7px 14px; font-size: 12px; }
  .filter-controls { gap: 8px; }
  .filter-price-wrap { padding: 7px 10px; border-radius: 10px; }
  .filter-input-sm { width: 52px; font-size: 12px; }
  .filter-sort-wrap { padding: 7px 10px; border-radius: 10px; }
  .filter-select-sm { font-size: 12px; }
  .filter-reset { font-size: 12px; padding: 7px 10px; }
  .mobile-header { padding: 10px 16px; }
}

/* =============================================
   MOBILE PERFORMANCE
   ============================================= */
@media(max-width:768px){
  /* Отключаем тяжёлые blur эффекты */
  .mobile-nav { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mobile-header { backdrop-filter: none; -webkit-backdrop-filter: none; }

  /* Отключаем сложные градиенты на карточках */
  .card:before { display: none; }
  .card { background: rgba(13,18,28,.95); }

  /* Убираем box-shadow анимации */
  .card:hover { transform: none; box-shadow: none; }
  .plus:hover { box-shadow: none; }

  /* Изображения */
  img { content-visibility: auto; }

  /* Отключаем backdrop-filter везде */
  * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* =============================================
   THEME TOGGLE BUTTON
   ============================================= */
.theme-btn {
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  display: grid; place-items: center;
  cursor: pointer;
  transition: .2s;
  flex-shrink: 0;
  color: var(--text);
}
.theme-btn:hover { border-color: var(--stroke-2); }
.theme-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }

/* Светлая тема — глобальные переопределения */
[data-theme="light"] .header { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
[data-theme="light"] .mobile-header { background: rgba(255,255,255,.97); border-bottom-color: rgba(220,60,60,.15); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
[data-theme="light"] .mobile-nav { background: rgba(255,255,255,.97); border-top-color: rgba(0,0,0,.08); }
[data-theme="light"] .mobile-nav-btn { color: #8a9099; }
[data-theme="light"] .mobile-nav-btn.active { color: var(--red); }
[data-theme="light"] .card { box-shadow: 0 2px 16px rgba(0,0,0,.06); }
[data-theme="light"] .card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); }
[data-theme="light"] .card .cat { color: #8a9099; }
[data-theme="light"] .card .price { color: #1a1d23; }
[data-theme="light"] .plus { background: linear-gradient(180deg, rgba(200,40,40,.9), rgba(160,20,20,.95)); }
[data-theme="light"] .btn-dark { background: rgba(0,0,0,.05); color: #1a1d23; border-color: rgba(0,0,0,.1); }
[data-theme="light"] .btn-dark:hover { border-color: var(--red); color: var(--red); }
[data-theme="light"] .auth { border-color: rgba(200,40,40,.2); background: rgba(255,255,255,.8); }
[data-theme="light"] .auth a { color: #1a1d23; }
[data-theme="light"] .icon-btn { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.08); }
[data-theme="light"] .icon-btn svg { stroke: #1a1d23; }
[data-theme="light"] .search-dropdown { background: #fff; border-color: rgba(0,0,0,.1); box-shadow: 0 8px 32px rgba(0,0,0,.12); }
[data-theme="light"] .search-dropdown input { background: #f5f6fa; border-color: rgba(0,0,0,.1); color: #1a1d23; }
[data-theme="light"] .cart-wrap svg { stroke: #1a1d23; }
[data-theme="light"] .top-line { background: linear-gradient(90deg, transparent, rgba(0,0,0,.08) 12%, rgba(0,0,0,.06) 88%, transparent); }
[data-theme="light"] .filter-chip-select { background: #fff; border-color: rgba(0,0,0,.1); color: #1a1d23; }
[data-theme="light"] .filter-btn { background: #fff; border-color: rgba(0,0,0,.1); color: #1a1d23; }
[data-theme="light"] .filter-reset { color: #5a6270; border-color: rgba(0,0,0,.08); }
[data-theme="light"] .table-wrap { background: #fff; border-color: rgba(0,0,0,.08); }
[data-theme="light"] .admin-table th { color: #5a6270; border-bottom-color: rgba(0,0,0,.08); }
[data-theme="light"] .admin-table td { border-bottom-color: rgba(0,0,0,.05); color: #1a1d23; }
[data-theme="light"] .admin-table tr:hover td { background: rgba(200,40,40,.03); }
[data-theme="light"] .table-toolbar { border-bottom-color: rgba(0,0,0,.08); }
[data-theme="light"] .table-search { background: #f5f6fa; border-color: rgba(0,0,0,.1); color: #1a1d23; }
[data-theme="light"] .admin-form-wrap { background: #fff; border-color: rgba(0,0,0,.08); }
[data-theme="light"] .admin-field input,
[data-theme="light"] .admin-field select,
[data-theme="light"] .admin-field textarea { background: #f5f6fa; border-color: rgba(0,0,0,.1); color: #1a1d23; }
[data-theme="light"] .admin-field label { color: #5a6270; }
[data-theme="light"] .stat-card { background: #fff; border-color: rgba(0,0,0,.08); }
[data-theme="light"] .stat-label { color: #5a6270; }
[data-theme="light"] .pcard { background: #fff; border-color: rgba(0,0,0,.08); }
[data-theme="light"] .pfield input { background: #f5f6fa; border-color: rgba(0,0,0,.1); color: #1a1d23; }
[data-theme="light"] .order-row { background: #fff; border-color: rgba(0,0,0,.08); }
[data-theme="light"] .order-addr { color: #1a1d23; }
[data-theme="light"] .profile-avatar { background: linear-gradient(135deg,rgba(200,40,40,.2),rgba(160,20,20,.3)); }
[data-theme="light"] .ptab { color: #5a6270; }
[data-theme="light"] .profile-tabs-row { background: rgba(0,0,0,.04); }
[data-theme="light"] .sf-btn { background: #f5f6fa; border-color: rgba(0,0,0,.08); color: #5a6270; }
[data-theme="light"] .alert-success { background: rgba(46,158,79,.08); border-color: rgba(46,158,79,.2); color: #2e9e4f; }
[data-theme="light"] .alert-error { background: rgba(200,40,40,.08); border-color: rgba(200,40,40,.2); color: #d03030; }
[data-theme="light"] .section-head h2 { color: #1a1d23; }
[data-theme="light"] .footer-col h4 { color: #1a1d23; }
[data-theme="light"] .footer-col a,
[data-theme="light"] .footer-col p { color: #5a6270; }
[data-theme="light"] .footer-bottom { color: #8a9099; border-top-color: rgba(0,0,0,.08); }
[data-theme="light"] .mobile-header span { color: var(--red) !important; }

/* Иконка темы */
.theme-icon-dark { display: block; }
.theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="light"] .theme-icon-light { display: block; }

/* =============================================
   LIGHT THEME — GLOBAL OVERRIDE
   Перекрывает все хардкодные цвета по всему проекту
   ============================================= */

[data-theme="light"] body {
  background: #f0f2f7 !important;
  color: #1a1d23 !important;
}
[data-theme="light"] body:before { display: none; }

/* Текст */
[data-theme="light"],
[data-theme="light"] * {
  color: inherit;
}
[data-theme="light"] body { color: #1a1d23; }

/* Хедер */
[data-theme="light"] .header {
  background: rgba(255,255,255,.97) !important;
  border-bottom-color: rgba(200,40,40,.15) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,.07) !important;
}
[data-theme="light"] .header svg { stroke: #1a1d23 !important; }
[data-theme="light"] .nav a { color: #2a2d35 !important; }
[data-theme="light"] .auth { background: rgba(255,255,255,.9) !important; border-color: rgba(200,40,40,.2) !important; }
[data-theme="light"] .auth a { color: #1a1d23 !important; }
[data-theme="light"] .auth .primary { color: #fff !important; }
[data-theme="light"] .icon-btn { background: rgba(0,0,0,.05) !important; border-color: rgba(0,0,0,.1) !important; }
[data-theme="light"] .cart-wrap svg { stroke: #1a1d23 !important; }
[data-theme="light"] .top-line { background: rgba(0,0,0,.08) !important; }

/* Мобильный хедер */
[data-theme="light"] .mobile-header {
  background: rgba(255,255,255,.97) !important;
  border-bottom-color: rgba(0,0,0,.1) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.06) !important;
}
[data-theme="light"] .mobile-header svg { stroke: #1a1d23 !important; }
[data-theme="light"] .mobile-nav {
  background: rgba(255,255,255,.97) !important;
  border-top-color: rgba(0,0,0,.08) !important;
}
[data-theme="light"] .mobile-nav-btn { color: #8a9099 !important; }
[data-theme="light"] .mobile-nav-btn.active { color: #d03030 !important; }
[data-theme="light"] .mobile-nav-btn svg { stroke: currentColor !important; }

/* Блок features (главная) */
[data-theme="light"] .features-box {
  background: #ffffff !important;
  border-color: rgba(0,0,0,.08) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.06) !important;
}
[data-theme="light"] .feature { color: #1a1d23 !important; }
[data-theme="light"] .feature:hover { background: rgba(200,40,40,.03) !important; }
[data-theme="light"] .feature:not(:last-child):after { background: linear-gradient(180deg, transparent, rgba(0,0,0,.08), transparent) !important; }
[data-theme="light"] .ft strong { color: #1a1d23 !important; }
[data-theme="light"] .ft span { color: #6e7a87 !important; }

/* Bottom strip (главная) */
[data-theme="light"] .bottom-strip {
  background: #ffffff !important;
  border-color: rgba(0,0,0,.08) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.06) !important;
}
[data-theme="light"] .bottom-strip:before,
[data-theme="light"] .bottom-strip:after { display: none; }
[data-theme="light"] .bottom-left strong { color: #1a1d23 !important; }
[data-theme="light"] .step .txt { color: #1a1d23 !important; }
[data-theme="light"] .circle { background: #f5f6fa !important; color: #1a1d23 !important; }
[data-theme="light"] .bottom-steps { border-color: rgba(0,0,0,.08) !important; }

/* Футер */
[data-theme="light"] footer {
  background: #f8f9fc !important;
  border-top-color: rgba(0,0,0,.1) !important;
}
[data-theme="light"] .footer-col h4 { color: #1a1d23 !important; }
[data-theme="light"] .footer-col a,
[data-theme="light"] .footer-col p { color: #5a6270 !important; }
[data-theme="light"] .footer-bottom { color: #8a9099 !important; border-top-color: rgba(0,0,0,.08) !important; }

/* Карточки товаров */
[data-theme="light"] .card {
  background: #ffffff !important;
  border-color: rgba(0,0,0,.08) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,.06) !important;
}
[data-theme="light"] .card:before { display: none; }
[data-theme="light"] .card .cat { color: #8a9099 !important; }
[data-theme="light"] .card .name { color: #1a1d23 !important; }
[data-theme="light"] .card .meta { color: #6e7a87 !important; }
[data-theme="light"] .card .price { color: #1a1d23 !important; }
[data-theme="light"] .card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1) !important; transform: translateY(-3px); }

/* Кнопки */
[data-theme="light"] .btn-dark {
  background: rgba(0,0,0,.06) !important;
  color: #1a1d23 !important;
  border-color: rgba(0,0,0,.1) !important;
}
[data-theme="light"] .btn-dark:hover { border-color: #d03030 !important; color: #d03030 !important; }

/* Инпуты и формы */
[data-theme="light"] input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="file"]),
[data-theme="light"] select,
[data-theme="light"] textarea {
  background: #ffffff !important;
  border-color: rgba(0,0,0,.12) !important;
  color: #1a1d23 !important;
}
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder { color: #9aa3ad !important; }
[data-theme="light"] .filter-chip-select,
[data-theme="light"] .filter-btn,
[data-theme="light"] .filter-select-sm { background: #ffffff !important; border-color: rgba(0,0,0,.1) !important; color: #1a1d23 !important; }
[data-theme="light"] .filter-reset { color: #5a6270 !important; border-color: rgba(0,0,0,.08) !important; }

/* Поиск */
[data-theme="light"] .search-dropdown {
  background: #ffffff !important;
  border-color: rgba(0,0,0,.1) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.12) !important;
}
[data-theme="light"] .search-dropdown input { background: #f5f6fa !important; color: #1a1d23 !important; }

/* Таблицы и обёртки */
[data-theme="light"] .table-wrap {
  background: #ffffff !important;
  border-color: rgba(0,0,0,.08) !important;
}
[data-theme="light"] .table-toolbar { border-bottom-color: rgba(0,0,0,.08) !important; }
[data-theme="light"] .table-search { background: #f5f6fa !important; border-color: rgba(0,0,0,.1) !important; color: #1a1d23 !important; }
[data-theme="light"] .admin-table th { color: #5a6270 !important; border-bottom-color: rgba(0,0,0,.08) !important; background: #f8f9fc !important; }
[data-theme="light"] .admin-table td { border-bottom-color: rgba(0,0,0,.05) !important; color: #1a1d23 !important; }
[data-theme="light"] .admin-table tr:hover td { background: rgba(200,40,40,.03) !important; }

/* Формы в админке */
[data-theme="light"] .admin-form-wrap {
  background: #ffffff !important;
  border-color: rgba(0,0,0,.08) !important;
}
[data-theme="light"] .admin-form-title { color: #1a1d23 !important; }
[data-theme="light"] .admin-field label { color: #5a6270 !important; }
[data-theme="light"] .admin-field input,
[data-theme="light"] .admin-field select,
[data-theme="light"] .admin-field textarea {
  background: #f5f6fa !important;
  border-color: rgba(0,0,0,.1) !important;
  color: #1a1d23 !important;
}

/* Stat cards */
[data-theme="light"] .stat-card {
  background: #ffffff !important;
  border-color: rgba(0,0,0,.08) !important;
}
[data-theme="light"] .stat-label { color: #5a6270 !important; }

/* Профиль */
[data-theme="light"] .pcard {
  background: #ffffff !important;
  border-color: rgba(0,0,0,.08) !important;
}
[data-theme="light"] .pfield label { color: #5a6270 !important; }
[data-theme="light"] .pfield input { background: #f5f6fa !important; border-color: rgba(0,0,0,.1) !important; color: #1a1d23 !important; }
[data-theme="light"] .order-row { background: #ffffff !important; border-color: rgba(0,0,0,.08) !important; }
[data-theme="light"] .order-addr { color: #1a1d23 !important; }
[data-theme="light"] .order-date { color: #6e7a87 !important; }
[data-theme="light"] .profile-tabs-row { background: rgba(0,0,0,.05) !important; }
[data-theme="light"] .ptab { color: #5a6270 !important; }
[data-theme="light"] .sf-btn { background: #f5f6fa !important; border-color: rgba(0,0,0,.08) !important; color: #5a6270 !important; }
[data-theme="light"] .profile-head-name { color: #1a1d23 !important; }
[data-theme="light"] .profile-head-email { color: #6e7a87 !important; }

/* Алерты */
[data-theme="light"] .alert-success { background: rgba(46,158,79,.08) !important; border-color: rgba(46,158,79,.25) !important; color: #1e7e34 !important; }
[data-theme="light"] .alert-error { background: rgba(200,40,40,.08) !important; border-color: rgba(200,40,40,.25) !important; color: #c0392b !important; }

/* Страница товара */
[data-theme="light"] .product-main-img { background: #ffffff !important; border-color: rgba(0,0,0,.08) !important; }
[data-theme="light"] .product-info h1 { color: #1a1d23 !important; }
[data-theme="light"] .product-price { color: #1a1d23 !important; }
[data-theme="light"] .product-desc { color: #5a6270 !important; }

/* Корзина */
[data-theme="light"] #cartBody > div,
[data-theme="light"] [id^="row-"] {
  background: #ffffff !important;
  border-bottom-color: rgba(0,0,0,.05) !important;
}
[data-theme="light"] .cart-summary,
[data-theme="light"] #cartTotal,
[data-theme="light"] #cartTotalM { color: #1a1d23 !important; }

/* Checkout */
[data-theme="light"] .checkout-field input,
[data-theme="light"] .checkout-field textarea { background: #ffffff !important; border-color: rgba(0,0,0,.12) !important; color: #1a1d23 !important; }
[data-theme="light"] .checkout-info-card { background: #ffffff !important; border-color: rgba(0,0,0,.08) !important; }
[data-theme="light"] .checkout-info-card .ci-val { color: #1a1d23 !important; }
[data-theme="light"] .checkout-info-card .ci-label { color: #6e7a87 !important; }

/* Общие блоки с тёмным фоном */
[data-theme="light"] [style*="rgba(13,18,28"],
[data-theme="light"] [style*="rgba(10,15,23"],
[data-theme="light"] [style*="rgba(8,13,22"],
[data-theme="light"] [style*="rgba(12,18,28"],
[data-theme="light"] [style*="rgba(11,16,25"],
[data-theme="light"] [style*="rgba(9,14,23"],
[data-theme="light"] [style*="#0d1220"],
[data-theme="light"] [style*="#080d16"],
[data-theme="light"] [style*="#040811"] {
  background: #ffffff !important;
  border-color: rgba(0,0,0,.08) !important;
}

/* Текст в inline стилях */
[data-theme="light"] [style*="color:#f0f3f6"],
[data-theme="light"] [style*="color:#f8f9fa"],
[data-theme="light"] [style*="color:#edf1f5"],
[data-theme="light"] [style*="color:#eef2f5"] { color: #1a1d23 !important; }
[data-theme="light"] [style*="color:#6e7a87"],
[data-theme="light"] [style*="color:#788391"],
[data-theme="light"] [style*="color:#9aa3ad"] { color: #5a6270 !important; }
[data-theme="light"] [style*="color:#555"] { color: #4a5260 !important; }
[data-theme="light"] [style*="color:#888"] { color: #6a7280 !important; }
[data-theme="light"] [style*="color:#ccc"] { color: #4a5260 !important; }
[data-theme="light"] [style*="color:#fff"]:not(.btn-main):not(.btn-danger):not(.cart-badge):not(.mobile-nav-badge) { color: #1a1d23 !important; }

/* Секция заголовков */
[data-theme="light"] .section-head h2 { color: #1a1d23 !important; }
[data-theme="light"] .admin-title { color: #1a1d23 !important; }
[data-theme="light"] .admin-content { background: #f0f2f7 !important; }
[data-theme="light"] .admin-sidebar { background: #1e2330 !important; }
[data-theme="light"] .admin-nav a { color: #9aa3ad !important; }
[data-theme="light"] .admin-nav a:hover,
[data-theme="light"] .admin-nav a.active { color: #e05050 !important; background: rgba(220,60,60,.08) !important; }

/* Курьер */
[data-theme="light"] .courier-sidebar { background: #1e2330 !important; }
[data-theme="light"] .courier-content { background: #f0f2f7 !important; }
[data-theme="light"] .courier-nav a { color: #9aa3ad !important; }
[data-theme="light"] .order-card { background: #ffffff !important; border-color: rgba(0,0,0,.08) !important; }
[data-theme="light"] .order-card:hover { border-color: rgba(200,40,40,.2) !important; }

/* Складовщик */
[data-theme="light"] .sk-sidebar { background: #1e2330 !important; }
[data-theme="light"] .sk-content { background: #f0f2f7 !important; }
[data-theme="light"] .sk-nav a { color: #9aa3ad !important; }

/* Модалки */
[data-theme="light"] #filterModal > div { background: #ffffff !important; border-color: rgba(0,0,0,.1) !important; }
[data-theme="light"] #filterModal label { background: #f5f6fa !important; border-color: rgba(0,0,0,.08) !important; }

/* Кнопка темы */
[data-theme="light"] .theme-btn { background: rgba(0,0,0,.05) !important; border-color: rgba(0,0,0,.1) !important; color: #1a1d23 !important; }

/* Страница входа/регистрации */
[data-theme="light"] .form-page { color: #1a1d23; }
[data-theme="light"] .form-title { color: #1a1d23 !important; }
[data-theme="light"] .form-group label { color: #5a6270 !important; }
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea { background: #ffffff !important; border-color: rgba(0,0,0,.12) !important; color: #1a1d23 !important; }

/* Страница установки */
[data-theme="light"] .install-page { background: #f0f2f7 !important; }

/* Убираем мобильный перформанс оверрайд для светлой темы */
[data-theme="light"] .card { background: #ffffff !important; }

/* Светлая тема — точечные фиксы */

/* Плюс на карточке товара */
[data-theme="light"] .plus {
  background: linear-gradient(180deg, rgba(200,40,40,.85), rgba(160,20,20,.9)) !important;
  border-color: rgba(200,40,40,.3) !important;
  color: #fff !important;
}

/* Кнопки +/- количества (product.php и корзина) */
[data-theme="light"] .qty-btn {
  background: #f0f2f7 !important;
  border-color: rgba(0,0,0,.1) !important;
  color: #1a1d23 !important;
}
[data-theme="light"] .qty-btn:hover { border-color: #d03030 !important; color: #d03030 !important; }

/* Аватарки "10 000 клиентов" */
[data-theme="light"] .avatars span {
  background-color: #e8eaf0 !important;
  border-color: #f0f2f7 !important;
}

/* Select option — светлая тема */
[data-theme="light"] select option {
  background: #ffffff !important;
  color: #1a1d23 !important;
}
[data-theme="light"] select {
  color-scheme: light !important;
}

/* =============================================
   STORE REVIEWS (главная, десктоп)
   ============================================= */
.reviews-section {
  margin-top: 56px;
  position: relative;
  z-index: 5;
}
.reviews-section::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 200px;
  background: radial-gradient(ellipse, rgba(220,60,60,.08) 0%, transparent 70%);
  pointer-events: none;
}
.reviews-header {
  text-align: center;
  margin-bottom: 36px;
}
.reviews-header h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 10px;
}
.reviews-header p {
  color: var(--muted);
  font-size: 15px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: start;
}
.reviews-panel {
  border: 1px solid rgba(220,60,60,.10);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(12,18,29,.62), rgba(9,15,24,.72));
  backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.015) inset, 0 24px 60px rgba(0,0,0,.28);
  padding: 28px;
  position: sticky;
  top: 110px;
}
.reviews-stats {
  text-align: center;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(220,60,60,.08);
}
.review-avg-big {
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.review-avg-sub {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.review-stars-display,
.review-stars-input {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin: 12px 0;
}
.review-star {
  background: none;
  border: none;
  padding: 0;
  cursor: default;
  width: 22px;
  height: 22px;
  color: rgba(255,255,255,.15);
  transition: transform .15s, color .15s;
}
.review-stars-input .review-star {
  cursor: pointer;
  width: 32px;
  height: 32px;
}
.review-stars-input .review-star:hover {
  transform: scale(1.15);
}
.review-star svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.review-star.filled {
  color: #ffc107;
  filter: drop-shadow(0 0 6px rgba(255,193,7,.35));
}
.review-dist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.review-dist-row {
  display: grid;
  grid-template-columns: 14px 1fr 28px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.review-dist-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.review-dist-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffc107, #ff9800);
  transition: width .6s ease;
}
.review-form-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-2);
}
.review-stars-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
}
.review-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  transition: border-color .2s;
  margin-bottom: 14px;
}
.review-form textarea:focus {
  outline: none;
  border-color: rgba(220,60,60,.35);
}
.review-photo-zone {
  display: block;
  border: 2px dashed rgba(220,60,60,.18);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 16px;
  position: relative;
}
.review-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.review-photo-placeholder {
  pointer-events: none;
}
.review-photo-zone:hover,
.review-photo-zone.dragover {
  border-color: rgba(220,60,60,.4);
  background: rgba(220,60,60,.04);
}
.review-photo-zone.has-photo {
  padding: 8px;
}
.review-photo-zone svg {
  width: 28px;
  height: 28px;
  stroke: var(--muted);
  margin-bottom: 8px;
}
.review-photo-zone span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.review-photo-zone small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted2);
}
.review-photo-preview {
  display: none;
  position: relative;
}
.review-photo-preview img {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 10px;
}
.review-photo-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.6);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}
.review-form .btn-main {
  width: 100%;
  justify-content: center;
}
.review-login-prompt,
.review-already {
  text-align: center;
  padding: 24px 16px;
  color: var(--muted);
  font-size: 14px;
}
.review-login-prompt a {
  color: var(--red);
  font-weight: 600;
}
.reviews-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.review-card {
  border: 1px solid rgba(220,60,60,.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13,18,28,.78), rgba(10,15,23,.88));
  padding: 22px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  animation: reviewFadeIn .5s ease both;
}
.review-card:hover {
  transform: translateY(-3px);
  border-color: rgba(220,60,60,.18);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
@keyframes reviewFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.review-card-head {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(220,60,60,.25), rgba(255,152,0,.2));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  color: #ffc107;
  flex-shrink: 0;
  border: 1px solid rgba(255,193,7,.2);
}
.review-card-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 4px;
}
.review-card-meta .review-stars-display {
  justify-content: flex-start;
  margin: 0 0 4px;
}
.review-card-meta .review-star {
  width: 14px;
  height: 14px;
}
.review-card-meta time {
  font-size: 11px;
  color: var(--muted2);
}
.review-card-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.review-card-photo {
  margin-top: 14px;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
}
.review-card-photo img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  transition: transform .3s;
}
.review-card-photo:hover img {
  transform: scale(1.03);
}
.review-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 15px;
  border: 1px dashed rgba(220,60,60,.12);
  border-radius: 18px;
}
.review-photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 10000;
  display: none;
  place-items: center;
  padding: 40px;
  backdrop-filter: blur(8px);
}
.review-photo-lightbox.open {
  display: grid;
}
.review-photo-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.review-photo-lightbox button {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
[data-theme="light"] .reviews-panel,
[data-theme="light"] .review-card {
  background: linear-gradient(180deg, #ffffff, #f8f9fc);
  border-color: rgba(0,0,0,.08);
}
[data-theme="light"] .review-card-text { color: #5a6270; }
[data-theme="light"] .review-star { color: rgba(0,0,0,.12); }
[data-theme="light"] .review-dist-bar { background: rgba(0,0,0,.06); }
[data-theme="light"] .review-photo-zone { border-color: rgba(0,0,0,.12); }
