﻿:root {
  --bg: #f3f3ef;
  --surface: #ffffff;
  --green-900: #172418;
  --green-700: #2f5a32;
  --green-600: #3c7140;
  --green-500: #4f8a54;
  --text: #161616;
  --muted: #61695f;
  --line: #d4dbd0;
  --shadow: 0 10px 28px rgba(18, 28, 18, 0.12);
  --shadow-strong: 0 18px 42px rgba(18, 28, 18, 0.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, #ffffff 0%, transparent 40%),
    radial-gradient(circle at 100% 10%, #eef4eb 0%, transparent 36%),
    var(--bg);
}

.container { width: min(1140px, 92%); margin: 0 auto; }
.header {
  position: relative;
  z-index: 1000;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(12, 18, 13, 0.08);
  background: #ffffff;
}
.topbar { background: #0f150f; color: #d9e2d5; font-size: 0.82rem; }
.topbar-inner { min-height: 36px; display: flex; justify-content: space-between; align-items: center; }
.topbar-inner p {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.topbar-inner p::before {
  content: "";
  width: 18px;
  height: 12px;
  border-radius: 2px;
  background: url("img/chile-flag.svg") center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
  flex: 0 0 auto;
}
.topbar a { color: #9dc49f; text-decoration: none; font-weight: 700; }
.topbar-inner > a {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}
.topbar-inner > a::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: url("img/whatt.png") center / contain no-repeat;
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.cart-widget {
  position: relative;
  min-width: 44px;
  flex: 0 0 44px;
}
.cart-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #cfd8cc;
  background: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}
.cart-toggle.has-items {
  animation: cartPulse 1.5s ease-in-out infinite;
}
@keyframes cartPulse {
  0% { box-shadow: 0 0 0 0 rgba(26, 154, 70, 0.32); }
  70% { box-shadow: 0 0 0 9px rgba(26, 154, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 154, 70, 0); }
}
.cart-toggle svg { width: 22px; height: 22px; color: #1f3320; }
.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #1a9a46;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 4px;
}
.cart-count.bump {
  animation: cartBump 0.34s ease;
}
@keyframes cartBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.32); }
  100% { transform: scale(1); }
}
.cart-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 340px;
  max-width: min(340px, calc(100vw - 20px));
  background: #fff;
  border: 1px solid #d6ddd3;
  border-radius: 12px;
  box-shadow: var(--shadow-strong);
  padding: 0.8rem;
  display: none;
  z-index: 1700;
}
.cart-menu.open { display: block; }
.cart-menu h4 { margin: 0 0 0.6rem; }
.cart-preview-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 0.5rem;
  border-bottom: 1px solid #edf1eb;
  padding: 0.4rem 0;
  align-items: center;
}
.cart-preview-row p { margin: 0; font-size: 0.9rem; }
.cart-preview-name { font-weight: 600; }
.cart-preview-row > p:nth-child(2) { white-space: nowrap; }
.cart-preview-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f2f6f1;
  border: 1px solid #d4ddd1;
  border-radius: 999px;
  padding: 0.15rem 0.35rem;
}
.cart-preview-qty span {
  min-width: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: #223226;
}
.cart-qty-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #b7c8b6;
  background: #ffffff;
  color: #1f3320;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.cart-qty-btn:hover { background: #eaf3e8; }
.cart-preview-remove {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid #e3a4a4;
  background: #cc2b2b;
  color: #fff;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.cart-preview-remove:hover {
  background: #b82121;
}
.cart-toggle.added-feedback {
  animation: cartAddedFlash 0.62s cubic-bezier(.2,.7,.2,1);
}
@keyframes cartAddedFlash {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 145, 63, 0.5); }
  35% { transform: scale(1.12) rotate(-6deg); box-shadow: 0 0 0 10px rgba(34, 145, 63, 0.18); }
  70% { transform: scale(1.04) rotate(3deg); box-shadow: 0 0 0 16px rgba(34, 145, 63, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 145, 63, 0); }
}
.cart-menu-actions { display: flex; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }
.cart-menu-actions .btn { padding: 0.55rem 0.8rem; font-size: 0.85rem; }

