/* ============================================================
   QASHQAR TREKKERS — STYLE SYSTEM
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --primary:   #1C2B3A;
  --accent:    #D4622A;
  --accent2:   #E8A838;
  --light:     #F5F0EB;
  --dark:      #111820;
  --green:     #2E7D52;
  --muted:     #6B7A8D;
  --card-bg:   #FFFFFF;
  --border:    #E2DDD8;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);
}

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-body); line-height: 1.65; color: var(--dark); background: #fff; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 72px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 6px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.2px;
}
.nav-links a:hover,
.nav-links a.active { background: var(--light); color: var(--accent); }

.nav-icons-container { display: flex; gap: 16px; align-items: center; }

.cart-icon {
  cursor: pointer;
  position: relative;
  font-size: 1.1rem;
  color: var(--primary);
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.cart-icon:hover { background: var(--light); }

#cart-count {
  position: absolute; top: 0; left: 0;
  background: var(--accent); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  width: 17px; height: 17px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.menu-toggle { display: none; font-size: 1.4rem; color: var(--primary); padding: 8px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideShow 15s infinite linear;
}
.slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
}
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }
@keyframes slideShow {
  0%   { opacity: 0; transform: scale(1); }
  5%   { opacity: 1; }
  33%  { opacity: 1; }
  38%  { opacity: 0; }
  100% { opacity: 0; transform: scale(1.08); }
}

.hero-content {
  position: relative; z-index: 10;
  max-width: 780px;
  padding: 0 2rem;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}
.hero-cta {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  border: 2px solid var(--accent);
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}
.btn:hover { background: #b84e1e; border-color: #b84e1e; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid rgba(255,255,255,0.6);
  transition: background 0.25s, border-color 0.25s;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.btn-back {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: none;
  font-size: 0.9rem; font-weight: 600;
  color: var(--primary);
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.2s;
}
.btn-back:hover { color: var(--accent); }

/* ============================================================
   SECTIONS / LAYOUT
   ============================================================ */
