
:root{--navy:#00134e;--blue:#1769ff;--cyan:#13cdf8;--purple:#6c2cf2;--ink:#111a39;--muted:#68738d;--line:#e1e7f1;--bg:#f7f9fd;--white:#fff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink)}a{text-decoration:none;color:inherit}.container{width:min(1420px,calc(100% - 44px));margin:auto}
.topbar{height:34px;background:#020d36;color:#fff;font-size:12px}.topbar .container{height:100%;display:flex;align-items:center;justify-content:space-between}.topbar-group{display:flex;gap:26px}
.header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}.header-main{height:78px;display:grid;grid-template-columns:235px 1fr auto;gap:28px;align-items:center}.brand img{width:205px;display:block}
.search{height:46px;border:1px solid #dbe3f0;border-radius:8px;display:grid;grid-template-columns:1fr 160px 54px;overflow:hidden}.search input,.search select{border:0;outline:0;background:#fff;padding:0 18px;color:#6f7890}.search select{border-left:1px solid #edf0f6}.search button{border:0;background:linear-gradient(135deg,#186cff,#2656ea);color:#fff;font-size:21px}
.account-nav{display:flex;gap:24px;align-items:center}.account-nav a{display:flex;gap:7px;align-items:center;font-size:21px}.account-nav span{font-size:13px}.account-nav small{display:block;color:#7b859c}.nav-row{height:60px;display:flex;align-items:center;gap:30px}.category-btn{height:42px;padding:0 22px;border:0;border-radius:6px;background:linear-gradient(135deg,#1669f7,#2a56e8);color:white;font-weight:700}.main-nav{display:flex;gap:31px;font-size:14px;flex:1}.location{display:flex;gap:9px;align-items:center;font-size:12px;color:#5d6882}.location strong{color:#15203e}
.hero-banner{margin-top:18px;border-radius:15px;overflow:hidden;background:#111a55;box-shadow:0 12px 30px rgba(9,22,75,.12)}.hero-banner img{width:100%;display:block}
.trust-strip{margin-top:18px;background:#fff;border:1px solid var(--line);border-radius:13px;display:grid;grid-template-columns:repeat(5,1fr);padding:20px 15px;box-shadow:0 7px 22px rgba(14,27,75,.04)}.trust-strip article{display:flex;gap:13px;align-items:center;padding:0 18px;border-right:1px solid #e8edf5}.trust-strip article:last-child{border-right:0}.trust-icon{font-size:29px;color:#166cff}.trust-strip strong{display:block;font-size:13px}.trust-strip small{display:block;color:#7a859d;margin-top:3px}
.section{padding-top:28px}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.section-head h2{margin:0;font-size:21px}.section-head a{font-size:13px;color:#166cff;font-weight:700}
.category-grid{display:grid;grid-template-columns:repeat(9,1fr);gap:16px}.category-card{min-height:114px;border:1px solid var(--line);border-radius:12px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}.category-card img{width:68px;height:68px;object-fit:contain}.category-card span{font-size:13px;font-weight:700}
.product-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}.product-card{position:relative;border:1px solid var(--line);border-radius:12px;background:#fff;padding:14px;box-shadow:0 4px 14px rgba(10,25,74,.04)}.product-card img{width:100%;aspect-ratio:1/1;object-fit:contain}.badge{position:absolute;left:10px;top:9px;padding:4px 8px;border-radius:5px;background:#1b6cff;color:#fff;font-size:10px;font-weight:800}.product-card:nth-child(2) .badge,.product-card:nth-child(4) .badge{background:#8a43ec}.product-card:nth-child(6) .badge{background:#ff4f6f}.heart{position:absolute;right:10px;top:8px;border:1px solid #dfe5ef;background:#fff;width:28px;height:28px;border-radius:50%;color:#7c879d}.product-card h3{font-size:14px;margin:9px 0 4px}.detail{font-size:11px;color:#748099;margin:0 0 8px}.price{font-weight:800;font-size:16px}.price del{font-size:11px;color:#9aa4b7;margin-left:5px}.rating{color:#f4a300;font-size:12px;margin-top:7px}.rating span{color:#7d879d}.shop{font-size:12px;color:#46526d;margin-top:5px}.shop b{color:#176cff}
.flash{margin:30px 0 40px;padding:14px 20px;border:1px solid var(--line);border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:space-between}.flash-left{display:flex;gap:12px;align-items:center}.flash-icon{font-size:34px;color:#d347ed}.countdown{display:flex;gap:8px;align-items:center}.countdown b{background:#f0f3f8;padding:7px 10px;border-radius:7px}.flash a{background:#176cff;color:#fff;padding:11px 18px;border-radius:8px;font-weight:700;font-size:13px}
footer{background:#fff;border-top:1px solid var(--line)}.footer-inner{min-height:86px;display:flex;align-items:center;justify-content:space-between;color:#7b859a;font-size:13px}.footer-inner img{width:178px}
@media(max-width:1180px){.header-main{grid-template-columns:190px 1fr}.account-nav{display:none}.product-grid{grid-template-columns:repeat(3,1fr)}.category-grid{grid-template-columns:repeat(5,1fr)}.trust-strip{grid-template-columns:repeat(2,1fr)}.trust-strip article{border-right:0;border-bottom:1px solid var(--line);padding:14px}}
@media(max-width:760px){.container{width:min(100% - 24px,1420px)}.topbar{display:none}.header-main{grid-template-columns:1fr;height:auto;padding:14px 0}.brand img{width:178px}.search{grid-template-columns:1fr 46px}.search select{display:none}.main-nav{display:none}.location{margin-left:auto}.hero-banner img{min-height:260px;object-fit:cover;object-position:center}.trust-strip{grid-template-columns:1fr}.category-grid{grid-template-columns:repeat(2,1fr)}.product-grid{grid-template-columns:repeat(2,1fr)}.flash{align-items:flex-start;gap:16px;flex-direction:column}.countdown{flex-wrap:wrap}.footer-inner{flex-direction:column;justify-content:center;gap:10px;padding:20px 0}}


.site-footer{margin-top:44px;color:#dce6ff;background:#03103d}
.footer-newsletter{padding:34px 0;background:linear-gradient(110deg,#0b2a88 0%,#125fe3 52%,#7133ed 100%)}
.newsletter-inner{display:grid;grid-template-columns:1fr minmax(360px,.72fr);gap:40px;align-items:center}
.newsletter-kicker{display:inline-block;margin-bottom:6px;color:#8deaff;font-size:12px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}
.newsletter-inner h2{margin:0;color:#fff;font-size:26px}
.newsletter-inner p{margin:8px 0 0;color:#dbe8ff;font-size:14px}
.newsletter-form{height:50px;display:grid;grid-template-columns:1fr auto;padding:5px;border:1px solid rgba(255,255,255,.25);border-radius:10px;background:rgba(255,255,255,.12);backdrop-filter:blur(8px)}
.newsletter-form input{min-width:0;border:0;outline:0;padding:0 14px;background:transparent;color:#fff}
.newsletter-form input::placeholder{color:#d4def4}
.newsletter-form button{border:0;border-radius:7px;padding:0 22px;background:#fff;color:#164fc9;font-weight:800;cursor:pointer}
.footer-main{padding:52px 0 42px;background:radial-gradient(circle at 10% 10%,rgba(21,104,255,.18),transparent 24%),#03103d}
.footer-grid{display:grid;grid-template-columns:1.6fr repeat(4,1fr);gap:42px}
.footer-brand img{width:210px;display:block;filter:brightness(0) invert(1)}
.footer-brand p{max-width:330px;margin:20px 0;color:#aebbd8;font-size:14px;line-height:1.7}
.social-links{display:flex;gap:10px}
.social-links a{width:38px;height:38px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.16);border-radius:11px;background:rgba(255,255,255,.06);color:#fff;font-weight:800}
.social-links a:hover{background:linear-gradient(135deg,#176cff,#7d3ef0)}
.footer-column{display:flex;flex-direction:column;align-items:flex-start;gap:11px}
.footer-column h3{margin:0 0 7px;color:#fff;font-size:15px}
.footer-column a{color:#aebbd8;font-size:13px}
.footer-column a:hover{color:#62dfff;transform:translateX(2px)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);background:#020b2c}
.footer-bottom-inner{min-height:86px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.footer-bottom-inner>div:first-child{display:flex;flex-direction:column;gap:4px}
.footer-bottom strong{color:#fff;font-size:13px}
.footer-bottom span{color:#8f9dbd;font-size:12px}
.footer-copyright{display:flex;gap:22px;align-items:center}
@media(max-width:1020px){
 .newsletter-inner{grid-template-columns:1fr}
 .footer-grid{grid-template-columns:repeat(2,1fr)}
 .footer-brand{grid-column:1/-1}
}
@media(max-width:620px){
 .newsletter-inner h2{font-size:22px}
 .newsletter-form{grid-template-columns:1fr}
 .newsletter-form{height:auto;gap:8px;padding:8px}
 .newsletter-form input{height:42px}
 .newsletter-form button{height:42px}
 .footer-grid{grid-template-columns:1fr;gap:30px}
 .footer-brand{grid-column:auto}
 .footer-bottom-inner{padding:22px 0;align-items:flex-start;flex-direction:column}
 .footer-copyright{align-items:flex-start;flex-direction:column;gap:7px}
}

.gm-alert{margin-top:16px;padding:13px 16px;border-radius:9px;background:#eaf3ff;color:#0b4aaf}.gm-alert.error{background:#fff0f1;color:#a61b31}.gm-alert.success{background:#ebfaf2;color:#12633e}.gm-page{padding:34px 0 55px;min-height:55vh}.gm-page-head{margin-bottom:24px}.gm-page-head h1{margin:0;color:var(--navy);font-size:34px}.gm-page-head p{color:var(--muted)}.gm-content,.gm-auth{background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px}.gm-auth{max-width:620px;margin:auto}.gm-auth form,.gm-content form{display:grid;gap:15px}.gm-auth label,.gm-content label,.gm-form-grid label{display:grid;gap:7px;font-weight:600;font-size:13px}.gm-auth input,.gm-auth textarea,.gm-content input,.gm-content textarea,.gm-content select,.gm-filter input,.gm-filter select,.gm-form-grid input{width:100%;border:1px solid #dbe3ef;border-radius:8px;padding:12px;background:#fff}.gm-auth textarea,.gm-content textarea{min-height:130px}.gm-btn,.gm-small-btn{display:inline-flex;justify-content:center;align-items:center;border:0;border-radius:8px;background:linear-gradient(135deg,#176cff,#5e3cf0);color:#fff;padding:12px 18px;font-weight:800;cursor:pointer}.gm-small-btn{width:100%;margin-top:12px;padding:9px}.gm-link-btn{border:0;background:none;color:#d02d4c;cursor:pointer}.inline-form{position:absolute;right:10px;top:8px}.gm-filter{margin-bottom:20px}.gm-filter form{display:grid;grid-template-columns:1fr 200px 200px auto;gap:10px}.gm-filter button{border:0;border-radius:8px;background:#176cff;color:#fff;padding:0 20px}.gm-product-detail{display:grid;grid-template-columns:1fr 1fr;gap:40px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:30px}.gm-product-detail img{width:100%;max-height:480px;object-fit:contain}.gm-note{padding:13px;border-radius:9px;background:#f0f5ff;color:#425375;font-size:13px}.gm-list{display:grid;gap:12px}.gm-list article{background:#fff;border:1px solid var(--line);border-radius:12px;padding:17px}.gm-cart-row{display:grid!important;grid-template-columns:80px 1fr 150px 80px;gap:18px;align-items:center}.gm-cart-row img{width:70px;height:70px;object-fit:contain}.gm-summary{margin-top:20px;padding:20px;border-radius:12px;background:#fff;border:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.gm-account-grid{display:grid;grid-template-columns:220px 1fr;gap:24px}.gm-account-nav{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;height:max-content}.gm-account-nav a{padding:11px;border-radius:7px}.gm-account-nav a:hover{background:#eef4ff}.gm-form-grid{display:grid!important;grid-template-columns:1fr 1fr;gap:14px!important}.gm-card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.gm-card-grid a{padding:24px;border:1px solid var(--line);border-radius:12px;background:#fff;font-weight:800;color:#174cae}
@media(max-width:760px){.gm-filter form{grid-template-columns:1fr}.gm-product-detail,.gm-account-grid{grid-template-columns:1fr}.gm-cart-row{grid-template-columns:60px 1fr}.gm-cart-row form{grid-column:2}.gm-summary{align-items:flex-start;flex-direction:column}.gm-form-grid,.gm-card-grid{grid-template-columns:1fr!important}}


/* =========================================================
   GadgetMall v7 - Header / All Categories Alignment Fix
   ========================================================= */
.header{overflow:visible}
.header-main{position:relative;z-index:3}
.nav-row{
  position:relative;
  z-index:4;
  min-height:60px;
  height:auto;
  display:flex;
  align-items:center;
  gap:28px;
  padding:8px 0
}
.category-btn,.category-button{
  flex:0 0 auto;
  width:auto;
  min-width:178px;
  height:42px;
  margin:0;
  position:static;
  transform:none;
  align-self:center;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  white-space:nowrap;
  border-radius:8px;
  line-height:1
}
.main-nav{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:center;
  gap:28px;
  margin:0
}
.main-nav a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  white-space:nowrap
}
.location{
  flex:0 0 auto;
  margin-left:auto;
  align-self:center
}
.hero-banner,.hero{
  margin-top:18px;
  clear:both
}
@media(max-width:1180px){
  .nav-row{gap:18px}
  .category-btn,.category-button{min-width:160px}
  .main-nav{gap:18px}
}
@media(max-width:760px){
  .nav-row{
    min-height:54px;
    padding:6px 0;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:none
  }
  .nav-row::-webkit-scrollbar{display:none}
  .category-btn,.category-button{
    min-width:160px;
    height:40px;
    position:static
  }
  .main-nav{display:none}
  .location{margin-left:auto}
}


/* =========================================================
   GadgetMall v8 - Master Category Directory
   ========================================================= */
.gm-category-directory{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px
}
.gm-category-group{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:22px
}
.gm-category-group-head{
  display:flex;
  align-items:center;
  gap:14px;
  padding-bottom:16px;
  margin-bottom:16px;
  border-bottom:1px solid var(--line)
}
.gm-category-icon{
  width:52px;
  height:52px;
  flex:0 0 52px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:linear-gradient(135deg,#eef5ff,#f3edff);
  font-size:26px
}
.gm-category-group-head h2{
  margin:0 0 5px;
  color:var(--navy);
  font-size:18px
}
.gm-category-group-head a{
  color:#176cff;
  font-size:12px;
  font-weight:800
}
.gm-subcategory-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px 14px
}
.gm-subcategory-list a{
  padding:9px 10px;
  border-radius:8px;
  color:#46536f;
  font-size:13px
}
.gm-subcategory-list a:hover{
  color:#155ee9;
  background:#f0f5ff
}
.gm-home-category-grid{
  grid-template-columns:repeat(8,minmax(0,1fr))
}
.gm-home-category-icon{
  font-size:33px;
  line-height:1
}
.gm-home-category-grid .category-card{
  min-height:126px;
  padding:12px;
  text-align:center
}
.gm-home-category-grid .category-card span:last-child{
  line-height:1.25
}
@media(max-width:1180px){
  .gm-home-category-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))
  }
}
@media(max-width:760px){
  .gm-category-directory{
    grid-template-columns:1fr
  }
  .gm-subcategory-list{
    grid-template-columns:1fr
  }
  .gm-home-category-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}


/* =========================================================
   GadgetMall v9 - Homepage Category Cards / Icons Fix
   ========================================================= */
.gm-home-categories-section{
  display:block;
  padding-top:28px;
  margin:0;
  overflow:visible
}
.gm-home-categories-section .section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px
}
.gm-home-category-grid{
  display:grid!important;
  grid-template-columns:repeat(8,minmax(0,1fr));
  gap:16px;
  width:100%;
  visibility:visible!important;
  opacity:1!important;
  height:auto!important;
  min-height:126px;
  overflow:visible
}
.gm-home-category-card{
  min-height:126px;
  padding:14px 10px;
  display:flex!important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--ink);
  text-align:center;
  visibility:visible!important;
  opacity:1!important;
  box-shadow:0 4px 14px rgba(10,25,74,.04);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease
}
.gm-home-category-card:hover{
  transform:translateY(-3px);
  border-color:#b9cdfc;
  box-shadow:0 12px 26px rgba(19,64,170,.10)
}
.gm-home-category-icon{
  width:54px;
  height:54px;
  display:grid!important;
  place-items:center;
  border-radius:15px;
  background:linear-gradient(135deg,#eef5ff,#f3edff);
  font-size:29px;
  line-height:1;
  visibility:visible!important;
  opacity:1!important
}
.gm-home-category-name{
  display:block!important;
  color:var(--navy);
  font-size:13px;
  font-weight:800;
  line-height:1.25;
  visibility:visible!important;
  opacity:1!important
}
@media(max-width:1180px){
  .gm-home-category-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))
  }
}
@media(max-width:760px){
  .gm-home-category-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px
  }
  .gm-home-category-card{
    min-height:116px
  }
}
