/* ==========================================================================
   KAZAN MASTER — High-End Modern Fishing Tackle Store
   Typography: Google Sans / Montserrat (Headings & Brand), Noto Sans (Clean UI), Montserrat (Prices/Numbers)
   NO GLOW, NO LINK UNDERLINES, SMOOTH FLIP-CARD TRANSITIONS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,500;0,600;0,700;0,800;0,900;1,700&family=Noto+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg-page: #f8fafc;
  --bg-white: #ffffff;
  --bg-subtle: #f1f5f9;
  
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* Brand colors */
  --km-green: #008744;
  --km-green-hover: #006b36;
  --km-green-light: #e6f4ea;
  
  --km-red: #d92525;
  --km-red-hover: #b71c1c;
  --km-red-light: #fce8e6;

  --font-brand: 'Google Sans', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ui: 'Noto Sans', 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-price: 'Montserrat', 'Noto Sans', sans-serif;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* shadow removed */
  /* shadow removed */
  /* shadow removed */

  --transition-fast: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Strict NO UNDERLINES policy across the entire site */
a, a:hover, a:visited, a:active,
button, button:hover,
.nav-link, .nav-link:hover,
.social-badge-vk, .social-badge-tg,
.filter-btn, .btn-add-cart,
.btn-primary-red, .btn-outline-green,
.page-btn {
  text-decoration: none !important;
  outline: none;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Top Header Bar & Social Badges
   ========================================================================== */

.topbar {
  background-color: #0f172a;
  color: #cbd5e1;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-info {
  display: flex;
  gap: 20px;
}

.topbar-info strong {
  color: #fff;
}

.topbar-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-badge-vk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #2787f5;
  color: #fff !important;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.social-badge-vk:hover {
  background-color: #1a73e8;
  transform: translateY(-1px);
}

.social-badge-tg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #229ed9;
  color: #fff !important;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.social-badge-tg:hover {
  background-color: #1b8fc5;
  transform: translateY(-1px);
}

/* ==========================================================================
   Main Header
   ========================================================================== */

.main-header {
  background-color: var(--bg-white);
  border-bottom: 2px solid var(--km-red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: none !important;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 24px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo-img {
  height: 58px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-brand);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--km-red);
  line-height: 1.1;
}

.brand-subtitle {
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 800;
  color: var(--km-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-family: var(--font-brand);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-secondary);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.nav-link:hover {
  color: var(--km-green);
  background-color: var(--km-green-light);
}

.nav-link.active {
  color: var(--km-red);
  background-color: var(--km-red-light);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--km-green);
  color: #fff !important;
  border: none;
  font-family: var(--font-brand);
  font-size: 13.5px;
  font-weight: 800;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  box-shadow: none !important;
}

.header-cart-btn:hover {
  background-color: var(--km-green-hover);
  transform: translateY(-1px);
  box-shadow: none !important;
}

.cart-pill {
  background-color: #fff;
  color: var(--km-green);
  font-family: var(--font-price);
  font-size: 14px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 12px;
}

.wishlist-pill {
  background-color: var(--km-red) !important;
  color: #ffffff !important;
  font-family: var(--font-price);
  font-size: 13px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 4px;
  line-height: 1;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-banner {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-subtle);
  padding: 44px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-tag {
  display: inline-block;
  background-color: var(--km-green-light);
  color: var(--km-green);
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  margin-bottom: 14px;
}

.hero-h1 {
  font-family: var(--font-brand);
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.hero-p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 620px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  margin-top: 8px;
}

.btn-primary-red {
  background-color: var(--km-red);
  color: #fff !important;
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 800;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: none;
  transition: all var(--transition-fast);
  box-shadow: none !important;
}

.btn-primary-red:hover {
  background-color: var(--km-red-hover);
  transform: translateY(-2px);
  box-shadow: none !important;
}

.btn-outline-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--km-green) !important;
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 800;
  padding: 12px 24px;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  border: 2px solid var(--km-green);
  box-sizing: border-box;
  transition: all var(--transition-fast);
}

.btn-outline-green:hover {
  background-color: var(--km-green-light);
  transform: translateY(-2px);
}

