:root{
  --brand:#67328a;
  --brand-dark:#4f226d;
  --accent:#7f45a4;
  --ink:#182026;
  --muted:#64717a;
  --bg:#f5f7f8;
  --panel:#ffffff;
  --line:#dfe6ea;
  --soft:#f4edf8;
  --danger:#d92828;
  --whatsapp:#25d366;
  --whatsapp-dark:#128c4a;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.45;
}

a{
  color:inherit;
  text-decoration:none;
}

img{
  display:block;
  max-width:100%;
}

.top{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(12px);
}

.nav{
  width:min(1180px,100%);
  min-height:74px;
  margin:0 auto;
  padding:12px 24px;
  display:flex;
  align-items:center;
  gap:24px;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:23px;
  font-weight:900;
  color:var(--ink);
  white-space:nowrap;
}

.logo-mark{
  width:38px;
  height:38px;
  border-radius:8px;
  display:grid;
  place-items:center;
  background:var(--brand);
  color:#fff;
  font-size:20px;
}

.links{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:6px;
}

.links a{
  padding:10px 13px;
  border-radius:8px;
  color:#2f3b42;
  font-size:15px;
  font-weight:700;
}

.links a:hover{
  background:var(--soft);
  color:var(--brand-dark);
}

.whatsapp-btn{
  padding:12px 16px;
  border-radius:8px;
  background:var(--whatsapp-dark);
  color:#fff;
  font-weight:900;
  white-space:nowrap;
}

.menu-toggle{
  display:none;
  width:42px;
  height:42px;
  margin-left:auto;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  padding:9px;
}

.menu-toggle span{
  display:block;
  height:2px;
  margin:5px 0;
  background:var(--ink);
}

.btn{
  border:0;
  border-radius:8px;
  padding:12px 16px;
  font-weight:900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
}

.btn-p{
  background:var(--brand);
  color:white;
}

.btn-g{
  background:var(--accent);
  color:white;
}

.btn-w{
  background:var(--whatsapp-dark);
  color:#fff;
  border:1px solid var(--whatsapp-dark);
}

.btn-o{
  background:var(--soft);
  color:var(--brand-dark);
}

.btn-r{
  background:var(--danger);
  color:#fff;
}

.hero{
  width:min(1180px,100%);
  margin:0 auto;
  padding:42px 24px 32px;
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(360px,.98fr);
  gap:34px;
  align-items:center;
}

.hero-slider{
  display:block;
  min-height:520px;
}

.hero-slide{
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(360px,.98fr);
  gap:34px;
  align-items:center;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(12px);
  transition:opacity .55s ease, transform .55s ease, visibility .55s ease;
  position:absolute;
  inset:42px 24px 32px;
}

.hero-slide.active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
  position:relative;
  inset:auto;
}

.hero-copy{
  padding:34px 0;
}

.eyebrow,
.section-kicker{
  display:inline-block;
  color:var(--brand-dark);
  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:0;
  margin-bottom:10px;
}

.hero h1{
  margin:0;
  font-size:48px;
  line-height:1.05;
  max-width:720px;
}

.hero p{
  max-width:650px;
  margin:18px 0 0;
  color:var(--muted);
  font-size:18px;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:26px;
}

.hero-points{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}

.hero-points.is-hidden{
  display:none;
}

.hero-points span{
  padding:9px 11px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  color:#344047;
  font-weight:700;
  font-size:14px;
}

.hero-media{
  position:relative;
  min-height:420px;
  border-radius:8px;
  background:#fff;
  border:1px solid var(--line);
  overflow:hidden;
  box-shadow:0 18px 45px rgba(16,33,44,.11);
}

.hero-media img{
  width:100%;
  height:100%;
  min-height:420px;
  object-fit:cover;
}

.hero-slide.active .hero-media img{
  animation:heroImageIn .7s ease both;
}

@keyframes heroImageIn{
  from{transform:scale(1.035);opacity:.82}
  to{transform:scale(1);opacity:1}
}

