/* =========================
   GLOBAL STYLES
========================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins', sans-serif;
}

body{
    background:#f4f6f9;
    color:#222;
    overflow-x:hidden;
    padding-top:80px;
}

a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}

/* =========================
   NAVBAR
========================= */
header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:white;
    z-index:1000;
    box-shadow:0 10px 30px rgba(0,0,0,0.05);
}

.navbar{
    max-width:1200px;
    margin:auto;
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:20px;
    padding:15px 20px;
}

.logo{
    font-size:24px;
    font-weight:700;
    color:#005eff;
}

.nav-links{
    display:flex;
    gap:25px;
    justify-self:end;
}

.nav-links a{
    font-weight:500;
    transition:0.3s;
}

.nav-links a:hover{color:#005eff}

.menu-btn{
    display:none;
    font-size:26px;
    cursor:pointer;
}

/* =========================
   CENTER SEARCH
========================= */
  .nav-search{
    position:static;
    padding:0;
    box-shadow:none;
    background:none;
    width:auto;
  }

  .nav-search input{
    width:140px;
    padding:6px 14px;
    font-size:13px;
    border-radius:20px;
  }

/* =========================
   HERO (DESKTOP ONLY)
========================= */
.hero{
    background:linear-gradient(120deg,#005eff,#00c6ff);
    display:flex;
    align-items:center;
    justify-content:center;

    /* 🔑 THIS is the key */
    min-height:420px;
    max-height:520px;

    padding:40px 20px;
    overflow:hidden;
}

.hero-content{
    max-width:1200px;
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    gap:24px;   /* smaller gap */
    color:white;
}

.hero-text h1{
    font-size:38px;
    margin-bottom:12px;
    line-height:1.15;
}

.hero-text p{
    font-size:16px;
    margin-bottom:14px;
}

/* ================= DESKTOP SEARCH ONLY ================= */
@media (min-width: 769px) {
  .nav-search {
    position: relative;
    width: 300px;
  }

  .nav-search input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #f9fafb;
    transition: all 0.25s ease;
    font-size: 14px;
  }

  .nav-search input:focus {
    background: #fff;
    border-color: #005eff;
    box-shadow: 0 0 0 4px rgba(0,94,255,0.15);
  }

  .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.6;
    pointer-events: none;
  }
}
/* ================= MOBILE NAV HIDE ================= */
@media (max-width: 768px) {
  /* Hide Printers & Contact on phone */
  .nav-links a[href="#printers"],
  .nav-links a[href="#contact"] {
    display: none;
  }

  /* Keep About visible */
  .nav-links a[href="about.html"] {
    display: inline-block;
  }
}


/* =========================
   HERO SLIDER
========================= */
.hero-img{
    max-width:360px;
    height:360px;
}

.hero-slider{
    width:100%;
    height:100%;
    position:relative;
}

.hero-slider img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:contain;
    opacity:0;
    transform:translateX(40px);
    transition:opacity 0.8s ease, transform 0.8s ease;
}

.hero-slider img.active{
    opacity:1;
    transform:translateX(0);
}

/* =========================
   SECTION COMMON
========================= */
section:not(.hero){
    padding:50px 20px;
}

.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title h2{
    font-size:36px;
    margin-bottom:10px;
}