/* Trust Metric Cards */
.trust-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.trust-card {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.trust-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
}

.trust-num {
  font-family: var(--font-price);
  font-size: 28px;
  font-weight: 800;
  color: var(--km-red);
  line-height: 1.1;
  margin-bottom: 4px;
}

.trust-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ==========================================================================
   Catalog Controls & Animated Category Tabs
   ========================================================================== */

.catalog-section {
  padding: 44px 0 80px;
}

.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.catalog-title {
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.catalog-count-pill {
  font-family: var(--font-price);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-muted);
  margin-left: 8px;
}

.search-box-wrap {
  min-width: 340px;
}

.search-input-field {
  width: 100%;
  background-color: var(--bg-white);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input-field:focus {
  border-color: var(--km-red);
  box-shadow: none !important;
}

/* Category Filter Bar with Animated Transition */
.category-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 4px 16px 4px;
  margin-bottom: 28px;
  scrollbar-width: thin;
}

.filter-btn {
  background-color: var(--bg-white);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none !important;
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--km-green);
  color: var(--km-green);
  transform: translateY(-2px);
  box-shadow: none !important;
}

.filter-btn.active {
  background-color: var(--km-green);
  border-color: var(--km-green);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: none !important;
}

/* Product Cards Grid with Switch Animation */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-grid.switching {
  opacity: 0.3;
  transform: scale(0.99);
}

.product-item {
  background-color: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: none !important;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  animation: cardFadeIn 0.3s ease;
}

.product-item:hover {
  transform: translateY(-4px);
  box-shadow: none !important;
  border-color: var(--border-medium);
}

.product-image-container {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #fafbfc;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.product-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.25s ease;
}

.product-item:hover .product-thumbnail {
  transform: scale(1.05);
}

.product-category-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-subtle);
  color: var(--km-green);
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.product-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-family: var(--font-brand);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 4px;
}