.hero-placeholder{
  min-height:420px;
  display:grid;
  place-items:center;
  padding:38px;
  text-align:center;
  background:linear-gradient(135deg,#ffffff,#f0e5f6);
}

.hero-placeholder strong{
  font-size:76px;
  color:var(--brand);
}

.hero-placeholder span{
  max-width:260px;
  color:var(--muted);
  font-weight:700;
}

.hero-card{
  position:absolute;
  left:18px;
  right:18px;
  bottom:18px;
  display:grid;
  gap:4px;
  background:rgba(255,255,255,.94);
  border:1px solid var(--line);
  border-radius:8px;
  padding:15px;
  box-shadow:0 10px 30px rgba(0,0,0,.12);
}

.hero-card span{
  color:var(--muted);
}

.hero-slider-controls{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:12px;
}

.hero-dots{
  display:flex;
  align-items:center;
  gap:8px;
}

.hero-dot{
  width:11px;
  height:11px;
  border:0;
  border-radius:999px;
  background:#d7c4e4;
  cursor:pointer;
}

.hero-dot.active{
  width:34px;
  background:var(--brand);
}

.hero-pause{
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--brand-dark);
  font-weight:900;
  font-size:14px;
  line-height:1;
  cursor:pointer;
}

.section{
  width:min(1180px,100%);
  margin:0 auto;
  padding:28px 24px;
}

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}

.section-head h2,
.contact-strip h2{
  margin:0;
  font-size:32px;
  line-height:1.12;
}

.text-link{
  color:var(--brand-dark);
  font-weight:900;
}

.cats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.cat{
  min-height:82px;
  display:flex;
  align-items:center;
  gap:12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  padding:16px;
  color:#1d282f;
  font-weight:900;
  box-shadow:0 8px 22px rgba(16,33,44,.05);
}

.cat:hover{
  border-color:#d5b9e6;
  transform:translateY(-1px);
}

.cat-icon{
  width:44px;
  height:44px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:var(--soft);
  color:var(--brand-dark);
  font-size:13px;
  font-weight:900;
}

.catalog-cats{
  margin-bottom:22px;
}

.catalog-products-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:8px 0 16px;
}

.catalog-products-head h3{
  margin:0;
  font-size:24px;
}

.catalog-products-head span{
  color:var(--muted);
  font-weight:800;
}

.feature-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.feature-card,
.product,
.service-item,
.panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:0 8px 22px rgba(16,33,44,.05);
}

.feature-card{
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.feature-pic{
  aspect-ratio:1/1;
  background:#eef4f6;
  display:grid;
  place-items:center;
  color:var(--brand-dark);
  font-size:32px;
  font-weight:900;
}

.feature-pic img{
  width:100%;
  height:100%;
  object-fit:contain;
  background:#fff;
}

.feature-body{
  padding:16px;
  display:flex;
  flex:1;
  flex-direction:column;
  gap:8px;
}

.feature-body > span,
.product-cat,
.stock{
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}

.feature-body h3,
.service-item h3,
.info h3{
  margin:0;
  font-size:20px;
  line-height:1.2;
}

.feature-body p{
  margin:0;
  color:var(--muted);
}

.feature-row{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.feature-row b{
  color:var(--brand-dark);
  font-size:22px;
}

.service-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}

.service-item{
  padding:18px;
}

.service-item b{
  display:block;
  color:var(--brand);
  margin-bottom:16px;
}

.service-item p{
  margin:10px 0 0;
  color:var(--muted);
}

.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.product{
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.pic{
  position:relative;
  overflow:hidden;
  aspect-ratio:1/1;
  background:#eef4f6;
  display:grid;
  place-items:center;
  color:var(--brand-dark);
  font-size:32px;
  font-weight:900;
}

.pic img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  background:#fff;
}

.info{
  padding:16px;
  display:flex;
  flex:1;
  flex-direction:column;
  gap:9px;
}

.spec{
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
  white-space:pre-line;
}

.product-bottom{
  margin-top:auto;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
}

.pprice{
  color:var(--brand-dark);
  font-size:24px;
  font-weight:900;
}

.old{
  color:#8c969c;
  font-size:15px;
  text-decoration:line-through;
  margin-left:6px;
}

.product-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}

