/* ==========================================================================
   ADVENTURE OUTDOOR - DESIGN SYSTEM & STYLESHEET
   Meets PRD UI/UX Specifications:
   - Primary: Forest Deep Green (#1E3F20)
   - Secondary: Sunset Orange (#E76F51)
   - Background: Off-White / Light Mist (#F8F9FA)
   - Typography: Plus Jakarta Sans & Inter
   - WCAG 2.1 AA Compliant, Touch Target >= 44x44px
   ========================================================================== */

:root {
  /* Colors */
  --primary: #1E3F20;
  --primary-light: #2D5A30;
  --primary-dark: #132B15;
  --primary-surface: #EBF3EC;
  --primary-alpha: rgba(30, 63, 32, 0.08);

  --accent: #E76F51;
  --accent-hover: #D55D3E;
  --accent-light: #F4A261;
  --accent-surface: #FDF2EE;
  
  --bg-main: #F8F9FA;
  --bg-surface: #FFFFFF;
  --bg-alt: #F1F4F1;
  --bg-dark: #121E14;

  --text-main: #212529;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-inverse: #FFFFFF;

  --border-light: #E2E8F0;
  --border-focus: #1E3F20;

  --status-success: #16A34A;
  --status-warning: #EAB308;
  --status-danger: #DC2626;
  --status-info: #0284C7;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 14px 34px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 8px 25px rgba(231, 111, 81, 0.35);

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

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top center, rgba(69, 106, 79, 0.12), transparent 22%),
    linear-gradient(180deg, #f7f2eb 0%, #f9faf9 28%, #eef3ef 100%);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  min-height: 44px;
  min-width: 44px;
}

input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   TOP PROMO BAR
   ========================================================================== */
.promo-bar {
  background-color: var(--primary-dark);
  color: #E2E8F0;
  font-size: 0.85rem;
  padding: 8px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1001;
  font-weight: 500;
}
.promo-bar .promo-badge {
  background-color: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-right: 8px;
  font-size: 0.75rem;
}
.promo-bar strong {
  color: #FFF;
  letter-spacing: 0.5px;
}
.promo-close {
  position: absolute;
  right: 16px;
  color: #94A3B8;
  font-size: 1.1rem;
  min-height: 30px;
  min-width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.promo-close:hover {
  color: #FFF;
}

/* ==========================================================================
   HEADER & NAVBAR (GLASSMORPHISM)
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: box-shadow var(--transition-base), background var(--transition-base), border-color var(--transition-base), backdrop-filter var(--transition-base);
}
.header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--border-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
body.home-view .header:not(.scrolled) {
  margin-bottom: -72px;
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.home-view .header:not(.scrolled) .brand-text h2,
body.home-view .header:not(.scrolled) .nav-link {
  color: #FFF;
}
body.home-view .header:not(.scrolled) .nav-link.active {
  background: transparent;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-icon-wrapper {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(30, 63, 32, 0.25);
}
.brand-text h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary);
  line-height: 1.1;
}
.brand-text span {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  display: block;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-link {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover {
  color: var(--primary);
  background-color: var(--primary-alpha);
}
.nav-link.active {
  color: var(--primary);
  background-color: var(--primary-surface);
  font-weight: 700;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-btn {
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}
.cart-btn-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.cart-empty-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--primary-surface);
  color: var(--primary);
}
.cart-empty-icon svg {
  width: 34px;
  height: 34px;
}
.cart-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.cart-badge {
  position: absolute;
  top: 9px;
  right: 0;
  background: var(--accent);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}
.btn-auth {
  background: var(--primary);
  color: #FFF;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}
.profile-btn-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.btn-auth:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 63, 32, 0.2);
}
.mobile-toggle {
  display: none;
  font-size: 1.4rem;
  color: var(--text-main);
  padding: 8px;
}

/* ==========================================================================
   BUTTONS & COMMON UI
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  text-align: center;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: #FFF;
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 63, 32, 0.25);
}
.btn-accent {
  background: var(--accent);
  color: #FFF;
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-surface);
}
.btn-outline-white {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-white:hover {
  background: #FFF;
  color: var(--primary);
}
.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
  min-height: 38px;
}
.btn-block {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.badge-primary {
  background: var(--primary-surface);
  color: var(--primary);
}
.badge-accent {
  background: var(--accent-surface);
  color: var(--accent);
}
.badge-success {
  background: #DCFCE7;
  color: #15803D;
}
.badge-warning {
  background: #FEF9C3;
  color: #854D0E;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(10, 22, 16, 0.8) 0%, rgba(28, 59, 35, 0.72) 40%, rgba(10, 22, 16, 0.88) 100%),
    url('../images/hero-bg.jpg') center/cover no-repeat;
  color: #FFF;
  padding: 70px 0 90px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 13, 10, 0.78) 0%, rgba(5, 13, 10, 0.18) 38%, rgba(5, 13, 10, 0.58) 100%),
    radial-gradient(circle at 18% 18%, rgba(235, 175, 81, 0.2), transparent 22%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFF;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: #FFF;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero h1 span {
  color: var(--accent-light);
}
.hero p {
  font-size: 1.12rem;
  line-height: 1.6;
  color: #E2E8F0;
  margin-bottom: 32px;
  max-width: 620px;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

/* Quick Search Card on Hero */
.hero-search-box {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
  color: var(--text-main);
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr auto;
  gap: 14px;
  align-items: center;
  max-width: 900px;
}
.search-field {
  display: flex;
  flex-direction: column;
}
.search-field label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.search-field select,
.search-field input {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  background: #FFF;
  color: var(--text-main);
  outline: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.search-field select:focus,
.search-field input:focus {
  border-color: var(--primary);
}

/* Trust Indicators */
.trust-strip {
  background: #FFF;
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.trust-icon svg {
  width: 22px;
  height: 22px;
}
.trust-item h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.trust-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}
.section-header .section-tag {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-block;
  margin-bottom: 8px;
}
.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CATEGORIES SECTION
   ========================================================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.category-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.category-card.active {
  background: var(--primary-surface);
  border-color: var(--primary);
}
.category-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: var(--primary-surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
  transition: all var(--transition-fast);
}
.category-icon-box svg {
  width: 29px;
  height: 29px;
}
.category-card:hover .category-icon-box {
  background: var(--primary);
  color: #FFF;
}
.category-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.category-card span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   STARTER PACKAGES (BUNDLING FOR PEMULA)
   ========================================================================== */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.package-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}
.package-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.package-card.featured {
  border: 2px solid var(--accent);
  background: #FFF;
}
.package-featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.package-card h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.package-for {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  min-height: 42px;
}
.package-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.package-price .price-now {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
  white-space: nowrap;
  flex-shrink: 0;
}
.package-price .price-old {
  font-size: 0.95rem;
  text-decoration: line-through;
  color: var(--text-light);
}
.package-price .savings-pill {
  background: #DCFCE7;
  color: #15803D;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.package-items-list {
  list-style: none;
  margin-bottom: 24px;
  flex-grow: 1;
}
.package-items-list li {
  font-size: 0.88rem;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}
.package-items-list li i {
  color: var(--status-success);
  font-size: 0.9rem;
}

/* ==========================================================================
   3 STEPS RENTAL WORKFLOW
   ========================================================================== */
.steps-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
}
.step-card {
  text-align: center;
  padding: 24px;
  position: relative;
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #FFF;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 6px 16px rgba(30, 63, 32, 0.2);
}
.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   CATALOG PAGE (/catalog)
   ========================================================================== */