.product-sku-code {
  font-family: var(--font-price);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.product-price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.product-price {
  font-family: var(--font-price);
  font-size: 22px;
  font-weight: 900;
  color: var(--km-red);
}

.btn-add-cart {
  background-color: var(--km-green);
  color: #fff !important;
  border: none;
  font-family: var(--font-brand);
  font-size: 12.5px;
  font-weight: 800;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-add-cart:hover {
  background-color: var(--km-green-hover);
  transform: translateY(-1px) scale(1.02);
  box-shadow: none !important;
}

/* Pagination Controls */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.page-btn {
  background-color: var(--bg-white);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-family: var(--font-brand);
  font-size: 13.5px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.page-btn:hover {
  border-color: var(--km-green);
  color: var(--km-green);
}

.page-btn.active {
  background-color: var(--km-green);
  border-color: var(--km-green);
  color: #fff !important;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ==========================================================================
   Editorial Content & Blog Cards
   ========================================================================== */

.editorial-section {
  padding: 44px 0 80px;
}

.editorial-card {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px 52px;
  box-shadow: none !important;
}

.editorial-title {
  font-family: var(--font-brand);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-main);
  border-bottom: 2px solid var(--km-red);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.editorial-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.editorial-body p {
  margin-bottom: 18px;
}

.editorial-body strong {
  color: var(--text-main);
}

.editorial-body h2, .editorial-body h3 {
  font-family: var(--font-brand);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  margin: 32px 0 12px;
}

.editorial-body ul {
  padding-left: 20px;
  margin-bottom: 18px;
}

.editorial-body li {
  margin-bottom: 8px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.blog-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: none !important;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: none !important;
  border-color: var(--km-green);
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: #f0f2f5;
}

.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-date {
  font-family: var(--font-price);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.blog-card-title {
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 12px;
}

.blog-card-link {
  margin-top: auto;
  color: var(--km-red);
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 13px;
}

/* ==========================================================================
   Admin Section with Table Pagination
   ========================================================================== */

.admin-section {
  padding: 40px 0 80px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}

@media (max-width: 800px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.admin-sidebar {
  background-color: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  height: fit-content;
}

.admin-nav-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 12px 16px;
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  margin-bottom: 4px;
}

.admin-nav-item:hover, .admin-nav-item.active {
  background-color: var(--km-green-light);
  color: var(--km-green);
}

.admin-panel-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: none !important;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 13px;
}

.admin-table th {
  text-align: left;
  background-color: var(--bg-subtle);
  padding: 10px 12px;
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-medium);
}

.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

/* ==========================================================================
   Cart Modal
   ========================================================================== */

.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s ease, opacity 0.25s ease;
}

.cart-modal.open {
  visibility: visible;
  opacity: 1;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background-color: var(--bg-white);
  display: flex;
  flex-direction: column;
  box-shadow: none !important;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-modal.open .cart-drawer {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-drawer-title {
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.cart-drawer-close {
  background: none;
  border: none;
  font-size: 26px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.cart-drawer-close:hover {
  color: var(--km-red);
}

.cart-drawer-items {
  padding: 20px 24px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-row {
  display: flex;
  gap: 12px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 10px;
  border-radius: var(--radius-sm);
  align-items: center;
}

.cart-row-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  background: #fff;
}

.cart-row-info {
  flex-grow: 1;
}

.cart-row-name {
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

.cart-row-price {
  font-family: var(--font-price);
  font-size: 14px;
  font-weight: 800;
  color: var(--km-red);
  margin-top: 4px;
}

.cart-row-del {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  padding: 4px;
  cursor: pointer;
}

.cart-row-del:hover {
  color: var(--km-red);
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-subtle);
}

.cart-total-box {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.cart-total-sum {
  font-family: var(--font-price);
  font-size: 24px;
  font-weight: 800;
  color: var(--km-red);
}

.order-form-group {
  margin-bottom: 10px;
}

.order-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.order-form-group input {
  width: 100%;
  background-color: #fff;
  border: 1px solid var(--border-medium);
  padding: 9px 12px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.order-form-group input:focus {
  border-color: var(--km-green);
}

.order-consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  margin: 12px 0 16px;
  line-height: 1.4;
}

.order-consent-checkbox a {
  color: var(--km-green);
  font-weight: 700;
}

.btn-submit-order {
  width: 100%;
  background-color: var(--km-green);
  color: #fff !important;
  border: none;
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 800;
  padding: 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-submit-order:hover {
  background-color: var(--km-green-hover);
  transform: translateY(-1px);
}

/* Animations */
.bump {
  animation: bumpAnim 0.3s ease;
}

@keyframes bumpAnim {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: #0f172a;
  color: #cbd5e1;
  border-top: 3px solid var(--km-green);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-heading {
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-links-list a:hover {
  color: #4ade80;
}

.footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-light);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #0f172a;
  color: #fff;
  padding: 16px 24px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  z-index: 500;
  box-shadow: none !important;
}

.cookie-btn {
  background-color: var(--km-green);
  color: #fff !important;
  border: none;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  white-space: nowrap;
}

/* Toast */
.toast-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #0f172a;
  border-left: 4px solid var(--km-green);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-xs);
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 700;
  box-shadow: none !important;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 300;
}

.toast-bar.show {
  transform: translateY(0);
  opacity: 1;
}


/* STRICT ZERO UNDERLINE ON ALL ELEMENTS */
*, *::before, *::after, a, a *, a:hover, a:hover *, a:focus, a:visited, button, button *, span, p, h1, h2, h3, h4, div {
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-thickness: 0 !important;
}

html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   Product Modal Detailed View & Smooth Scroller
   ========================================================================== */
.product-modal-dialog {
  max-width: 900px !important;
  width: 92% !important;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px !important;
  padding: 28px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

.prod-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
}

@media (max-width: 768px) {
  .prod-modal-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.prod-modal-main-view {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.prod-modal-main-view img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.prod-modal-thumbs-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}

.prod-modal-thumb {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
  padding: 4px;
  transition: border-color 0.15s ease;
}

.prod-modal-thumb.active, .prod-modal-thumb:hover {
  border-color: var(--km-red);
}

.prod-modal-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}

.prod-modal-title {
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 14px;
}

.prod-modal-price-box {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 18px;
}

.prod-modal-price {
  font-family: var(--font-price);
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
}

.prod-modal-stock {
  font-size: 13px;
  font-weight: 600;
  color: #1e7b45;
}

.prod-modal-specs {
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
  margin-bottom: 16px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 5px 0;
}

.spec-label {
  color: #64748b;
}

.spec-value {
  color: #0f172a;
  font-weight: 600;
  text-align: right;
}

.prod-modal-desc-section h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.prod-modal-desc-section p {
  font-size: 13px;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 20px;
}

.prod-modal-actions {
  display: flex;
  gap: 12px;
}

.product-item {
  cursor: pointer;
}

/* ==========================================================================
   Interactive Card Quantity Controls & Jump Input
   ========================================================================== */
.card-qty-control {
  display: inline-flex;
  align-items: center;
  background-color: var(--km-green-light);
  border: 1px solid var(--km-green);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 34px;
}

.card-qty-btn {
  background: transparent;
  border: none;
  color: var(--km-green);
  font-weight: 900;
  font-size: 16px;
  width: 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.card-qty-btn:hover {
  background-color: var(--km-green);
  color: #fff !important;
}

.card-qty-num {
  font-family: var(--font-price);
  font-size: 13px;
  font-weight: 800;
  color: var(--km-green-hover);
  padding: 0 8px;
  white-space: nowrap;
}

.product-incart-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background-color: var(--km-green);
  color: #ffffff;
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}

/* Page Jump Input */
.page-jump-wrap {
  display: inline-flex;
  align-items: center;
  margin: 0 2px;
}

.page-jump-input {
  width: 36px;
  height: 32px;
  text-align: center;
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  outline: none;
}

.page-jump-input:focus {
  border-color: var(--km-green);
  border-style: solid;
}

.page-quick-goto {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.page-goto-field {
  width: 44px;
  height: 32px;
  text-align: center;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  font-weight: 700;
  color: var(--text-main);
  outline: none;
}

.page-goto-field:focus {
  border-color: var(--km-green);
}

/* ==========================================================================
   Product Popup Modal Overlay (Centered on Viewport, Not Bottom)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1001;
}

.modal-container.product-modal-dialog {
  position: relative;
  z-index: 1002;
  margin: auto !important;
  max-width: 860px !important;
  width: 100% !important;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 12px !important;
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25) !important;
  animation: modalCenterZoom 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalCenterZoom {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  z-index: 10;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: var(--km-red);
  color: #fff;
  border-color: var(--km-red);
}

/* ==========================================================================
   Smart Border Radius for Non-PNG / Solid Background Photos
   ========================================================================== */
.product-thumbnail,
img.product-thumbnail,
.prod-modal-main-view img,
.prod-modal-thumb,
.cart-row-img,
.blog-card-img {
  border-radius: 8px !important;
  overflow: hidden;
}

/* Also ensure image container wraps softly */
.product-image-container {
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

/* Header User Auth Button */
.header-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f1f5f9;
  color: #334155 !important;
  font-family: var(--font-brand);
  font-size: 13.5px;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-auth-btn:hover {
  background-color: #e2e8f0;
  color: #0f172a !important;
}

/* ==========================================================================
   Authentic Banner Image in Hero Section
   ========================================================================== */
.hero-visual-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner-image-wrap {
  width: 100%;
  max-width: 580px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.hero-banner-real-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-banner-real-img:hover {
  transform: scale(1.02);
}

/* ==========================================================================
   Improved, Wider & Comfortable Cart Drawer
   ========================================================================== */
.cart-drawer {
  max-width: 480px !important;
  width: 95% !important;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15) !important;
}

.cart-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 8px;
}

.cart-row-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 6px;
  padding: 4px;
}

.cart-row-info {
  flex-grow: 1;
}

.cart-row-name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 13.5px;
  color: #0f172a;
  line-height: 1.3;
}

.cart-drawer-footer {
  padding: 18px 24px 28px !important;
  background-color: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

.order-form-group input,
.order-form-group textarea {
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  padding: 9px 12px !important;
  font-size: 14px !important;
  transition: border-color 0.15s ease;
}

.order-form-group input:focus,
.order-form-group textarea:focus {
  border-color: var(--km-green) !important;
  outline: none;
}

/* ==========================================================================
   Consultant Floating Widget (ARContactUs Revival)
   ========================================================================== */

.consultant-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.consultant-bubble {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px 20px 4px 20px;
  padding: 10px 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  animation: bubbleFadeIn 0.3s ease;
  max-width: 260px;
}

.consultant-bubble-text {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
}

.consultant-bubble-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}

.consultant-bubble-close:hover {
  color: #0f172a;
}

.consultant-trigger-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--km-green);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
  position: relative;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.consultant-trigger-btn:hover {
  background: #155c33;
  transform: scale(1.05);
}

@keyframes bubbleFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.consultant-menu {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
  margin-bottom: 14px;
  width: 320px;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  animation: bubbleFadeIn 0.2s ease;
}

.consultant-menu-header {
  padding: 14px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.consultant-links {
  display: flex;
  flex-direction: column;
}

.consultant-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: none;
  background: #ffffff;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none !important;
  transition: background-color 0.15s ease;
}

.consultant-item:last-child {
  border-bottom: none;
}

.consultant-item:hover {
  background: #f8fafc;
}

.consultant-item.tg svg {
  color: #229ed9;
}

.consultant-item.vk svg {
  color: #2787f5;
}

.consultant-item.call svg {
  color: #1e7b45;
}

.consultant-item strong {
  display: block;
  font-family: var(--font-brand);
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.consultant-item small {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

/* ==========================================================================
   Mobile Responsive Optimizations (< 768px)
   ========================================================================== */

@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* Topbar clean stack or compact */
  .topbar-inner {
    flex-direction: column;
    gap: 6px;
    padding: 8px 14px;
    text-align: center;
  }

  .topbar-info {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 11.5px;
  }

  .topbar-socials {
    justify-content: center;
    gap: 8px;
    font-size: 11.5px;
  }

  /* Main Header mobile layout */
  .header-inner {
    height: auto;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand-wrapper {
    flex: 1;
  }

  .brand-logo-img {
    height: 44px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-cart-btn {
    padding: 9px 14px;
    font-size: 12.5px;
  }

  .header-auth-btn {
    padding: 8px 10px;
    font-size: 12px;
  }

  #wishlist-header-label, #user-display-name {
    display: none; /* Icon only on mobile */
  }

  /* Navigation menu horizontally scrollable on mobile */
  .nav-menu {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 6px;
    gap: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    font-size: 12.5px;
    padding: 8px 12px;
    flex-shrink: 0;
  }

  /* Hero Banner */
  .hero-banner {
    padding: 12px 0 20px;
  }

  .hero-carousel-container {
    min-height: auto !important;
  }

  .hero-slide-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-slide-content {
    padding: 24px 18px !important;
  }

  .hero-slide-title {
    font-size: 22px !important;
    line-height: 1.25 !important;
  }

  .hero-slide-desc {
    font-size: 13.5px !important;
    margin-bottom: 20px !important;
  }

  .hero-slide-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-slide-actions .btn-primary-red,
  .hero-slide-actions .btn-outline-white {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .hero-slide-img-box {
    display: none !important; /* Hide secondary hero image on mobile for clean fast view */
  }

  /* Catalog controls */
  .catalog-head {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .search-box-wrap {
    min-width: 100%;
  }

  .catalog-controls-row {
    flex-direction: column;
    gap: 10px;
  }

  /* Product Grid: 2 columns on mobile instead of broken squished cards */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .product-card {
    padding: 10px !important;
  }

  .product-title {
    font-size: 13px !important;
    min-height: 36px;
  }

  .product-card-price {
    font-size: 16px !important;
  }

  .product-card-btn {
    padding: 9px 8px !important;
    font-size: 12px !important;
  }

  /* Consultant Widget floating */
  .consultant-widget {
    bottom: 16px;
    right: 16px;
  }

  .consultant-toggle-btn {
    width: 48px;
    height: 48px;
  }

  .consultant-popover {
    right: 0;
    width: calc(100vw - 32px);
    max-width: 320px;
  }
}

