﻿/* ============================================================
   PETPAWS v3 - Estilos Tienda Principal
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&family=Nunito:wght@300;400;500;600&display=swap');

:root {
  --accent:   #ff6b35;
  --accent2:  #4caf50;
  --brown:    #5d4037;
  --bg:       #fff8f0;
  --surface:  #ffffff;
  --s2:       #fdf3e3;
  --border:   #e8d5b0;
  --text:     #2d1a0e;
  --muted:    #9e7a5a;
  --red:      #e53935;
  --blue:     #1976d2;
  --ok:       #4caf50;
  --radius:   14px;
  --shadow:   0 4px 20px rgba(93,64,55,.10);
  --shadow-lg:0 12px 40px rgba(93,64,55,.18);
  --font-d:   'Fredoka', sans-serif;
  --font-b:   'Nunito', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; margin: 0 !important; padding: 0 !important; }
body { margin: 0 !important; padding: 0 !important; background: var(--bg); color: var(--text); font-family: var(--font-b); font-weight: 400; min-height: 100vh; }
img { max-width: 100%; display: block; }

/* Defensa contra contenedores inyectados por hosting/extensiones arriba del layout */
body > iframe:first-child,
body > div:first-child:not(header):not(.layout):not(.wrap):not(.profile-wrap),
body > section:first-child:not(header) {
  margin: 0 !important;
  padding: 0 !important;
}
body > iframe:first-child {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  border: 0 !important;
}

