*{margin:0;padding:0;box-sizing:border-box;font-family:Arial,sans-serif}
body{background:#f5f9ff;color:#0d2545}

.topbar{background:#006fd1;color:white;min-height:34px;font-size:13px;font-weight:600;display:flex;align-items:center}
.topbar-inner{width:100%;max-width:1400px;margin:0 auto;padding:0 8%;display:flex;justify-content:space-between;align-items:center}
.topbar-left,.topbar-right{display:flex;align-items:center;gap:22px;white-space:nowrap}
.topbar-item{display:flex;align-items:center;gap:6px;font-size:12px;line-height:1}

.header{height:76px;background:white;padding:0 8%;display:flex;align-items:center;justify-content:space-between;box-shadow:0 5px 18px rgba(0,0,0,.05)}
.brand{display:flex;align-items:center;gap:10px;color:#087dde;font-size:24px;font-weight:900}
.brand img{width:48px;height:48px;object-fit:contain}
nav{display:flex;gap:34px}
nav a{
    text-decoration:none;
    color:#667085;
    font-size:13px;
    font-weight:800;
    transition:.2s;
}

nav a:hover{
    color:#087dde;
}

nav a.active{
    color:#087dde;
}
.cart{
    position:relative;
    width:36px;
    height:36px;
    border-radius:14px;
    background:#fff;
    border:1px solid #dce7f3;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:#087dde;
    transition:.2s;
}

.cart:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

#cart-count{
    position:absolute;
    top:-4px;
    right:-4px;
    width:16px;
    height:16px;
    border-radius:50%;
    background:#087dde;
    color:#fff;
    font-size:09px;
    font-weight:900;
    display:flex;
    align-items:center;
    justify-content:center;
}

.hero{background:white;padding:34px 8%;display:grid;grid-template-columns:1fr 1fr;gap:35px;align-items:center}
.hero h1{font-size:38px;line-height:1.12;color:#102b52;margin-bottom:14px;max-width:560px}
.hero p{font-size:16px;color:#53657a;line-height:1.5;margin-bottom:22px;max-width:500px}
.hero-tagline{font-size:13px;font-weight:900;letter-spacing:2px;color:#087dde;margin-bottom:16px}
.buttons{display:flex;gap:12px}
.btn{padding:12px 22px;border-radius:7px;border:none;font-weight:900;font-size:12px;cursor:pointer}
.primary{background:#087dde;color:white}
.secondary{background:white;color:#087dde;border:1px solid #087dde}

.hero-products{height:310px;background:url("images/hero-products.png") center/contain no-repeat}

.features{padding:22px 8%;display:grid;grid-template-columns:repeat(4,1fr);gap:15px}
.feature{background:white;border-radius:10px;padding:16px;text-align:center;box-shadow:0 7px 22px rgba(0,0,0,.055)}
.feature i{font-size:28px;color:#087dde;margin-bottom:8px}
.feature strong{display:block;font-size:13px;color:#102b52;margin-bottom:5px}
.feature span{font-size:12px;color:#607184}

.section{padding:28px 8%}
.section h2{text-align:center;font-size:24px;margin-bottom:22px;color:#102b52}

.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.category{background:white;border-radius:10px;overflow:hidden;text-align:center;box-shadow:0 7px 22px rgba(0,0,0,.06);text-decoration:none!important;color:inherit!important}
.category img{width:100%;height:260px;object-fit:cover;display:block;background:white}
.category h3{font-size:13px;color:#102b52;padding:10px 8px 4px;text-decoration:none!important}
.category:link,.category:visited,.category:hover,.category:active{text-decoration:none!important;color:inherit!important}
.category button{margin-bottom:12px;background:white;color:#087dde;border:1px solid #087dde;border-radius:5px;padding:5px 14px;font-size:11px;font-weight:800}

.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.product{background:white;border-radius:10px;padding:14px;text-align:left;box-shadow:0 7px 22px rgba(0,0,0,.06)}
.product img{width:100%;height:135px;object-fit:contain;margin-bottom:10px}
.product h3{font-size:13px;color:#102b52;min-height:34px}
.price{color:#087dde;font-weight:900;margin:8px 0;font-size:13px}
.product button{
    background:#087dde;
    color:white;
    border:none;
    border-radius:6px;
    padding:8px 12px;
    font-size:12px;
    font-weight:900;
    position:relative;
    overflow:hidden;
    transition:all .2s ease;
}

.product button:active{
    transform:scale(.96);
}

.product button.cart-added{
    background:#16a34a !important;
    transform:scale(1.03);
    box-shadow:0 0 0 4px rgba(22,163,74,.18);
}

.product button.cart-added::after{
    content:" ✓";
    font-weight:900;
    margin-left:8px;
}

.cta{margin:20px 8%;background:#eaf5ff;border-radius:10px;padding:18px;display:flex;align-items:center;justify-content:space-between}
.cta h3{font-size:17px;color:#102b52}
.cta button{background:#087dde;color:white}
footer{background:#087dde;color:white;padding:18px 8%;text-align:center;font-size:13px}

/* MOBILE */
@media(max-width:900px){
  .topbar{display:none}
  .header{height:64px;padding:0 5%}
  .brand span{font-size:18px}
  .brand img{width:42px;height:42px}
  nav{display:none}

  .hero{
    position:relative;
    display:block;
    height:420px;
    padding:24px 5% 0;
    overflow:hidden;
  }

  .hero > div:first-child{
    position:relative;
    z-index:2;
    width:100%;
  }

  .hero-tagline{
    font-size:10px;
    letter-spacing:1.5px;
    margin-bottom:14px;
    white-space:nowrap;
  }

  .hero h1{
    font-size:25px;
    line-height:1.16;
    margin-bottom:14px;
    max-width:340px;
  }

  .hero p{
    font-size:14px;
    line-height:1.45;
    margin-bottom:18px;
    max-width:260px;
  }

  .buttons{display:block}
  .secondary{display:none}
  .btn{padding:12px 18px;font-size:12px}

  .hero-products{
    position:absolute;
    right:-5px;
    top:245px;
    width:72%;
    height:170px;
    background:url("images/hero-products.png") center bottom/contain no-repeat;
    z-index:1;
  }

  .features{
    grid-template-columns:repeat(4,1fr);
    gap:6px;
    padding:14px 5%;
  }

  .feature{padding:10px 5px}
  .feature i{font-size:24px}
  .feature strong{font-size:10px}
  .feature span{display:none}

  .section{padding:22px 5%}
  .section h2{text-align:left;font-size:26px}

  .category-grid{grid-template-columns:repeat(4,1fr);gap:8px}
  .category img{height:70px}
  .category h3{font-size:10px}
  .category button{display:none}

  .product-grid{grid-template-columns:1fr}
  .cta{margin:18px 5%;flex-direction:column;gap:12px;text-align:center}
}
.btn-add{
    transition:all .2s ease;
}

.btn-add:active{
    transform:scale(0.95);
}

.btn-add.cart-added{
    background:#16a34a !important;
    transform:scale(0.98);
    box-shadow:0 0 0 4px rgba(22,163,74,.2);
}

.btn-add.cart-added::after{
    content:" ✓";
    font-weight:900;
    margin-left:6px;
}
.popular-products{
    padding:35px 8%;
    background:#f5f9ff;
}

.popular-products h2{
    text-align:center;
    font-size:26px;
    margin-bottom:25px;
    color:#102b52;
    text-transform:uppercase;
}

.popular-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.popular-card{
    padding:12px;
}

.popular-card img{
    height:120px;
}

.popular-card h3{
    font-size:14px;
    min-height:40px;
    text-align:center;
}

.popular-card button{
    width:100%;
    font-size:12px;
    padding:10px;
}
.popular-card button{
    transition: all .25s ease;
}

.popular-card button:active{
    transform: scale(0.90);
}

.popular-card button.cart-added{
    background:#16a34a !important;
    transform:scale(1.05);
    box-shadow:0 0 15px rgba(22,163,74,.45);
}
.btn-add{
    transition:all .25s ease;
    cursor:pointer;
}

.btn-add:active{
    transform:scale(.92);
}

.btn-add.cart-added{
    background:#16a34a !important;
    color:#fff !important;
    border-color:#16a34a !important;
    transform:scale(1.05);
    box-shadow:0 0 15px rgba(22,163,74,.4);
}
.product-card h3{
    font-size:16px;
    font-weight:800;
    color:#102b52;
    text-align:center;
    min-height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:12px 0;
}

.product-card .category-tag{
    display:block;
    text-align:center;
}

.product-card .price,
.product-price{
    text-align:center;
    font-size:18px;
    font-weight:900;
    color:#087dde;
    margin:6px 0 14px;
}
@media(max-width:600px){
  .popular-products{
    padding:22px 14px;
  }

  .popular-grid{
    grid-template-columns:repeat(2,1fr);
    gap:12px;
  }

  .popular-card{
    background:white;
    border-radius:14px;
    padding:10px;
    box-shadow:0 7px 22px rgba(0,0,0,.06);
  }

  .popular-card img{
    width:100%;
    height:95px;
    object-fit:contain;
  }

  .popular-card h3{
    font-size:13px;
    line-height:1.2;
    min-height:46px;
    text-align:center;
    margin:8px 0;
  }

  .popular-card button{
    font-size:11px;
    padding:8px 4px;
    line-height:1.1;
  }
}
.loading-products {
    width: 100%;
    text-align: center;
    padding: 50px 20px;
    font-size: 20px;
    color: #1e3a8a;
}