/* ==========================================================================
   Crown Tools - Light Mode Industrial Design System
   Brand Palette from Logo: Pure White, Vibrant Red, Crown Yellow/Gold, Deep Black
   ========================================================================== */

:root {
  /* Logo-Derived Brand Colors */
  --brand-white: #ffffff;
  --brand-black: #0f172a;       /* Deep ink black */
  --brand-red: #e11d48;         /* Crown Gear Red / Crimson (#dc2626 / #e11d48) */
  --brand-red-dark: #be123c;
  --brand-red-light: #ffe4e6;
  --brand-yellow: #fbc70f;         /* Exact Crown Yellow Requested */
  --brand-yellow-bright: #fed943;
  --brand-yellow-light: #fef8d3;
  --brand-yellow-soft: #fffde8;

  /* Surfaces & Backgrounds (Light Mode) */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;

  /* Text Colors */
  --text-main: #0f172a;         /* High contrast black */
  --text-secondary: #334155;    /* Slate neutral */
  --text-muted: #64748b;        /* Soft gray */
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* Borders & Dividers */
  --border-light: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-focus: #e11d48;
  --border-yellow: #fde68a;
  --border-red: #fecdd3;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 18px 38px -6px rgba(225, 29, 72, 0.15), 0 8px 16px -4px rgba(15, 23, 42, 0.06);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Utility Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--brand-yellow-light);
  color: #92400e;
  border: 1px solid var(--border-yellow);
}

.badge-pill-red {
  background: var(--brand-red-light);
  color: var(--brand-red-dark);
  border: 1px solid var(--border-red);
}

/* Top Announcement Bar (Single-Line Continuous Marquee on Mobile & Space Saver) */
.top-announcement-bar {
  background: var(--brand-yellow);
  color: #000000;
  border-bottom: 2px solid var(--brand-red);
  padding: 7px 0;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.ticker-wrapper {
  overflow: hidden;
  width: 100%;
  display: flex;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  animation: tickerLoop 25s linear infinite;
  will-change: transform;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ticker-divider {
  color: var(--brand-red);
  font-weight: 900;
  opacity: 0.8;
  font-size: 0.9rem;
}

@keyframes tickerLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--brand-yellow);
  box-shadow: var(--shadow-sm);
}

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

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

.brand-logo-img {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: #ffffff;
  padding: 2px;
  border: 2px solid var(--brand-red);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.2);
}

.brand-text h1.brand-title {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--brand-black);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.1;
}

.brand-text .brand-title span {
  color: var(--brand-red);
}

.brand-text .brand-tagline {
  font-size: 0.76rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-red);
}

.nav-link:hover::after,
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--brand-red);
  border-radius: 2px;
}

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

.btn-header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--brand-black);
  font-size: 0.88rem;
  font-weight: 800;
}

.btn-header-call:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  background: #ffffff;
}

.btn-header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--brand-red);
  border-radius: var(--radius-full);
  color: var(--brand-red);
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-header-cart:hover {
  background: var(--brand-red);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--brand-yellow);
  color: #000000;
  font-size: 0.72rem;
  font-weight: 900;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  padding: 0 4px;
  box-shadow: var(--shadow-sm);
}

/* Tool Inquiry Cart Drawer */
.cart-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cart-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  box-shadow: -8px 0 35px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 260;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-backdrop.active .cart-drawer {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 2px solid var(--brand-yellow);
  background: #ffffff;
}

.cart-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-header-title h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--brand-black);
}

.cart-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--brand-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.cart-close-btn:hover {
  background: var(--brand-red);
  color: #ffffff;
}

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

.cart-empty-state {
  text-align: center;
  padding: 50px 10px;
  color: var(--text-muted);
}

.cart-empty-state i {
  font-size: 2.8rem;
  color: var(--brand-yellow);
  margin-bottom: 14px;
  display: block;
}

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

.cart-item-row img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border-light);
}

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