.product-detail{
  padding-top:28px;
}

.detail-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.detail-card{
  display:grid;
  grid-template-columns:minmax(320px,.95fr) minmax(0,1.05fr);
  gap:24px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:0 8px 22px rgba(16,33,44,.05);
  overflow:hidden;
}

.detail-media{
  min-height:480px;
  background:#f4edf8;
  display:grid;
  place-items:center;
}

.detail-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.detail-placeholder{
  width:160px;
  height:160px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#fff;
  color:var(--brand-dark);
  font-size:42px;
  font-weight:900;
  border:1px solid var(--line);
}

.detail-info{
  padding:30px;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.detail-info h1{
  margin:0;
  font-size:38px;
  line-height:1.08;
}

.detail-description{
  margin:0;
  color:var(--muted);
  font-size:17px;
}

.detail-price-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.detail-price{
  color:var(--brand-dark);
  font-size:34px;
  font-weight:900;
}

.detail-stock{
  padding:9px 11px;
  border-radius:8px;
  background:var(--soft);
  color:var(--brand-dark);
  font-size:14px;
  font-weight:900;
  white-space:nowrap;
}

.detail-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.detail-note{
  padding:13px;
  border-radius:8px;
  background:#faf7fc;
  color:var(--muted);
  font-size:14px;
}

.detail-specs{
  margin-top:28px;
}

.spec-box{
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  padding:18px;
  color:#2d3940;
  white-space:pre-line;
  box-shadow:0 8px 22px rgba(16,33,44,.05);
}

.category-page{
  padding-top:28px;
}

.category-hero,
.empty-state{
  margin-bottom:22px;
  padding:24px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:0 8px 22px rgba(16,33,44,.05);
}

.category-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
}

.category-hero .text-link{
  display:inline-block;
  margin-bottom:18px;
}

.category-hero h1{
  margin:0;
  font-size:38px;
  line-height:1.08;
}

.category-hero h1 span{
  color:var(--brand-dark);
}

.category-hero p,
.empty-state p{
  max-width:640px;
  margin:12px 0 0;
  color:var(--muted);
}

.empty-state{
  margin-bottom:0;
}

.empty-state h2{
  margin:0;
  font-size:28px;
}

.contact-strip{
  width:min(1180px,100%);
  margin:28px auto 0;
  padding:28px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  background:var(--ink);
  color:#fff;
  border-radius:8px 8px 0 0;
}

.contact-strip p{
  margin:10px 0 0;
  color:#cbd6dc;
}

.contact-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:10px;
}

.contact-actions span{
  color:#cbd6dc;
}

.cart-float{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:1100;
  padding:13px 16px;
  border-radius:8px;
  background:var(--brand);
  color:#fff;
  box-shadow:0 12px 32px rgba(16,33,44,.24);
  font-weight:900;
  cursor:pointer;
}

.quiet-admin{
  width:16px;
  height:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  border:1px solid rgba(255,255,255,.2);
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:rgba(255,255,255,.38);
  font-size:10px;
  line-height:1;
  cursor:pointer;
  padding:0;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}

.quiet-admin:hover,
.quiet-admin.is-ready{
  color:#fff;
  border-color:rgba(255,255,255,.45);
  background:rgba(255,255,255,.22);
}

.modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:1200;
  background:rgba(0,0,0,.55);
  padding:18px;
}

.modal.is-open{
  display:block;
}

.modal-inner{
  position:relative;
  width:min(760px,100%);
  max-height:90vh;
  margin:4vh auto;
  overflow:auto;
  background:#fff;
  border-radius:8px;
  padding:20px;
}

.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.modal-head h2{
  margin:0;
}

.cart-subtitle{
  margin:5px 0 0;
  color:var(--muted);
  font-size:14px;
}

.icon-close{
  width:40px;
  height:40px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  font-size:24px;
  cursor:pointer;
}

