/* ==============================
   FortuneHub Modern Responsive CSS
   - Fluid type (clamp)
   - Auto-fit grids
   - Safer spacing + no overflow
   - Product Detail Modal with Image Zoom
   ============================== */

/* CSS Variables */
:root {
  --primary: #4361ee;
  --secondary: #3f37c9;
  --accent: #4cc9f0;

  --light: #f8f9fa;
  --dark: #212529;

  --success: #4ade80;
  --warning: #facc15;
  --danger: #f87171;

  --gray: #6c757d;
  --light-gray: #e9ecef;
  --border: #dee2e6;

  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.25s ease;

  --brand-blue: #1D2386;
  --brand-red: #BA1921;

  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

html, body {
  width: 100%;
  overflow-x: hidden; /* prevents sideways scroll on mobile */
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: #f5f7ff;
}

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==============================
   Buttons
   ============================== */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  font-size: 1rem;
  text-align: center;
  width: 100%;
}

.btn-primary {
  background-color: transparent;
  color: #fff;
  border-color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.btn-primary:hover {
  background-color: #161c6b;
  border-color: #161c6b;
  transform: translateY(-2px);
}

.btn-tertiary {
  background-color: darkblue;
  color: #fff;
  border-color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.btn-tertiary:hover {
  background-color: #161c6b;
  border-color: #161c6b;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline:hover {
  background-color: #161c6b;
  border-color: var(--brand-blue);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--light-gray);
  color: var(--dark);
  border: 1px solid var(--border);
}

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

/* Product Card Buttons */
.btn-add-to-cart,
.btn-buy-now {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.98rem;
  width: 100%;
}

.btn-add-to-cart {
  background-color: var(--brand-red);
  color: #fff;
  border: 2px solid var(--brand-red);
}

.btn-add-to-cart:hover {
  background-color: #9e151c;
  border-color: #9e151c;
  transform: translateY(-2px);
}

.btn-buy-now {
  background-color: var(--brand-blue);
  color: #fff;
  border: 2px solid var(--brand-blue);
}

.btn-buy-now:hover {
  background-color: #161c6b;
  border-color: #161c6b;
  transform: translateY(-2px);
}

/* ==============================
   Section Title
   ============================== */
.section-title {
  text-align: center;
  margin-bottom: 34px;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--brand-blue);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--brand-red);
  border-radius: 2px;
}

/* ==============================
   Header
   ============================== */
.site-header {
  background-color: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  gap: 12px;
  font-size: 1.5rem;
}

.logo {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 900;
  color: var(--brand-blue);
  white-space: nowrap;
}

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

.nav-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-links a {
  font-weight: 700;
  color: var(--dark);
  position: relative;
}

.nav-links a:hover { color: var(--primary); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }

.header-icons {
  display: flex;
  gap: 14px;
  align-items: center;
}

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  font-size: 1.15rem;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--danger);
  color: #fff;
  font-size: 0.75rem;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

/* ==============================
   Search
   ============================== */
.search-section { padding: 12px 0 4px; }

.search-container {
  position: relative;
  margin: 14px 0 0;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 12px 18px 12px 45px;
  border: 2px solid var(--border);
  border-radius: 999px;
  font-size: 1rem;
  transition: var(--transition);
  background: #fff;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.18);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 1rem;
  pointer-events: none;
}

/* ==============================
   Hero
   ============================== */
.hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url('fot.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;

  padding: clamp(48px, 6vw, 90px) 0;
  min-height: clamp(360px, 62vh, 640px);
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  justify-items: center;
}

.hero h1 {
  font-size: clamp(1.9rem, 5.2vw, 3.5rem);
  line-height: 1.12;
}

.hero p {
  font-size: clamp(0.98rem, 2.2vw, 1.2rem);
  opacity: 0.95;
  max-width: 52ch;
}

.hero-btns {
  display: grid;
  gap: 12px;
  width: min(380px, 100%);
  margin-top: 8px;
}

/* ==============================
   Categories
   ============================== */
.categories { padding: clamp(42px, 6vw, 70px) 0; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 18px;
  padding: 10px 0 0;
}

.category-card {
  background: #fff;
  padding: 18px 14px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.06);
  min-width: 0;
}

.category-card:hover,
.category-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
  border-color: rgba(67, 97, 238, 0.35);
  outline: none;
}

.category-icon {
  font-size: 2.2rem;
  color: var(--brand-blue);
  margin-bottom: 10px;
}