.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}
.catalog-main {
  width: 100%;
  min-width: 0;
}

/* Filter Sidebar */
.filter-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 96px;
}
.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.filter-header h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-reset {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  background: none;
  min-height: auto;
  min-width: auto;
}
.filter-reset:hover {
  text-decoration: underline;
}
.filter-group {
  margin-bottom: 22px;
}
.filter-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  cursor: pointer;
  user-select: none;
}
.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

/* Price Range Slider */
.price-slider-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-slider-box input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}
.price-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* Catalog Topbar (Search & Sort) */
.catalog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 24px;
}
.search-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 440px;
}
.search-wrapper input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  outline: none;
}
.search-wrapper input:focus {
  border-color: var(--primary);
}
.search-wrapper .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}
.sort-wrapper select {
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #FFF;
  outline: none;
}

/* Product Grid & Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 63, 32, 0.3);
}
.product-img-box {
  position: relative;
  width: 100%;
  height: 200px;
  background: #E2E8F0;
  overflow: hidden;
}
.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}
.product-card:hover .product-img-box img {
  transform: scale(1.05);
}
.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}
.product-status-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--status-success);
  display: flex;
  align-items: center;
  gap: 4px;
}
.product-status-tag.rented {
  color: var(--status-warning);
}
.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-category-sub {
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
  color: var(--text-main);
  min-height: 44px;
}
.product-specs-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.spec-chip {
  background: var(--bg-alt);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.product-rating .stars {
  color: #F59E0B;
}
.product-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price-tag {
  display: flex;
  flex-direction: column;
}
.price-tag .amount {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
}
.price-tag .unit {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.product-actions {
  display: flex;
  gap: 6px;
}

/* Skeleton Loading Shimmer (PRD 4.3) */
.skeleton-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skeleton-box {
  background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Empty State (PRD 4.3) */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-light);
  grid-column: 1 / -1;
}
.empty-state-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 14px;
}
.empty-state h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 20px;
}

/* ==========================================================================
   LOCATION & PICK-UP SECTION (/location)
   ========================================================================== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.store-details-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.store-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #DCFCE7;
  color: #166534;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.store-info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.store-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.store-info-text h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.store-info-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  height: 440px;
  background: #E2E8F0;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Pick-up Flow Protocol */
.pickup-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.pickup-flow-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
}
.step-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.pickup-flow-step h4 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}
.pickup-flow-step p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   COMMUNITY GEAR GALLERY (MASONRY & LIGHTBOX)
   ========================================================================== */
.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.filter-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.filter-pill:hover,
.filter-pill.active {
  background: var(--primary);
  color: #FFF;
  border-color: var(--primary);
}
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.gallery-item {
  margin-bottom: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.gallery-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}
