/* ==========================================================================
   SENZO INDIA - CLEAN, LIGHT & PROFESSIONAL UI COMPONENTS
   Finder Widget, Product Cards, Calculators, Drawer, Modals & Toast
   ========================================================================== */

/* ==========================================================================
   1. VEHICLE BATTERY FINDER WIDGET
   ========================================================================== */
.finder-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.finder-header {
  margin-bottom: 1.25rem;
}

.finder-title {
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy-dark);
}

.finder-title svg {
  color: var(--orange-primary);
}

.finder-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Chemistry Selector Tabs */
.finder-type-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  background: var(--bg-subtle);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.finder-type-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.finder-type-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.finder-type-btn:hover {
  color: var(--navy-dark);
  background: rgba(255, 255, 255, 0.6);
}

.finder-type-btn.active {
  background: var(--navy-dark);
  color: #ffffff;
  box-shadow: var(--shadow-xs);
}

/* Dropdowns in Finder */
.finder-form-group {
  margin-bottom: 0.9rem;
}

.finder-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.custom-select-wrap {
  position: relative;
}

.finder-select {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.9rem;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  transition: all var(--transition-fast);
}

.finder-select:focus {
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
}

.finder-select option {
  background: #ffffff;
  color: var(--text-main);
}

.select-arrow {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.finder-submit-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem;
  font-size: 0.95rem;
  justify-content: center;
}

/* ==========================================================================
   2. CATEGORY FILTER TABS
   ========================================================================== */
.catalog-nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cat-pill-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.cat-pill-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-medium);
  color: var(--navy-dark);
}

.cat-pill-btn.active {
  background: var(--navy-dark);
  color: #ffffff;
  border-color: var(--navy-dark);
}

.catalog-sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.catalog-sort-select {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.85rem;
  color: var(--text-main);
  outline: none;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ==========================================================================
   3. CLEAN PRODUCT GRID & BATTERY CARDS
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  position: relative;
  box-shadow: var(--shadow-xs);
}

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

/* Card Top Badges */
.card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.product-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.product-badge.orange {
  background: var(--orange-subtle);
  color: var(--orange-hover);
  border: 1px solid var(--orange-border);
}

.product-badge.green {
  background: var(--green-subtle);
  color: var(--green-dark);
  border: 1px solid var(--green-border);
}

.compare-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.compare-checkbox-label input {
  accent-color: var(--navy-dark);
}

/* Battery Visual Box */
.battery-preview-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 1.1rem;
  min-height: 165px;
  border: 1px solid var(--border-light);
}

.battery-svg-wrap {
  width: 100%;
  max-width: 200px;
  transition: transform var(--transition-fast);
}

.product-card:hover .battery-svg-wrap {
  transform: scale(1.04);
}

.quick-view-overlay-btn {
  position: absolute;
  bottom: 0.65rem;
  background: #ffffff;
  color: var(--navy-dark);
  border: 1px solid var(--border-medium);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.battery-preview-box:hover .quick-view-overlay-btn {
  opacity: 1;
  transform: translateY(0);
}

.quick-view-overlay-btn:hover {
  background: var(--navy-dark);
  color: #ffffff;
}

/* Card Content & Title */
.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.25rem;
}

.product-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.4rem;
}

/* Specs Matrix */
.specs-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.4rem;
  margin-bottom: 0.85rem;
  text-align: center;
}

.spec-item-col {
  display: flex;
  flex-direction: column;
}

.spec-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-dark);
}

.spec-val.green {
  color: var(--green-dark);
}

.spec-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.1rem;
}

/* Compatibility Hint */
.compatibility-hint {
  font-size: 0.76rem;
  color: var(--text-secondary);
  background: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.compatibility-hint svg {
  color: var(--green-dark);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Price & CTA */
.card-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.current-price {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy-dark);
}

.mrp-price {
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.discount-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-subtle);
  border: 1px solid var(--green-border);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
}

.exchange-hint-box {
  font-size: 0.76rem;
  color: var(--orange-hover);
  margin-bottom: 1rem;
  font-weight: 600;
}

.card-cta-group {
  margin-top: auto;
}