.table{
  width:100%;
  border-collapse:collapse;
  margin:12px 0;
}

.table th,
.table td{
  border-bottom:1px solid var(--line);
  padding:10px;
  text-align:left;
  vertical-align:middle;
}

input,
textarea,
select{
  width:100%;
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px;
  margin:6px 0 12px;
  font:inherit;
}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.cart-client{
  margin-top:16px;
}

.cart-list{
  display:grid;
  gap:10px;
  margin-top:16px;
}

.cart-line{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto 34px;
  align-items:center;
  gap:12px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
}

.cart-line-main{
  min-width:0;
  display:grid;
  gap:3px;
}

.cart-line-main b{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.cart-line-main span{
  color:var(--muted);
  font-size:13px;
}

.cart-qty{
  display:grid;
  grid-template-columns:28px 32px 28px;
  align-items:center;
  justify-items:center;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
}

.cart-qty button,
.cart-remove{
  border:0;
  background:#f4edf8;
  color:var(--brand-dark);
  font-weight:900;
  cursor:pointer;
}

.cart-qty button{
  width:28px;
  height:30px;
  font-size:17px;
}

.cart-qty span{
  font-weight:900;
  font-size:14px;
}

.cart-line-sum{
  color:var(--brand-dark);
  font-weight:900;
  white-space:nowrap;
}

.cart-remove{
  width:34px;
  height:34px;
  border-radius:8px;
  background:#fde8e8;
  position:relative;
}

.cart-remove:before{
  content:"";
  position:absolute;
  inset:8px;
  background:var(--danger);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v5'/%3E%3Cpath d='M14 11v5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v5'/%3E%3Cpath d='M14 11v5'/%3E%3C/svg%3E") center/contain no-repeat;
}

.cart-total{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:14px;
  padding:14px;
  border-radius:8px;
  background:var(--soft);
  color:var(--brand-dark);
  font-weight:900;
}

.cart-total b{
  font-size:22px;
}

.cart-empty,
.cart-expire-note{
  margin:16px 0 0;
  padding:14px;
  border-radius:8px;
  background:#faf7fc;
  color:var(--muted);
}

.cart-actions{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
}

.cart-after-send{
  position:sticky;
  bottom:0;
  z-index:2;
  margin-top:14px;
  padding:14px;
  border:1px solid #d5b9e6;
  border-radius:8px;
  background:#fff;
  box-shadow:0 -8px 26px rgba(16,33,44,.12);
}

.cart-after-send p{
  margin:0 0 12px;
  color:#2d3940;
  font-weight:800;
}

.cart-choice-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.cart-choice-grid .btn{
  min-height:40px;
  padding:10px;
  font-size:14px;
}

.cart-clear-soft{
  margin-top:12px;
  padding:0;
  border:0;
  background:transparent;
  color:#8c969c;
  font:inherit;
  font-size:13px;
  cursor:pointer;
}

.cart-clear-soft:hover{
  color:var(--danger);
}

.admin-layout{
  display:grid;
  grid-template-columns:280px 1fr;
  min-height:100vh;
  background:#f5f1f8;
}

.sidebar{
  position:sticky;
  top:0;
  min-height:100vh;
  background:#21112f;
  color:white;
  padding:22px;
}

.admin-brand{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:22px;
  font-size:20px;
  font-weight:900;
}

.admin-brand span{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#fff;
  color:var(--brand);
}

.side-btn{
  display:block;
  width:100%;
  margin:6px 0;
  padding:13px 14px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  background:transparent;
  color:white;
  text-align:left;
  cursor:pointer;
  font-weight:800;
}

.side-btn:hover,
.side-btn.active{
  background:#ffffff;
  color:var(--brand-dark);
}

.main{
  width:min(1180px,100%);
  padding:28px;
}

.panel{
  padding:18px;
  margin-bottom:18px;
}

.admin-page-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:20px;
}

.admin-page-head h1{
  margin:0;
  font-size:34px;
}

.admin-page-head p{
  max-width:680px;
  margin:8px 0 0;
  color:var(--muted);
}

