* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  color: #222;
}


.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;

  background: #ffffff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}


.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo {
  font-size: 22px;
  font-weight: 700;
}

.logo span {
  color: #ffb703;
}

/* CATEGORY BUTTON */
.cat-btn {
  background: #f3f3f3;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #111;
  border-radius: 4px;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

/* ANIMATION ☰ → X */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #eee;
}

.mobile-menu a {
  padding: 14px 20px;
  border-bottom: 1px solid #f1f1f1;
  text-decoration: none;
  color: #111;
}

/* RESPONSIVE */
@media (max-width: 900px) {

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-inner {
    justify-content: space-between;
  }

  /* center logo on mobile */
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .mobile-menu.active {
    display: flex;
  }
}

.logo a {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}
html {
  scroll-behavior: smooth;
}


.site-footer {
  background: linear-gradient(135deg, #050b1e, #0b163a);
  color: #cbd5f5;
   padding: 70px 20px 30px;
  position: relative;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 18px;
  position: relative;
}

.footer-col h4::after {
  content: "";
  width: 35px;
  height: 3px;
  background: #3b82f6;
  display: block;
  margin-top: 6px;
  border-radius: 2px;
}

.footer-col p,
.footer-col li {
  font-size: 15px;
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

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

.footer-col a {
  color: #cbd5f5;
  text-decoration: none;
}

.footer-col a:hover {
  color: #3b82f6;
}

/* SOCIALS */
.footer-socials {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0f1d4d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

/* BOTTOM */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
}

.footer-bottom span {
  color: #3b82f6;
}

.footer-links a {
  text-decoration: none;
  border: none;
  color: #cbd5f5;
  font-size: 14px;
}

.footer-links a:hover {
  color: #3b82f6;
}

/* Specifically for Terms button */
.terms-btn {
  text-decoration: none;
  border: none;
  background: #1e3a8a;
  padding: 6px 14px;
  border-radius: 999px;
  color: #fff;
}

/* Kill any inherited underline or border */
.footer-links a::after,
.footer-links a::before {
  content: none;
}


/* MOBILE */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 768px) {
  .site-footer {
    padding: 50px 16px 20px;
  }
}

html, body {
  overflow-x: hidden;
}




body {
  font-family: Arial, sans-serif;
}

.page-title {
  text-align: center;
  margin-bottom: 30px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 0 16px;   /* ADD THIS */
}

.product-card {
  background: #ffffff;
  border-radius: 18px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform .3s ease, box-shadow .3s ease;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  aspect-ratio: 1 / 1; /* PERFECT SQUARE */
  padding: 14px;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.12);
}


.product-card img {
  width: 100%;
  height: 55%;
  object-fit: contain;
  border-radius: 12px;
}
.product-card h3 {
  font-size: 16px;
  margin-top: 10px;
  font-weight: 600;
}

.product-card p {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}
@media (max-width: 600px) {
   .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 0 12px;   /* smaller spacing */
  }


  .product-card {
    padding: 12px;
    border-radius: 14px;
  }

  .product-card h3 {
    font-size: 14px;
  }

  .product-card p {
    font-size: 12px;
  }
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 99999;

  display: none; /* ONLY hidden by default */
  align-items: center;
  justify-content: center;
}

#mainPreview {
  background: #f1f3f9;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}
.modal.active {
  display: flex;
}


.modal-box {
  background: #fff;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;

  overflow-y: auto;
  border-radius: 20px;
  padding: 20px;

  display: flex;
  gap: 25px;
  position: relative;
}


.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 26px;
  cursor: pointer;
}

.modal-left {
  width: 45%;
}

.modal-left img {
  width: 100%;
  border-radius: 16px;
}

.thumbnail-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  justify-content: center;
}

.thumbnail-row img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 10px;
  opacity: .6;
}

.thumbnail-row img.active {
  border: 2px solid #0d6efd;
  opacity: 1;
}

.modal-right {
  width: 55%;
}

.badge-row {
  margin: 10px 0;
}

.badge-row span {
  background: #eef2ff;
  color: #0d6efd;
  padding: 6px 12px;
  border-radius: 20px;
  margin-right: 8px;
  font-size: 13px;
}

.storage-title {
  margin-top: 10px;
}