.cart-item-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--brand-black);
  line-height: 1.25;
}

.cart-item-brand {
  font-size: 0.75rem;
  color: var(--brand-red);
  font-weight: 700;
}

.cart-item-remove {
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.cart-item-remove:hover {
  color: var(--brand-red);
  background: var(--brand-red-light);
}

.cart-drawer-footer {
  padding: 20px 22px;
  border-top: 1px solid var(--border-light);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.cart-summary-line strong {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--brand-black);
}

.mobile-toggle {
  display: none;
  background: transparent;
  color: var(--brand-black);
  font-size: 1.7rem;
}

/* Hero Section (Light Mode) */
.hero {
  position: relative;
  padding: 70px 0 85px;
  background: linear-gradient(135deg, #ffffff 0%, var(--brand-yellow-soft) 50%, #ffffff 100%);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(var(--border-yellow) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content h2.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 18px 0 20px;
  letter-spacing: -0.02em;
  color: var(--brand-black);
}

.hero-content h2.hero-title .highlight {
  color: var(--brand-red);
  background: linear-gradient(135deg, var(--brand-red), #b91c1c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  background: var(--brand-red);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.35);
}

.btn-primary:hover {
  background: var(--brand-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.45);
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--brand-yellow);
  border: 1px solid var(--brand-yellow);
  color: #000000;
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-secondary:hover {
  background: var(--brand-yellow-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 30px;
  border-top: 2px dashed var(--border-light);
}

.stat-item h3 {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--brand-red);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Hero Visual Card */
.hero-visual {
  position: relative;
}

.hero-visual-card {
  background: #ffffff;
  border: 3px solid var(--brand-yellow);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-visual-card img {
  border-radius: var(--radius-md);
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-visual-card:hover img {
  transform: scale(1.02);
}

.hero-floating-badge {
  position: absolute;
  bottom: 26px;
  left: 26px;
  right: 26px;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid var(--brand-red);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.hero-floating-badge .badge-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 800;
}

.hero-floating-badge .badge-val {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--brand-black);
}

/* Catalog Filter & Controls */
.catalog-section {
  padding: 85px 0;
  background: var(--bg-page);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 45px;
}

.section-head h2 {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
  color: var(--brand-black);
}

.section-head h2 span {
  color: var(--brand-red);
}

.section-head p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Search & Filter Toolbar */
.catalog-toolbar {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-card);
}

.search-box-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-red);
  font-size: 1.2rem;
  pointer-events: none;
}

.catalog-search-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  background: var(--bg-subtle);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--brand-black);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  transition: var(--transition);
}

.catalog-search-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.search-clear-btn {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: var(--text-muted);
  font-size: 1.1rem;
  display: none;
}

.search-clear-btn:hover {
  color: var(--brand-black);
}

/* Category Filter Chips */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-chip {
  padding: 9px 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover {
  color: var(--brand-black);
  border-color: var(--brand-yellow);
  background: var(--brand-yellow-soft);
}

.filter-chip.active {
  background: var(--brand-red);
  color: #ffffff;
  border-color: var(--brand-red);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

.filter-results-info {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Catalog Cards Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
}

.catalog-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.catalog-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-red);
  box-shadow: var(--shadow-hover);
}

.card-img-wrap {
  position: relative;
  height: 250px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-bottom: 2px solid var(--bg-subtle);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.catalog-card:hover .card-img-wrap img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--brand-yellow);
  color: #000000;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.card-brand {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #ffffff;
  color: var(--brand-red);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-red);
  box-shadow: var(--shadow-sm);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #ffffff;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--brand-black);
  margin-bottom: 10px;
  line-height: 1.25;
}

.card-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.55;
  flex-grow: 1;
}

.card-items-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-red);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.card-chip {
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.btn-card-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 14px;
  background: #25d366;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
}

.btn-card-wa:hover {
  background: #1eb857;
  color: #ffffff;
}