.btn-add-cart {
  width: 100%;
  padding: 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--orange-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.btn-add-cart:hover {
  background: var(--orange-hover);
}

/* ==========================================================================
   4. CLEAN CALCULATORS SECTION
   ========================================================================== */
.calculators-section {
  padding: 4.5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.calculators-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.calc-card {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.calc-card.orange-edge {
  border-top: 3px solid var(--orange-primary);
}

.calc-card.green-edge {
  border-top: 3px solid var(--green-primary);
}

.calc-header {
  margin-bottom: 1.25rem;
}

.calc-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.calc-badge.orange {
  background: var(--orange-subtle);
  color: var(--orange-primary);
  border: 1px solid var(--orange-border);
}

.calc-badge.green {
  background: var(--green-subtle);
  color: var(--green-dark);
  border: 1px solid var(--green-border);
}

.calc-title {
  font-size: 1.3rem;
  color: var(--navy-dark);
  margin-bottom: 0.25rem;
}

.calc-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.calc-control-group {
  margin-bottom: 1.1rem;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.calc-val-display {
  color: var(--orange-primary);
  font-weight: 800;
  font-size: 0.95rem;
}

.calc-val-display.green {
  color: var(--green-dark);
}

.range-slider {
  width: 100%;
  height: 6px;
  background: var(--border-medium);
  border-radius: var(--radius-full);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  border: 2px solid #ffffff;
}

.range-slider.green-slider::-webkit-slider-thumb {
  background: var(--green-primary);
}

.calc-result-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 1.25rem;
  text-align: center;
}

.result-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.result-amount {
  font-size: 2rem;
  font-weight: 900;
  color: var(--orange-primary);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.result-amount.green {
  color: var(--green-dark);
}

.result-subnote {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   5. FLOATING COMPARE BAR & MODAL
   ========================================================================== */
.compare-floating-bar {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  z-index: 1050;
  transition: transform var(--transition-normal);
}

.compare-floating-bar.active {
  transform: translateX(-50%) translateY(0);
}

.compare-info-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.25s ease;
  padding: 1rem;
}

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

.modal-container {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 850px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  padding: 2rem;
  transform: scale(0.95) translateY(10px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}

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

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--navy-dark);
  color: #ffffff;
  transform: rotate(90deg);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.25rem;
}

.compare-table th, .compare-table td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
}

.compare-table th {
  background: var(--bg-subtle);
  color: var(--navy-dark);
  font-weight: 700;
}

/* ==========================================================================
   6. SHOPPING CART DRAWER
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(3px);
  z-index: 2100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid var(--border-light);
  box-shadow: -6px 0 30px rgba(15, 23, 42, 0.15);
  z-index: 2200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

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

.cart-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.cart-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--bg-page);
}

.cart-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  gap: 0.75rem;
  box-shadow: var(--shadow-xs);
}

.cart-item-thumb {
  width: 55px;
  height: 55px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.15rem;
}

.cart-item-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--orange-primary);
  margin-bottom: 0.4rem;
}

.cart-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qty-btn-group {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--navy-dark);
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.qty-num {
  padding: 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.btn-remove-item {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.75rem;
}

.btn-remove-item:hover {
  color: #ef4444;
}

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-light);
  background: #ffffff;
}

.exchange-toggle-card {
  background: var(--orange-subtle);
  border: 1px solid var(--orange-border);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.exchange-toggle-info {
  font-size: 0.78rem;
  color: var(--navy-dark);
}

.exchange-toggle-info span {
  display: block;
  font-size: 0.72rem;
  color: var(--orange-hover);
  font-weight: 700;
}

.bill-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.bill-row.savings {
  color: var(--green-dark);
  font-weight: 600;
}

.bill-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-dark);
  border-top: 1px solid var(--border-light);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.cart-checkout-btn {
  width: 100%;
  padding: 0.85rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   7. TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--orange-primary);
  color: var(--navy-dark);
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transform: translateX(120%);
  transition: transform var(--transition-normal);
  pointer-events: auto;
  max-width: 340px;
}

.toast.show {
  transform: translateX(0);
}

.toast.green {
  border-left-color: var(--green-primary);
}

/* ==========================================================================
   RESPONSIVE COMPONENT RULES (PERFECT MOBILE EXPERIENCE)
   ========================================================================== */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calculators-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Finder Card */
  .finder-card {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-lg);
  }

  .finder-title {
    font-size: 1.15rem;
  }

  .finder-subtitle {
    font-size: 0.8rem;
    margin-bottom: 0.85rem;
  }

  .finder-type-tabs {
    gap: 0.35rem;
    padding: 0.25rem;
    margin-bottom: 1rem;
    grid-template-columns: repeat(2, 1fr);
  }

  .finder-type-btn {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.55rem 0.25rem;
    font-size: 0.74rem;
    text-align: center;
    justify-content: center;
  }

  .finder-type-btn svg {
    width: 16px;
    height: 16px;
  }

  .finder-select {
    height: 46px;
    font-size: 0.88rem;
  }

  .finder-submit-btn {
    height: 48px;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }

  /* Calculators */
  .calculators-section {
    padding: 2.25rem 0;
  }

  .calculators-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .calc-card {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-lg);
  }

  .calc-title {
    font-size: 1.2rem;
  }

  .calc-desc {
    font-size: 0.82rem;
  }

  .range-slider {
    height: 8px;
  }

  .range-slider::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
  }

  .calc-result-box {
    padding: 1rem 0.75rem;
  }

  .result-amount {
    font-size: 1.75rem;
  }

  /* Catalog Section */
  .catalog-section {
    padding: 2.5rem 0 !important;
  }

  .catalog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .catalog-title {
    font-size: 1.3rem;
  }

  .catalog-sort-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .catalog-filter-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.4rem;
    width: 100%;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }

  .cat-pill-btn {
    white-space: nowrap;
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .product-card {
    padding: 1.15rem 1rem;
    border-radius: var(--radius-lg);
  }

  .battery-preview-box {
    height: 140px;
  }

  .product-title {
    font-size: 1.15rem;
  }

  .btn-add-cart {
    width: 100%;
    height: 46px;
    font-size: 0.92rem;
    justify-content: center;
  }

  /* Floating Compare Bar */
  .compare-floating-bar {
    bottom: 72px;
    left: 0.75rem;
    right: 0.75rem;
    width: calc(100% - 1.5rem);
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
  }

  /* Modals */
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .modal-container {
    padding: 1.35rem 1.15rem 1.75rem 1.15rem;
    border-radius: 20px 20px 0 0;
    max-height: 88vh;
    transform: translateY(100%);
    opacity: 1;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .modal-backdrop.open .modal-container {
    transform: translateY(0);
    opacity: 1;
  }

  .modal-close-btn {
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
  }

  #compare-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    display: block;
    margin-top: 0.75rem;
  }

  .compare-table {
    min-width: 480px;
  }

  /* Cart Drawer */
  .cart-drawer {
    width: 100%;
    max-width: 100vw;
  }
}