.option-row {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.option-row button {
  padding: 10px 16px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
}

.option-row button.active {
  background: #0d6efd;
  color: white;
}

.price-box {
  background: #f1f3f9;
  padding: 15px;
  border-radius: 14px;
  margin: 15px 0;
}

.cta {
  width: 100%;
  padding: 14px;
  background: #0d6efd;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
}
@media (max-width: 768px) {

  /* Modal container */
  .modal-box {
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
    padding: 16px;
  }

  /* IMAGE SECTION FIRST */
  .modal-left {
    width: 100%;
    order: 1;
  }

  .modal-left img {
    max-height: 280px;
    object-fit: contain;
  }

  /* Thumbnails centered under image */
  .thumbnail-row {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .thumbnail-row img {
    width: 54px;
    height: 54px;
  }

  /* DETAILS SECTION BELOW */
  .modal-right {
    width: 100%;
    order: 2;
    margin-top: 12px;
  }

  /* Headings spacing */
  .modal-right h2 {
    font-size: 20px;
    margin-top: 10px;
  }

  .modal-right p {
    font-size: 14px;
  }

  /* Badges wrap nicely */
  .badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
  }

  /* Storage & payment buttons */
  .option-row {
    flex-wrap: wrap;
  }

  .option-row button {
    flex: 1 1 45%;
    font-size: 14px;
  }

  /* Price box */
  .price-box {
    font-size: 14px;
  }

  /* CTA button */
  .cta {
    position: sticky;
    bottom: 10px;
    margin-top: 16px;
  }

  /* Close button stays visible */
  .close {
    top: 10px;
    right: 12px;
    z-index: 10;
  }
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #f6f7fb;
  color: #222;
  padding-top: 80px;
}

body.modal-open {
  overflow: hidden;
}



/* ===== MOBILE OVERFLOW FIX (DO NOT AFFECT DESKTOP) ===== */
@media (max-width: 768px) {

  /* Prevent horizontal overflow globally */
  body {
    overflow-x: hidden;
  }

  /* Modal container must never exceed viewport width */
  .modal-box {
    width: calc(100% - 20px);
    margin: 10px;
    box-sizing: border-box;
  }

  /* Ensure right-side content wraps instead of overflowing */
  .modal-right {
    min-width: 0;
    overflow-wrap: break-word;
  }

  /* Badges and text never push layout */
  .badge-row span {
    white-space: nowrap;
  }

  /* Buttons scale properly on small screens */
  .option-row button {
    min-width: 0;
  }
}

.banner-slider {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: #000;
}

.banner-track {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Slides */
.banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

/* Active slide */
.banner-slide.active {
  opacity: 1;
}

/* Dark overlay (optional but clean) */
.banner-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(5, 40, 70, 0.65),
    rgba(5, 40, 70, 0.25)
  );
  pointer-events: none;
}

/* Navigation arrows */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  font-size: 32px;
  padding: 12px 18px;
  cursor: pointer;
  z-index: 5;
  border-radius: 50%;
}

.nav:hover {
  background: rgba(0,0,0,0.6);
}

.prev { left: 20px; }
.next { right: 20px; }

/* Mobile adjustments */
@media (max-width: 768px) {
  .banner-slider {
    height: 200px;
  }

  .nav {
    font-size: 24px;
    padding: 10px 14px;
  }
}
.page-title-wrap {
  text-align: center;
  margin-bottom: 30px;
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  color: #111;
}

.page-title .active-tag {
  display: inline-block;
  background: #0d6efd;
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  margin-right: 8px;
  vertical-align: middle;
}
@media (max-width: 600px) {
  .page-title {
    font-size: 22px;
  }

  .page-title .active-tag {
    font-size: 13px;
    padding: 5px 12px;
  }
}

/* PRODUCTS GRID */
.products-grid h2 {
  grid-column: 1 / -1;               /* span full grid */
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #111;

  margin: 10px 0 25px;
  padding: 12px 20px;

  background: linear-gradient(
    to right,
    #f5f5f5,
    #ffffff
  );

  border-left: 6px solid #ffb703;
  border-radius: 14px;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* ===== SECTION HEADER STYLE (like Laptop & Computer) ===== */
.section-header {
  position: relative;
  background: #f3f3f3;

  margin: 40px 16px 30px;   /* adds space from screen edges */
  padding: 18px 24px;

  border-radius: 12px;
  font-weight: 700;

  text-align: center;       /* centers text */
}

.section-header h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 1px;
  color: #111;
}


/* Yellow curved accent on left */
.section-header::before {
  content: "";
  position: absolute;
  left: 16px;        /* keep inside margin */
  top: 12px;
  bottom: 12px;
  width: 6px;
  background: #ffb703;
  border-radius: 6px;
}

@media (max-width: 600px) {
  .section-header {
    margin: 30px 14px 20px;
    padding: 14px 18px;
  }

  .section-header h2 {
    font-size: 18px;
  }
}

/* GLOBAL CONTENT SPACING */
.container,
.products-grid,
.page-title-wrap,
.section-header {
  padding-left: 16px;
  padding-right: 16px;
}
@media (max-width: 768px) {
  .container,
  .products-grid,
  .page-title-wrap,
  .section-header {
    padding-left: 14px;
    padding-right: 14px;
  }
}



/* ===== DESKTOP DROPDOWN ===== */
.dropdown {
  position: relative;
}

.dropbtn {
  cursor: pointer;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  padding: 10px 0;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
}

.dropdown-content a {
  display: block;
  padding: 10px 18px;
  text-decoration: none;
  color: #111;
  font-size: 14px;
}

.dropdown-content a:hover {
  background: #f3f3f3;
}

/* Show on hover */
.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== MOBILE DROPDOWN ===== */
.mobile-dropdown {
  border-bottom: 1px solid #f1f1f1;
}

.mobile-dropbtn {
  padding: 14px 20px;
  cursor: pointer;
  font-weight: 500;
}

.mobile-dropdown-content {
  display: none;
  flex-direction: column;
  background: #fafafa;
}

.mobile-dropdown-content a {
  padding: 12px 30px;
  text-decoration: none;
  color: #111;
  font-size: 14px;
}

.mobile-dropdown-content a:hover {
  background: #eee;
}

.accessories-cta {
  text-align: center;
  margin: 60px 0;
}

.accessories-btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  background: #111;
  color: #fff;
  transition: 0.3s ease;
}

.accessories-btn:hover {
  background: #25D366;
  transform: translateY(-3px);
}