.gallery-item-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.gallery-mountain-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.gallery-item h4 {
  font-size: 1.05rem;
  margin: 4px 0 6px;
}
.gallery-credit {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.gallery-gear-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gear-tag {
  background: var(--primary-surface);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.community-articles {
  margin-top: 40px;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}
.community-articles .section-header {
  text-align: center;
}
.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.article-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.article-card img:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}
.article-content {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

/* Open Trip */
.open-trip-notice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  margin-bottom: 22px;
  border-left: 4px solid var(--accent);
  background: var(--accent-surface);
  color: var(--text-main);
}
.open-trip-notice strong {
  font-size: 0.92rem;
}
.open-trip-notice span {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.open-trip-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 20px;
}
.open-trip-search,
.open-trip-level {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 700;
}
.open-trip-search input,
.open-trip-level select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-main);
}
.open-trip-count {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
}
.open-trip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}
.open-trip-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  box-shadow: var(--shadow-xs);
}
.open-trip-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}
.open-trip-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.open-trip-level-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 4px;
  background: #FFF;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
}
.open-trip-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
}
.open-trip-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.open-trip-eyebrow {
  color: var(--accent-hover);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}
.open-trip-card h3 {
  margin-top: 4px;
  font-size: 1.15rem;
}
.open-trip-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-surface);
  color: var(--primary);
  font-weight: 800;
}
.open-trip-description {
  margin: 12px 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.open-trip-route {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-alt);
  font-size: 0.82rem;
}
.open-trip-route span {
  color: var(--text-muted);
}
.open-trip-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 0;
}
.open-trip-facts div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}
.open-trip-facts dt {
  color: var(--text-muted);
  font-size: 0.72rem;
}
.open-trip-facts dd {
  margin: 4px 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.open-trip-details {
  margin-top: 14px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.open-trip-details summary {
  padding: 12px 0;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}
.open-trip-details h4 {
  margin: 6px 0;
  font-size: 0.82rem;
}
.open-trip-details ol,
.open-trip-details ul {
  padding-left: 20px;
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.open-trip-details li + li {
  margin-top: 6px;
}
.open-trip-package-pending {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.open-trip-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}
.open-trip-confirmation {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.open-trip-confirmation span {
  color: var(--text-muted);
  font-size: 0.72rem;
}
.open-trip-confirmation strong {
  font-size: 0.82rem;
}
.open-trip-card-footer .btn {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.8rem;
  white-space: nowrap;
}
.open-trip-empty {
  grid-column: 1 / -1;
  padding: 28px 16px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 1000px) {
  .open-trip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .open-trip-toolbar,
  .open-trip-grid {
    grid-template-columns: 1fr;
  }
  .open-trip-facts {
    grid-template-columns: 1fr;
  }
  .open-trip-count {
    min-height: auto;
  }
}
.article-meta {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.article-card h3 {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 12px;
}
.article-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 14px;
}
.article-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.article-stats span {
  display: inline-flex;
  align-items: center;
  background: var(--primary-surface);
  color: var(--primary);
  border-radius: var(--radius-full);
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 700;
}
.article-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.article-detail-box {
  background: #F4F8F5;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 12px;
}
.article-detail-box strong {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.article-detail-box span {
  display: block;
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}
.article-points {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.7;
}
.article-points li + li {
  margin-top: 4px;
}
.article-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  margin-top: auto;
}
.article-link:hover {
  text-decoration: underline;
}

.article-detail-shell {
  max-width: 1180px;
}
.article-detail-card {
  width: 100%;
}
.article-back-btn {
  margin-bottom: 20px;
}
.article-story-header {
  max-width: 900px;
  margin: 0 auto 24px;
}
.article-story-category {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent-hover);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}
.article-story-header h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: 2.5rem;
  line-height: 1.15;
}
.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.article-detail-meta span {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.article-cover {
  max-width: 1100px;
  margin: 0 auto 34px;
}
.article-cover img {
  width: 100%;
  max-height: 540px;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  background: var(--bg-alt);
}
.article-cover figcaption {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.article-reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(230px, 290px);
  justify-content: center;
  align-items: start;
  gap: 48px;
}
.article-main-column {
  min-width: 0;
}
.article-summary-box {
  margin: 0 0 28px;
  color: var(--text-main);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.75;
}
.article-prose section + section {
  margin-top: 30px;
}
.article-prose h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}
.article-prose p,
.article-prose-list {
  color: #39433D;
  font-size: 0.98rem;
  line-height: 1.85;
}
.article-prose p + p {
  margin-top: 12px;
}
.article-prose-list {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding-left: 22px;
}
.gear-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gear-tag-list .gear-tag {
  padding: 7px 10px;
  font-size: 0.76rem;
}
.article-sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 24px;
}
.article-sidebar-section {
  padding: 18px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.article-sidebar-section h2 {
  margin-bottom: 14px;
  font-size: 1rem;
}
.article-facts-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.article-facts-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.article-facts-list span {
  color: var(--text-muted);
  font-size: 0.76rem;
}
.article-facts-list strong {
  font-size: 0.86rem;
}
.article-sidebar .gear-tag-list {
  flex-direction: column;
  align-items: flex-start;
}
.article-sidebar .gear-tag {
  text-align: left;
}
.article-story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}
.article-story-tags span {
  padding: 5px 9px;
  background: var(--bg-alt);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
}
.article-related-section {
  max-width: 1100px;
  margin: 46px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--border-light);
}
.article-related-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}
.article-related-heading h2 {
  margin-top: 4px;
  font-size: 1.4rem;
}
.article-related-back {
  min-width: auto;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
}
.article-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.article-related-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.article-related-card img {
  width: 130px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.article-related-card span {
  color: var(--text-muted);
  font-size: 0.72rem;
}
.article-related-card h3 {
  margin: 5px 0 8px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.article-related-link {
  min-width: auto;
  min-height: 32px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .article-reading-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .article-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .article-story-header h1 {
    font-size: 1.9rem;
  }
  .article-cover img {
    aspect-ratio: 4 / 3;
  }
  .article-sidebar,
  .article-related-grid {
    grid-template-columns: 1fr;
  }
  .article-related-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .article-related-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }
  .article-related-card img {
    width: 110px;
  }
}

/* ==========================================================================
   REVIEWS & TESTIMONIALS (/reviews)
   ========================================================================== */
.reviews-summary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 36px;
  align-items: center;
  margin-bottom: 40px;
  box-shadow: var(--shadow-xs);
}
.score-box {
  text-align: center;
  border-right: 1px solid var(--border-light);
  padding-right: 20px;
}
.score-box .score-num {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  font-family: var(--font-heading);
}
.score-box .score-stars {
  color: #F59E0B;
  font-size: 1.2rem;
  margin: 6px 0;
}
.score-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
}
.bar-label {
  width: 50px;
  color: var(--text-muted);
}
.bar-track {
  flex-grow: 1;
  height: 8px;
  background: var(--bg-alt);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: #F59E0B;
  border-radius: var(--radius-full);
}
.bar-count {
  width: 30px;
  text-align: right;
  font-weight: 600;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-base);
}
.review-card:hover {
  box-shadow: var(--shadow-md);
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary-surface);
  color: var(--primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reviewer-meta h4 {
  font-size: 0.98rem;
  margin-bottom: 2px;
}
.reviewer-meta p {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.review-rating-stars {
  color: #F59E0B;
  font-size: 0.9rem;
}
.verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803D;
  background: #DCFCE7;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  align-self: flex-start;
}
.review-gear-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}
.review-text {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.55;
  margin-bottom: 14px;
}
.review-photo-thumb {
  width: 100%;
  max-height: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: auto;
  cursor: pointer;
}
.review-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   USER PROFILE & VERIFICATION (/profile)
   ========================================================================== */
