:root {
  --brand-primary: #123ba5;
  --brand-secondary: #081d5a;
  --brand-accent: #ff6f00;
  --bg-soft: #f2f8ff;
  --text-dark: #152238;
  --white: #ffffff;
  --danger: #d62828;
  --shadow: 0 16px 40px rgba(15, 42, 69, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text-dark);
  background: radial-gradient(circle at 15% 20%, #dce9ff 0%, transparent 45%),
    radial-gradient(circle at 85% 10%, #ffd7b3 0%, transparent 40%),
    linear-gradient(180deg, #f7fcff 0%, #edf5ff 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.25;
  z-index: -1;
}

.bg-shape-1 {
  width: 260px;
  height: 260px;
  background: var(--brand-primary);
  top: -40px;
  left: -30px;
}

.bg-shape-2 {
  width: 360px;
  height: 360px;
  background: var(--brand-secondary);
  right: -120px;
  bottom: 20%;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(15, 42, 69, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
}

.logo {
  width: auto;
  max-width: 250px;
  height: 62px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-fallback {
  display: none;
  font-size: 1.25rem;
  color: var(--brand-secondary);
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--brand-primary);
}

.nav-links a.active {
  color: var(--brand-primary);
  font-weight: 700;
}

.cart-toggle {
  border: 0;
  background: var(--brand-secondary);
  color: var(--white);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-family: inherit;
  cursor: pointer;
  font-weight: 700;
}

.cart-toggle span {
  background: var(--brand-accent);
  color: #1d1d1d;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  margin-left: 0.35rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 3.4rem 0 2rem;
}

.eyebrow {
  color: var(--brand-primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 56ch;
}

.hero-card {
  background: linear-gradient(130deg, var(--brand-secondary), #163f67 70%);
  color: var(--white);
  border-radius: 24px;
  padding: 1.7rem;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}

.hero-card h2 {
  margin-bottom: 0.7rem;
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-ghost {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  border-radius: 14px;
  padding: 0.8rem 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand-primary), var(--brand-accent));
  color: var(--white);
  margin-top: 0.8rem;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-ghost {
  border: 1px solid rgba(21, 34, 56, 0.18);
  background: transparent;
}

.section {
  padding: 2rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.service-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.service-overview-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(21, 34, 56, 0.08);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(15, 42, 69, 0.06);
}

.service-overview-card h3 {
  color: var(--brand-secondary);
  margin: 0.7rem 0 0.4rem;
}

.service-overview-card p {
  margin: 0;
  color: #3a4d69;
  line-height: 1.5;
}

.catalog-controls {
  margin-bottom: 1rem;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.stats-strip article {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(21, 34, 56, 0.08);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(15, 42, 69, 0.06);
}

.stats-strip strong {
  display: block;
  font-size: 1.55rem;
  color: var(--brand-secondary);
}

.stats-strip span {
  color: #4b5f7c;
  font-weight: 500;
}

.brands-cloud {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.brands-cloud a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #eef3ff, #fff3e7);
  border: 1px solid #dbe5ff;
  font-weight: 700;
  color: var(--brand-secondary);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.brands-cloud a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(18, 59, 165, 0.12);
}

.legacy-trust-section {
  padding-top: 1rem;
}

.legacy-trust-head {
  max-width: 760px;
  margin: 0 auto 1.4rem;
  text-align: center;
}

.legacy-trust-head h2 {
  margin-bottom: 0.8rem;
}

.legacy-trust-head p {
  margin: 0;
  color: #4a5d79;
  line-height: 1.7;
}

/* ── Premium Trust Strip ── */
.legacy-trust-section {
  background: linear-gradient(135deg, var(--brand-secondary) 0%, #1a4fc4 60%, #0a2266 100%);
  border-radius: 1.4rem;
  padding: 4rem 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.legacy-trust-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(255,111,0,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.legacy-trust-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.legacy-trust-head h2 {
  color: #fff;
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
}

.legacy-trust-head p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

.legacy-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  position: relative;
}

.legacy-trust-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.legacy-trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28);
}

.legacy-trust-card h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}

.legacy-trust-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.68;
  font-size: 0.92rem;
}

.legacy-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.2rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-accent);
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 111, 0, 0.45);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.why-card h3 {
  color: var(--brand-secondary);
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(125deg, rgba(8, 29, 90, 0.96), rgba(18, 59, 165, 0.92));
  color: var(--white);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.cta-banner h2 {
  max-width: 22ch;
}

.contact-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.feature-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
}

.map-card h3 {
  color: var(--brand-secondary);
}

.map-frame-wrap {
  margin-top: 1rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(21, 34, 56, 0.08);
}

.map-frame-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.compact-map iframe {
  height: 300px;
}

.catalog-controls h3 {
  color: var(--brand-secondary);
}

.catalog-filter-row {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 0.7rem;
}

.catalog-filter-row label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

.catalog-filter-row input,
.catalog-filter-row select,
.inventory-form select {
  border: 1px solid rgba(8, 29, 90, 0.2);
  border-radius: 10px;
  padding: 0.7rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.9);
}

.inventory-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.inventory-card h3 {
  margin-bottom: 0.5rem;
  color: var(--brand-secondary);
}

.inventory-note {
  border-left: 4px solid var(--brand-accent);
  padding-left: 0.7rem;
}

.inventory-form {
  display: grid;
  gap: 0.7rem;
}

.inventory-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

.inventory-form input,
.inventory-form textarea {
  border: 1px solid rgba(8, 29, 90, 0.2);
  border-radius: 10px;
  padding: 0.7rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.9);
}

.inventory-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.form-message {
  margin: 0.2rem 0 0;
  font-weight: 600;
  color: #0f7b40;
}

.form-message.error {
  color: var(--danger);
}

.auth-status {
  margin-top: 0.8rem;
  padding: 0.8rem;
  border: 1px solid rgba(8, 29, 90, 0.16);
  border-radius: 12px;
  background: rgba(232, 238, 252, 0.45);
}

.auth-status p {
  margin: 0.2rem 0;
}

.hidden {
  display: none !important;
}

.stock-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e8eefc;
  color: var(--brand-secondary);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.45rem;
}