.btn-card-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 14px;
  background: var(--bg-subtle);
  color: var(--brand-black);
  border: 1px solid var(--border-light);
  font-weight: 800;
  font-size: 0.88rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.btn-card-details:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  background: var(--brand-red-light);
}

.btn-card-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 14px;
  background: var(--brand-red);
  color: #ffffff;
  border: 1px solid var(--brand-red);
  font-weight: 800;
  font-size: 0.88rem;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-card-cart:hover {
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
  color: #ffffff;
}

.btn-card-cart.in-cart {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.btn-card-cart.in-cart:hover {
  background: #15803d;
  border-color: #15803d;
}

/* Empty search state */
.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-light);
}

.catalog-empty h3 {
  font-size: 1.4rem;
  color: var(--brand-black);
  margin-bottom: 8px;
}

.catalog-empty p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Quick View Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #ffffff;
  border: 2px solid var(--brand-red);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.2s ease;
}

.modal-backdrop.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--brand-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--brand-red);
  color: #ffffff;
}

.modal-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  padding: 32px;
}

.modal-img-wrap {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
}

.modal-img-wrap img {
  max-height: 320px;
  object-fit: contain;
}

.modal-details h3.modal-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--brand-black);
  margin: 10px 0 12px;
}

.modal-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-items-list {
  list-style: none;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.modal-items-list li {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--brand-black);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.modal-items-list li i {
  color: var(--brand-red);
}

/* Why Crown Tools Section */
.features-section {
  padding: 85px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature-box {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: var(--transition);
}

.feature-box:hover {
  border-color: var(--brand-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  background: #ffffff;
}

.feature-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--brand-yellow-light);
  border: 1px solid var(--border-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #92400e;
  margin-bottom: 20px;
}

.feature-box h4 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--brand-black);
  margin-bottom: 10px;
}

.feature-box p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* Location & Store Visit Section */
.location-section {
  padding: 85px 0;
  background: var(--bg-page);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}

.store-card {
  background: #ffffff;
  border: 2px solid var(--brand-yellow);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.store-card h3 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand-black);
  margin-bottom: 12px;
}

.owner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-red-dark);
  background: var(--brand-red-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  border: 1px solid var(--border-red);
}

.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-row-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-yellow-soft);
  border: 1px solid var(--border-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #92400e;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-text h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.contact-text a,
.contact-text p {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-black);
}

.contact-text a:hover {
  color: var(--brand-red);
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn-review {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #ffffff;
  border: 2px solid var(--brand-red);
  color: var(--brand-red);
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
}

.btn-review:hover {
  background: var(--brand-red);
  color: #ffffff;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  height: 460px;
  background: #ffffff;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Social links */
.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-black);
  font-size: 1.2rem;
}

.social-icon-btn:hover {
  background: var(--brand-red);
  color: #ffffff;
  border-color: var(--brand-red);
  transform: translateY(-2px);
}

/* Floating Action Buttons */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 99;
}

.floating-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}

.floating-wa {
  background: #25d366;
  color: #ffffff;
}

.floating-wa:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

.floating-call {
  background: var(--brand-red);
  color: #ffffff;
}

.floating-call:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.45);
}

/* Footer (Light/Clean with Brand Accents) */
.footer {
  background: #ffffff;
  border-top: 3px solid var(--brand-red);
  padding: 60px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-light);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 16px 0 20px;
  max-width: 360px;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 18px;
  color: var(--brand-black);
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--brand-red);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Styles
   ========================================================================== */