.logo {
  text-decoration: none;
  color: var(--green-900);
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #d3dbd0;
}
.nav { display: flex; gap: 1.2rem; margin-left: auto; margin-right: 0.6rem; align-items: center; }
.nav { overflow: visible; }
.global-search-dock {
  position: relative;
}
.global-search-toggle {
  height: 40px;
  border-radius: 999px;
  border: 1px solid #c7d4c3;
  background: #ffffff;
  color: #204226;
  padding: 0 1rem;
  font-weight: 800;
  cursor: pointer;
}
.global-search-toggle.active {
  background: #2f6f35;
  color: #fff;
  border-color: #2f6f35;
}
.global-search {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(620px, calc(100vw - 24px));
  z-index: 1300;
}
.global-search input {
  height: 48px;
  border-radius: 999px;
  border: 1px solid #bfd0ba;
  background: linear-gradient(180deg, #ffffff, #edf5ea);
  padding: 0.62rem 8.6rem 0.62rem 2.6rem;
  font-size: 0.95rem;
  box-shadow: 0 12px 24px rgba(18, 42, 20, 0.16);
}
.global-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  opacity: 0.72;
}
.global-search-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, #2d6b33, #4f9252);
  font-weight: 800;
  cursor: pointer;
}
.global-search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #d4dfd1;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(18, 35, 19, 0.18);
  padding: 0.35rem;
  max-height: 420px;
  overflow: auto;
}
.global-search-item {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0.7rem;
  align-items: center;
  text-align: left;
  padding: 0.45rem;
  cursor: pointer;
}
.global-search-item img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #dbe4d7;
  background: #fff;
}
.global-search-item strong {
  display: block;
  color: #1d351f;
  font-size: 0.93rem;
  line-height: 1.25;
}
.global-search-item small {
  color: #5f6c5f;
  font-weight: 700;
}
.global-search-item:hover {
  background: #eff7ed;
}
.global-search-item-empty {
  display: block;
  grid-template-columns: 1fr;
  color: #2e4d31;
  font-weight: 700;
}
.nav a {
  text-decoration: none;
  color: #1a241b;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  position: relative;
  padding: 0.3rem 0.1rem;
  transition: color 0.25s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green-600), var(--green-500));
  transition: width 0.28s ease;
}
.nav a:hover,
.nav a.active { color: var(--green-600); }
.nav a:hover::after,
.nav a.active::after { width: 100%; }
.account-link {
  border-left: 1px solid #d5ddd2;
  padding-left: 0.8rem !important;
}
.nav a[href="admin.html"]:not(.admin-visible) {
  display: none !important;
}
.nav a[href="admin.html"].admin-visible {
  display: inline-flex;
}

