/* ============================================
   FindiInsure — Global Stylesheet
   Brand: Bankit Services Pvt Ltd (Findi Group)
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary-blue: #1C3C5F;
  --primary-blue-light: #264d78;
  --primary-blue-dark: #142d47;
  --primary-red: #D43F33;
  --primary-red-light: #e0564b;
  --primary-red-dark: #b8352b;
  --white: #FFFFFF;
  --off-white: #F8F9FB;
  --light-grey: #F1F3F6;
  --mid-grey: #E0E4EA;
  --text-dark: #1A1F2B;
  --text-body: #4A5568;
  --text-muted: #8A94A6;
  --border-color: #E2E8F0;
  --shadow-sm: 0 4px 6px -1px rgba(28, 60, 95, 0.05), 0 2px 4px -1px rgba(28, 60, 95, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(28, 60, 95, 0.08), 0 4px 6px -2px rgba(28, 60, 95, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(28, 60, 95, 0.1), 0 10px 10px -5px rgba(28, 60, 95, 0.03);
  --shadow-xl: 0 25px 50px -12px rgba(28, 60, 95, 0.15);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 30px;
  --font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --header-height: 72px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

input {
  font-family: inherit;
  outline: none;
  border: none;
}

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

h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.015em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--grey {
  background-color: var(--light-grey);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after {
  opacity: 1;
}

.btn--primary {
  background: var(--primary-red);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(212, 63, 51, 0.3);
}

.btn--primary:hover {
  background: var(--primary-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 63, 51, 0.4);
}

.btn--secondary {
  background: var(--primary-blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(28, 60, 95, 0.2);
}

.btn--secondary:hover {
  background: var(--primary-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28, 60, 95, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn--outline:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header__logo img {
  height: 40px;
  width: auto;
}

.header__logo img + .header__logo-text {
  display: none;
}

.header__logo img[style*="display: none"] + .header__logo-text,
.header__logo img[style*="display:none"] + .header__logo-text {
  display: inline-flex;
}

.header__logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .header__logo-img {
    height: 38px;
  }
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__nav a {
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--primary-blue);
  background: rgba(28, 60, 95, 0.06);
}

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

.header__cart {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--light-grey);
  transition: all var(--transition-fast);
  color: var(--primary-blue);
}

.header__cart:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.header__cart svg {
  width: 20px;
  height: 20px;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--primary-red);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

/* ---------- CART PAGE ---------- */
.cart-list {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-color);
  gap: 24px;
}

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

.cart-item__info {
  flex: 1;
}

.cart-item__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

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

.cart-item__total {
  text-align: right;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-blue);
  padding: 0 16px;
}

.cart-item__remove {
  color: var(--text-muted);
  transition: all var(--transition-fast);
  padding: 8px;
  border-radius: 50%;
}

.cart-item__remove:hover {
  background: rgba(212, 63, 51, 0.1);
  color: var(--primary-red);
}

.cart-summary {
  padding: 32px;
  border-top: 2px solid var(--light-grey);
  background: var(--off-white);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.cart-summary__total {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.cart-summary__label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.cart-summary__amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-blue);
}

.cart-empty {
  text-align: center;
  padding: 80px 48px;
}

.cart-empty__icon {
  font-size: 4.5rem;
  margin-bottom: 24px;
  opacity: 0.2;
}

.cart-empty h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.cart-empty p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .cart-item {
    flex-wrap: wrap;
    padding: 20px;
    gap: 16px;
  }
  .cart-item__info { width: 100%; flex: none; }
  .cart-item__qty { order: 2; width: auto; flex: none; }
  .cart-item__total { order: 1; width: auto; flex: 1; text-align: left; }
  .cart-item__remove { order: 3; }
  .cart-summary { align-items: stretch; }
  .cart-summary__amount { font-size: 1.5rem; }
}

/* Mobile Menu Toggle */
.header__toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--primary-blue);
}

.header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary-blue);
  border-radius: 2px;
  position: relative;
  transition: all var(--transition-base);
}

.header__toggle span::before,
.header__toggle span::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--primary-blue);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.header__toggle span::before { top: -7px; }
.header__toggle span::after { bottom: -7px; }

.header__toggle.open span {
  background: transparent;
}

.header__toggle.open span::before {
  top: 0;
  transform: rotate(45deg);
}

.header__toggle.open span::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 60%, #0f2336 100%);
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 63, 51, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 80px 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #4ADE80;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  color: var(--white);
  font-size: 3.25rem;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary-red) 0%, #E86558 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero .btn--primary {
  box-shadow: 0 4px 20px rgba(212, 63, 51, 0.4);
}

.hero .btn--outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero .btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

/* Floating shapes */
.hero__shapes {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 45%;
  pointer-events: none;
  overflow: hidden;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--white);
}

.hero__shape:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 15%;
  right: 10%;
  animation: float 8s ease-in-out infinite;
}

.hero__shape:nth-child(2) {
  width: 200px;
  height: 200px;
  top: 50%;
  right: 30%;
  animation: float 6s ease-in-out infinite reverse;
}