.profile-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  align-items: start;
}
.profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-xs);
}
.profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #FFF;
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 14px rgba(30, 63, 32, 0.25);
}
.profile-card h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.profile-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.profile-nav-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
  text-align: left;
}
.profile-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.profile-tab-btn:hover {
  background: var(--bg-alt);
  color: var(--text-main);
}
.profile-tab-btn.active {
  background: var(--primary-surface);
  color: var(--primary);
  font-weight: 700;
}

/* Tab Panels */
.profile-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-xs);
}
.panel-header {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}
.panel-header h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.panel-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Active Rentals List */
.active-rental-card {
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 20px;
  background: #FFF;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.rental-code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.rental-code {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
}
.active-rental-card h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.rental-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.countdown-box {
  background: var(--accent-surface);
  border: 1px solid rgba(231, 111, 81, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  text-align: center;
}
.countdown-box .label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
}
.countdown-box .timer {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-hover);
  font-family: var(--font-heading);
}

/* KTP Verification Module */
.verification-box {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  margin-bottom: 24px;
  background: var(--bg-alt);
}
.upload-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.ktp-preview-wrapper {
  max-width: 320px;
  margin: 16px auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: none;
}
.ktp-preview-wrapper img {
  width: 100%;
}

/* ==========================================================================
   ABOUT US SECTION & HYGIENE PROTOCOL
   ========================================================================== */
.about-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
}
.hygiene-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.hygiene-card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-align: center;
}
.hygiene-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--primary-surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 16px;
}
.hygiene-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.hygiene-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SMART CHATBOT FLOATING WIDGET (PRD 3.4)
   ========================================================================== */
.chatbot-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1002;
}
.chatbot-trigger {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #FFF;
  box-shadow: 0 8px 24px rgba(30, 63, 32, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--transition-base);
}
.chatbot-trigger:hover {
  transform: scale(1.08);
}
.chatbot-trigger-icon {
  width: 28px;
  height: 28px;
}
.chatbot-greeting {
  position: absolute;
  right: calc(50% + 14px);
  bottom: calc(100% + 14px);
  padding: 9px 20px;
  border-radius: 14px;
  background: #FFF;
  color: var(--primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 1;
  visibility: visible;
  transform: translate(0, 0) scale(1);
  transition: opacity 260ms ease, transform 260ms ease, visibility 260ms ease;
}
.chatbot-greeting.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate(0, 6px) scale(0.96);
}
.notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 15px;
  height: 15px;
  background: var(--accent-light);
  border: 2px solid var(--primary);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(231, 111, 81, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(231, 111, 81, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(231, 111, 81, 0); }
}