.category-card h3 { font-size: 1.05rem; margin-bottom: 4px; color: #333; }
.category-card p { color: #777; font-size: 0.92rem; }

/* ==============================
   Products
   ============================== */
.products {
  padding: clamp(42px, 6vw, 70px) 0;
  background-color: #fff;
}

/* Filter chips (better mobile wrapping) */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
  padding: 0 6px;
}

.filter-btn {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--light-gray);
  border: 1px solid rgba(0,0,0,0.06);
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
  font-size: 0.95rem;

  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--brand-blue);
  color: #fff;
  border-color: transparent;
}

/* Auto-responsive product grid (no need for many breakpoints) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 0 0;
}

/* Card */
.product-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  background: #fff;
  transition: var(--transition);
  min-width: 0;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.10);
}

.product-card.out-of-stock {
  opacity: 0.65;
  pointer-events: none;
}

/* Image slider */
.product-image-slider {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--light);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.product-main-img {
  width: 100%;
  height: 165px;
  object-fit: contain;
  padding: 10px;
}

.product-thumbnails {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.product-thumbnails .thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
}

.product-thumbnails .thumb.active {
  opacity: 1;
  border-color: var(--brand-blue);
  transform: scale(1.05);
}

.product-thumbnails .thumb:hover {
  opacity: 1;
  border-color: var(--primary);
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
}

.badge-sale { background-color: #007bff; }
.badge-sold { background-color: #dc3545; }
.badge-new  { background-color: #28a745; }
.badge-out-of-stock { background-color: #6c757d; }

.product-info { padding: 6px 2px 0; min-width: 0; }

.product-category {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 6px;
  text-transform: capitalize;
}

.product-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 10px;
}

.product-description {
  color: var(--gray);
  font-size: 0.92rem;
  margin-bottom: 12px;
  line-height: 1.4;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;

  overflow-wrap: anywhere;
}

.product-actions {
  display: grid;
  gap: 10px;
}

/* ==============================
   Product Detail Modal (NEW)
   ============================== */
.product-detail-modal .modal-content {
  max-width: 1100px;
  padding: 24px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 16px;
}

/* Image Gallery with Zoom */
.product-detail-images {
  position: relative;
}

.main-image-container {
  position: relative;
  width: 100%;
  height: 450px;
  background: var(--light);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  border: 2px solid rgba(0,0,0,0.08);
}

.detail-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}

/* Zoom Lens */
.zoom-lens {
  position: absolute;
  border: 2px solid var(--brand-blue);
  width: 150px;
  height: 150px;
  cursor: crosshair;
  display: none;
  background: rgba(29, 35, 134, 0.1);
  pointer-events: none;
}

/* Zoom Result */
.zoom-result {
  position: absolute;
  top: 0;
  right: -420px;
  width: 400px;
  height: 400px;
  border: 3px solid var(--brand-blue);
  border-radius: var(--radius);
  background: white;
  display: none;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 10;
}

.zoom-result img {
  position: absolute;
  width: auto;
  height: auto;
}

.zoom-active .zoom-lens,
.zoom-active .zoom-result {
  display: block;
}

.zoom-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 5;
}

.zoom-toggle:hover {
  background: var(--brand-red);
  transform: scale(1.1);
}

.zoom-toggle.active i:before {
  content: "\f00e"; /* fa-search-minus */
}

/* Detail Thumbnails */
.detail-thumbnails {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.detail-thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 3px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.detail-thumbnails img.active {
  border-color: var(--brand-blue);
  transform: scale(1.05);
}

.detail-thumbnails img:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

/* Product Detail Info */
.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-category {
  color: var(--gray);
  font-size: 0.95rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.detail-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--dark);
  line-height: 1.3;
  margin: 0;
}

.detail-price-section {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 2px solid rgba(0,0,0,0.06);
  border-bottom: 2px solid rgba(0,0,0,0.06);
}

.detail-price {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--brand-blue);
}

.detail-badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
}

.detail-badge.badge-sale { background-color: #007bff; }
.detail-badge.badge-new { background-color: #28a745; }
.detail-badge.badge-sold { background-color: #dc3545; }

.detail-description-section h3,
.detail-specifications h3 {
  font-size: 1.1rem;
  color: var(--brand-blue);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-description {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;
}

.detail-specifications {
  background: var(--light);
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.06);
}

#detailSpecsList {
  list-style: none;
  padding: 0;
  margin: 0;
}

#detailSpecsList li {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
  font-size: 0.95rem;
  color: var(--dark);
}

#detailSpecsList li:last-child {
  border-bottom: none;
}

#detailSpecsList li i {
  color: var(--brand-blue);
  margin-right: 8px;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: auto;
}

.detail-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.05rem;
  padding: 14px 20px;
}