.section-padding { padding: 5rem 5%; }
.bg-light  { background: var(--light); }
.bg-dark   { background: var(--dark); color: #fff; }
.bg-cream  { background: #FAF7F4; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}
.bg-dark .section-title { color: #fff; }
.section-subtitle { text-align: center; color: var(--muted); margin-bottom: 3rem; font-size: 1rem; }
.bg-dark .section-subtitle { color: rgba(255,255,255,0.6); }
.text-white { color: #fff !important; }

/* ============================================================
   GRID & CARDS
   ============================================================ */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.4s; }
.card:hover img { transform: scale(1.03); }

.card-body { padding: 1.4rem; }
.card-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--dark); text-align: center; margin-bottom: 0.4rem; }
.card-price { color: var(--accent); font-weight: 700; font-size: 1.05rem; text-align: center; margin-bottom: 0.8rem; }
.card button { width: 100%; margin-top: 10px; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-container { display: flex; flex-wrap: wrap; gap: 4rem; align-items: center; }
.about-text { flex: 1; min-width: 300px; }
.about-text h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.about-text p { color: #4A5568; font-size: 0.975rem; text-align: justify; }

.about-image-slider {
  flex: 1; min-width: 300px;
  height: 420px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  animation: aboutSlideShow 20s infinite linear;
}
.about-slide:nth-child(1) { animation-delay: 0s; }
.about-slide:nth-child(2) { animation-delay: 4s; }
.about-slide:nth-child(3) { animation-delay: 8s; }
.about-slide:nth-child(4) { animation-delay: 12s; }
.about-slide:nth-child(5) { animation-delay: 16s; }
@keyframes aboutSlideShow {
  0%  { opacity: 0; transform: scale(1); }
  4%  { opacity: 1; }
  20% { opacity: 1; }
  24% { opacity: 0; }
  100%{ opacity: 0; transform: scale(1.05); }
}

/* ============================================================
   MERCH
   ============================================================ */
.merch-card { background: transparent; border-radius: var(--radius-md); transition: transform 0.3s; cursor: pointer; }
.merch-card:hover { transform: translateY(-5px); }
.merch-img-wrapper { width: 100%; aspect-ratio: 3/4; overflow: hidden; border-radius: var(--radius-md); background: #f0f0f0; box-shadow: var(--shadow-sm); }
.merch-img-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.4s; }
.merch-card:hover .merch-img-wrapper img { transform: scale(1.04); }
.merch-card-body { padding: 1rem 0.25rem; }
.merch-card-title { font-size: 1rem; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.merch-card-price { font-size: 0.95rem; color: var(--muted); font-weight: 500; }

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.product-detail-container {
  display: flex; flex-wrap: wrap; gap: 3rem;
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.product-gallery { flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 14px; }
.main-image-wrapper { width: 100%; aspect-ratio: 3/4; border-radius: var(--radius-md); overflow: hidden; background: var(--light); }
.main-image-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: opacity 0.3s; }
.thumbnails { display: flex; gap: 10px; }
.thumb-img { width: calc(25% - 8px); aspect-ratio: 3/4; object-fit: cover; object-position: top center; border-radius: var(--radius-sm); cursor: pointer; opacity: 0.45; transition: 0.3s; border: 2px solid transparent; }
.thumb-img:hover, .thumb-img.active { opacity: 1; border-color: var(--dark); }

.product-right { flex: 1; min-width: 300px; }
.product-title { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; line-height: 1.2; }
.product-price { font-size: 1.5rem; color: var(--accent); font-weight: 700; margin-bottom: 1.5rem; }
.product-desc { color: var(--muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 2rem; }

.size-selector { margin-bottom: 1.5rem; }
.size-label { font-weight: 600; font-size: 0.875rem; letter-spacing: 0.5px; text-transform: uppercase; display: block; margin-bottom: 10px; color: var(--primary); }
.size-btn { padding: 10px 18px; border: 1.5px solid var(--border); background: #fff; cursor: pointer; margin: 0 8px 8px 0; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500; transition: 0.2s; }
.size-btn:hover, .size-btn.active { background: var(--dark); color: #fff; border-color: var(--dark); }

.color-selector { margin-bottom: 2rem; display: flex; gap: 12px; flex-wrap: wrap; }
.color-dot { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; outline: 2px solid #ddd; transition: 0.2s; }
.color-dot:hover, .color-dot.active { outline-color: var(--dark); transform: scale(1.1); }

.product-actions { display: flex; gap: 12px; }
.btn-add-cart { flex: 1; background: #fff; color: var(--dark); padding: 14px; border: 1.5px solid var(--dark); border-radius: 50px; font-size: 0.9rem; font-weight: 700; transition: 0.2s; }
.btn-add-cart:hover { background: var(--light); }
.btn-buy-now { flex: 1; background: var(--dark); color: #fff; padding: 14px; border: none; border-radius: 50px; font-size: 0.9rem; font-weight: 700; transition: 0.2s; }
.btn-buy-now:hover { background: var(--accent); }

/* ============================================================
   CART MODAL
   ============================================================ */
.cart-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 2000; backdrop-filter: blur(3px); }
.cart-content {
  background: #fff;
  width: 90%; max-width: 420px;
  margin: 60px auto 0 auto;
  padding: 2rem;
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: var(--shadow-lg);
}
.close-cart { position: absolute; top: 16px; right: 20px; font-size: 1.4rem; cursor: pointer; color: var(--muted); transition: color 0.2s; }
.close-cart:hover { color: var(--dark); }
.cart-content h2 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 1.2rem; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; gap: 8px; }
.cart-item span:last-child { color: #e74c3c; cursor: pointer; font-size: 1.1rem; flex-shrink: 0; }
.cart-total { font-weight: 700; margin: 1rem 0; font-size: 1rem; }
.checkout-btn { width: 100%; background: #25D366; color: #fff; border: none; padding: 12px; border-radius: var(--radius-sm); font-weight: 700; font-size: 1rem; }

/* ============================================================
   CHECKOUT
   ============================================================ */
#checkout-view { background: #fff; min-height: 100vh; padding-top: 80px; }
.checkout-container { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; min-height: calc(100vh - 80px); }
.checkout-form-section { flex: 1.3; padding: 3rem 5%; border-right: 1px solid var(--border); }
.checkout-summary-section { flex: 0.7; padding: 3rem 4%; background: var(--light); }
.checkout-form-section h2 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 1rem; color: var(--dark); font-weight: 700; }

.form-row { display: flex; gap: 14px; }
.input-group { width: 100%; margin-bottom: 14px; }
.input-group input {
  width: 100%; padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.input-group input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(212,98,42,0.12); }

.payment-box { border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fff; margin-bottom: 20px; overflow: hidden; }
.payment-option { border-bottom: 1px solid var(--border); }
.payment-option:last-child { border-bottom: none; }
.payment-label { display: flex; align-items: center; gap: 10px; padding: 15px; cursor: pointer; font-weight: 500; font-size: 0.95rem; }
.payment-details-view { padding: 14px 18px; background: var(--light); border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--muted); }

/* Shopify-style payment rows */
.payment-methods-box { border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: #fff; margin-bottom: 20px; }
.payment-method-row { display: block; border-bottom: 1px solid var(--border); cursor: pointer; margin: 0; }
.payment-method-row:last-child { border-bottom: none; }
.payment-method-header { display: flex; align-items: center; padding: 15px; }
.payment-method-header input[type="radio"] { display: none; }
.custom-radio { width: 18px; height: 18px; border: 2px solid #ccc; border-radius: 50%; margin-right: 14px; position: relative; flex-shrink: 0; }
.payment-method-header input[type="radio"]:checked + .custom-radio { border-color: var(--accent); }
.payment-method-header input[type="radio"]:checked + .custom-radio::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 9px; height: 9px; background: var(--accent); border-radius: 50%; }
.payment-label-text { flex-grow: 1; font-weight: 500; font-size: 0.95rem; color: #333; }
.payment-icon { font-size: 1.3rem; }
.payment-details { background: var(--light); padding: 16px 15px 16px 46px; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--muted); }
.bank-box { background: #fff; border: 1px solid var(--border); padding: 14px; border-radius: var(--radius-sm); margin-top: 12px; font-family: monospace; font-size: 0.9rem; color: #111; }

.btn-complete-order {
  width: 100%; padding: 16px;
  background: var(--dark); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 700;
  margin-top: 20px; transition: background 0.25s, transform 0.2s;
  font-family: var(--font-body);
}
.btn-complete-order:hover { background: var(--accent); transform: translateY(-1px); }

.checkout-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.checkout-item-name { font-weight: 500; font-size: 0.95rem; color: var(--dark); }
.checkout-item-price { color: var(--muted); font-size: 0.9rem; flex-shrink: 0; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); font-size: 0.9rem; }
.total-row { font-size: 1.4rem; font-weight: 700; color: var(--dark); margin-top: 14px; }

/* ============================================================
   SUCCESS VIEW
   ============================================================ */
#success-view { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--light); padding: 2rem; }
.success-container { background: #fff; padding: 3.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); text-align: center; max-width: 560px; width: 100%; border: 1px solid var(--border); }
.success-icon { font-size: 4rem; color: var(--green); margin-bottom: 1.2rem; }
.success-container h1 { font-family: var(--font-display); font-size: 1.8rem; color: var(--dark); margin-bottom: 8px; }
.success-subtext { color: var(--muted); margin-top: 14px; font-size: 0.9rem; line-height: 1.6; }

/* ============================================================
   EXPEDITION DETAIL
   ============================================================ */
.trip-hero { position: relative; width: 100%; height: 680px; overflow: hidden; border-radius: var(--radius-lg); margin-bottom: 2.5rem; box-shadow: var(--shadow-lg); }
.trip-hero-slide { position: absolute; inset: 0; opacity: 0; animation: heroFadeZoom 12s infinite linear; }
.trip-hero-slide.slide-0 { animation-delay: 0s; }
.trip-hero-slide.slide-1 { animation-delay: 4s; }
.trip-hero-slide.slide-2 { animation-delay: 8s; }
.hero-blur-bg { position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; background-size: cover; background-position: center; filter: blur(25px) brightness(0.4); z-index: 1; }
.hero-clear-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 2; }
@keyframes heroFadeZoom {
  0%  { opacity: 0; transform: scale(1); }
  10% { opacity: 1; }
  33% { opacity: 1; }
  43% { opacity: 0; }
  100%{ opacity: 0; transform: scale(1.05); }
}
.trip-hero-content { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.88), transparent); color: #fff; padding: 3rem 2.5rem 2rem; z-index: 10; }
.trip-hero-content h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 6px; }
.trip-hero-content p { font-size: 1rem; color: rgba(255,255,255,0.75); }

.trip-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; align-items: start; }
.trip-sidebar { background: #fff; padding: 2rem; border-radius: var(--radius-md); box-shadow: var(--shadow-md); position: sticky; top: 90px; border: 1px solid var(--border); }
.price-tag { font-family: var(--font-display); font-size: 2.2rem; font-weight: 900; color: var(--accent); }
.price-sub { font-size: 0.85rem; color: var(--muted); font-weight: 400; }

.itinerary-list { border-left: 2px dashed #CBD5E0; margin-left: 10px; padding-left: 22px; }
.itinerary-day { position: relative; margin-bottom: 2rem; }
.itinerary-day::before { content: ''; position: absolute; left: -29px; top: 5px; width: 12px; height: 12px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px #fff; }
.day-title { font-weight: 700; color: var(--dark); margin-bottom: 4px; font-size: 1rem; }
.day-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

.info-chip-container { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0; }
.info-chip { background: var(--light); padding: 10px 16px; border-radius: var(--radius-sm); display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.875rem; color: var(--primary); border: 1px solid var(--border); }

.check-list li, .cross-list li, .pack-list li { margin-bottom: 8px; font-size: 0.9rem; display: flex; align-items: flex-start; gap: 8px; color: var(--muted); }

.gallery-img { transition: transform 0.2s, box-shadow 0.2s; }
.gallery-img:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }

/* Terms */
.terms-container { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.term-box { display: flex; gap: 14px; background: var(--light); border: 1px solid var(--border); padding: 18px; border-radius: var(--radius-sm); transition: box-shadow 0.2s; }
.term-box:hover { box-shadow: var(--shadow-sm); }
.term-icon { font-size: 1.3rem; margin-top: 2px; flex-shrink: 0; }
.term-content h4 { color: var(--dark); margin-bottom: 4px; font-size: 0.95rem; font-weight: 700; }
.term-content p { color: var(--muted); font-size: 0.875rem; line-height: 1.6; margin: 0; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox-modal { display: none; position: fixed; z-index: 3000; inset: 0; background: rgba(0,0,0,0.92); justify-content: center; align-items: center; cursor: pointer; }
.lightbox-content { max-width: 96vw; max-height: 96vh; object-fit: contain; border-radius: 4px; }
.close-lightbox { position: absolute; top: 18px; right: 30px; color: #fff; font-size: 2rem; cursor: pointer; opacity: 0.7; transition: opacity 0.2s; }
.close-lightbox:hover { opacity: 1; }

/* ============================================================
   PAGE HERO BANNER (inner pages)
   ============================================================ */
.page-hero {
  height: 280px;
  background: linear-gradient(135deg, var(--primary) 0%, #2C4A63 100%);
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff;
  margin-top: 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.72); font-size: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 3rem 5%;
  text-align: center;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.footer-logo { font-family: var(--font-display); font-size: 1.2rem; font-weight: 900; color: #fff; }
.footer-logo span { color: var(--accent); }
.socials { display: flex; gap: 12px; }
.socials a { font-size: 1.3rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.socials a:hover { color: var(--accent2); }
.footer-meta { font-size: 0.8rem; margin-top: 2rem; color: rgba(255,255,255,0.35); text-align: center; }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }

  .navbar { height: 68px; padding: 0; display: block; position: fixed; }

  .menu-toggle {
    display: block !important;
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    z-index: 2100;
  }
  .logo {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: max-content; font-size: 1rem; z-index: 2050;
  }
  .nav-icons-container {
    position: absolute !important;
    right: 14px; top: 50%; transform: translateY(-50%);
    z-index: 2100;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  .nav-icons-container .menu-toggle {
    position: static !important;
    transform: none !important;
    left: auto !important;
    order: 2;
  }
  .nav-icons-container .cart-icon {
    order: 1;
    margin-right: 4px;
  }

  .nav-links {
    flex-direction: column;
    position: fixed;
    top: -110%;
    left: 0; width: 100%;
    background: #fff;
    padding: 20px 0 28px;
    box-shadow: var(--shadow-md);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    z-index: 1500;
    opacity: 0;
    align-items: center;
  }
  .nav-links.active { top: 68px; opacity: 1; }
  .nav-links li { opacity: 0; transform: translateY(-8px); transition: opacity 0.3s ease, transform 0.3s ease; margin: 6px 0; }
  .nav-links.active li { opacity: 1; transform: none; }
  .nav-links a { font-size: 1.05rem; padding: 10px 24px; }

  main, .hero { margin-top: 68px; }
  .hero { margin-top: 0; height: 100svh; }
  .page-hero { margin-top: 68px; height: 220px; }

  .section-padding { padding: 3rem 5%; }
  .about-container { gap: 2rem; }
  .about-image-slider { height: 300px; }

  .trip-layout { display: flex; flex-direction: column; }
  .trip-sidebar { position: static; }
  .trip-hero { height: 340px; border-radius: var(--radius-md); }
  .trip-hero-content h1 { font-size: 1.8rem; }

  .product-detail-container { flex-direction: column; padding: 1.5rem; }
  .product-right { text-align: center; }
  .product-actions { flex-direction: column; }
  .btn-add-cart, .btn-buy-now { width: 100%; }
  .color-selector { justify-content: center; }

  .checkout-container { flex-direction: column; }
  .checkout-form-section { border-right: none; border-bottom: 1px solid var(--border); padding: 2rem 5%; order: 2; }
  .checkout-summary-section { padding: 1.5rem 5%; order: 1; border-bottom: 1px solid var(--border); }
  .form-row { flex-direction: column; gap: 0; }

  /* Staggered nav item animation */
  .nav-links.active li:nth-child(1) { transition-delay: 0.05s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.10s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.15s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.20s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.25s; }
  .nav-links.active li:nth-child(6) { transition-delay: 0.30s; }
  .nav-links.active li:nth-child(7) { transition-delay: 0.35s; }

  /* Very small phones guard */
  .page-hero { margin-top: 68px; min-height: 180px; height: auto; padding: 2.5rem 1.5rem; }
  #checkout-view { padding-top: 68px; }

  .footer-grid { flex-direction: column; text-align: center; }
  .socials { justify-content: center; }

  .grid-container { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}