.meta-badge-row {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}

.meta-badge {
  background: #edf2ff;
  border: 1px solid #d9e4ff;
  color: #17306f;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.payment-methods {
  margin-bottom: 1rem;
}

.payment-methods h3 {
  color: var(--brand-secondary);
  margin-bottom: 0.5rem;
}

.payment-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.payment-tags span {
  background: linear-gradient(120deg, #f0f5ff, #ffe8d0);
  border: 1px solid #d4e1ff;
  border-radius: 999px;
  padding: 0.38rem 0.65rem;
  font-weight: 600;
  font-size: 0.86rem;
}

.product-grid,
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}

/* ── Product card with thumbnail ── */
.prod-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.prod-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f0f4fa;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}

.prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.prod-card:hover .prod-thumb img {
  transform: scale(1.04);
}

.prod-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0bdd0;
}

.prod-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.prod-badge.out {
  background: #fee2e2;
  color: #b91c1c;
}

.prod-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.prod-body h3 {
  font-size: 0.97rem;
  margin: 0;
  color: var(--brand-secondary);
  line-height: 1.35;
}

.prod-body p {
  font-size: 0.83rem;
  color: #5a6a80;
  margin: 0;
  line-height: 1.5;
}

.prod-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.5rem;
  gap: 0.5rem;
}

.prod-body .btn-primary {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  padding: 0.6rem 1rem;
}

.card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(21, 34, 56, 0.08);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(15, 42, 69, 0.06);
  animation: fadeUp 0.5s ease both;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.card p {
  margin: 0.3rem 0 0.8rem;
  color: #41526b;
}

.price {
  color: var(--brand-secondary);
  font-weight: 800;
  display: block;
  margin-bottom: 0.7rem;
}

/* ── Account button ── */
.account-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  background: transparent;
  border: 1.5px solid rgba(18, 59, 165, 0.3);
  border-radius: 999px;
  color: var(--brand-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  white-space: nowrap;
}

.account-toggle:hover {
  background: rgba(18, 59, 165, 0.07);
  border-color: var(--brand-primary);
}

/* ── Auth Modal ── */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.auth-modal {
  background: #fff;
  border-radius: 1.2rem;
  padding: 2rem;
  width: min(420px, 100%);
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.auth-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #8a9ab0;
  cursor: pointer;
  line-height: 1;
}

.auth-modal-close:hover { color: var(--brand-secondary); }

.auth-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e8edf5;
  margin-bottom: 1.4rem;
}

.auth-tab {
  flex: 1;
  padding: 0.65rem 0;
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #8a9ab0;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.auth-tab.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

.auth-tab-panel label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-secondary);
  margin-bottom: 0.85rem;
}