/* Tablet & Smaller Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-visual-card img {
    height: 320px;
  }
  .location-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablets & Mobile Landscape (<= 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }

  /* Header Mobile */
  .header-inner {
    height: 72px;
  }

  .brand-logo-img {
    width: 48px;
    height: 48px;
  }

  .brand-text h1.brand-title {
    font-size: 1.35rem;
  }

  .brand-text .brand-tagline {
    font-size: 0.7rem;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 3px solid var(--brand-red);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
    display: none;
    z-index: 1000;
  }

  .nav-menu.open {
    display: flex;
    animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid var(--border-light);
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    color: var(--brand-black);
    font-size: 1.3rem;
  }

  .mobile-toggle:hover {
    background: var(--brand-red);
    color: #ffffff;
    border-color: var(--brand-red);
  }

  .btn-header-call {
    display: none;
  }

  .btn-header-wa span {
    display: none;
  }

  .btn-header-wa {
    padding: 10px 14px;
  }

  /* Hero Mobile */
  .hero {
    padding: 45px 0 55px;
  }

  .hero-content h2.hero-title {
    font-size: clamp(2rem, 7vw, 2.5rem);
    line-height: 1.16;
    margin: 14px 0 16px;
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }

  .hero-stats {
    gap: 12px;
    padding-top: 22px;
  }

  .stat-item h3 {
    font-size: 1.65rem;
  }

  .stat-item p {
    font-size: 0.72rem;
  }

  .hero-visual-card img {
    height: 240px;
  }

  .hero-floating-badge {
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 10px 14px;
  }

  .hero-floating-badge .badge-val {
    font-size: 0.95rem;
  }

  /* Catalog Section Mobile */
  .catalog-section {
    padding: 55px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-head h2 {
    font-size: 2rem;
  }

  .catalog-toolbar {
    padding: 16px;
    margin-bottom: 28px;
    border-radius: var(--radius-md);
  }

  .catalog-search-input {
    padding: 14px 16px 14px 46px;
    font-size: 0.94rem;
  }

  /* Filter Chips: Smooth Horizontal Swipe on Touch Devices */
  .filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    gap: 8px;
    scrollbar-width: none;
  }

  .filter-chips::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .filter-results-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.82rem;
  }

  /* Catalog Grid Mobile */
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .card-img-wrap {
    height: 220px;
  }

  .card-body {
    padding: 20px 16px;
  }

  .card-title {
    font-size: 1.25rem;
  }

  /* Quick View Modal Mobile */
  .modal-backdrop {
    padding: 12px;
  }

  .modal-container {
    max-height: 94vh;
    border-radius: var(--radius-md);
  }

  .modal-close-btn {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
  }

  .modal-content-grid {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    gap: 20px;
  }

  .modal-img-wrap {
    padding: 16px;
    height: 200px;
  }

  .modal-img-wrap img {
    max-height: 180px;
  }

  .modal-details h3.modal-title {
    font-size: 1.45rem;
  }

  /* Features / Why Crown Mobile */
  .features-section {
    padding: 55px 0;
  }

  .feature-box {
    padding: 24px 18px;
  }

  /* Location Section Mobile */
  .location-section {
    padding: 55px 0;
  }

  .store-card {
    padding: 24px 18px;
  }

  .store-card h3 {
    font-size: 1.6rem;
  }

  .store-actions {
    flex-direction: column;
  }

  .store-actions .btn-review,
  .store-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .map-container {
    height: 300px;
  }

  /* Footer Mobile */
  .footer {
    padding: 45px 0 30px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* Small Smartphone Viewports (<= 480px) */
@media (max-width: 480px) {
  .brand-text h1.brand-title {
    font-size: 1.15rem;
  }

  .brand-logo-img {
    width: 40px;
    height: 40px;
  }

  .hero-content h2.hero-title {
    font-size: 1.85rem;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stat-item:last-child {
    grid-column: 1 / -1;
  }

  .card-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .btn-card-details,
  .btn-card-cart {
    width: 100%;
    padding: 12px;
  }

  /* Mobile Floating Action (Clean Round Icon in Corner) */
  .floating-actions {
    position: fixed;
    bottom: 24px;
    right: 18px;
    left: auto;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    z-index: 999;
  }

  .floating-btn {
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  }

  .floating-btn span {
    display: none;
  }

  .floating-wa i {
    font-size: 1.65rem;
  }

  .floating-call {
    display: none;
  }
}

