/* IT STORE Header Styles - super responsive
   Brand Red: #FD1115
*/

/* ===== Global / Boxed Layout & Typography ===== */
html{
  background:#edf1f7;                /* page backdrop outside the box */
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

body{
  background:#ffffff;                /* the boxed canvas */
  max-width:1280px;                  /* total site width */
  margin:16px auto;                  /* creates visible "boxed" margins */
  border-radius:16px;                /* rounded corners for the whole site */
  box-shadow:0 10px 30px rgba(16,24,40,.08),
             0 2px 6px rgba(16,24,40,.05);
  min-height:calc(100vh - 32px);     /* keep full-height while honoring margins */
  /* FIX: allow page to scroll while keeping horizontal tidy */
  overflow-y:auto;
  overflow-x:hidden;
  color:#111827;
  font-family:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size:16px;
  line-height:1.6;
  letter-spacing:.1px;
}

/* Ensure internal sections don't butt against rounded edges on mobile */
.it-header, .it-nav{border-radius:16px 16px 0 0;}
footer{border-radius:0 0 16px 16px;}

/* Tighter margins on very small screens for breathing room */
@media (max-width:575.98px){
  body{margin:8px auto; min-height:calc(100vh - 16px); border-radius:12px;}
}

/* ===== Theme Tokens ===== */
:root{
  --it-red:#FD1115;
  --it-text:#111827;
  --it-muted:#6b7280;
  --it-bg:#f3f6fc;          /* soft blue-ish header strip */
  --it-nav-bg:#e9f0fb;
}

/* ===== Header ===== */
.it-header{background:#fff;}
.it-logo{height:40px; width:auto;}

/* Search */
.it-search .form-control{
  border:2px solid #e5e7eb;
  border-right:0;
  padding:.75rem 1rem;
  border-radius:999px 0 0 999px;
  box-shadow:none;
}
.it-search .form-control:focus{border-color:#cfd6e6; box-shadow:none;}
.it-search .btn.it-btn-red{
  background:var(--it-red);
  border:2px solid var(--it-red);
  color:#fff;
  border-radius:0 999px 999px 0;
  padding:.5rem 1rem;
}
.it-search .btn.it-btn-red .bi{font-size:1.15rem;}

/* Quick info */
.it-quickinfo .fw-bold{color:#111827;}
.it-quickinfo .it-link{color:#0b63d1;}
.it-quickinfo .it-link:hover{text-decoration:underline;}

/* Top icon buttons */
.it-iconbtn{
  width:40px;height:40px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:50%;
  background:#f3f4f6;color:#111827;text-decoration:none;
}
.it-iconbtn:hover{background:#e5e7eb;color:#111827;}
.it-iconbtn .bi{font-size:1.15rem;}
.it-badge{font-size:.65rem;padding:.25em .4em;}

/* ===== Nav strip ===== */
.it-nav{
  background:var(--it-nav-bg);
  border-top:1px solid #eef2ff;
  border-bottom:1px solid #e5e7eb;
}
.it-allcats{
  background:#fff; color:#111827;
  border:0; border-radius:999px; padding:.5rem .9rem;
  box-shadow:0 1px 2px rgba(0,0,0,.05);
}
.it-allcats:hover{background:#fff;}
.it-hamburger{display:inline-flex; flex-direction:column; gap:3px;}
.it-hamburger span{
  display:block; width:16px; height:2px; background:var(--it-red); border-radius:2px;
}

/* Menu */
.it-menu{gap:1.25rem; padding:.6rem 0; scroll-behavior:smooth;}
.it-menu li a{
  color:#111827; font-weight:600; letter-spacing:.2px;
  text-decoration:none; white-space:nowrap; display:inline-flex; align-items:center; gap:.25rem;
  padding:.35rem .25rem; border-radius:.5rem;
}
.it-menu li a:hover{color:var(--it-red);}

/* ====== RESPONSIVE ====== */
@media (max-width: 1199.98px){
  .it-search .form-control{padding:.6rem .9rem;}
  .it-logo{height:36px;}
}

@media (max-width: 991.98px){
  .it-quickinfo{display:none !important;}
  .it-logo{height:34px;}
}

@media (max-width: 767.98px){
  .it-iconbtn{width:36px;height:36px;}
  .it-menu{gap:.9rem;}
  .it-allcats{padding:.45rem .8rem;}
  .it-search .form-control{border-radius:8px 0 0 8px;}
  .it-search .btn.it-btn-red{border-radius:0 8px 8px 0;}
}

@media (max-width: 575.98px){
  .it-logo{height:30px;}
  .it-menu{padding:.5rem 0;}
  .it-nav{border-top:0;}
}

/* Utility tweaks */
.container-xl{max-width:1220px;}

/* ===== Banner adjustments (already styled internally) ===== */
.it-hero {border-bottom:1px solid #eef2ff;}

/* ===== Brands Section ===== */
.it-brands{
  background:#f5f7fa;
  border-top:1px solid #eef2ff;
  border-bottom:1px solid #eef2ff;
}
.it-brands-title{
  font-weight:800;
  color:#111827;
}

/* brand card */
.brand-card{
  background:#fff;
  border-radius:14px;
  text-decoration:none;
  padding:14px 12px;
  border:1px solid rgba(17,24,39,.06);
  transition:transform .15s ease, box-shadow .15s ease;
}
.brand-card:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(16,24,40,.08);
}

/* logo box */
.brand-logo-wrap{
  height:120px;
  display:flex;align-items:center;justify-content:center;
  border-radius:10px;
  background:#fafafa;
  margin-bottom:.65rem;
}
.brand-logo{
  max-height:72px;
  max-width:90%;
  object-fit:contain;
  display:block;
}

/* text */
.brand-title{
  font-weight:800;
  color:#111827;
  line-height:1.1;
}
.brand-count{
  color:#6b7280;
  font-size:.95rem;
}

/* ===== Footer ===== */
.it-footer{
  background:#fff;
  border-top:1px solid #eef2ff;
  border-radius:0 0 16px 16px;
}
.it-footer-logo{height:40px;width:auto;}
.it-foot-title{font-weight:700;margin-bottom:.75rem;color:#111827;}
.it-foot-list{list-style:none;margin:0;padding:0;}
.it-foot-list li{margin:.35rem 0;}
.it-foot-list a{text-decoration:none;color:#6b7280;}
.it-foot-list a:hover{color:#FD1115;}
.it-foot-text{color:#111827;}
.it-foot-link{color:#0b63d1;}
.it-foot-link:hover{text-decoration:underline;}
.it-socials .it-social{width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#f3f4f6;color:#111827;text-decoration:none;transition:all .2s ease;}
.it-socials .it-social:hover{background:#FD1115;color:#fff;}
.it-foot-hr{border:0;height:1px;background:rgba(0,0,0,.06);}

/* ===== Responsive Tweaks ===== */
@media (max-width:991.98px){
  .brand-logo-wrap{height:110px;}
  .brand-logo{max-height:68px;}
  .it-footer-logo{height:36px;}
}
@media (max-width:767.98px){
  .brand-logo-wrap{height:100px;}
  .brand-logo{max-height:62px;}
}
@media (max-width:575.98px){
  body{margin:8px auto;border-radius:12px;}
  .brand-logo-wrap{height:92px;}
  .brand-logo{max-height:56px;}
  .brand-card{border-radius:12px;}
  .it-footer{border-radius:0 0 12px 12px;}
}

/* ===== Pre-Owned Products Section ===== */
.it-products{
  background:#f5f7fa;
  border-top:1px solid #eef2ff;
  border-bottom:1px solid #eef2ff;
}
.it-products-title{
  font-weight:800;
  color:#111827;
}

/* "More products" pill */
.it-more-btn{
  background:#fff;
  color:#111827;
  border:1px solid #e5e7eb;
  border-radius:999px;
  padding:.45rem .9rem;
  font-weight:600;
  text-decoration:none;
}
.it-more-btn:hover{
  background:#f9fafb;
  border-color:#d1d5db;
  color:#111827;
}

/* Card */
.it-product-card{
  position:relative;
  background:#fff;
  border:1px solid rgba(17,24,39,.08);
  border-radius:14px;
  padding:12px;
  transition:box-shadow .15s ease, transform .15s ease;
}
.it-product-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(16,24,40,.08);
}

/* Discount badge */
.badge-discount{
  position:absolute; top:10px; left:10px;
  background:#FD1115; color:#fff;
  font-weight:700; font-size:.8rem;
  padding:.25rem .5rem; border-radius:999px;
  z-index:3;
}

/* Wishlist */
.wish-btn{
  position:absolute; top:10px; right:10px;
  width:34px; height:34px; border-radius:50%;
  border:1px solid #e5e7eb; background:#fff; color:#6b7280;
  display:flex; align-items:center; justify-content:center;
}
.wish-btn:hover{ color:#FD1115; border-color:#FD1115; }

/* SOLD OUT label */
.sold-out{
  position:absolute; top:46px; left:12px;
  font-size:.78rem; letter-spacing:.02em;
  color:#6b7280; font-weight:700;
}

/* Image box */
.img-wrap{
  height:150px; display:flex; align-items:center; justify-content:center;
  background:#fafafa; border-radius:10px; overflow:hidden; margin-bottom:.75rem;
}
.img-wrap img{ max-height:120px; width:auto; object-fit:contain; }

/* Content */
.it-product-card .content .title{
  display:block; color:#111827; text-decoration:none;
  font-weight:700; line-height:1.25; margin-bottom:.35rem;
}
.it-product-card .content .title:hover{ color:#FD1115; }

.price{ display:flex; gap:.5rem; align-items:baseline; }
.price .old{
  color:#9ca3af; text-decoration:line-through; font-size:.92rem;
}
.price .new{
  color:#FD1115; font-weight:800;
}

/* 5-up feel on xl (approx like screenshot) */
@media (min-width: 1200px){
  .col-xl-2-4{ flex:0 0 20%; max-width:20%; }
}

/* Responsive sizes */
@media (max-width:991.98px){
  .img-wrap{ height:140px; }
  .img-wrap img{ max-height:110px; }
}
@media (max-width:767.98px){
  .img-wrap{ height:130px; }
  .img-wrap img{ max-height:100px; }
}
@media (max-width:575.98px){
  .it-more-btn{ padding:.4rem .8rem; }
  .img-wrap{ height:120px; }
  .img-wrap img{ max-height:92px; }
  .it-product-card{ border-radius:12px; }
}

/* ===== Brand New Laptops (reuses .it-products styles) ===== */

/* Left promo panel */
.object-cover{ object-fit:cover; }

.promo-panel{
  position:relative;
  background:#0b1220;
  height:100%;
  min-height: 420px;           /* aligns visually with cards */
  border:1px solid rgba(0,0,0,.06);
}
.promo-panel-overlay{
  position:absolute; inset:auto auto 24px 24px; color:#fff;
  text-shadow:0 2px 18px rgba(0,0,0,.4);
}
.promo-panel-overlay .overline{
  font-size:.8rem; letter-spacing:.06em; opacity:.9; margin-bottom:.25rem;
}
.promo-panel-overlay h3{
  font-weight:800; line-height:1.1; margin:0 0 .75rem;
}
.promo-panel .btn-shop{
  background:#FD1115; color:#fff; font-weight:700; border:none;
  padding:.55rem 1rem; border-radius:.5rem;
}

/* Green "NEW" badge */
.badge-new{
  position:absolute; top:38px; left:12px;
  background:#22c55e; color:#fff; font-weight:700;
  font-size:.72rem; padding:.2rem .5rem; border-radius:999px; z-index:3;
}

/* Spec chips (RAM/SSD etc.) */
.spec-chips{ display:flex; flex-wrap:wrap; gap:.4rem; }
.spec-chip{
  display:inline-block; font-size:.85rem; color:#111827;
  background:#fff; border:1px solid #e5e7eb; border-radius:999px;
  padding:.25rem .55rem; white-space:nowrap;
}

/* Responsive tune for promo panel */
@media (max-width: 991.98px){
  .promo-panel{ min-height: 280px; }
}
@media (max-width: 575.98px){
  .promo-panel{ min-height: 220px; }
  .promo-panel-overlay{ inset:auto auto 16px 16px; }
}

/* ===== Gaming Laptops Section ===== */
.it-gaming{
  position:relative;
  background:url("../images/itcomplex.jpg") center/cover no-repeat fixed;
  color:#fff;
  overflow:hidden;
}
.it-gaming-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
}
.it-gaming-title{
  font-weight:800;
  font-size:clamp(1.8rem,2.5vw + 1rem,2.6rem);
  line-height:1.2;
}
.it-gaming-sub{
  font-size:1.1rem;
  opacity:.9;
}

/* Reuse red shop button */
.it-gaming .btn-shop{
  background:#FD1115;
  border:none;
  border-radius:.5rem;
  padding:.6rem 1.2rem;
  font-weight:700;
  color:#fff;
}
.it-gaming .btn-shop:hover{
  background:#e40f14;
}

/* Gaming cards */
.gaming-card{
  background:#fff;
  color:#111827;
  border-radius:14px;
  padding:12px;
  text-align:left;
  height:100%;
  transition:transform .2s ease, box-shadow .2s ease;
}
.gaming-card:hover{
  transform:translateY(-3px);
  box-shadow:0 8px 20px rgba(0,0,0,.15);
}
.gaming-card img{
  width:100%;
  max-height:130px;
  object-fit:contain;
  display:block;
  margin:auto;
}
.gaming-card .title{
  font-size:.95rem;
  font-weight:700;
  line-height:1.3;
  margin:0 0 .5rem;
}
.gaming-card .price{
  display:flex;
  align-items:baseline;
  gap:.4rem;
}
.gaming-card .price .old{
  text-decoration:line-through;
  color:#9ca3af;
  font-size:.9rem;
}
.gaming-card .price .new{
  color:#FD1115;
  font-weight:800;
}

/* Responsive adjustments */
@media (max-width:991.98px){
  .gaming-card img{max-height:120px;}
}
@media (max-width:767.98px){
  .gaming-card img{max-height:110px;}
}
@media (max-width:575.98px){
  .it-gaming{background-attachment:scroll;}
  .gaming-card{border-radius:12px;}
  .it-gaming .btn-shop{padding:.5rem 1rem;}
}

/* ===== All Brand Products (reuses .it-products styles) ===== */
.it-products--all{
  background:#f5f7fa;            /* same soft strip */
}
.it-products--all .it-products-title{
  font-weight:800;
  color:#111827;
}
@media (min-width:1200px){
  .col-xl-2-4{ flex:0 0 20%; max-width:20%; }
}

/* ===== Get Accessories Section ===== */
.it-accessories{
  background:#fff;
  border-top:1px solid #eef2ff;
  border-bottom:1px solid #eef2ff;
}
.it-accessories-title{
  font-weight:800;
  color:#111827;
}
.it-accessories-text{
  color:#4b5563;
  max-width:520px;
  font-size:1rem;
}

/* Chips / category buttons */
.chip{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  background:#f3f4f6;
  color:#111827;
  border:1px solid #e5e7eb;
  border-radius:999px;
  padding:.45rem .9rem;
  font-weight:600;
  text-decoration:none;
  font-size:.9rem;
  transition:all .2s ease;
}
.chip:hover{
  background:#FD1115;
  color:#fff;
  border-color:#FD1115;
}
.chip i{
  font-size:1rem;
}

/* Image styling */
.it-accessories-img{
  max-height:320px;
  object-fit:contain;
  border-radius:12px;
}

/* Responsive layout */
@media (max-width:991.98px){
  .it-accessories-text{max-width:100%;}
}
@media (max-width:767.98px){
  .it-accessories{
    text-align:center;
  }
  .it-accessories-img{
    max-height:240px;
  }
}

/* ===== Fixed Categories Rail & Slide-out Panel ===== */
:root { --it-red:#FD1115; }

/* Rail container */
.cat-rail{
  position:fixed;
  top:120px;                 /* sits below your header; adjust if header height changes */
  left:8px;                  /* JS will update to align with boxed layout */
  width:44px;
  z-index:1050;              /* above page content */
  pointer-events:auto;
}

/* Round red hamburger */
.cat-trigger{
  width:44px; height:44px; border:0; border-radius:999px;
  background:var(--it-red); color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 16px rgba(253,17,21,.35);
  margin-bottom:10px; cursor:pointer;
}
.cat-trigger span{
  display:block; width:18px; height:2px; background:#fff; border-radius:2px; margin:2px 0;
}

/* Icon rail */
.cat-rail-icons{
  display:flex; flex-direction:column; align-items:center; gap:12px;
  background:transparent; padding:2px 0;
}
.cat-rail-icons a{
  width:32px; height:32px; border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  background:#fff; color:#111827; text-decoration:none;
  border:1px solid #e5e7eb;
  transition:transform .15s ease, box-shadow .15s ease;
}
.cat-rail-icons a:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(16,24,40,.12);
}
.cat-rail-icons img{
  max-width:18px; max-height:18px; object-fit:contain; display:block;
}
.cat-rail-icons i{ font-size:16px; }

/* Slide-out panel */
.cat-panel{
  position:fixed;
  top:120px;
  left:8px;                              /* JS aligns this to the boxed layout */
  width:280px;
  max-height:calc(100vh - 140px);
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  box-shadow:0 12px 28px rgba(16,24,40,.16);
  overflow:auto;
  transform:translateX(-310px);
  transition:transform .25s ease;
  z-index:1060;
}
.cat-panel.is-open{ transform:translateX(0); }

.cat-panel-header{
  position:sticky; top:0; z-index:1;
  display:flex; align-items:center;
  background:var(--it-red); color:#fff;
  padding:.6rem .9rem; border-radius:12px 12px 0 0; font-weight:700;
}

/* Category list */
.cat-list{ list-style:none; margin:0; padding:.35rem 0; }
.cat-list li a{
  display:flex; align-items:center; gap:.6rem;
  padding:.55rem .85rem;
  color:#0b1320; text-decoration:none; font-weight:600;
}
.cat-list li a:hover{ background:#f9fafb; }
.cat-list li a i.bi-chevron-right{ color:#9ca3af; }
.cat-list li img{ width:18px; height:18px; object-fit:contain; }

/* Responsiveness */
@media (max-width: 991.98px){
  /* Slightly lower to account for tighter headers on tablet */
  .cat-rail, .cat-panel{ top:100px; }
}

@media (max-width: 767.98px){
  /* Hide the fixed rail on very small screens to avoid overlap; 
     you can switch to a header-based button if you want later. */
  .cat-rail{ display:none; }
  .cat-panel{ left:12px; top:92px; }
}
/* ===========================
   st — Product details (no conflicts)
   =========================== */

.st-title{color:#1e40af;font-weight:800;line-height:1.2}

/* figure + main image */
.st-fig{
  background:#fff;border:1px solid #e5e7eb;border-radius:12px;
  display:flex;align-items:center;justify-content:center;min-height:330px
}
.st-mainimg{max-height:300px;width:auto;object-fit:contain}

/* bottom thumbs */
.st-thumbs .st-thumb{
  background:#fff;border:1px solid #e5e7eb;border-radius:10px;
  padding:.35rem;cursor:pointer;transition:box-shadow .15s,transform .15s
}
.st-thumbs .st-thumb:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(16,24,40,.12)}
.st-thumbs .st-thumb img{display:block;height:42px;width:auto;object-fit:contain}
.st-thumb.is-active{border-color:#0ea5e9;box-shadow:0 0 0 3px rgba(14,165,233,.15)}

/* key features */
.st-kf{font-size:.95rem}
.st-kf-title{font-weight:800;color:#111827;margin-bottom:.35rem}
.st-kf-list{margin:0 0 .25rem 1rem;padding:0;color:#374151}
.st-more{color:#0b63d1;text-decoration:none}
.st-more:hover{text-decoration:underline}

/* payment box */
.st-pay{margin-top:1rem}
.st-pay-head{font-weight:700;margin-bottom:.5rem}
.st-pay-row{display:flex;gap:.5rem;align-items:stretch;cursor:pointer}
.st-pay-row input{margin-top:.6rem}
.st-pay-box{
  flex:1;border:2px solid #e5e7eb;border-radius:10px;padding:.7rem .9rem;background:#fff
}
.st-price{font-weight:800;font-size:1.15rem;color:#111827}
.st-pay-note{font-size:.8rem;color:#6b7280;line-height:1.2;margin-top:.25rem}

/* spec table */
.st-section{font-weight:800;color:#111827}
.st-spec{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden}
.st-spec th{width:240px;background:#f9fafb;color:#111827;font-weight:700;border-color:#eef2ff!important}
.st-spec td{color:#111827;border-color:#eef2ff!important}

/* bullets */
.st-bullets{margin:1rem 0 0 1.1rem;color:#374151}
.st-bullets li{margin:.25rem 0}

/* description */
.st-subtitle{font-weight:800;color:#111827}
.st-text{color:#374151}

/* similar products */
.st-sim-title{font-weight:800;color:#111827;font-size:clamp(1.5rem,1.1rem+1.2vw,2.2rem)}
.st-card{background:#fff;border:1px solid rgba(17,24,39,.08);border-radius:12px;text-decoration:none;transition:transform .15s,box-shadow .15s}
.st-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(16,24,40,.1)}
.st-card-img{height:150px;display:flex;align-items:center;justify-content:center;background:#fafafa;border-radius:12px 12px 0 0;overflow:hidden}
.st-card-img img{max-height:120px;width:auto;object-fit:contain}
.st-card-body{padding:.55rem .7rem .8rem}
.st-card-title{color:#111827;font-weight:700;font-size:.95rem;line-height:1.25;min-height:2.4em}
.st-card-price{display:flex;gap:.45rem;align-items:baseline;margin-top:.25rem}
.st-card-price .old{color:#9ca3af;text-decoration:line-through;font-size:.9rem}
.st-card-price .new{color:#FD1115;font-weight:800}

/* 5-up helper like your site */
@media (min-width:1200px){.col-xl-2-4{flex:0 0 20%;max-width:20%}}
@media (max-width:991.98px){
  .st-mainimg{max-height:280px}
  .st-card-img{height:140px}
}
/* ====== st — payment dual price styling ====== */
.st-price-discount, .st-price-regular {
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: .25rem;
}
.st-discount {
  color: #16a34a;              /* green discount */
  font-weight: 800;
}
.st-regular {
  color: #9ca3af;              /* gray regular price */
  text-decoration: line-through;
  font-weight: 600;
}
/* ====== st — WhatsApp contact button ====== */
.st-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #25D366;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: .45rem .9rem;
  border-radius: 8px;
  transition: background .2s ease;
}
.st-whatsapp-btn:hover {
  background: #1da955;
  text-decoration: none;
  color: #fff;
}
.st-whatsapp-icon {
  width: 22px;
  height: 22px;
  display: block;
}