.auth-tab-panel label input {
  padding: 0.6rem 0.8rem;
  border: 1.5px solid #d9e4f0;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
}

.auth-tab-panel label input:focus {
  border-color: var(--brand-primary);
}

/* Logged-in card in modal */
#authLoggedIn {
  text-align: center;
  padding: 0.5rem 0 1rem;
}

.auth-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.9rem;
}

#authLoggedIn h3 {
  margin: 0 0 0.25rem;
  color: var(--brand-secondary);
}

.auth-role-tag {
  display: inline-block;
  background: #edf2ff;
  color: var(--brand-primary);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.cart-panel {
  position: fixed;
  right: -420px;
  top: 0;
  width: min(420px, 100%);
  height: 100vh;
  background: var(--white);
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.15);
  z-index: 30;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

.cart-panel.open {
  right: 0;
}

.cart-header,
.cart-footer {
  padding: 1rem;
  border-bottom: 1px solid rgba(15, 42, 69, 0.1);
}

.cart-footer {
  border-top: 1px solid rgba(15, 42, 69, 0.1);
  border-bottom: 0;
  margin-top: auto;
}

/* ── Inline checkout form ── */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem 0;
}

.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-secondary);
}

.checkout-form label input,
.checkout-form label select {
  padding: 0.5rem 0.7rem;
  border: 1.5px solid #d9e4f0;
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.checkout-form label input:focus,
.checkout-form label select:focus {
  border-color: var(--brand-primary);
}

#paypalContainer {
  margin-top: 0.5rem;
}

.cart-items {
  padding: 1rem;
  overflow-y: auto;
  display: grid;
  gap: 0.75rem;
}

.cart-item {
  border: 1px solid rgba(15, 42, 69, 0.12);
  border-radius: 12px;
  padding: 0.8rem;
}

.cart-item-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 700;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.qty-btn,
.remove-btn,
.icon-btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e6f4ff;
}

.remove-btn {
  margin-left: auto;
  background: transparent;
  color: var(--danger);
}

.icon-btn {
  border-radius: 8px;
  width: 28px;
  height: 28px;
  background: #f1f5f9;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.full {
  width: 100%;
  margin-bottom: 0.5rem;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 42, 69, 0.48);
  z-index: 25;
  display: none;
}

.overlay.show {
  display: block;
}

/* ── Perks strip ── */
.perks-strip {
  background: #f4f6fb;
  border-top: 1px solid rgba(18, 59, 165, 0.1);
  border-bottom: 1px solid rgba(18, 59, 165, 0.1);
  padding: 1.4rem 0;
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--brand-secondary);
}

.perk-item svg {
  flex-shrink: 0;
  color: var(--brand-primary);
}

.perk-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-secondary);
}

.perk-item span {
  font-size: 0.8rem;
  color: #5a6a80;
}