.admin-stat-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}

.admin-stat{
  padding:18px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:0 8px 22px rgba(16,33,44,.05);
}

.admin-stat span{
  color:var(--muted);
  font-weight:800;
}

.admin-stat b{
  display:block;
  margin-top:8px;
  color:var(--brand-dark);
  font-size:36px;
}

.admin-next h2,
.admin-form-section h2{
  margin:0 0 14px;
  font-size:22px;
}

.admin-quick-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.admin-table-wrap{
  overflow:auto;
}

.admin-table{
  width:100%;
  border-collapse:collapse;
}

.admin-table th,
.admin-table td{
  border-bottom:1px solid var(--line);
  padding:11px;
  text-align:left;
  vertical-align:middle;
}

.admin-table th{
  background:#faf7fc;
  color:#53636d;
}

.admin-table tr:hover td{
  background:#fcf9fd;
}

.admin-pill{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:6px 10px;
  border-radius:8px;
  font-size:13px;
  font-weight:900;
}

.admin-pill.is-on{
  background:#edf8f1;
  color:#167242;
}

.admin-pill.is-off{
  background:#f2f3f4;
  color:#65727a;
}

.admin-thumb{
  width:62px;
  height:50px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:8px;
  background:#faf7fc;
  overflow:hidden;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  text-align:center;
}

.admin-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.actions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
}

.notice{
  margin-bottom:16px;
  padding:14px;
  border:1px solid #f4d28d;
  border-radius:8px;
  background:#fff8e8;
  color:#674510;
}

.notice-error{
  border-color:#f0b5b5;
  background:#fff1f1;
  color:#8a1f1f;
}

.admin-login-body{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:18px;
  background:linear-gradient(135deg,#f7f1fb,#ffffff);
}

.admin-login-card{
  width:min(430px,100%);
  padding:24px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:0 18px 50px rgba(16,33,44,.12);
}

.admin-login-brand{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
  color:var(--brand-dark);
  font-size:20px;
}

.admin-login-brand span{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:var(--brand);
  color:#fff;
  font-weight:900;
}

.admin-login-card h1{
  margin:0;
  font-size:30px;
}

.admin-login-card p{
  margin:8px 0 18px;
  color:var(--muted);
}

.admin-login-card .btn{
  width:100%;
}

.admin-form{
  display:grid;
  gap:18px;
}

.admin-form-section{
  padding-bottom:18px;
  border-bottom:1px solid var(--line);
}

.admin-form-section:last-of-type{
  border-bottom:0;
}

.admin-check{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:10px;
  font-weight:800;
}

.admin-check input{
  width:auto;
  margin:0;
}

.admin-image-preview{
  width:180px;
  margin-top:8px;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  background:#faf7fc;
}

.admin-image-preview img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
}

.admin-banner-preview{
  width:260px;
}

.admin-banner-preview img{
  aspect-ratio:16/9;
}

.admin-category-icon{
  min-width:46px;
  min-height:34px;
  display:inline-grid;
  place-items:center;
  margin-right:8px;
  padding:6px 8px;
  border-radius:8px;
  background:var(--soft);
  color:var(--brand-dark);
  font-size:12px;
  font-weight:900;
}

.admin-check-spaced{
  min-height:48px;
  margin-top:30px;
}

.settings-form textarea{
  resize:vertical;
}

.admin-form-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

@media(max-width:980px){
  .hero-slide{
    grid-template-columns:1fr;
    gap:22px;
  }

  .hero-slider{
    min-height:860px;
  }

  .hero-copy{
    padding:10px 0 0;
  }

  .hero h1{
    font-size:40px;
  }

  .cats,
  .service-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .feature-grid,
  .grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .contact-strip{
    align-items:flex-start;
    flex-direction:column;
  }

  .contact-actions{
    justify-content:flex-start;
  }
}