/* HEADER */
header { margin: 0; background: var(--surface); border-bottom: 2px solid var(--border); box-shadow: var(--shadow); padding: 0 2rem; height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: sticky; top: 0; z-index: 200; }
.logo { font-family: var(--font-d); font-size: 1.9rem; font-weight: 700; color: var(--accent); text-decoration: none; display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.logo em { font-style: normal; color: var(--brown); }
.logo img.logo-img { height: 42px; width: auto; object-fit: contain; }

.search-bar { flex: 1; max-width: 500px; }
.search-form { display: flex; }
.search-form input { width: 100%; background: var(--s2); border: 2px solid var(--border); border-radius: 50px 0 0 50px; color: var(--text); font-family: var(--font-b); font-size: .9rem; padding: .55rem 1.2rem; outline: none; transition: border-color .2s; }
.search-form input:focus { border-color: var(--accent); }
.search-form input::placeholder { color: var(--muted); }
.search-form button { background: var(--accent); border: none; border-radius: 0 50px 50px 0; color: #fff; cursor: pointer; padding: .55rem 1.2rem; font-size: 1rem; transition: background .2s; }
.search-form button:hover { background: #e55a27; }

.hdr-right { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.hbtn { position: relative; background: var(--s2); border: 2px solid var(--border); border-radius: 50px; color: var(--brown); cursor: pointer; font-family: var(--font-b); font-weight: 600; font-size: .82rem; padding: .45rem 1rem; text-decoration: none; transition: all .2s; white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; }
.hbtn:hover { border-color: var(--accent); color: var(--accent); }
.hbtn.solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.hbtn.solid:hover { background: #e55a27; }
.cart-wrap { display: flex; align-items: center; gap: .6rem; }
.c-badge { position: absolute; top: -8px; right: -8px; background: var(--accent); color: #fff; border-radius: 50%; width: 20px; height: 20px; font-size: .65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }

/* Avatar */
.av-wrap { position: relative; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-d); font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 2px solid var(--border); overflow: hidden; transition: transform .2s; }
.avatar:hover { transform: scale(1.08); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.u-menu { position: absolute; top: calc(100% + 10px); right: 0; background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); min-width: 210px; box-shadow: var(--shadow-lg); display: none; overflow: hidden; z-index: 300; }
.u-menu.open { display: block; }
.u-top { padding: .9rem 1rem; background: var(--s2); border-bottom: 1px solid var(--border); }
.u-name { font-family: var(--font-d); font-size: 1rem; font-weight: 600; color: var(--brown); }
.u-email { color: var(--muted); font-size: .72rem; }
.u-rol { display: inline-block; margin-top: .25rem; border-radius: 50px; font-size: .65rem; font-weight: 700; padding: .15rem .6rem; text-transform: uppercase; }
.rol-admin { background: #ff6b35; color: #fff; }
.rol-vendedor { background: #1976d2; color: #fff; }
.rol-cliente { background: #4caf50; color: #fff; }
.u-item { display: flex; align-items: center; gap: .5rem; padding: .65rem 1rem; font-size: .84rem; color: var(--text); text-decoration: none; transition: background .15s; border: none; background: none; width: 100%; text-align: left; font-family: var(--font-b); cursor: pointer; }
.u-item:hover { background: var(--s2); }
.u-item.danger { color: var(--red); }

/* HERO */
.hero-section { background: linear-gradient(135deg, #fff4ec, #fde8d0, #ffdfc8); border-bottom: 2px solid var(--border); padding: 2.5rem 2rem; }
.hero-title { font-family: var(--font-d); font-size: 1.6rem; font-weight: 700; color: var(--brown); margin-bottom: 1.2rem; display: flex; align-items: center; gap: .6rem; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.hero-card { background: var(--surface); border: 2px solid var(--border); border-radius: 18px; overflow: hidden; display: flex; transition: all .3s; cursor: pointer; text-decoration: none; color: inherit; }
.hero-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.hero-card-img { width: 100px; height: 100px; flex-shrink: 0; overflow: hidden; background: var(--s2); }
.hero-card-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-info { padding: .8rem; flex: 1; }
.hero-card-name { font-family: var(--font-d); font-weight: 600; font-size: .95rem; color: var(--brown); margin-bottom: .2rem; }
.hero-card-price { color: var(--accent); font-family: var(--font-d); font-size: 1.1rem; font-weight: 700; }

/* FILTROS */
.filters { background: var(--surface); border-bottom: 2px solid var(--border); padding: 1rem 2rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.filt-label { font-family: var(--font-d); font-size: .88rem; font-weight: 600; color: var(--muted); flex-shrink: 0; }
.filt { background: var(--s2); border: 2px solid var(--border); border-radius: 50px; color: var(--muted); cursor: pointer; font-family: var(--font-b); font-weight: 600; font-size: .78rem; padding: .3rem .9rem; text-decoration: none; transition: all .2s; white-space: nowrap; display: inline-flex; align-items: center; gap: .25rem; }
.filt:hover, .filt.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filt-sep { width: 1px; height: 20px; background: var(--border); flex-shrink: 0; }
.sort-sel { background: var(--s2); border: 2px solid var(--border); border-radius: 50px; color: var(--brown); font-family: var(--font-b); font-size: .78rem; font-weight: 600; padding: .3rem .9rem; outline: none; cursor: pointer; }

/* MENSAJES */
.msg-ok { background: #f0fdf4; border: 2px solid #86efac; border-radius: var(--radius); color: #166534; font-weight: 600; padding: .85rem 1.2rem; margin: 1rem 2rem; font-size: .9rem; display: flex; align-items: center; gap: .6rem; }
.guest-banner { background: linear-gradient(90deg,#fff8f0,#fff3e8); border: 2px solid #ffd4b8; border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin: 1rem 2rem; padding: 1rem 1.5rem; }
.guest-banner p { color: var(--muted); font-size: .88rem; }
.guest-banner p strong { color: var(--accent); }

/* GRID PRODUCTOS */
.shop-wrap { max-width: 1400px; margin: 0 auto; padding: 1.5rem 2rem; }
.section-hdr { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.2rem; }
.section-hdr h2 { font-family: var(--font-d); font-size: 1.6rem; font-weight: 700; color: var(--brown); }
.section-hdr .cnt { color: var(--muted); font-size: .85rem; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 1.3rem; }
.prod-card { background: var(--surface); border: 2px solid var(--border); border-radius: 18px; overflow: hidden; transition: all .3s; display: flex; flex-direction: column; }
.prod-card:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.prod-img-wrap { position: relative; height: 200px; overflow: hidden; background: var(--s2); flex-shrink: 0; cursor: pointer; }
.prod-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.prod-card:hover .prod-img-wrap img { transform: scale(1.06); }
.hero-no-img,
.prod-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  background: linear-gradient(135deg,var(--s2),#fde8d0);
  color: #8f6a50;
}
.hero-no-img .ph-icon,
.prod-no-img .ph-icon { font-size: 2.5rem; line-height: 1; }
.prod-zoom-hint { position: absolute; inset: 0; background: rgba(93,64,55,.45); display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-d); font-size: 1rem; font-weight: 600; opacity: 0; transition: opacity .25s; }
.prod-img-wrap:hover .prod-zoom-hint { opacity: 1; }
.badge { position: absolute; top: 10px; left: 10px; border-radius: 50px; font-family: var(--font-d); font-size: .7rem; font-weight: 600; padding: .2rem .65rem; text-transform: uppercase; }
.badge-top { background: #ff6b35; color: #fff; }
.badge-nuevo { background: #4caf50; color: #fff; }
.badge-oferta { background: #f59e0b; color: #fff; }
.badge-dest { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.92); border: 1px solid #ffd4b8; border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.stock-tag { position: absolute; bottom: 8px; right: 8px; background: rgba(255,255,255,.9); border-radius: 50px; font-size: .68rem; font-weight: 600; padding: .15rem .6rem; color: var(--muted); border: 1px solid var(--border); }
.stock-low { color: var(--red); border-color: #ffc5b8; background: rgba(255,240,240,.95); }
.prod-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.prod-cat { color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.prod-name { font-family: var(--font-d); font-weight: 600; font-size: 1.05rem; color: var(--brown); line-height: 1.3; }
.prod-rating { color: #f59e0b; font-size: .78rem; font-weight: 700; margin-top: .1rem; }
.prod-desc { color: var(--muted); font-size: .78rem; line-height: 1.5; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-sold { color: #2e7d32; font-size: .75rem; font-weight: 700; margin-top: .25rem; }
.prod-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: .72rem; gap: .5rem; }
.price-wrap { display: flex; flex-direction: column; }
.price-oferta { font-family: var(--font-d); font-size: 1.5rem; font-weight: 700; color: var(--accent); line-height: 1; }
.price-orig { font-size: .78rem; color: var(--muted); text-decoration: line-through; line-height: 1; }
.price-normal { font-family: var(--font-d); font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.add-btn { background: var(--accent); border: 2px solid var(--accent); border-radius: 50px; color: #fff; cursor: pointer; font-family: var(--font-d); font-weight: 600; font-size: .82rem; padding: .45rem 1rem; transition: all .2s; white-space: nowrap; flex-shrink: 0; }
.add-btn:hover { background: #e55a27; border-color: #e55a27; transform: scale(1.05); }
.add-btn.in-cart { background: var(--accent2); border-color: var(--accent2); }
.add-btn.locked { background: var(--s2); border-color: var(--border); color: var(--muted); }
.add-btn.locked:hover { border-color: var(--accent); color: var(--accent); background: var(--s2); transform: none; }
.add-btn:disabled { background: #e0e0e0; border-color: #e0e0e0; color: #aaa; cursor: not-allowed; transform: none; }
.frm-add { width: 100%; display: flex; align-items: center; gap: .38rem; min-width: 0; }
.qty-stepper { display: inline-flex; align-items: center; gap: .28rem; background: var(--s2); border: 2px solid var(--border); border-radius: 12px; padding: .2rem; }
.qty-step {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: var(--brown);
  font-family: var(--font-d);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.qty-step span { display: block; transform: translateY(-1px); }
.qty-step:hover { color: var(--accent); }
.qty-step:active { transform: scale(.96); }
.qty-inp {
  width: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--brown);
  font-weight: 700;
  text-align: center;
  padding: .25rem .1rem;
  outline: none;
  appearance: textfield;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}
.qty-inp::-webkit-outer-spin-button,
.qty-inp::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Control principal mejorado */
.main-stepper {
  display: grid !important;
  grid-template-columns: 31px 24px 31px;
  align-items: center;
  justify-items: center;
  border-radius: 11px;
  padding: .18rem;
  gap: .2rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  flex: 0 0 auto;
}
.main-stepper .qty-step {
  width: 31px;
  height: 28px;
  min-width: 31px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #ececec;
  color: #5d4037;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-d);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  padding: 0;
  display: inline-flex !important;
}
.main-stepper .qty-step:hover { background: #e3e3e3; color: var(--accent); }
.main-stepper .qty-inp { display: none !important; }
.main-stepper .qty-display {
  width: 24px;
  min-width: 24px;
  max-width: 24px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: var(--font-d);
  font-size: .95rem;
  font-weight: 700;
  color: var(--brown);
  background: transparent;
  line-height: 1;
}
.main-add-btn {
  min-width: 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .46rem .82rem;
  font-size: .78rem;
  border-radius: 999px;
  letter-spacing: 0;
  box-shadow: 0 8px 20px rgba(255,107,53,.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.catalog-btn {
  border-width: 1px;
  box-shadow: none;
}
.no-prods { text-align: center; padding: 5rem 1rem; color: var(--muted); }
.no-prods .icon { font-size: 4rem; margin-bottom: 1rem; }

/* CARRITO */
.cart-overlay { display: none; position: fixed; inset: 0; background: rgba(45,26,14,.5); z-index: 400; backdrop-filter: blur(4px); }
.cart-overlay.open { display: block; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px,100vw); background: var(--surface); border-left: 2px solid var(--border); z-index: 401; display: flex; flex-direction: column; transform: translateX(110%); transition: transform .35s cubic-bezier(.4,0,.2,1); box-shadow: -8px 0 40px rgba(93,64,55,.15); }
.cart-drawer.open { transform: translateX(0); }
.cart-hdr { padding: 1.2rem 1.5rem; border-bottom: 2px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: var(--s2); }
.cart-hdr h2 { font-family: var(--font-d); font-size: 1.4rem; font-weight: 700; color: var(--brown); }
.cart-close { background: var(--surface); border: 2px solid var(--border); border-radius: 50px; color: var(--muted); cursor: pointer; font-size: 1rem; padding: .3rem .65rem; transition: all .2s; }
.cart-close:hover { border-color: var(--red); color: var(--red); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .8rem; }
.cart-empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.cart-empty-icon { font-size: 3.5rem; margin-bottom: .8rem; }
.cart-item { background: var(--s2); border: 2px solid var(--border); border-radius: 14px; display: flex; gap: .8rem; padding: .8rem; align-items: center; }
.ci-img { width: 55px; height: 55px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--border); }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-emoji { width: 55px; height: 55px; border-radius: 10px; background: var(--s2); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; }
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-family: var(--font-d); font-weight: 600; font-size: .88rem; color: var(--brown); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-price { color: var(--accent); font-weight: 700; font-size: .85rem; margin-top: .1rem; }
.ci-ctrl { display: flex; align-items: center; gap: .4rem; margin-top: .4rem; }
.qty-btn { background: var(--surface); border: 2px solid var(--border); border-radius: 50%; color: var(--brown); cursor: pointer; width: 26px; height: 26px; font-size: .95rem; display: flex; align-items: center; justify-content: center; transition: all .15s; font-weight: 700; padding: 0; flex-shrink: 0; }
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.qty-val { font-weight: 700; font-size: .9rem; min-width: 22px; text-align: center; color: var(--brown); }
.del-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; margin-left: auto; transition: color .2s; }
.del-btn:hover { color: var(--red); }
.cart-lock { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2.5rem; }
.cart-lock-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.cart-lock p { color: var(--muted); font-size: .88rem; line-height: 1.6; margin-bottom: 1.5rem; }
.cart-lock-btn { background: var(--accent); border: none; border-radius: 50px; color: #fff; cursor: pointer; font-family: var(--font-d); font-size: 1.05rem; font-weight: 700; padding: .75rem 2.5rem; text-decoration: none; transition: all .2s; display: inline-block; }
.cart-lock-btn:hover { background: #e55a27; }
.cart-foot { padding: 1.2rem; border-top: 2px solid var(--border); background: var(--s2); display: flex; flex-direction: column; gap: .8rem; }
.cart-total { display: flex; justify-content: space-between; align-items: center; }
.cart-total-lbl { font-weight: 600; color: var(--muted); }
.cart-total-val { font-family: var(--font-d); font-size: 1.9rem; font-weight: 700; color: var(--accent); }
.checkout-btn { background: var(--accent2); border: none; border-radius: 50px; color: #fff; cursor: pointer; font-family: var(--font-d); font-size: 1.1rem; font-weight: 700; padding: .85rem; text-align: center; transition: all .2s; width: 100%; text-decoration: none; display: block; }
.checkout-btn:hover { background: #388e3c; transform: scale(1.02); }
.vaciar-btn { background: none; border: 2px solid var(--border); border-radius: 50px; color: var(--muted); cursor: pointer; font-size: .78rem; padding: .5rem; text-align: center; transition: all .2s; width: 100%; font-family: var(--font-b); }
.vaciar-btn:hover { border-color: var(--red); color: var(--red); }

/* NOTIF */
.notif { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--accent2); color: #fff; border-radius: 50px; font-family: var(--font-d); font-size: 1rem; font-weight: 600; padding: .7rem 1.8rem; z-index: 700; opacity: 0; transition: all .4s cubic-bezier(.34,1.56,.64,1); white-space: nowrap; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.notif.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* FOOTER */
footer { background: var(--brown); color: rgba(255,255,255,.7); padding: 2rem; text-align: center; font-size: .82rem; margin-top: 2rem; }
footer strong { color: #fff; }
footer .social-links { display: flex; justify-content: center; gap: 1rem; margin-top: .8rem; flex-wrap: wrap; }
footer .social-links a { color: rgba(255,255,255,.6); text-decoration: none; font-size: .82rem; transition: color .2s; }
footer .social-links a:hover { color: var(--accent); }

/* Scrollbar */
.cart-items::-webkit-scrollbar { width: 4px; }
.cart-items::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* BANNER / CARRUSEL */
.banner-carousel { position: relative; margin: 1rem 1.2rem 0; border-radius: 18px; overflow: hidden; border: 2px solid var(--border); box-shadow: var(--shadow); background: #fff; height: clamp(170px, 24vw, 270px); min-height: 170px; }
.bc-track { position: relative; width: 100%; height: 100%; min-height: 0; }
.bc-slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.01); transition: opacity .5s ease, transform .6s ease; background-size: cover; background-repeat: no-repeat; background-position: center center; display: flex; align-items: flex-end; text-decoration: none; background-color: #fff; }
.bc-slide.active { opacity: 1; transform: scale(1); z-index: 2; }
.bc-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.26), rgba(0,0,0,.08) 45%, rgba(0,0,0,.02)); }
.bc-content { position: relative; z-index: 3; color: #fff; padding: 1.1rem 1.2rem; max-width: 720px; }
.bc-content h3 { font-family: var(--font-d); font-size: 1.7rem; margin-bottom: .25rem; line-height: 1.1; }
.bc-content p { font-size: .96rem; opacity: .95; line-height: 1.4; }
.bc-zone { position: absolute; top: 0; bottom: 0; width: 22%; border: none; background: transparent; z-index: 3; cursor: pointer; }
.bc-zone.left { left: 0; }
.bc-zone.right { right: 0; }
.bc-dots { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 4; display: flex; gap: .45rem; }
.bc-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.6); cursor: pointer; }
.bc-dot.active { background: var(--accent); width: 18px; border-radius: 99px; }

@media (max-width: 980px) {
  .prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  header {
    height: auto;
    min-height: 70px;
    padding: .7rem .8rem;
    gap: .55rem;
    flex-wrap: wrap;
  }
  .logo { font-size: 1.6rem; }
  .search-bar { order: 3; flex: 1 1 100%; max-width: 100%; }
  .search-form input { font-size: .85rem; padding: .5rem .9rem; }
  .search-form button { padding: .5rem 1rem; }
  .hdr-right { margin-left: auto; }

  .hero-section,
  .shop-wrap,
  .guest-banner,
  .msg-ok { margin: 0; padding: 1rem; }
  .banner-carousel { margin: .8rem .8rem 0; height: clamp(130px, 34vw, 210px); min-height: 130px; }
  .bc-track { min-height: 0; }
  .bc-content { padding: .8rem .9rem; }
  .bc-content h3 { font-size: 1.1rem; }
  .bc-content p { font-size: .8rem; }
  .hero-title { font-size: 1.3rem; margin-bottom: .9rem; }
  .hero-grid { grid-template-columns: 1fr; gap: .7rem; }
  .hero-card { border-radius: 14px; }
  .hero-card-img { width: 90px; height: 90px; }

  .filters {
    padding: .8rem 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .filters::-webkit-scrollbar { display: none; }

  .u-menu {
    position: fixed !important;
    top: 72px !important;
    left: .7rem !important;
    right: .7rem !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: calc(100vw - 1.4rem) !important;
    z-index: 900 !important;
  }

  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .prod-img-wrap { height: 150px; }
  .prod-body { padding: .75rem; }
  .prod-name { font-size: .92rem; }
  .prod-desc { font-size: .72rem; -webkit-line-clamp: 2; min-height: 2.2rem; }
  .price-normal, .price-oferta { font-size: 1.05rem; }
  .add-btn { font-size: .74rem; padding: .35rem .72rem; }
  .prod-foot { align-items: flex-end; }
  .frm-add { width: 100%; gap: .34rem; }
  .qty-step { width: 34px; height: 34px; font-size: 1.2rem; }
  .qty-inp { width: 38px; font-size: 1rem; }
  .main-stepper { grid-template-columns: 30px 22px 30px; }
  .main-stepper .qty-step { width: 30px; min-width: 30px; height: 28px; border-radius: 8px; font-size: .95rem; }
  .main-stepper .qty-display { width: 22px; min-width: 22px; max-width: 22px; font-size: .92rem; }
  .main-add-btn { padding: .4rem .62rem; font-size: .71rem; min-height: 30px; }
}

@media (max-width: 460px) {
  header { padding: .6rem .7rem; }
  .logo { font-size: 1.35rem; }
  .logo img.logo-img { height: 34px; }
  .hdr-right { width: auto; margin-left: auto; gap: .4rem; }
  .hbtn { font-size: .7rem; padding: .32rem .62rem; }
  .avatar { width: 34px; height: 34px; font-size: 1rem; }
  .hero-section { padding: .8rem; }
  .hero-card { align-items: center; }
  .hero-card-img { width: 76px; height: 76px; }
  .hero-card-name { font-size: .86rem; }
  .hero-card-price { font-size: .95rem; }
  .filters { padding: .65rem .75rem; gap: .45rem; }
  .filt-label { font-size: .76rem; }
  .filt { font-size: .72rem; padding: .22rem .68rem; }
  .sort-sel { font-size: .72rem; padding: .22rem .68rem; }
  .prod-grid { grid-template-columns: 1fr; }
  .prod-img-wrap { height: 170px; }
  .prod-card { border-radius: 14px; }
  .prod-body { padding: .7rem; }
  .prod-name { font-size: .98rem; line-height: 1.25; }
  .prod-desc { font-size: .74rem; min-height: auto; }
  .prod-foot { align-items: center; }
  .price-normal, .price-oferta { font-size: 1.35rem; }
  .price-orig { font-size: .72rem; }
  .add-btn { font-size: .8rem; padding: .38rem .95rem; }
  .frm-add { display: grid; grid-template-columns: 1fr; gap: .45rem; }
  .qty-stepper { padding: .24rem; }
  .qty-step { width: 36px; height: 36px; font-size: 1.25rem; }
  .qty-inp { width: 40px; font-size: 1.02rem; }
  .main-stepper { grid-template-columns: 40px 34px 40px; }
  .main-stepper .qty-step { width: 40px; min-width: 40px; height: 36px; font-size: 1.15rem; border-radius: 12px; }
  .main-stepper .qty-display { width: 34px; min-width: 34px; max-width: 34px; font-size: 1.02rem; }
  .main-add-btn { width: auto; font-size: .82rem; padding: .44rem .85rem; min-height: 34px; }
  .section-hdr { gap: .5rem; align-items: center; }
  .section-hdr h2 { font-size: 1.35rem; }
  .section-hdr .cnt { font-size: .75rem; }
}

@media (max-width: 620px) {
  .prod-grid { grid-template-columns: 1fr; }
  .u-menu {
    left: .5rem !important;
    right: .5rem !important;
    max-width: calc(100vw - 1rem) !important;
  }
}