.hero__shape:nth-child(3) {
  width: 120px;
  height: 120px;
  bottom: 15%;
  right: 15%;
  animation: float 10s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

/* ---------- PRODUCT CARDS ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

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

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-grey);
  border-radius: var(--radius-md);
  font-size: 1.75rem;
  transition: all var(--transition-base);
}

.product-card:hover .product-card__icon {
  background: rgba(28, 60, 95, 0.06);
  transform: scale(1.05);
}

.product-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.product-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.product-card__badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(28, 60, 95, 0.06);
  color: var(--primary-blue);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 100px;
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.product-listing-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-listing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
  transform: scaleX(0);
  transition: transform var(--transition-base);
  z-index: 5;
}

.product-listing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-listing-card:hover::before {
  transform: scaleX(1);
}

.product-listing-card__image {
  width: 100%;
  height: 200px;
  background: var(--light-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 20px;
}

.product-listing-card__image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform var(--transition-base);
}

.product-listing-card:hover .product-listing-card__image img {
  transform: scale(1.04);
}

.product-listing-card__image-placeholder {
  width: 72px;
  height: 72px;
  background: rgba(28, 60, 95, 0.06);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
}

.product-listing-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-listing-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-listing-card__name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
  line-height: 1.4;
}

.product-listing-card__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  height: 3.2em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-listing-card__premium {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-top: auto;
}

.product-listing-card__premium-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.product-listing-card__premium-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-blue);
}

.product-listing-card__premium-tenure {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.product-listing-card__actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.product-listing-card__actions .btn {
  flex: 1;
  padding: 12px 6px;
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- DISCLAIMER SECTION ---------- */
.disclaimer-section {
    background: var(--light-grey);
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
}

.disclaimer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.disclaimer-content h4 {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.disclaimer-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ---------- PRODUCT DETAIL PAGE ---------- */
.product-detail {
  max-width: 880px;
  margin: 0 auto;
}

.product-detail__card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.product-detail__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.product-detail__image {
  background: var(--light-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 32px;
  overflow: hidden;
}

.product-detail__image img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.product-detail__image-placeholder {
  width: 120px;
  height: 120px;
  background: rgba(28, 60, 95, 0.06);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.product-detail__info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-detail__name {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.product-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.product-detail__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--off-white);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-body);
}

.product-detail__meta-icon {
  font-size: 1rem;
}

.product-detail__premium-box {
  background: linear-gradient(135deg, rgba(28, 60, 95, 0.04) 0%, rgba(28, 60, 95, 0.02) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.product-detail__premium-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 4px;
}

.product-detail__premium-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.product-detail__premium-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-blue);
}

.product-detail__premium-tenure {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.product-detail__actions {
  display: flex;
  gap: 12px;
}

.product-detail__actions .btn {
  padding: 14px 28px;
}

.product-detail__body {
  padding: 40px;
  border-top: 1px solid var(--border-color);
}

.product-detail__body h3 {
  font-size: 1.2rem;
  color: var(--primary-blue);
  margin-bottom: 16px;
}

.product-detail__description {
  color: var(--text-body);
  line-height: 1.9;
  white-space: pre-line;
  font-size: 0.95rem;
}

/* ---------- TERMS MODAL ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 45, 71, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

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

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-base);
}

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

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.modal__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

.modal__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.modal__close:hover {
  background: var(--light-grey);
  color: var(--text-dark);
}

.modal__body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}

.modal__body-text {
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--text-body);
  white-space: pre-line;
}

.modal__footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* ---------- PRODUCT NOT FOUND ---------- */
.not-found {
  text-align: center;
  padding: 80px 24px;
}

.not-found__icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.not-found h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.not-found p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ---------- FEATURES / WHY SECTION ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(28, 60, 95, 0.08) 0%, rgba(28, 60, 95, 0.03) 100%);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
}

.footer__logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
  margin-bottom: 20px;
}

.feature-card h4 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ---------- TRACK ORDER ---------- */
.track-form {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
}

.track-form__group {
  margin-bottom: 24px;
}

.track-form__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.track-form__input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition-fast);
}

.track-form__input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(28, 60, 95, 0.08);
}

.track-form__input::placeholder {
  color: var(--text-muted);
}

.track-form__otp-row {
  display: flex;
  gap: 12px;
}

.track-form__otp-row .track-form__input {
  flex: 1;
}

.track-form__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.track-form__actions .btn {
  width: 100%;
}