.menu-toggle { display: none; border: 0; background: transparent; flex-direction: column; gap: 4px; }
.menu-toggle span { width: 24px; height: 2px; background: #142116; }
.category-bar {
  background: var(--green-700);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.category-links {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.category-links > a,
.category-links .category-item > a {
  color: #f0f5ee;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}
.nav .category-item > a {
  color: #1a241b;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.nav .category-item > a:hover,
.nav .category-item > a.active {
  color: var(--green-600);
}
.category-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.has-dropdown > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green-600), var(--green-500));
  transition: width 0.28s ease;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #ffffff;
  border: 1px solid #d7dfd4;
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
  padding: 0.45rem;
  display: none;
  z-index: 1500;
}
.dropdown-menu a {
  display: block;
  color: #1e2a1f;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.52rem 0.55rem;
  border-radius: 6px;
}
.dropdown-menu a::after {
  content: none !important;
  display: none !important;
}
.dropdown-menu a:hover {
  background: #edf4ea;
}
.category-item:hover .dropdown-menu,
.category-item:focus-within .dropdown-menu {
  display: block;
}

.hero {
  position: relative;
  min-height: 66vh;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
}
.home-hero { background-image: url("img/banner1.png"); }
.about-hero { background-image: url("img/banner2.png"); min-height: 60vh; }
.sub-hero {
  min-height: 220px;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}
.sub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(9, 16, 10, 0.65), rgba(12, 18, 12, 0.38));
}
.sub-hero .hero-content {
  position: relative;
  text-align: center;
}
.catalog-hero { background-image: url("img/banner3.png"); }
.rifles-hero { background-image: url("img/rifles.png"); }
.flow-hero { background-image: url("img/banner4.png"); }
.catalog-breadcrumb {
  border-top: 1px solid #dde5d9;
  border-bottom: 1px solid #dde5d9;
  background: #f7faf6;
}
.catalog-breadcrumb .container {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}
.catalog-breadcrumb a {
  color: #6b7568;
  text-decoration: none;
  font-weight: 700;
}
.catalog-breadcrumb a:hover { color: #2f5a32; }
.catalog-breadcrumb strong { color: #2f5a32; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(10, 16, 11, 0.8), rgba(15, 20, 15, 0.45)); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 10, 0) 55%, rgba(10, 14, 10, 0.45) 100%);
}
.hero-content { position: relative; color: #fff; max-width: 700px; }
.hero-content h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin: 0 0 0.7rem; }
.hero-content p { line-height: 1.65; color: #dde8d9; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.2rem; }
.hero-kicker {
  color: #f3c717 !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 0.45rem;
}
.hero-drop h1,
.hero-drop .hero-kicker,
.hero-drop p,
.hero-drop .hero-actions {
  opacity: 0;
  transform: translateY(-34px);
  animation: heroDropIn 0.8s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-drop .hero-kicker { animation-delay: 0.08s; }
.hero-drop h1 { animation-delay: 0.18s; }
.hero-drop p { animation-delay: 0.3s; }
.hero-drop .hero-actions { animation-delay: 0.44s; }
@keyframes heroDropIn {
  0% {
    opacity: 0;
    transform: translateY(-34px);
  }
  70% {
    opacity: 1;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.25rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.01); }
.btn-primary {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: #fff;
  box-shadow: 0 10px 20px rgba(34, 88, 40, 0.3);
}
.btn-primary:hover { background: #315f35; }
.btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.75); }
.btn-secondary-dark { background: #202a20; color: #fff; }

.section { padding: 4rem 0; }
.section-soft { background: #eaeee8; }
.subpage-back {
  display: none;
}
.subpage-back .container {
  min-height: 42px;
  display: flex;
  align-items: center;
}
.subpage-back a {
  color: #2f5a32;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}
.subpage-back a:hover { text-decoration: underline; }
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head h2 { margin: 0 0 0.5rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head p { margin: 0; color: var(--muted); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}
.about-image-block img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #dce2d8;
  box-shadow: var(--shadow);
}
.about-mini-gallery {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.about-mini-gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #dce2d8;
  box-shadow: 0 10px 22px rgba(18, 28, 18, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.about-mini-gallery img:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 26px rgba(18, 28, 18, 0.18);
}
.about-copy-block h2 {
  margin: 0;
  font-size: 0.88rem;
  text-transform: uppercase;
  color: #6f786d;
}
.about-copy-block h3 {
  margin: 0.4rem 0 0.8rem;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  color: #38423b;
}
.about-copy-block p {
  margin: 0 0 0.75rem;
  color: #5d655b;
  line-height: 1.7;
}
.site-footer {
  background: #f1f4ef;
  border-top: 1px solid #ced8cb;
  padding: 1.2rem 0;
}
.footer-benefits {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.4rem;
}
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: linear-gradient(140deg, #f9fcf8 0%, #eef5ed 100%);
  border: 1px solid #cfddcb;
  border-radius: 12px;
  padding: 0.7rem 0.72rem;
  box-shadow: 0 8px 18px rgba(22, 42, 23, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.benefit-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(22, 42, 23, 0.11);
}
.benefit-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #2d7f47;
  background: #e9f5ec;
}
.benefit-icon svg {
  width: 22px;
  height: 22px;
}
.benefit-item h5 {
  margin: 0 0 0.18rem;
  font-size: 0.73rem;
  letter-spacing: 0.04em;
  color: #1e3923;
}
.benefit-item p {
  margin: 0;
  font-size: 0.8rem;
  color: #5f6a5f;
  line-height: 1.3;
}
.benefit-ship .benefit-icon { color: #27a95a; background: #dff8e9; }
.benefit-pay .benefit-icon { color: #00a3a0; background: #dff8f7; }
.benefit-chat .benefit-icon { color: #2e6be5; background: #e7efff; }
.benefit-safe .benefit-icon { color: #31a44a; background: #e3f8e6; }
.benefit-return .benefit-icon { color: #c27a1d; background: #fff2df; }
.benefit-social .benefit-icon {
  color: #ffffff;
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 92%);
}
.benefit-social a {
  color: #1e3923;
  font-weight: 800;
  text-decoration: none;
}
.benefit-social a:hover {
  text-decoration: underline;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.site-footer h4 {
  margin: 0 0 0.6rem;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: #173019;
}
.social-links {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  color: #ffffff;
  text-decoration: none;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.72rem;
  background: #2f4f2f;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}
.social-links a svg {
  width: 18px;
  height: 18px;
}
.social-links a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}
.social-links .brand-icon:nth-child(1) {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 10%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.social-links .brand-icon:nth-child(2) {
  background: #1877f2;
}
.social-links .brand-icon:nth-child(3) {
  background: #ff0000;
}
.social-links .brand-icon:nth-child(4) {
  background: #111111;
}
.footer-link {
  color: #17411e;
  text-decoration: none;
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}
.footer-link:hover {
  text-decoration: underline;
}
.footer-contact-name {
  margin: 0 0 0.28rem;
  font-weight: 700;
  color: #19361d;
}
.footer-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}
.wa-inline-icon {
  width: 16px;
  height: 16px;
  color: #20c45a;
  flex: 0 0 auto;
}
.account-card h1 {
  margin-top: 0;
}
.auth-shell {
  display: grid;
  place-items: center;
}
.auth-card {
  width: min(520px, 100%);
  background: #f6f7f8;
  border: 1px solid #d7dcdf;
  border-radius: 10px;
  padding: 1.4rem 1.2rem;
  box-shadow: 0 10px 28px rgba(11, 24, 20, 0.12);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  position: relative;
}
.auth-card h3 {
  margin: 0;
  text-align: center;
  font-size: 2rem;
}
.auth-card h4 {
  margin: 0;
  text-align: center;
  font-size: 1.6rem;
}
.auth-card p {
  margin: 0;
  text-align: center;
}
.auth-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  color: #6b7276;
  cursor: pointer;
}
.auth-main-btn {
  width: 100%;
  border-radius: 999px;
}
.btn-ghost {
  border: 0;
  background: transparent;
  color: #6b7276;
  font-weight: 600;
}
.auth-link-btn {
  width: 100%;
}
.auth-divider {
  margin: 0.3rem 0 0.2rem;
  height: 1px;
  background: #d5dadd;
}
.auth-kicker {
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: #657077;
  font-weight: 700;
}
.auth-brand-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 12px;
}
.auth-brand-title {
  font-size: 1.6rem !important;
  margin-top: -0.4rem !important;
}
.auth-foot {
  color: #536068;
  font-size: 0.94rem;
}
.auth-success {
  background: #eef9ea;
  border: 1px solid #84b97b;
  color: #204b1e;
  border-radius: 8px;
  padding: 0.8rem;
  font-weight: 600;
}
.auth-success a {
  color: #173f1d;
  font-weight: 800;
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.account-grid .admin-form {
  grid-template-columns: 1fr;
}
.account-profile {
  margin-top: 1rem;
}
.account-summary {
  margin: 0.4rem 0 0.8rem;
  padding: 0.8rem;
  border: 1px solid #d5ddd4;
  border-radius: 12px;
  background: #f9fcf8;
  display: grid;
  gap: 0.28rem;
}
.account-summary p {
  margin: 0;
  color: #2a3d2c;
  text-align: left;
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.95rem;
}
.account-actions .btn {
  min-width: 170px;
  justify-content: center;
}
#toggleProfileEditBtn,
#profileLogoutBtn,
#adminQuickActions .btn {
  margin: 0;
}
#verifyCodeForm {
  margin-top: 1rem;
}
.account-profile h3 {
  margin: 0 0 0.5rem;
}
.account-profile > p {
  margin: 0 0 0.35rem;
}
#adminQuickActions {
  margin: 0;
}
#profileLogoutBtn {
  margin-top: 0;
}

.grid { display: grid; gap: 1rem; }
.categories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.1rem;
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: #bfcab9;
  box-shadow: var(--shadow-strong);
}
.card h3 { margin: 0.2rem 0 0.5rem; }
.card p { margin: 0; color: var(--muted); line-height: 1.6; }

.home-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.showcase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #d3dbd1;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(18, 28, 18, 0.12);
  transition: transform 0.36s ease, box-shadow 0.36s ease, border-color 0.36s ease;
  opacity: 0;
  transform: translateY(38px) scale(0.985);
}
.showcase-image {
  display: block;
  height: 300px;
  overflow: hidden;
}
.showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.7s ease;
}
.showcase-content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.15rem 1.3rem;
  color: #ffffff;
}
.showcase-content h3 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  line-height: 1.1;
}
.showcase-content p {
  margin: 0 0 0.9rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
}
.showcase-link {
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-top: auto;
}
.showcase-card.hunt .showcase-content {
  background: linear-gradient(135deg, #9f9889, #b0a99a);
}
.showcase-card.fish .showcase-content {
  background: linear-gradient(135deg, #7f8766, #8f9b73);
}
.showcase-card.outdoor .showcase-content {
  background: linear-gradient(135deg, #8e6f55, #9f7f63);
}
.showcase-card::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -40%;
  width: 45%;
  height: 300%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  transform: rotate(18deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px rgba(18, 28, 18, 0.22);
  border-color: #b7c6b4;
}
.showcase-card:hover .showcase-image img {
  transform: scale(1.08);
}
.showcase-card:hover::after {
  left: 115%;
}
.home-showcase.reveal.visible .showcase-card {
  animation: showcaseStaggerIn 0.74s cubic-bezier(.2,.8,.2,1) forwards;
}
.home-showcase.reveal.visible .showcase-card:nth-child(2) {
  animation-delay: 0.16s;
}
.home-showcase.reveal.visible .showcase-card:nth-child(3) {
  animation-delay: 0.32s;
}
@keyframes showcaseStaggerIn {
  0% {
    opacity: 0;
    transform: translateY(38px) scale(0.985);
  }
  70% {
    opacity: 1;
    transform: translateY(-4px) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.page-head { padding-top: 2.5rem; padding-bottom: 1.2rem; }
.page-head h1 { margin: 0; }
.page-head p { color: var(--muted); }

.rifles-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; align-items: start; }
.rifles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.rifles-catalog-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1rem;
  align-items: start;
}
.catalog-filters h3 {
  margin-top: 0;
  margin-bottom: 0.9rem;
}
.catalog-filters .field {
  margin-bottom: 0.7rem;
}
.price-range-wrap {
  position: relative;
  display: grid;
  gap: 0.35rem;
  margin-top: 0.2rem;
}
.price-range-wrap input[type="range"] {
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8cc63f, #b6de77);
  outline: none;
  padding: 0;
}
.price-range-wrap input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #7faf1f;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(52, 85, 16, 0.35);
  cursor: pointer;
}
.price-range-wrap input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #7faf1f;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(52, 85, 16, 0.35);
  cursor: pointer;
}
.price-range-readout {
  margin: 0.4rem 0 0;
  color: #2b322b;
  font-weight: 600;
  font-size: 0.95rem;
}
.catalog-filters .hero-actions {
  margin-top: 0.4rem;
}
.catalog-filters .btn {
  padding: 0.58rem 0.92rem;
  font-size: 0.86rem;
}
.catalog-results-head {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.catalog-results-head p {
  margin: 0;
  color: #5e675c;
  font-weight: 700;
}
.catalog-sort {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.catalog-sort label {
  color: #4e5c4f;
  font-weight: 700;
  font-size: 0.86rem;
}
.catalog-sort select {
  min-width: 190px;
}
.catalog-results-wrap,
.rifles-section,
.rifles-catalog-layout {
  min-height: 0;
  overflow: visible;
}
.stock-out {
  color: #c62828;
  font-weight: 800;
}
.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.compact-grid .rifle-card {
  padding: 0.85rem;
}
.compact-grid .rifle-card img {
  height: 150px;
  margin-bottom: 0.55rem;
}
.compact-grid .rifle-card h3 {
  font-size: 1rem;
  line-height: 1.3;
}
.compact-grid .rifle-card p {
  font-size: 0.88rem;
}
.catalog-empty {
  grid-column: 1 / -1;
  cursor: default;
}
.catalog-empty:hover {
  transform: none;
}
.catalog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.2rem;
}
.catalog-pagination[hidden] {
  display: none;
}
.pagination-btn {
  min-width: 40px;
  min-height: 38px;
  border: 1px solid #cbd7c7;
  border-radius: 10px;
  background: #ffffff;
  color: #1f3320;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(35, 91, 43, 0.12);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.pagination-btn:hover:not(:disabled),
.pagination-btn.active {
  background: #244d28;
  border-color: #244d28;
  color: #ffffff;
  transform: translateY(-1px);
}
.pagination-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}
.pagination-prev,
.pagination-next {
  padding: 0 0.85rem;
}
.featured-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.featured-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: featuredMarquee 34s linear infinite;
}
.featured-slider:hover .featured-track {
  animation-play-state: paused;
}
@keyframes featuredMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.featured-card {
  min-width: 272px;
  max-width: 272px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}
.featured-card h3 { min-height: 52px; margin-bottom: 0.35rem; font-size: 1.02rem; line-height: 1.2; }
.featured-card p {
  margin-top: 0;
  font-size: 0.92rem;
}
.featured-card p:nth-of-type(2) {
  min-height: 66px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-card .price {
  margin-top: auto;
  margin-bottom: 0.2rem;
  font-size: 0.98rem;
}
.featured-card img {
  height: 150px;
}
.featured-actions {
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.featured-add-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.52rem 0.9rem;
  background: linear-gradient(135deg, #2c6932, #4b944f);
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(33, 99, 40, 0.3);
  animation: featuredPulse 1.8s ease-in-out infinite;
}
.featured-add-btn svg {
  width: 16px;
  height: 16px;
}
.featured-add-btn:hover {
  transform: translateY(-1px) scale(1.02);
}
.featured-add-btn.added {
  background: #1f8a3e;
  animation: none;
}
@keyframes featuredPulse {
  0% { box-shadow: 0 0 0 0 rgba(27, 141, 58, 0.35); }
  70% { box-shadow: 0 0 0 10px rgba(27, 141, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(27, 141, 58, 0); }
}
.featured-detail-link {
  color: #335d37;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.featured-detail-link:hover {
  text-decoration: underline;
}
.rifle-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.rifle-card.active { border-color: var(--green-600); box-shadow: 0 0 0 2px rgba(60, 113, 64, 0.25); }
.rifle-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #dce2d8;
  margin-bottom: 0.7rem;
}
.rifle-image-wrap,
.featured-image-wrap {
  position: relative;
}
.rifle-image-wrap img,
.featured-image-wrap img {
  margin-bottom: 0.7rem;
}
.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #d91f26, #ff5c3b);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(178, 34, 34, 0.35);
  z-index: 2;
}
.offer-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #1f7a38, #3ea257);
  color: #fff;
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.52rem;
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(23, 94, 43, 0.28);
  z-index: 2;
}
.rifle-card h3 { margin-bottom: 0.35rem; }
.rifle-card .price { font-weight: 700; color: #1f3922; }
.old-price {
  color: #7a8578;
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: line-through;
  margin-left: 0.45rem;
}
.card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  margin-top: auto;
  min-height: 44px;
}
.quick-cart-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #c9d3c6;
  background: #ffffff;
  color: #1f3320;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(35, 91, 43, 0.18);
  animation: quickCartPulse 1.8s ease-in-out infinite;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.quick-cart-btn svg { width: 18px; height: 18px; }
.quick-cart-btn:hover {
  border-color: #96b497;
  background: #edf4ea;
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 10px 18px rgba(35, 91, 43, 0.26);
  animation-play-state: paused;
}
.quick-cart-btn:active {
  transform: scale(0.95);
}
.quick-cart-btn:disabled,
.featured-add-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  animation: none;
  box-shadow: none;
  transform: none;
}
.quick-cart-btn:disabled:hover,
.featured-add-btn:disabled:hover {
  background: #ffffff;
  border-color: #c9d3c6;
  transform: none;
}
@keyframes quickCartPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 122, 49, 0.28); }
  65% { box-shadow: 0 0 0 8px rgba(34, 122, 49, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 122, 49, 0); }
}