/* ── Footer principal ── */
.footer {
  background: #1e2a3b;
  color: #c8d3e0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr 1fr 1.4fr;
  gap: 2rem;
  padding: 1.75rem 0 1.5rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.footer-col p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #9aafc4;
  margin: 0;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-nav a {
  color: #9aafc4;
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.18s;
}

.footer-nav a:hover {
  color: var(--brand-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  flex-wrap: wrap;
}

.footer-bottom-inner p {
  font-size: 0.76rem;
  color: #6b82a0;
  margin: 0;
}

.payment-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pay-badge {
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
}

.pay-badge.visa    { background: #1a1f71; }
.pay-badge.mc      { background: #eb001b; }
.pay-badge.paypal  { background: #003087; }
.pay-badge.transfer { background: #2e7d32; }

.page-main {
  padding-top: 2rem;
}

/* ── Botones admin en tarjeta de producto ── */
.prod-admin-btns {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(15,42,69,0.12);
}

.btn-edit, .btn-delete {
  flex: 1;
  padding: 0.3rem 0.5rem;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: opacity 0.15s;
}
.btn-edit   { background: #e8f0fe; color: #1a56db; }
.btn-delete { background: #fdecea; color: #c0392b; }
.btn-edit:hover, .btn-delete:hover { opacity: 0.8; }

/* ── Panel de pedidos ── */
.orders-panel {
  margin-top: 2rem;
  padding: 1.5rem;
}

.orders-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.orders-panel-header h3 { margin: 0; }

.orders-table-scroll {
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.orders-table th {
  background: #f0f4fa;
  color: var(--brand-secondary);
  font-weight: 700;
  padding: 0.55rem 0.75rem;
  text-align: left;
  white-space: nowrap;
}

.orders-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #edf2f7;
  vertical-align: top;
}

.orders-table tr:last-child td { border-bottom: none; }
.orders-table tr:hover td { background: #f7faff; }

.orders-empty {
  color: #888;
  font-size: 0.88rem;
  padding: 0.5rem 0;
}

/* ── Botón WhatsApp flotante ── */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(37,211,102,0.45);
  transition: transform 0.18s, box-shadow 0.18s;
  font-family: inherit;
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37,211,102,0.55);
  color: #fff;
}
.whatsapp-float svg { flex-shrink: 0; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  background: rgba(18, 42, 86, 0.95);
  color: #fff;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 26px rgba(15, 27, 55, 0.35);
  z-index: 1100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

/* ── Botón Ver detalle en tarjeta ── */
.btn-detail {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.38rem 0.7rem;
  background: transparent;
  border: 1.5px solid rgba(18,59,165,0.25);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.btn-detail:hover {
  background: rgba(18,59,165,0.06);
  border-color: var(--brand-primary);
}

/* ── Modal detalle de producto ── */
.prod-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.prod-detail-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.prod-detail-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.08);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.prod-detail-close:hover { background: rgba(0,0,0,0.16); }

.prod-detail-img {
  border-radius: 18px 0 0 18px;
  overflow: hidden;
  background: #f0f4fa;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prod-detail-placeholder {
  color: #b0c4d8;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 280px;
}

.prod-detail-body {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.prod-detail-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.prod-detail-body h2 { font-size: 1.3rem; margin: 0; line-height: 1.3; }
.prod-detail-body p  { font-size: 0.9rem; color: #5a6a80; margin: 0; line-height: 1.6; }

.prod-detail-meta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.prod-detail-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-primary);
}
.prod-detail-stock {
  font-size: 0.82rem;
  color: #4a9055;
  font-weight: 600;
}
.prod-detail-stock.out { color: #c0392b; }

.prod-detail-add {
  margin-top: auto;
  width: 100%;
}

@media (max-width: 560px) {
  .prod-detail-modal {
    grid-template-columns: 1fr;
    grid-template-rows: 220px 1fr;
  }
  .prod-detail-img { border-radius: 18px 18px 0 0; }
  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
  }
  .footer {
    padding-bottom: 4rem;
  }
}

/* ── Subida de imagen en formulario ── */
.img-upload-group { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.35rem; }

.img-upload-tabs {
  display: flex;
  gap: 0;
  border: 1.5px solid #d9e4f0;
  border-radius: 8px;
  overflow: hidden;
}
.img-tab {
  flex: 1;
  padding: 0.4rem 0.6rem;
  background: #f5f8ff;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: #6b82a0;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.img-tab.active { background: var(--brand-primary); color: #fff; }
.img-tab:not(.active):hover { background: #e8f0fe; }

.img-preview {
  margin-top: 0.4rem;
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.img-preview img {
  max-width: 120px;
  max-height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid #d9e4f0;
}
.img-remove-btn {
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  background: #fdecea;
  color: #c0392b;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  margin: 0;
}

.service-content {
  margin-bottom: 1rem;
}

.service-content h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.18rem;
  color: var(--brand-secondary);
  margin-bottom: 0.7rem;
}

.service-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: var(--white);
  box-shadow: 0 8px 18px rgba(18, 59, 165, 0.25);
  flex-shrink: 0;
}
.service-icon-badge svg {
  width: 26px;
  height: 26px;
  stroke: var(--white);
}

.service-content p {
  margin: 0;
  line-height: 1.65;
}

.service-content ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
}

.service-content li {
  line-height: 1.45;
  color: #2c3f5f;
}

.service-cta-head {
  margin-top: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form {
  display: grid;
  gap: 0.7rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid rgba(8, 29, 90, 0.2);
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.85);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-card {
    transform: none;
  }

  .nav-links {
    display: none;
  }

  .logo {
    height: 48px;
    max-width: 170px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .inventory-layout,
  .inventory-row,
  .catalog-filter-row {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }

  .legacy-trust-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .perks-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .footer-main {
    grid-template-columns: 1fr;
  }

  .perks-grid {
    grid-template-columns: 1fr;
  }
}