/* ---------- CONTACT PAGE ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition-base);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.contact-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(28, 60, 95, 0.08) 0%, rgba(28, 60, 95, 0.03) 100%);
  border-radius: 50%;
  font-size: 1.5rem;
}

.contact-card h4 {
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.contact-card a {
  color: var(--primary-blue);
  font-weight: 600;
}

.contact-card a:hover {
  color: var(--primary-red);
}

.contact-info-box {
  max-width: 640px;
  margin: 48px auto 0;
  background: var(--light-grey);
  border-radius: var(--radius-md);
  padding: 36px 40px;
  text-align: center;
}

.contact-info-box h4 {
  margin-bottom: 12px;
}

.contact-info-box p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ---------- LEGAL PAGES ---------- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content .legal-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-color);
}

.legal-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-section h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--primary-blue);
}

.legal-section p {
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 0;
}

/* ---------- PAGE HERO (sub-pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  padding: calc(var(--header-height) + 48px) 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 63, 51, 0.1) 0%, transparent 70%);
  top: -100px;
  right: -50px;
  pointer-events: none;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--primary-blue-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.footer__brand .footer__tagline {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.footer__brand .footer__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer__irda {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer__heading {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.footer__links li {
  margin-bottom: 12px;
}

.footer__links a {
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer__links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer__support-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.footer__support-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  font-size: 1rem;
  flex-shrink: 0;
}

.footer__support-item a:hover {
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__address {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- SCROLL-TO-TOP ---------- */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--primary-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all var(--transition-base);
  z-index: 500;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary-red);
  transform: translateY(-2px);
}

/* ---------- ANIMATIONS ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail__header { grid-template-columns: 1fr; }
  .product-detail__image { min-height: 240px; }
  .product-detail__info { padding: 32px; }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .section { padding: 56px 0; }
  .container { padding: 0 20px; }

  /* Header mobile */
  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    transition: transform var(--transition-base);
    z-index: 999;
  }

  .header__nav.open {
    transform: translateY(0);
  }

  .header__nav a {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .header__toggle {
    display: flex;
  }

  /* Hero mobile */
  .hero {
    min-height: auto;
    padding-top: var(--header-height);
  }

  .hero__content {
    padding: 48px 0 56px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero__shapes {
    display: none;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  /* Grid mobile */
  .product-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }

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

  /* Page hero mobile */
  .page-hero h1 { font-size: 1.75rem; }

  /* Track form mobile */
  .track-form {
    padding: 32px 24px;
  }

  .track-form__otp-row {
    flex-direction: column;
  }

  /* Legal mobile */
  .legal-content {
    padding: 0;
  }

  /* Product detail mobile */
  .product-detail__header { grid-template-columns: 1fr; }
  .product-detail__image { min-height: 200px; padding: 24px; }
  .product-detail__info { padding: 24px; }
  .product-detail__body { padding: 24px; }
  .product-detail__name { font-size: 1.4rem; }
  .product-detail__actions { flex-direction: column; }
  .product-detail__actions .btn { width: 100%; }

  /* Modal mobile */
  .modal { max-height: 90vh; }
  .modal__header { padding: 20px 20px 16px; }
  .modal__body { padding: 20px; }
  .modal__footer { padding: 16px 20px; }

  /* Product listing card mobile */
  .product-listing-card__actions { flex-direction: column; }
  .product-listing-card__actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  .hero h1 { font-size: 1.85rem; }
  .btn--lg { padding: 14px 28px; font-size: 1rem; }
  .section { padding: 40px 0; }
  .section-header { margin-bottom: 32px; }
}

/* ---------- VERIFICATION & RESPONSE ---------- */
.verify-card {
  max-width: 450px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 40px;
  text-align: center;
}

.verify-card h2 {
  margin-bottom: 12px;
  color: var(--primary-blue);
}

.verify-card p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.status-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.status-card__header {
  padding: 40px;
  text-align: center;
  color: var(--white);
}

.status-card--success .status-card__header { background: var(--success); }
.status-card--failed .status-card__header { background: var(--primary-red); }
.status-card--cancelled .status-card__header { background: var(--text-muted); }

.status-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
}

.status-card__body {
  padding: 40px;
}

.order-details {
  background: var(--light-grey);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.detail-row:last-child {
  margin-bottom: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-weight: 700;
  color: var(--primary-blue);
}

.ref-number {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* ---------- CHECKOUT PAGE ---------- */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

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

.checkout-forms {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.checkout-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.checkout-section__header {
  padding: 20px 24px;
  background: var(--light-grey);
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-section__body {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 640px) {
  .checkout-section__body {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-label span {
  color: var(--primary-red);
  margin-left: 2px;
}

.form-input {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: all var(--transition-base);
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(28, 60, 95, 0.1);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

.checkout-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.summary-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.summary-card h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.summary-item__name {
  color: var(--text-muted);
}

.summary-item__price {
  font-weight: 600;
  color: var(--text-dark);
}

.summary-total {
  padding-top: 16px;
  border-top: 2px solid var(--light-grey);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.summary-total__label {
  font-weight: 700;
  font-size: 1.1rem;
}

.summary-total__amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-blue);
}

.checkout-terms {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
}

.checkout-terms input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkout-terms label {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.checkout-terms label a {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: underline;
}

.checkout-actions {
  margin-top: 12px;
}

.checkout-actions .btn {
  width: 100%;
}

/* --- FORCE UI CORRECTION --- */
.product-card, .product-listing-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.product-card img, .product-listing-card__image img {
  height: 160px;
  width: 100%;
  object-fit: contain !important;
  display: block;
  margin: auto;
  padding: 10px;
}

.product-card .card-body, .product-listing-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.product-card .card-buttons, .product-listing-card__actions {
  margin-top: auto;
}

.product-card h3, .product-listing-card__name {
  min-height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.product-card p, .product-listing-card__desc {
  min-height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}