@media (max-width: 480px) {
  .finder-card {
    padding: 1rem 0.75rem;
  }
  .finder-title {
    font-size: 1.1rem;
  }
  .finder-select {
    height: 44px;
    font-size: 0.84rem;
  }
  .finder-submit-btn {
    height: 46px;
    font-size: 0.9rem;
  }
  .calc-card {
    padding: 1rem 0.75rem;
  }
  .calc-title {
    font-size: 1.1rem;
  }
  .result-amount {
    font-size: 1.55rem;
  }
  .product-card {
    padding: 1rem 0.75rem;
  }
  .product-title {
    font-size: 1.05rem;
  }
  .battery-preview-box {
    height: 130px;
    min-height: 130px;
  }
  .quick-view-overlay-btn {
    opacity: 1;
    transform: translateY(0);
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
  }
  .modal-container {
    padding: 1.25rem 0.75rem;
  }
}

/* ==========================================================================
   AUTHENTICATION & PROFILE MODAL STYLES
   ========================================================================== */
.nav-account-btn {
  position: relative;
}

.nav-account-btn.logged-in {
  border-color: var(--green-dark);
  color: var(--navy-dark);
}

.nav-account-btn.logged-in::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: #10b981;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
}

/* Auth Modal Container Sizing & Polish */
#auth-modal .modal-container,
#profile-modal .modal-container {
  max-width: 418px;
  padding: 1.3rem 1.35rem;
  border-radius: 16px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(226, 232, 240, 0.85);
}

.auth-header-wrap {
  text-align: center;
  margin-bottom: 0.85rem;
}

.auth-brand-badge {
  position: relative;
  display: inline-block;
  margin-bottom: 0.35rem;
}

.auth-brand-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  background: #ffffff;
  padding: 2px;
}

.auth-trust-dot {
  position: absolute;
  bottom: -1px;
  right: -2px;
  width: 15px;
  height: 15px;
  background: #10b981;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
}

.auth-title {
  font-size: 1.05rem;
  color: var(--navy-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 2px 0;
}

.auth-subtitle {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.35;
  margin: 0;
}

.auth-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.14rem 0.52rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* 1-Click Demo Login VIP Banner */
.auth-demo-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 9px;
  padding: 0.42rem 0.72rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-demo-card:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.16);
  border-color: #38bdf8;
  background: linear-gradient(135deg, #eaf6fe 0%, #d8eefc 100%);
}