/* ==============================
   Modal / Cart
   ============================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.45);
  padding: 12px;
}

.modal-content {
  background-color: #fff;
  margin: 40px auto;
  padding: 18px;
  border-radius: 16px;
  width: min(680px, 100%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h2 {
  font-size: 1.45rem;
  color: #222;
  margin-bottom: 14px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.close {
  color: #777;
  font-size: 32px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 14px;
  cursor: pointer;
  border: none;
  background: transparent;
  z-index: 10;
}
.close:hover { color: #000; }

.cart-items {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 6px;
  margin-bottom: 16px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.18);
  gap: 14px;
}

.item-details {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
  min-width: 0;
}

.item-details img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
}

.item-info { flex: 1; min-width: 0; }

.item-info h4 {
  font-size: 1.05rem;
  margin: 0 0 4px 0;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-price { font-weight: 800; color: #333; }

.item-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-quantity {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #f8f9fa;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 900;
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.btn-quantity:hover {
  background: #e9ecef;
  transform: scale(1.06);
}

.item-quantity span {
  width: 30px;
  text-align: center;
  font-weight: 800;
}

.remove-item {
  color: var(--danger);
  cursor: pointer;
  font-size: 1.1rem;
}
.remove-item:hover { color: #bd2130; transform: scale(1.12); }

.shipping-section {
  margin-top: 14px;
  margin-bottom: 18px;
  padding: 14px;
  background: #f9f9f9;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
}

.shipping-section h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: #222;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
  color: #333;
  font-size: 0.95rem;
}

.form-input, .form-select {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 12px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: #2e7d32;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

.error-msg {
  color: #d32f2f;
  font-size: 0.9em;
  display: none;
  margin-top: 4px;
}

.helper-text {
  color: #666;
  font-size: 0.86em;
  display: block;
  margin-top: 4px;
}

.cart-summary {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 2px solid rgba(0,0,0,0.06);
}

.cart-total-section {
  padding: 10px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 12px;
}

.subtotal-row, .shipping-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 1.05rem;
  color: #555;
}

.cart-total.grand-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.cart-total.grand-total-row strong {
  font-weight: 900;
  color: var(--brand-blue);
}

.cart-actions {
  display: grid;
  gap: 10px;
}

/* ==============================
   Footer
   ============================== */
.site-footer {
  background: var(--dark);
  color: #e9ecef;
  padding: 56px 0 22px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 26px;
}

.footer-logo {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--brand-blue);
  display: inline-block;
  margin-bottom: 10px;
}

.footer-logo span { color: var(--brand-red); }

.footer-desc {
  color: #adb5bd;
  max-width: 360px;
  font-size: 0.98rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.footer-column h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 10px;
  color: var(--brand-blue);
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 38px;
  height: 3px;
  background: var(--brand-red);
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: #adb5bd;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(5px);
}

.footer-contact {
  display: grid;
  gap: 10px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #adb5bd;
  overflow-wrap: anywhere;
}

.footer-contact i {
  color: var(--brand-red);
  margin-top: 3px;
  min-width: 18px;
}

.footer-mini-note {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #adb5bd;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.footer-mini-note i { color: var(--brand-blue); }

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  text-decoration: none;
  transition: var(--transition);
}

.social-btn i { font-size: 18px; }

.social-btn.facebook { background-color: #1877F2; color: #fff; }
.social-btn.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
}
.social-btn.twitter { background-color: #000; color: #fff; }
.social-btn.whatsapp { background-color: #25D366; color: #fff; }

.social-btn:hover { transform: translateY(-4px); filter: brightness(1.06); }

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  color: #adb5bd;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #adb5bd;
  font-size: 0.92rem;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}

.footer-bottom-links a {
  color: #adb5bd;
  transition: var(--transition);
}

.footer-bottom-links a:hover { color: #fff; }

.footer-bottom-links .dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  display: inline-block;
}

/* ==============================
   Responsive Tweaks
   ============================== */

@media (max-width: 1200px) {
  .zoom-result {
    right: -320px;
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .main-image-container {
    height: 350px;
  }
  
  .zoom-result {
    display: none !important;
  }
  
  .detail-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .navbar { padding: 10px 0; }
  .icon-btn { width: 42px; height: 42px; border-radius: 12px; }

  .products-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

  .product-image-slider { height: 200px; }
  .product-main-img { height: 150px; }
  .product-thumbnails .thumb { width: 40px; height: 40px; }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .item-quantity { width: 100%; justify-content: flex-start; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  
  .product-detail-modal .modal-content {
    padding: 16px;
    margin: 20px auto;
  }
  
  .main-image-container {
    height: 280px;
  }
  
  .detail-thumbnails img {
    width: 60px;
    height: 60px;
  }
  
  .detail-title {
    font-size: 1.3rem;
  }
  
  .detail-price {
    font-size: 1.6rem;
  }
}