.section-title p{color:#666}

/* =========================
   FILTER BUTTONS
========================= */
.filters{
    display:grid;
    grid-template-columns: repeat(7, auto);
    gap:10px;                 /* smaller gap */
    max-width:620px;
    margin:20px auto 18px;    /* ⬅ reduced top/bottom */
    padding:0 12px;
}

.filters button{
    height:34px;              /* was too tall */
    font-size:13px;
    border-radius:18px;
}

.filters button.active{
    background:#005eff;
    color:#fff;
    border-color:#005eff;
}

/* =========================
   PRODUCT GRID
========================= */
.products{
    max-width:1200px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
    gap:30px;
}

/* =========================
   PRODUCT CARD
========================= */
.product{
    background:white;
    border-radius:20px;
    padding:20px;
    box-shadow:0 15px 40px rgba(0,0,0,0.08);
    transition:0.4s;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    min-height:420px;
}

.product:hover{
    transform:translateY(-10px);
}

.product img{
    height:180px;
    object-fit:contain;
    margin-bottom:15px;
}

.product h3{
    font-size:18px;
}

.product span{
    color:#005eff;
    font-weight:600;
}

/* =========================
   BUY BUTTON (FIXED)
========================= */
.product .buy-btn,
.product button{
    margin-top:20px;
    padding:12px;
    width:100%;
    text-align:center;
    background:#005eff;
    color:white;
    border:none;
    border-radius:30px;
    font-weight:500;
    cursor:pointer;
    transition:0.3s;
    display:inline-block;
}

.product .buy-btn:hover,
.product button:hover{
    background:#0046c7;
}

/* =========================
   FOOTER
========================= */
footer{
    background:#111;
    color:#aaa;
    padding:50px 20px;
}

.footer-content{
    max-width:1200px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:40px;
}

footer h3{color:white}

/* =========================
   MOBILE (3 PRODUCTS / ROW)
========================= */
@media (max-width:768px){

  /* BODY */
  body{
    padding-top:56px;   /* match header height */
  }

  /* HERO */
  .hero{
    display:none !important;
  }

  /* FILTERS (LESS SPACE) */
  .filters{
    margin:12px auto 10px;
    gap:8px;
    padding:0 10px;
  }

  .filters button{
    height:32px;
    font-size:12.5px;
    border-radius:16px;
  }

  /* PRODUCTS GRID */
  .products{
    grid-template-columns:repeat(3,1fr);
    gap:10px;
  }

  .product{
    padding:12px;
    min-height:auto;
    border-radius:14px;
  }

  .product img{
    height:90px;
    margin-bottom:6px;
  }

  .product h3{
    font-size:12px;
    line-height:1.2;
  }

  .product span{
    font-size:13px;
  }

  .product .buy-btn,
  .product button{
    padding:8px;
    font-size:12px;
    border-radius:20px;
  }

  /* SECTION SPACING (BIG FIX) */
  section:not(.hero){
    padding-top:24px;
    padding-bottom:28px;
    padding-left:14px;
    padding-right:14px;
  }

  /* BRAND TITLE */
  .brand-title{
    margin-top:14px;
    margin-bottom:10px;
  }

  .brand-title h2{
    font-size:18px;
  }
}

/* mobile */
@media (max-width:768px){

  /* HEADER */
  header{
    height:56px;
    box-shadow:0 6px 16px rgba(0,0,0,0.06);
  }

  .navbar{
    height:56px;
    padding:0 14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
  }

  .logo{
    font-size:18px;
    line-height:1.1;
  }

  /* MENU ICON */
  .menu-btn{
    font-size:22px;
  }

/* ================= PRODUCT MODAL ================= */

.product-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.product-modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 420px;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  animation: scaleIn .25s ease;
}

@keyframes scaleIn {
  from { transform: scale(.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-content img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  margin-bottom: 15px;
}

.modal-content h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.modal-content p {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

.modal-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-weight: 600;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  cursor: pointer;
}}

/* ===============================
   BRAND LOGO RUNNING BAR
================================ */
/* ===============================
   BRAND LOGO BAR (RED OVERLAY)
================================ */
.brand-marquee {
  width: 100%;
  overflow: hidden;
  padding: 26px 0;

  /* 🔴 Chinese New Year red gradient */
  background: linear-gradient(
    180deg,
    #c72c1d,
    #e23b2d,
    #c72c1d
  );

  position: relative;
}

/* soft dotted overlay (match site) */
.brand-marquee::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255,255,255,0.35) 1px,
    transparent 1px
  );
  background-size: 26px 26px;
  opacity: 0.35;
  pointer-events: none;
}

/* keep logos above overlay */
.brand-track {
  position: relative;
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: brandScroll 22s linear infinite;
}

/* LOGOS */
.brand-track img {
  height: 44px;
  width: auto;
  object-fit: contain;

  /* white-friendly look */
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: all 0.3s ease;
}

/* hover pop */
.brand-track img:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* animation stays SAME */
@keyframes brandScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .brand-track {
    gap: 50px;
  }

  .brand-track img {
    height: 34px;
  }
}


/* ===============================
   BRAND LOGO BAR – BIG & CLEAN
================================ */

.brand-track {
  position: relative;
  display: flex;
  align-items: center;

  /* ⬅ reduce gap so 4 logos don’t look empty */
  gap: 120px;

  width: max-content;

  /* ⬅ slower = premium */
  animation: brandScroll 35s linear infinite;
}

/* BIG LOGOS */
.brand-track img {
  height: 64px;              /* ⬅ BIGGER */
  width: auto;
  object-fit: contain;

  /* white logo look on red bg */
  filter: brightness(0) invert(1);
  opacity: 0.9;

  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* hover effect (optional but clean) */
.brand-track img:hover {
  opacity: 1;
  transform: scale(1.08);
}

/* animation stays smooth */
@keyframes brandScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .brand-track {
    gap: 70px;
  }

  .brand-track img {
    height: 44px;
  }
}

/* =========================
   NAVBAR TEXT VISIBILITY FIX
========================= */

/* Default navbar links (desktop) */
.nav-links a {
  color: #111;                /* DARK text */
  font-weight: 600;
}

/* Hover */
.nav-links a:hover {
  color: #ff3b30;             /* Red hover */
}

/* Logo stays blue */
.logo {
  color: #005eff;
}

/* When header overlaps red background */
header {
  background: #ffffff;        /* Force white */
}

/* Search input text */
.nav-search input {
  color: #111;
}

.product-tagline {
  margin-top: 4px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