.rifle-detail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.1rem;
  position: sticky;
  top: 88px;
}
.detail-top {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0.9rem;
  align-items: start;
}
.rifle-detail .price { font-weight: 700; color: #1f3922; }
.detail-main-image {
  width: 100%;
  height: 260px;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  border: 1px solid #dce2d8;
  border-radius: 12px;
  margin-bottom: 0.7rem;
  cursor: zoom-in;
}
.detail-thumbs {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}
.detail-thumbs img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #dce2d8;
  border-radius: 8px;
  cursor: pointer;
}
.detail-features { padding-left: 1rem; margin-top: 0.5rem; }
.detail-features li { margin-bottom: 0.25rem; }
.tabs {
  display: flex;
  gap: 0.45rem;
  margin: 0.9rem 0 0.5rem;
  border-bottom: 1px solid #dce2d8;
  padding-bottom: 0.45rem;
}
.tab-btn {
  border: 1px solid #ced6cb;
  background: #f5f7f4;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}
.tab-btn.active {
  background: #e4efe1;
  border-color: #9eb89f;
  color: #1c3a1e;
}
.tab-panel { display: none; padding: 0.35rem 0 0.6rem; }
.tab-panel.active { display: block; }
.rifle-detail textarea {
  width: 100%;
  border: 1px solid #cfd6cc;
  border-radius: 12px;
  padding: 0.7rem;
  font-family: inherit;
  margin-bottom: 0.8rem;
}

.contact-form, .admin-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.1rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }
.category-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  max-height: 230px;
  overflow: auto;
  border: 1px solid #cfd6cc;
  border-radius: 12px;
  background: #f8fbf6;
  padding: 0.65rem;
}
.category-checks label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  border: 1px solid #dce6d8;
  border-radius: 9px;
  background: #ffffff;
  padding: 0.45rem 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.category-checks input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: #34753d;
}
.admin-check-field {
  align-self: end;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid #cfd6cc;
  border-radius: 11px;
  background: #f8fbf6;
  padding: 0.7rem 0.8rem;
  font-weight: 700;
  color: #173019;
}
.admin-check-field input {
  width: 18px;
  height: 18px;
  accent-color: #34753d;
}
input, textarea {
  width: 100%;
  border: 1px solid #cfd6cc;
  border-radius: 11px;
  padding: 0.7rem 0.8rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.password-toggle-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.password-toggle-wrap input {
  padding-right: 2.6rem;
}
.password-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 1px solid #d4ddd1;
  border-radius: 9px;
  background: #f8fbf6;
  color: #27462b;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
}
.password-toggle-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}
.password-toggle-btn:hover {
  background: #edf5ea;
  border-color: #b8ccb5;
}
select {
  width: 100%;
  border: 1px solid #c7d2c4;
  border-radius: 11px;
  padding: 0.72rem 2.4rem 0.72rem 0.8rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #173019;
  background-color: #f6faf5;
  background-image:
    linear-gradient(45deg, transparent 50%, #3f6f42 50%),
    linear-gradient(135deg, #3f6f42 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 3px),
    calc(100% - 10px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  appearance: none;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(60, 113, 64, 0.14);
}
select:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(60, 113, 64, 0.14);
  background-color: #ffffff;
}
.form-error { margin: 0; color: #a32121; font-weight: 700; grid-column: 1 / -1; }
.field-category {
  background: linear-gradient(180deg, #f3f9f1, #edf6ea);
  border: 1px solid #d4e1d1;
  border-radius: 12px;
  padding: 0.75rem;
}
.field-category label {
  font-weight: 700;
  color: #234526;
}

.admin-wrap { display: grid; gap: 1rem; }
.hidden { display: none; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.admin-products { margin-top: 1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.admin-products .card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  border-radius: 10px;
  margin-bottom: 0.6rem;
}
.cart-row {
  display: grid;
  grid-template-columns: 1.8fr 0.9fr 0.6fr 0.9fr auto;
  gap: 0.6rem;
  align-items: center;
  border-bottom: 1px solid #dce2d8;
  padding: 0.65rem 0;
}
.cart-row p { margin: 0; }
.cart-row p:nth-child(3),
.cart-row p:nth-child(2),
.cart-row p:nth-child(4) { text-align: right; }
.cart-row .cart-remove {
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
}
.cart-table-head {
  display: grid;
  grid-template-columns: 1.8fr 0.9fr 0.6fr 0.9fr auto;
  gap: 0.6rem;
  padding: 0 0 0.5rem;
  border-bottom: 1px solid #dce2d8;
}
.cart-table-head p {
  margin: 0;
  font-weight: 700;
  color: #2d3b2f;
  font-size: 0.9rem;
}
.cart-table-head p:nth-child(2),
.cart-table-head p:nth-child(3),
.cart-table-head p:nth-child(4) { text-align: right; }
.cart-totals {
  margin-top: 0.8rem;
  margin-left: auto;
  max-width: 360px;
  border: 1px solid #dce2d8;
  border-radius: 10px;
  overflow: hidden;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #dce2d8;
}
.cart-total-row:last-child { border-bottom: 0; }
.cart-total-row p { margin: 0; }
.cart-total-row.total {
  font-weight: 800;
  background: #f4f8f2;
  color: #163319;
}
.cart-empty {
  margin: 0.8rem 0;
  color: var(--muted);
}
.checkout-modal.hidden { display: none; }
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
}
.checkout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 12, 0.55);
}
.checkout-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(620px, 94%);
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #d8e1d4;
  box-shadow: var(--shadow-strong);
  padding: 1rem;
}
.checkout-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid #cbd5c8;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.checkout-panel h3 { margin: 0 0 0.8rem; }
.checkout-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.8rem;
  border-bottom: 1px solid #e7ece4;
  padding: 0.45rem 0;
  align-items: center;
}
.checkout-item p { margin: 0; }
.checkout-item p:nth-child(2) {
  text-align: right;
  white-space: nowrap;
}
.checkout-remove {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #d2d8cf;
  background: #fff;
  color: #1d2a1e;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
}
.checkout-remove:hover {
  background: #f3f7f2;
  border-color: #aebcae;
}
.checkout-totals {
  margin-top: 0.8rem;
  border: 1px solid #dce2d8;
  border-radius: 10px;
  overflow: hidden;
}
.checkout-row {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #dce2d8;
}
.checkout-row p { margin: 0; }
.checkout-row:last-child { border-bottom: 0; }
.checkout-row.total {
  font-weight: 800;
  background: #f4f8f2;
  color: #163319;
}
.checkout-actions {
  margin-top: 0.8rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.btn-webpay {
  background: #5a2d82;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.btn-webpay svg {
  width: 18px;
  height: 18px;
}
.btn-webpay:hover {
  background: #4b226f;
}
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
}
.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 9, 0.76);
}
.image-lightbox-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, 94%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #dbe4d8;
  padding: 0.95rem;
}
.image-lightbox-panel h3 {
  margin: 0 0 0.7rem;
  padding-right: 2rem;
}
.image-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid #cdd7ca;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}
.image-lightbox-main {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 0.6rem;
  align-items: center;
}
.image-lightbox-main img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  background: #f8faf7;
  border: 1px solid #dce4d9;
  border-radius: 12px;
}
.image-lightbox-nav {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #c6d2c3;
  background: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  color: #2c4f2f;
}
.image-lightbox-nav:hover {
  background: #eff6ed;
}
.image-lightbox-thumbs {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}
.image-lightbox-thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  background: #f2f7f1;
}
.image-lightbox-thumbs img.active {
  border-color: #4b8d51;
}
.product-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 3600;
}
.product-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 12, 0.58);
  backdrop-filter: blur(3px);
}
.product-detail-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100vw - 28px));
  max-height: 90vh;
  overflow: auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-strong);
  padding: 1rem;
}
.product-detail-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  margin-bottom: 0.35rem;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid #cdd7ca;
  background: #ffffff;
  color: #1f2d20;
  cursor: pointer;
  font-weight: 800;
  display: grid;
  place-items: center;
  z-index: 2;
}
.product-detail-modal-top {
  grid-template-columns: minmax(280px, 1.05fr) minmax(280px, 0.95fr);
}
.product-detail-panel h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.18;
}
.product-detail-panel .detail-main-image {
  height: clamp(230px, 38vh, 360px);
}
.product-detail-panel .hero-actions {
  margin-top: 0.8rem;
}
.product-detail-tabs {
  margin-top: 1rem;
}
.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: start;
}
.checkout-card h1 {
  margin-top: 0;
  margin-bottom: 1rem;
}
.checkout-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.checkout-summary-card h2 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}
.checkout-order-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #e7ece4;
}
.checkout-order-row p { margin: 0; }
.shipping-choice {
  background: #f4f8f2;
  border: 1px solid #dbe6d7;
  border-radius: 10px;
  padding: 0.7rem;
}
.shipping-choice p {
  margin: 0 0 0.45rem;
  font-weight: 700;
}
.shipping-choice label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  border: 1px solid #cfdccc;
  border-radius: 10px;
  padding: 0.62rem 0.7rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.shipping-choice label + label {
  margin-top: 0.5rem;
}
.shipping-choice label:hover {
  border-color: #a6bda5;
}
.shipping-choice input[type="radio"] {
  accent-color: #2f7b3c;
  width: 18px;
  height: 18px;
  margin: 0;
}
.shipping-choice label:has(input[type="radio"]:checked) {
  border-color: #6ea36f;
  box-shadow: 0 0 0 3px rgba(60, 113, 64, 0.14);
  background: #f5fbf3;
}
.payment-placeholder h1 {
  margin-top: 0;
}
.payment-method-box {
  margin-top: 0.8rem;
  border: 1px solid #dce2d8;
  border-radius: 12px;
  padding: 1rem;
  background: #f8fbf7;
}
.payment-method-box h3 {
  margin: 0 0 0.4rem;
}
.payment-icons {
  margin: 0.85rem 0 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
.payment-option {
  margin: 0;
  background: #ffffff;
  border: 1px solid #d9e2d6;
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 6px 14px rgba(17, 32, 18, 0.08);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}
.payment-option:hover {
  transform: translateY(-1px);
}
.payment-option.selected {
  border-color: #5f9a63;
  box-shadow: 0 0 0 3px rgba(60, 113, 64, 0.15);
  background: #f3fbf1;
}
.payment-option img {
  width: 64px;
  min-width: 64px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
}
.payment-option figcaption {
  font-size: 0.82rem;
  font-weight: 700;
  color: #2f3f31;
}

.whatsapp-float {
  position: fixed !important;
  right: 16px !important;
  bottom: 16px !important;
  top: auto !important;
  left: auto !important;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  padding: 0;
  text-decoration: none;
  background: transparent;
  color: #fff;
  font-weight: 800;
  box-shadow: none;
  transition: transform 0.2s ease;
  z-index: 1800;
  overflow: visible;
  isolation: isolate;
}
.whatsapp-real-icon {
  width: 58px;
  height: 58px;
  display: block;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(16, 93, 42, 0.42);
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
}
.whatsapp-float::before {
  content: "Hablemos";
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #0f2f18;
  color: #ffffff;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 18px rgba(10, 22, 12, 0.32);
}
.whatsapp-float:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .categories-grid, .rifles-grid, .admin-products { grid-template-columns: 1fr; }
  .rifles-catalog-layout { grid-template-columns: 1fr; }
  .compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
  .about-mini-gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-benefits { grid-template-columns: 1fr 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .auth-card h3 { font-size: 1.65rem; }
  .auth-card h4 { font-size: 1.3rem; }
  .home-showcase { grid-template-columns: 1fr 1fr; }
  .showcase-image { height: 250px; }
  .featured-card {
    min-width: 280px;
    max-width: 280px;
    min-height: 410px;
  }
  .featured-card h3 { min-height: 64px; }
  .featured-card p:nth-of-type(2) { min-height: 78px; }
  .featured-track {
    animation-duration: 28s;
  }
  .rifles-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-form { grid-template-columns: 1fr; }
  .rifle-detail { position: static; }
  .detail-top { grid-template-columns: 1fr; }
  .product-detail-modal-top { grid-template-columns: 1fr; }
  .product-detail-panel .detail-main-image { height: 240px; }
  .cart-table-head { display: none; }
  .cart-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    background: #fafcf9;
    border: 1px solid #dce2d8;
    border-radius: 10px;
    padding: 0.7rem;
    margin-bottom: 0.5rem;
  }
  .cart-row p:nth-child(3),
  .cart-row p:nth-child(2),
  .cart-row p:nth-child(4) { text-align: left; }
  .cart-totals { max-width: 100%; }
}