/* Chatbot Window */
.chat-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  height: min(680px, calc(100vh - 140px));
  background: #FFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  animation: slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-window.open {
  display: flex;
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-header {
  background: var(--primary);
  color: #FFF;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-agent-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-agent-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: #FFF;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.chat-agent-info h4 {
  color: #FFF;
  font-size: 0.95rem;
}
.chat-agent-info span {
  font-size: 0.72rem;
  color: #DCFCE7;
  display: flex;
  align-items: center;
  gap: 4px;
}
.chat-close-btn {
  color: #FFF;
  font-size: 1.2rem;
  min-height: 32px;
  min-width: 32px;
}
.chat-messages {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #F8FAFC;
}
.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-line;
}
.chat-bubble.bot {
  background: #FFF;
  color: var(--text-main);
  align-self: flex-start;
  border: 1px solid var(--border-light);
  border-bottom-left-radius: 4px;
}
.chat-bubble.user {
  background: var(--primary);
  color: #FFF;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Quick Replies Chips */
.quick-replies {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.quick-reply-btn {
  background: #FFF;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  text-align: left;
  transition: all var(--transition-fast);
  cursor: pointer;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.quick-reply-btn:hover {
  background: var(--primary);
  color: #FFF;
}
.quick-reply-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFF;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}
.quick-reply-badge svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
}
.badge-doc {
  background: linear-gradient(135deg, #0F766E 0%, #14B8A6 100%);
}
.badge-bag {
  background: linear-gradient(135deg, #E11D48 0%, #FB7185 100%);
}
.badge-location {
  background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
}
.badge-chat {
  background: linear-gradient(135deg, #2563EB 0%, #60A5FA 100%);
}
.quick-reply-btn:hover .quick-reply-badge {
  color: var(--primary);
  background: #FFF;
}
.chat-input-bar {
  padding: 12px;
  background: #FFF;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
}
.chat-input-bar input {
  flex-grow: 1;
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 0.88rem;
}
.chat-input-bar input:focus {
  border-color: var(--primary);
}
.chat-send-btn {
  background: var(--primary);
  color: #FFF;
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   MODALS (PRODUCT DETAIL, CART, LIGHTBOX, AUTH, REVIEW)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 30, 20, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
}
.modal-box {
  background: #FFF;
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modal-pop 0.25s ease-out;
}
@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  z-index: 10;
  transition: all var(--transition-fast);
}
.modal-close:hover {
  background: var(--status-danger);
  color: #FFF;
}

/* Product Detail Modal Content */
.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 30px;
}
.product-modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-main-img {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-light);
}
.specs-table {
  width: 100%;
  font-size: 0.85rem;
  margin: 14px 0;
  border-collapse: collapse;
}
.specs-table td {
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}
.specs-table td:first-child {
  color: var(--text-muted);
  font-weight: 500;
  width: 40%;
}
.specs-table td:last-child {
  font-weight: 600;
  color: var(--text-main);
}
.includes-checklist {
  list-style: none;
  font-size: 0.82rem;
  margin-top: 10px;
}
.includes-checklist li {
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.includes-checklist li i {
  color: var(--status-success);
}

/* Lightbox Modal */
.lightbox-box {
  background: #111827;
  color: #FFF;
  max-width: 900px;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 90vh;
}
.lightbox-img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #000;
}
.lightbox-info {
  padding: 20px 24px;
}
.lightbox-info h3 {
  color: #FFF;
  margin-bottom: 6px;
}
.lightbox-info p {
  color: #94A3B8;
  font-size: 0.9rem;
}

/* Cart / Checkout Drawer */
body.cart-drawer-open {
  overflow: hidden;
}

.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 2400;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease-in-out, visibility 0s linear 300ms;
}
.cart-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #FFF;
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 300ms ease-in-out, visibility 0s linear 300ms;
}
.cart-drawer.open {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}
.cart-drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-drawer-body {
  padding: 20px;
  min-height: 0;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
}
.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.cart-item-details {
  flex-grow: 1;
}
.cart-item-details h4 {
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.cart-item-details p {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
}
.cart-item-remove {
  color: var(--status-danger);
  font-size: 0.9rem;
  padding: 6px;
}
.cart-drawer-footer {
  flex: 0 0 auto;
  padding: 20px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-main);
  box-shadow: 0 -6px 16px rgba(19, 43, 35, 0.06);
}
.cart-checkout-btn {
  margin-top: 14px;
  background: var(--primary);
  color: var(--text-inverse);
}
.cart-checkout-btn:hover {
  background: var(--primary-dark);
}
.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.cart-summary-line.total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  border-top: 1px dashed var(--border-light);
  padding-top: 10px;
  margin-top: 10px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-dark);
  color: #94A3B8;
  padding: 70px 0 30px;
  font-size: 0.9rem;
  border-top: 1px solid #1E293B;
}
.footer h4 {
  color: #FFF;
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand p {
  line-height: 1.6;
  margin: 14px 0 20px;
  max-width: 320px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a:hover {
  color: #FFF;
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (360px - 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-search-box {
    grid-template-columns: 1fr 1fr;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .filter-card {
    position: static;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .packages-grid {
    grid-template-columns: 1fr;
  }
  .location-grid {
    grid-template-columns: 1fr;
  }
  .pickup-flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .mobile-menu-drawer {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: #FFF;
    padding: 20px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-light);
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .reviews-summary-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .score-box {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .product-modal-grid {
    grid-template-columns: 1fr;
  }
  .chat-window {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 84px;
    height: min(520px, calc(100vh - 184px));
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Field-guide visual refresh */
:root {
  --primary: #173D32;
  --primary-light: #2A6251;
  --primary-dark: #102D26;
  --primary-surface: #E7F0EB;
  --primary-alpha: rgba(23, 61, 50, 0.08);
  --accent: #C96243;
  --accent-hover: #AA4F34;
  --accent-light: #F0B07A;
  --accent-surface: #F8EEE8;
  --bg-main: #F4F6F2;
  --bg-surface: #FFFFFF;
  --bg-alt: #EAF0EB;
  --bg-dark: #152A25;
  --text-main: #1D2B27;
  --text-muted: #5E7069;
  --text-light: #86958F;
  --border-light: #DCE4DE;
  --border-focus: #2A6251;
  --shadow-xs: 0 1px 3px rgba(19, 43, 35, 0.05);
  --shadow-sm: 0 4px 12px rgba(19, 43, 35, 0.07);
  --shadow-md: 0 12px 28px rgba(19, 43, 35, 0.1);
  --shadow-lg: 0 22px 48px rgba(19, 43, 35, 0.15);
  --shadow-glow: 0 8px 22px rgba(201, 98, 67, 0.24);
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-xl: 8px;
}

*, *::before, *::after {
  letter-spacing: 0 !important;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
}

.container {
  max-width: 1320px;
  padding-left: 28px;
  padding-right: 28px;
}

.promo-bar {
  min-height: 36px;
  padding: 6px 48px;
  background: var(--primary-dark);
  font-size: 0.78rem;
}

.promo-bar .promo-badge {
  border-radius: 4px;
  background: var(--accent);
}

.header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--border-light);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--border-light);
}

body.home-view .header:not(.scrolled) {
  background: transparent;
  border-bottom-color: transparent;
}

body.home-view .header:not(.scrolled) .nav-actions .cart-btn {
  color: #FFF;
}

.navbar {
  height: 68px;
}

.brand-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--primary);
  box-shadow: none;
}

.brand-icon-wrapper svg {
  width: 22px;
  height: 22px;
}

.brand-logo {
  gap: 8px;
}

.brand-text h2 {
  color: var(--primary);
  font-size: 0.94rem;
}

.brand-text span {
  color: var(--accent);
  font-size: 0.56rem;
}

.nav-links {
  gap: 0;
}

.nav-link {
  position: relative;
  border-radius: 6px;
  padding: 7px 8px;
  font-size: 0.8rem;
  background: transparent;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 2px;
  left: 8px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  background: transparent;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-actions {
  gap: 12px;
}

.cart-btn,
.btn-auth,
.btn,
.search-field select,
.search-field input,
.search-wrapper input,
.sort-wrapper select {
  border-radius: 6px;
}

.btn {
  min-height: 44px;
  font-weight: 700;
}

.btn-primary,
.btn-auth {
  background: var(--primary);
}

.nav-actions .cart-btn,
.nav-actions .btn-auth {
  height: 44px;
  min-height: 44px;
  padding: 0 12px;
  gap: 7px;
  border-radius: 9px;
  font-size: 0.82rem;
}

.nav-actions .cart-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 0;
  justify-content: center;
}

.nav-actions .btn-auth {
  height: 40px;
  min-height: 40px;
  min-width: 104px;
  padding: 0 10px;
}

.nav-actions .cart-btn-icon,
.nav-actions .profile-btn-icon {
  width: 17px;
  height: 17px;
}

.nav-actions .profile-btn-icon {
  width: 15px;
  height: 15px;
}

.nav-actions .cart-badge {
  font-size: 0.62rem;
  padding: 1px 5px;
  top: 9px;
  right: 0;
}

.mobile-toggle {
  min-width: 38px;
  min-height: 38px;
  padding: 6px;
  font-size: 1.2rem;
}

.btn-primary:hover,
.btn-auth:hover {
  background: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.btn-accent {
  background: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-glow);
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: 58px 0 64px;
  background-image:
    linear-gradient(90deg, rgba(13, 39, 31, 0.82) 0%, rgba(17, 47, 38, 0.62) 48%, rgba(17, 47, 38, 0.22) 100%),
    url('../images/hero-bg.jpg');
  background-position: center 55%;
}

.hero-content {
  max-width: 840px;
  transform: translateY(28px);
}

.hero-tag {
  margin-bottom: 16px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
  padding: 5px 11px;
  font-size: 0.72rem;
}

.hero h1 {
  max-width: 660px;
  margin-bottom: 14px;
  font-size: clamp(2.25rem, 4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.8px;
}

.hero h1 span {
  color: #F3B376;
}

.hero p {
  max-width: 540px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-buttons {
  gap: 10px;
  margin-bottom: 22px;
}

.hero-buttons .btn {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 0.86rem;
}

.hero-search-box {
  max-width: 860px;
  padding: 13px;
  grid-template-columns: minmax(170px, 1.3fr) minmax(145px, 1fr) minmax(165px, 1.1fr) auto;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(5, 24, 18, 0.22);
}

.search-field label {
  margin: 0 0 4px 2px;
  font-size: 0.64rem;
  color: var(--text-muted);
}

.search-field select,
.search-field input {
  min-height: 38px;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 0.82rem;
}

.hero-search-box > .btn {
  align-self: end;
  min-height: 38px !important;
  padding: 8px 14px;
  font-size: 0.84rem;
}

.trust-strip {
  padding: 22px 0;
  background: #FFF;
  border-bottom: 1px solid var(--border-light);
}

.trust-grid {
  gap: 24px;
}

.trust-item {
  align-items: flex-start;
  gap: 11px;
}

.trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  background: var(--primary-surface);
  color: var(--primary);
}

.trust-icon svg {
  width: 20px;
  height: 20px;
}

.trust-item h4 {
  font-size: 0.88rem;
}

.trust-item p {
  font-size: 0.76rem;
  line-height: 1.45;
}

.section {
  padding: 68px 0;
}

.section-header {
  margin-bottom: 36px;
}

.section-header .section-tag {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 4px;
  background: var(--accent-surface);
  color: var(--accent);
  font-size: 0.7rem;
}

.section-header h2 {
  margin-top: 8px;
  font-size: 1.9rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.categories-grid {
  gap: 12px;
}

.category-card,
.package-card,
.step-card,
.filter-card,
.catalog-topbar,
.product-card,
.store-details-card,
.reviews-summary-card,
.review-card,
.profile-card,
.profile-content,
.verification-box {
  border-radius: 8px;
  box-shadow: var(--shadow-xs);
}

.category-card {
  border: 1px solid var(--border-light);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 98, 81, 0.4);
  box-shadow: var(--shadow-sm);
}

.category-icon-box {
  border-radius: 7px;
  background: var(--primary-surface);
}

.package-card,
.step-card {
  border: 1px solid var(--border-light);
}

.catalog-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.filter-card {
  border-radius: 8px;
  box-shadow: none;
}

.filter-summary {
  display: none;
}

.filter-details-content {
  display: block;
}

.catalog-topbar {
  border-radius: 8px;
  box-shadow: none;
}

.products-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.catalog-price-note {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.catalog-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.catalog-product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: var(--bg-surface);
  box-shadow: 0 3px 12px rgba(19, 43, 35, 0.06);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.catalog-product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 63, 32, 0.3);
  box-shadow: var(--shadow-md);
}

.catalog-product-image-wrap {
  position: relative;
  margin: 10px 10px 0;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}

.catalog-product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.catalog-product-content {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  padding: 13px 15px 15px;
}

.catalog-product-series {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.catalog-product-name {
  margin: 5px 0 12px;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.4;
}

.catalog-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.catalog-product-stock {
  font-size: 0.68rem;
  font-weight: 700;
}

.catalog-product-stock.is-available {
  color: var(--status-success);
}

.catalog-product-stock.is-unavailable {
  color: var(--status-danger);
}

.catalog-product-rating {
  flex: 0 0 auto;
  color: #D97706;
  font-size: 0.78rem;
  font-weight: 800;
}

.catalog-product-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.catalog-product-price {
  display: flex;
  flex-direction: column;
  color: var(--primary);
  line-height: 1.3;
}

.catalog-product-price strong {
  font-size: 0.95rem;
  font-weight: 800;
}

.catalog-product-price span {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.catalog-item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.catalog-item-actions .btn {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 0.68rem;
}

.catalog-item-actions .btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.catalog-product-skeleton {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: var(--bg-surface);
}

.product-card {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(19, 43, 35, 0.045);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(42, 98, 81, 0.35);
  box-shadow: var(--shadow-md);
}

.product-img-box {
  height: auto;
  aspect-ratio: 4 / 3;
  background: #E5EBE6;
}

.product-img-box img {
  object-fit: cover;
}

.product-badges {
  top: 10px;
  left: 10px;
  gap: 5px;
}

.product-badges .badge {
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent);
  box-shadow: 0 2px 6px rgba(20, 35, 29, 0.08);
}

.product-status-tag {
  top: auto;
  right: 10px;
  bottom: 10px;
  border-radius: 4px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.96);
  font-size: 0.68rem;
}

.product-body {
  padding: 15px;
}

.product-title {
  min-height: 2.5em;
  margin: 4px 0 10px;
  font-size: 1rem;
  line-height: 1.3;
}

.product-specs-compact {
  gap: 6px;
}

.spec-chip {
  border-radius: 4px;
  background: #F0F3F0;
  font-size: 0.74rem;
}

.product-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top-color: var(--border-light);
}

.price-tag .amount {
  font-size: 1.18rem;
}

.modal-box {
  border-radius: 8px;
}

.footer {
  background: var(--bg-dark);
  border-top: 3px solid var(--accent);
}

@media (max-width: 1100px) {
  .nav-links {
    gap: 0;
  }

  .nav-link {
    padding: 8px;
    font-size: 0.8rem;
  }

  .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .container {
    padding-left: 22px;
    padding-right: 22px;
  }

  .catalog-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 64px 0 58px;
    background-position: 58% center;
  }

  .hero-content {
    max-width: 760px;
    transform: translateY(18px);
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-search-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-search-box > .btn {
    width: 100%;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filter-card {
    position: static;
  }

  .filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 8px 0;
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }

  .filter-summary::-webkit-details-marker {
    display: none;
  }

  .filter-details:not([open]) > .filter-details-content {
    display: none;
  }

  .filter-details[open] > .filter-details-content {
    display: block;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .promo-bar {
    justify-content: flex-start;
    padding: 7px 40px 7px 14px;
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .promo-bar .promo-badge {
    flex-shrink: 0;
    font-size: 0.64rem;
  }

  .promo-close {
    right: 8px;
  }

  .navbar {
    height: 60px;
  }

  body.home-view .header:not(.scrolled) {
    margin-bottom: -60px;
  }

  .brand-logo {
    gap: 8px;
  }

  .brand-icon-wrapper {
    width: 34px;
    height: 34px;
  }

  .brand-icon-wrapper svg {
    width: 20px;
    height: 20px;
  }

  .brand-text h2 {
    font-size: 0.82rem;
  }

  .brand-text span {
    font-size: 0.48rem;
  }

  .nav-actions {
    gap: 5px;
  }

  .nav-actions .cart-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
  }

  .btn-auth {
    display: none;
  }

  .mobile-menu-drawer {
    top: 64px;
    padding: 12px 16px;
  }

  .mobile-menu-drawer .nav-link {
    padding: 11px 12px;
    font-size: 0.92rem;
  }

  .hero {
    padding: 50px 0 40px;
    background-position: 60% center;
  }

  .hero-content {
    transform: translateY(12px);
  }

  .hero-tag {
    margin-bottom: 16px;
    padding: 6px 9px;
    font-size: 0.68rem;
  }

  .hero h1 {
    max-width: 500px;
    margin-bottom: 14px;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.7px;
  }

  .hero p {
    margin-bottom: 18px;
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 20px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-search-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
  }

  .hero-search-box > .btn {
    grid-column: 1 / -1;
  }

  .search-field select,
  .search-field input {
    min-width: 0;
    padding: 8px;
    font-size: 0.76rem;
  }

  .filter-card {
    padding: 14px;
  }

  .filter-group {
    margin-bottom: 14px;
  }

  .filter-group label {
    margin-bottom: 7px;
    font-size: 0.78rem;
  }

  .filter-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .filter-option {
    align-items: flex-start;
    gap: 6px;
    font-size: 0.73rem;
    line-height: 1.35;
  }

  .filter-option input[type="radio"],
  .filter-option input[type="checkbox"] {
    flex: 0 0 auto;
    margin-top: 2px;
  }

  .trust-strip {
    padding: 18px 0;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .trust-item {
    align-items: center;
  }

  .section {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 26px;
    text-align: left;
  }

  .section-header h2 {
    font-size: 1.55rem;
  }

  .section-header p {
    font-size: 0.85rem;
  }

  .categories-grid,
  .products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .category-card {
    min-height: 150px;
  }

  .catalog-topbar {
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
  }

  .catalog-products-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .catalog-product-content {
    min-height: 0;
  }

  .catalog-product-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-item-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .search-wrapper {
    max-width: none;
  }

  .sort-wrapper {
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 0.78rem;
  }

  .product-img-box {
    aspect-ratio: 16 / 10;
  }

  .product-body {
    padding: 14px;
  }

  .footer {
    padding: 48px 0 24px;
  }

  body {
    padding-bottom: 60px;
  }

  .chatbot-widget {
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: flex-end;
    padding: 6px 16px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
  }

  .chatbot-trigger {
    width: 42px;
    height: 42px;
    margin-top: 2px;
    box-shadow: var(--shadow-sm);
  }

  .chatbot-trigger-icon {
    width: 25px;
    height: 25px;
  }

  .chatbot-greeting {
    right: calc(50% + 12px);
    bottom: calc(100% + 12px);
    padding: 8px 18px;
    font-size: 0.78rem;
  }

  .notification-dot {
    top: 3px;
    right: 3px;
    width: 14px;
    height: 14px;
  }

  .chat-window {
    right: 12px;
    bottom: calc(58px + env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    height: min(520px, calc(100vh - 190px - env(safe-area-inset-bottom)));
    height: min(520px, calc(100dvh - 190px - env(safe-area-inset-bottom)));
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .chatbot-greeting {
    transition: none;
  }
}