@media(max-width:760px){
  .nav{
    flex-wrap:wrap;
    gap:12px;
    padding:10px 16px;
  }

  .logo{
    font-size:20px;
  }

  .menu-toggle{
    display:block;
  }

  .links{
    order:4;
    width:100%;
    display:none;
    margin-left:0;
    padding-top:8px;
    border-top:1px solid var(--line);
  }

  body.menu-open .links{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .whatsapp-btn{
    margin-left:auto;
    padding:10px 12px;
  }

  .hero,
  .section,
  .contact-strip{
    padding-left:16px;
    padding-right:16px;
  }

  .hero{
    padding-top:24px;
    padding-bottom:22px;
  }

  .hero-slide{
    gap:16px;
    inset:24px 16px 22px;
  }

  .hero h1{
    font-size:34px;
  }

  .hero p{
    font-size:16px;
  }

  .hero-media,
  .hero-media img,
  .hero-placeholder{
    min-height:320px;
  }

  .section-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .section-head h2,
  .contact-strip h2{
    font-size:26px;
  }

  .feature-grid,
  .grid{
    grid-template-columns:1fr;
  }

  .product{
    display:grid;
    grid-template-columns:142px minmax(0,1fr);
  }

  .pic{
    align-self:start;
    aspect-ratio:1/1;
    min-height:0;
  }

  .info{
    min-width:0;
  }

  .product-actions{
    grid-template-columns:1fr 1fr;
  }

  .detail-card{
    grid-template-columns:1fr;
  }

  .detail-media{
    min-height:360px;
  }

  .detail-info{
    padding:22px;
  }

  .detail-info h1{
    font-size:30px;
  }

  .category-hero{
    align-items:flex-start;
    flex-direction:column;
  }

  .category-hero h1{
    font-size:30px;
  }

  .form-grid,
  .admin-layout{
    grid-template-columns:1fr;
  }

  .sidebar{
    position:relative;
    min-height:auto;
    padding:16px;
  }

  .main{
    padding:18px 16px;
  }

  .admin-page-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .admin-stat-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .table{
    font-size:14px;
  }

  .modal{
    padding:10px;
  }

  .modal-inner{
    margin:2vh auto;
    padding:16px;
  }

  .cart-line{
    grid-template-columns:minmax(0,1fr) auto auto 32px;
    gap:8px;
  }

  .cart-line-sum{
    grid-column:auto;
    justify-self:auto;
    font-size:16px;
  }

  .cart-qty{
    grid-template-columns:26px 28px 26px;
  }

  .cart-qty button{
    width:26px;
  }

  .cart-remove{
    width:32px;
    height:32px;
  }
}

@media(max-width:520px){
  .whatsapp-btn{
    display:none;
  }

  body.menu-open .links,
  .cats,
  .service-grid{
    grid-template-columns:1fr;
  }

  .hero-slider{
    min-height:0;
  }

  .hero-slide{
    gap:14px;
  }

  .hero-copy{
    padding:0;
  }

  .hero h1{
    font-size:30px;
  }

  .hero-actions{
    margin-top:18px;
  }

  .hero-actions .btn{
    width:100%;
  }

  .hero-media{
    min-height:0;
    aspect-ratio:1/1;
  }

  .hero-media img{
    min-height:0;
    height:100%;
    object-fit:contain;
    background:#fff;
  }

  .hero-placeholder{
    min-height:0;
    aspect-ratio:1/1;
  }

  .hero-points span{
    width:100%;
  }

  .product{
    grid-template-columns:1fr;
  }

  .pic{
    aspect-ratio:1/1;
    min-height:0;
  }

  .info{
    gap:7px;
    padding:13px 14px 14px;
  }

  .info h3{
    font-size:19px;
  }

  .spec{
    font-size:13px;
    line-height:1.42;
  }

  .product-bottom{
    align-items:center;
    flex-direction:row;
  }

  .pprice{
    font-size:21px;
  }

  .stock{
    text-align:right;
    font-size:12px;
  }

  .product-actions{
    gap:8px;
  }

  .product-actions .btn{
    min-height:42px;
    padding:10px 8px;
    font-size:14px;
  }

  .detail-nav,
  .detail-price-row{
    align-items:flex-start;
    flex-direction:column;
  }

  .detail-actions{
    grid-template-columns:1fr;
  }

  .detail-media{
    min-height:280px;
  }

  .cart-actions,
  .cart-choice-grid{
    grid-template-columns:1fr;
  }

  .cart-line{
    gap:6px;
    padding:10px;
  }

  .cart-line-main b{
    white-space:nowrap;
    font-size:14px;
  }

  .cart-line-main span{
    font-size:12px;
  }

  .cart-line-sum{
    font-size:15px;
  }

  .admin-stat-grid{
    grid-template-columns:1fr;
  }

  .admin-page-head h1{
    font-size:28px;
  }

  .admin-table{
    min-width:0;
  }

  .admin-table tbody,
  .admin-table tr,
  .admin-table td{
    display:block;
  }

  .admin-table tr:first-child{
    display:none;
  }

  .admin-table tr{
    margin-bottom:12px;
    padding:12px;
    border:1px solid var(--line);
    border-radius:8px;
    background:#fff;
  }

  .admin-table td{
    display:grid;
    grid-template-columns:98px minmax(0,1fr);
    gap:10px;
    padding:8px 0;
    border-bottom:1px solid #f0e7f5;
  }

  .admin-table td:last-child{
    border-bottom:0;
  }

  .admin-table td:before{
    content:attr(data-label);
    color:var(--muted);
    font-size:13px;
    font-weight:900;
  }

  .admin-table td.actions{
    display:grid;
    grid-template-columns:98px minmax(0,1fr);
  }

  .admin-table td.actions .btn{
    width:100%;
    margin-bottom:6px;
  }

  .admin-thumb{
    width:84px;
    height:64px;
  }

  .products-admin-panel .admin-table tr:not(:first-child){
    display:grid;
    grid-template-columns:96px minmax(0,1fr);
    gap:8px 12px;
    align-items:start;
  }

  .products-admin-panel .admin-table td{
    display:block;
    padding:0;
    border-bottom:0;
  }

  .products-admin-panel .admin-table td:before{
    display:none;
  }

  .products-admin-panel .admin-table td[data-label="ID"]{
    grid-column:2;
    grid-row:1;
    justify-self:end;
    color:var(--muted);
    font-size:12px;
    font-weight:900;
  }

  .products-admin-panel .admin-table td[data-label="ID"]:before{
    content:"ID ";
    display:inline;
    margin-right:3px;
  }

  .products-admin-panel .admin-table td[data-label="Фото"]{
    grid-column:1;
    grid-row:1 / span 4;
  }

  .products-admin-panel .admin-thumb{
    width:96px;
    height:86px;
  }

  .products-admin-panel .admin-table td[data-label="Товар"]{
    grid-column:2;
    grid-row:1;
    padding-right:48px;
    font-size:15px;
  }

  .products-admin-panel .admin-table td[data-label="Категория"]{
    grid-column:2;
    grid-row:2;
    color:var(--muted);
    font-size:13px;
  }

  .products-admin-panel .admin-table td[data-label="Цена"]{
    grid-column:2;
    grid-row:3;
    color:var(--brand-dark);
    font-size:18px;
    font-weight:900;
  }

  .products-admin-panel .admin-table td[data-label="Статус"]{
    grid-column:1;
    grid-row:5;
    align-self:center;
  }

  .products-admin-panel .admin-table td.actions{
    grid-column:2;
    grid-row:5;
    display:grid;
    grid-template-columns:minmax(0,1fr) 44px;
    gap:8px;
  }

  .products-admin-panel .admin-pill{
    min-height:40px;
    width:100%;
    justify-content:center;
    padding:8px;
    font-size:12px;
  }

  .products-admin-panel .admin-table td.actions .btn{
    margin:0;
    min-height:40px;
    padding:9px 10px;
  }

  .products-admin-panel .admin-table td.actions .btn-r{
    font-size:0;
    position:relative;
  }

  .products-admin-panel .admin-table td.actions .btn-r:before{
    content:"";
    position:absolute;
    inset:11px;
    background:#fff;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v5'/%3E%3Cpath d='M14 11v5'/%3E%3C/svg%3E") center/contain no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v5'/%3E%3Cpath d='M14 11v5'/%3E%3C/svg%3E") center/contain no-repeat;
  }

  .banners-admin-panel .admin-table tr:not(:first-child){
    display:grid;
    grid-template-columns:84px minmax(0,1fr) 92px;
    gap:8px 12px;
  }

  .banners-admin-panel .admin-table tr:first-child{
    display:none;
  }

  .banners-admin-panel .admin-table td{
    display:block;
    padding:0;
    border-bottom:0;
  }

  .banners-admin-panel .admin-table td:before{
    display:none;
  }

  .banners-admin-panel .admin-table td[data-label="ID"]{
    grid-column:3;
    grid-row:1;
    justify-self:end;
    color:var(--muted);
    font-size:12px;
    font-weight:900;
  }

  .banners-admin-panel .admin-table td[data-label="ID"]:before{
    content:"ID ";
    display:inline;
    margin-right:3px;
  }

  .banners-admin-panel .admin-table td[data-label="Картинка"]{
    grid-column:1;
    grid-row:1 / span 3;
  }

  .banners-admin-panel .admin-table td[data-label="Картинка"] .admin-thumb{
    width:84px;
    height:70px;
  }

  .banners-admin-panel .admin-table td[data-label="Заголовок"]{
    grid-column:2 / -1;
    grid-row:1;
    padding-right:102px;
  }

  .banners-admin-panel .admin-table td[data-label="Порядок"]{
    grid-column:2;
    grid-row:2;
    color:var(--muted);
    font-size:13px;
    font-weight:800;
  }

  .banners-admin-panel .admin-table td[data-label="Порядок"]:before{
    content:"Порядок: ";
    display:inline;
  }

  .banners-admin-panel .admin-table td[data-label="Статус"]{
    grid-column:2;
    grid-row:3;
  }

  .banners-admin-panel .admin-table td.actions{
    grid-column:3;
    grid-row:2 / span 2;
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }

  .banners-admin-panel .admin-table td.actions .btn{
    width:100%;
    min-height:36px;
    margin:0;
    padding:8px 6px;
    font-size:14px;
  }

  .categories-admin-panel .admin-table tr:not(:first-child){
    display:grid;
    grid-template-columns:minmax(0,1fr) 92px;
    gap:8px 12px;
  }

  .categories-admin-panel .admin-table tr:first-child{
    display:none;
  }

  .categories-admin-panel .admin-table td{
    display:block;
    padding:0;
    border-bottom:0;
  }

  .categories-admin-panel .admin-table td:before{
    display:none;
  }

  .categories-admin-panel .admin-table td[data-label="ID"]{
    grid-column:2;
    grid-row:1;
    justify-self:end;
    color:var(--muted);
    font-size:12px;
    font-weight:900;
  }

  .categories-admin-panel .admin-table td[data-label="ID"]:before{
    content:"ID ";
    display:inline;
    margin-right:3px;
  }

  .categories-admin-panel .admin-table td[data-label="Название"]{
    grid-column:1 / -1;
    grid-row:1;
    padding-right:102px;
  }

  .categories-admin-panel .admin-table td[data-label="Порядок"]{
    grid-column:1;
    grid-row:2;
    color:var(--muted);
    font-size:13px;
    font-weight:800;
  }

  .categories-admin-panel .admin-table td[data-label="Порядок"]:before{
    content:"Порядок: ";
    display:inline;
  }

  .categories-admin-panel .admin-table td[data-label="Статус"]{
    grid-column:1;
    grid-row:3;
  }

  .categories-admin-panel .admin-table td.actions{
    grid-column:2;
    grid-row:2 / span 2;
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }

  .categories-admin-panel .admin-table td.actions .btn{
    width:100%;
    min-height:36px;
    margin:0;
    padding:8px 6px;
    font-size:14px;
  }

  .cart-float{
    right:12px;
    bottom:12px;
  }
}