.auth-demo-card:active {
  transform: scale(0.98);
}

.demo-card-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.demo-bolt {
  font-size: 0.85rem;
  background: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.demo-title {
  display: block;
  color: #0369a1;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
}

.demo-sub {
  display: block;
  color: #0284c7;
  font-size: 0.65rem;
  line-height: 1.2;
}

.btn-demo-action {
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.26rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.btn-demo-action:hover {
  background: #0369a1;
  transform: scale(1.03);
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  border: 1px solid #e2e8f0;
}

.auth-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.4rem 0.6rem;
  font-weight: 600;
  font-size: 0.76rem;
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.auth-tab-btn:hover {
  color: var(--navy-dark);
}

.auth-tab-btn.active {
  background: #ffffff;
  color: var(--navy-dark);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

/* Method Pills */
.auth-method-pills {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.auth-method-pill {
  flex: 1;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  padding: 0.36rem 0.55rem;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-method-pill:hover {
  border-color: #cbd5e1;
  color: var(--navy-dark);
  background: #ffffff;
}

.auth-method-pill.active {
  border-color: var(--orange-primary);
  background: #fff7ed;
  color: var(--orange-primary);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(255, 107, 0, 0.1);
}

/* Input Fields & Groups */
.auth-input-group {
  margin-bottom: 0.7rem;
}

.auth-input-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #475569;
  margin-bottom: 0.22rem;
}

.auth-input {
  width: 100%;
  padding: 0.46rem 0.68rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--navy-dark);
  background: #fbfcfe;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.auth-input:focus {
  outline: none;
  border-color: var(--orange-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.auth-phone-wrap {
  display: flex;
  gap: 0.4rem;
}

.auth-country-code {
  padding: 0.46rem 0.62rem;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  user-select: none;
  flex-shrink: 0;
}

.btn-send-otp {
  padding: 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  height: 34px;
  border-radius: 7px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--navy-dark);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-send-otp:hover {
  background: var(--navy-dark);
  color: #ffffff;
  border-color: var(--navy-dark);
}

.btn-send-otp:active {
  transform: scale(0.97);
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap .auth-input {
  padding-right: 2.2rem;
}

.password-toggle-btn {
  position: absolute;
  right: 5px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.18s ease;
}

.password-toggle-btn:hover {
  color: var(--navy-dark);
}

/* Submit Action Button */
.auth-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.58rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--orange-primary) 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  margin-top: 0.45rem;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.22);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.32);
}

.auth-submit-btn:active {
  transform: scale(0.98);
}

/* Animated Smooth Pane Switching */
@keyframes authPaneFade {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-pane-animated {
  animation: authPaneFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.otp-timer-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 0.25rem;
  display: block;
}

.auth-disclaimer {
  font-size: 0.66rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 0.7rem;
  line-height: 1.35;
}

.auth-disclaimer a {
  color: var(--navy-dark);
  font-weight: 600;
  text-decoration: none;
}

.auth-disclaimer a:hover {
  text-decoration: underline;
}

/* User Profile Modal Styles */
.profile-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
}

.profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--blue-primary) 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
  flex-shrink: 0;
}

.profile-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.66rem;
  font-weight: 600;
}

.profile-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.profile-info-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.52rem 0.68rem;
}

.profile-info-label {
  font-size: 0.64rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}

.profile-info-val {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-dark);
}

.profile-battery-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.52rem 0.72rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.profile-battery-label {
  font-size: 0.64rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  display: block;
  letter-spacing: 0.03em;
}

.profile-battery-val {
  font-size: 0.78rem;
  color: var(--navy-dark);
}

.profile-health-badge {
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  white-space: nowrap;
}

.profile-links-wrap {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.25rem;
  margin-bottom: 0.75rem;
}

.profile-link-item {
  padding: 0.48rem 0.68rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-dark);
  border-radius: 6px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.profile-link-item:hover {
  background: #ffffff;
  padding-left: 0.85rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.profile-link-action {
  font-size: 0.72rem;
  color: var(--orange-primary);
  font-weight: 700;
}

.profile-link-action.muted {
  color: #94a3b8;
  font-weight: 500;
}

.profile-action-btns {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.profile-btn {
  flex: 1;
  justify-content: center;
  padding: 0.5rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-btn:hover {
  transform: translateY(-1px);
}

.profile-btn:active {
  transform: scale(0.98);
}

.profile-btn.logout {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.profile-btn.logout:hover {
  background: #dc2626;
  border-color: #dc2626;
}