@media (max-width: 760px) {
  .menu-toggle { display: flex; }
  .global-search-dock {
    order: 3;
    margin-left: auto;
  }
  .global-search input {
    height: 46px;
    padding-right: 7.5rem;
  }
  .global-search-btn {
    height: 38px;
  }
  .global-search {
    width: min(520px, calc(100vw - 18px));
    right: 0;
  }
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    right: 4%;
    left: 4%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.8rem;
    flex-direction: column;
  }
  .nav.open { display: flex; }
  .always-open { display: flex; position: static; border: 0; padding: 0; }
  .logo { margin-right: 0; }
  .contact-form, .admin-form { grid-template-columns: 1fr; }
  .category-checks { grid-template-columns: 1fr; }
  .category-links { display: none; }
  .cart-menu {
    width: min(300px, calc(100vw - 16px));
    right: 0;
  }
  .cart-preview-row {
    grid-template-columns: 1fr auto;
    gap: 0.35rem 0.45rem;
  }
  .cart-preview-row > p:nth-child(2) {
    grid-column: 1 / 2;
    font-size: 0.84rem;
  }
  .cart-preview-qty { justify-self: start; }
  .cart-preview-remove { justify-self: end; }
  .whatsapp-float { right: 12px !important; bottom: 12px !important; width: 50px; height: 50px; }
  .payment-icons { grid-template-columns: 1fr; }
  .footer-benefits { grid-template-columns: 1fr; }
  .home-showcase { grid-template-columns: 1fr; }
  main,
  .section,
  .rifles-section,
  .rifles-catalog-layout,
  .catalog-results-wrap,
  .rifles-grid,
  .compact-grid {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .rifles-catalog-layout {
    display: block;
  }
  .catalog-filters {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
  }
  .rifles-grid,
  .compact-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 18px;
  }
  .rifle-card {
    width: 100%;
  }
  .compact-grid .rifle-card img,
  .rifle-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
  }
  .catalog-results-head {
    align-items: flex-start;
  }
  .catalog-sort,
  .catalog-sort select {
    width: 100%;
  }
  .catalog-pagination {
    width: 100%;
    gap: 0.38rem;
    margin-top: 1rem;
  }
  .pagination-btn {
    min-width: 36px;
    min-height: 36px;
    font-size: 0.86rem;
  }
  .pagination-prev,
  .pagination-next {
    flex: 1 1 112px;
  }
  .showcase-image { height: 230px; }
  .payment-option img {
    width: 58px;
    min-width: 58px;
    height: 36px;
  }
}

.footer-copy {
  margin: 0.7rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: #4f5d4f;
  padding: 0 1rem;
}

