:root {
  --navy: #0c3364;
  --green: #1c9b3b;
  --green-light: #54d982;
  --blue-light: #73c5ff;
  --text-muted: #d1dfef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
}

/* =========================================
   HERO BACKGROUND
========================================= */

.modern-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 690px;
  display: flex;
  align-items: center;
  padding: 160px 0px 90px 0px;
  color: #fff;
  background:
    radial-gradient(
      ellipse at 83% 36%,
      rgba(28, 155, 59, 0.18),
      transparent 33%
    ),
    radial-gradient(
      ellipse at 20% 5%,
      rgba(75, 160, 245, 0.16),
      transparent 43%
    ),
    linear-gradient(125deg, #071b34 0%, #0c3364 58%, #071c37 100%);
}

/* Animated Three.js background */
.modern-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.modern-hero-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Soft decorative light */
.hero-light {
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.19;
  pointer-events: none;
  animation: lightDrift 9s ease-in-out infinite alternate;
}

.hero-light-one {
  top: -200px;
  left: -100px;
  background: #55b7ff;
}

.hero-light-two {
  right: -150px;
  bottom: -180px;
  background: #1c9b3b;
  animation-delay: -4s;
}

@keyframes lightDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(35px, 45px, 0);
  }
}

/* =========================================
   LEFT CONTENT
========================================= */

.modern-hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.hero-mini-title {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 24px;
  color: #9be8b0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.hero-mini-title::before {
  content: "";
  width: 29px;
  height: 2px;
  background: var(--green-light);
}

.hero-title {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
}

.hero-title .highlight {
  display: inline-block;
  color: transparent;
  background: linear-gradient(
    100deg,
    #7ce6a0 0%,
    #31c86b 45%,
    #7acaff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-description {
  max-width: 510px;
  margin: 0 0 30px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.9;
}

/* Buttons */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 53px;
  padding: 14px 25px;
  border: 1px solid transparent;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.hero-btn-primary {
  color: #fff;
  background: linear-gradient(110deg, #1c9b3b, #42ca72);
  box-shadow: 0 10px 28px rgba(28, 155, 59, 0.22);
}

.hero-btn-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(28, 155, 59, 0.36);
}

.hero-btn .arrow {
  font-size: 19px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.hero-btn-primary:hover .arrow {
  transform: translateX(4px);
}

.hero-btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.055);
}

.hero-btn-secondary:hover {
  color: #fff;
  border-color: #6edc94;
  background: rgba(255, 255, 255, 0.11);
}

/* Small feature highlights */

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 36px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-feature:first-child {
  padding-left: 0;
}

.hero-feature:last-child {
  border-right: 0;
}

.hero-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  border: 1px solid rgba(84, 217, 130, 0.45);
  border-radius: 50%;
  color: #76e69b;
  font-size: 16px;
}

.hero-feature-text {
  color: #e2ebf7;
  font-size: 12px;
  line-height: 1.5;
}

/* =========================================
   RIGHT IMAGE - NO BOX OR BORDER
========================================= */

.modern-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 490px;
  isolation: isolate;
}

/* Large circular glow behind image */
.hero-orb {
  position: absolute;
  z-index: -2;
  width: min(390px, 78%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 27%,
    rgba(117, 204, 255, 0.55),
    rgba(25, 113, 181, 0.24) 48%,
    rgba(28, 155, 59, 0.13) 70%,
    transparent 73%
  );
  box-shadow:
    inset 0 0 55px rgba(91, 190, 255, 0.15),
    0 0 85px rgba(34, 136, 204, 0.13);
  animation: orbBreathing 6s ease-in-out infinite;
}

@keyframes orbBreathing {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

/* Orbit rings */
.hero-orbit {
  position: absolute;
  z-index: -1;
  width: 108%;
  max-width: 530px;
  aspect-ratio: 1;
  border: 1px solid rgba(110, 200, 255, 0.45);
  border-radius: 50%;
  transform: rotate(-27deg) scaleY(0.48);
  pointer-events: none;
}

.hero-orbit-two {
  width: 119%;
  border-color: rgba(84, 217, 130, 0.48);
  transform: rotate(29deg) scaleY(0.55);
  animation: orbitRotate 20s linear infinite;
}

.hero-orbit-three {
  width: 94%;
  border-style: dashed;
  border-color: rgba(140, 211, 255, 0.25);
  transform: rotate(57deg) scaleY(0.65);
  animation: orbitRotate 28s linear infinite reverse;
}

@keyframes orbitRotate {
  from {
    rotate: 0deg;
  }
  to {
    rotate: 360deg;
  }
}

/* Image floats without a card */
.hero-main-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 108%;
  max-width: 530px;
  height: auto;
  object-fit: contain;
  border: none;
  outline: none;
  background: transparent;
  filter:
    drop-shadow(0 35px 32px rgba(0, 0, 0, 0.38))
    drop-shadow(0 0 24px rgba(66, 172, 242, 0.12));
  animation: imageFloat 5s ease-in-out infinite;
  will-change: transform;
}

@keyframes imageFloat {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-17px) rotate(1deg);
  }
}

/* Decorative geometric shapes */

.hero-shape {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.hero-triangle {
  top: 9%;
  left: 8%;
  width: 0;
  height: 0;
  border-left: 23px solid transparent;
  border-right: 23px solid transparent;
  border-bottom: 43px solid #45d47b;
  filter: drop-shadow(0 0 16px rgba(69, 212, 123, 0.38));
  animation: shapeFloat 4.5s ease-in-out infinite;
}

.hero-sphere {
  top: 15%;
  right: 6%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 25%,
    #d0f5ff,
    #55c5ee 40%,
    #168b60 78%
  );
  box-shadow: 0 0 24px rgba(91, 204, 237, 0.28);
  animation: shapeFloat 5s ease-in-out infinite -2s;
}

.hero-small-sphere {
  bottom: 9%;
  left: 12%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 28% 24%,
    #c7f8ff,
    #41c8bd 45%,
    #0c5b8a 85%
  );
  box-shadow: 0 0 26px rgba(55, 196, 174, 0.18);
  animation: shapeFloat 5.5s ease-in-out infinite -1s;
}

@keyframes shapeFloat {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -15px;
  }
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 991.98px) {
  .modern-hero {
    min-height: auto;
    padding: 70px 0 75px;
  }

  .modern-hero-content {
    max-width: 680px;
    margin: 0 auto;
  }

  .modern-hero-visual {
    min-height: 400px;
    margin-top: 25px;
  }

  .hero-main-image {
    width: 85%;
    max-width: 470px;
  }

  .hero-orb {
    width: 340px;
    max-width: 70%;
  }

  .hero-orbit {
    max-width: 470px;
  }

  .hero-features {
    gap: 15px;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 575.98px) {
  .modern-hero {
    padding: 48px 0 45px;
  }

  .hero-mini-title {
    margin-bottom: 18px;
    font-size: 10px;
    letter-spacing: 1.6px;
    padding-top: 50px;
  }

  .hero-title {
    margin-bottom: 18px;
    font-size: clamp(35px, 9.5vw, 46px);
    line-height: 1.13;
    letter-spacing: -1.2px;
  }

  .hero-description {
    margin-bottom: 23px;
    font-size: 14px;
    line-height: 1.85;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .hero-btn {
    width: 100%;
    min-height: 50px;
  }

  .hero-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 27px;
  }

  .hero-feature,
  .hero-feature:first-child {
    padding: 0;
    border-right: 0;
  }

  .modern-hero-visual {
    min-height: 300px;
    margin-top: 10px;
  }

  .hero-main-image {
    width: 94%;
    max-width: 390px;
  }

  .hero-orb {
    width: 265px;
    max-width: 75%;
  }

  .hero-orbit {
    width: 100%;
  }

  .hero-orbit-two {
    width: 112%;
  }

  .hero-triangle {
    top: 7%;
    left: 5%;
    transform: scale(0.75);
  }

  .hero-sphere {
    top: 12%;
    right: 4%;
    width: 23px;
    height: 23px;
  }

  .hero-small-sphere {
    bottom: 5%;
    left: 7%;
    width: 35px;
    height: 35px;
  }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-light,
  .hero-orb,
  .hero-orbit,
  .hero-main-image,
  .hero-shape {
    animation: none !important;
  }

  .hero-btn {
    transition: none;
  }
}




/*sencond section*/
  
  
  
 /* ================= CATEGORY BAR ================= */
  .category-bar{background:#fff;border-bottom:1px solid #d9dfe8;position:sticky;top:0;z-index:20; margin-top:30px;}
  .category-list{
    max-width:1300px;margin:0 auto;display:flex;gap:6px;
    overflow-x:auto;scrollbar-width:none;justify-content:space-between;min-height:128px;
  }
  .category-list::-webkit-scrollbar{display:none}
  .category-item{
    flex:1 0 110px;min-width:110px;background:none;border:0;cursor:pointer;
    display:flex;flex-direction:column;align-items:center;gap:10px;
    padding:10px 6px 12px;font-family:inherit;
    transition:background .2s, transform .2s;
  }
  .category-item img{width:80px;height:62px;object-fit:contain;transition:transform .25s}
  .category-item .name{font-size:14px;font-weight:700;color:#000;text-align:center;line-height:1.25}
  .category-item .sub{display:block;font-size:12.5px;font-weight:400;color:#555}
  .category-item:hover{background:#f3f7fd}
  .category-item:hover img{transform:translateY(-3px) scale(1.06)}
  .category-item.active{background:#e9f1fe;box-shadow:inset 0 -3px 0 #09264b}
  .category-item.active .name{color:var(--blue)}
  .category-item:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

  /* ================= SECTION ================= */
  .products-section{max-width:1300px;margin:0 auto;padding:34px 20px 80px}
  .section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:10px;flex-wrap:wrap}
  .section-head h2{font-size:26px;font-weight:800;color:var(--navy);display:flex;align-items:center;gap:12px}
  .section-head h2::before{content:"";width:6px;height:28px;border-radius:4px;background:linear-gradient(var(--blue-2),var(--blue))}
  .count-pill{font-size:13px;font-weight:700;color:var(--blue);background:#e4eefe;padding:7px 14px;border-radius:30px}

  .product-grid{display:grid;gap:28px;grid-template-columns:repeat(3,minmax(0,1fr))}
  @media (min-width:1280px){.product-grid{gap:36px}}
  @media (max-width:640px){.product-grid{grid-template-columns:1fr;gap:20px}}

  /* ================= PRODUCT CARD (Square-style) ================= */
  .product-card{
    position:relative;background:#fff;border-radius:24px;overflow:hidden;
    display:flex;flex-direction:column;align-items:center;text-align:center;
    padding:36px 28px 40px;border:1px solid #e9eef6;
    transition:transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
    animation:cardIn .5s cubic-bezier(.2,.8,.2,1) both;
  }
  .product-card:hover{transform:translateY(-6px);box-shadow:0 20px 40px rgba(20,40,75,.12);border-color:#d3e1f8}
  @keyframes cardIn{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}

  .badge{
    position:absolute;top:18px;left:18px;z-index:2;font-size:11.5px;font-weight:700;letter-spacing:.3px;
    color:#fff;background:#006aff;padding:6px 12px;border-radius:30px;
  }
  .badge.hot{background:#f0531c}

  .card-image{
    width:100%;height:340px;display:flex;align-items:center;justify-content:center;
    margin-bottom:34px;
  }
  .card-image img{
    max-width:100%;max-height:100%;object-fit:contain;
    opacity:0;transition:opacity .4s, transform .4s;
  }
  .card-image img.loaded{opacity:1}
  .product-card:hover .card-image img{transform:scale(1.04)}

  .card-body{display:flex;flex-direction:column;align-items:center;width:100%;max-width:520px;flex:1}
  .card-name{font-size:16px;font-weight:700;color:#000;line-height:1.3;margin-bottom:14px}
  .card-title{
    font-size:22px;font-weight:600;color:#000;line-height:1.3;letter-spacing:-.2px;margin-bottom:12px;
    display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
  }
  .card-price{font-size:16px;font-weight:400;color:#6b6b6b;line-height:1.4;margin-top:auto;margin-bottom:28px}
  .card-price sup{font-size:11px;margin-left:1px}

  .card-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
  .btn{
    font-family:inherit;font-size:16px;font-weight:600;line-height:1;cursor:pointer;
    padding:14px 24px;border-radius:999px;border:1px solid #006aff;
    transition:background .2s, color .2s, transform .15s, filter .2s;white-space:nowrap;
  }
  .btn-outline{background:#fff;color:#006aff}
  .btn-outline:hover{background:#eef5ff}
  .add-btn{background:#006aff;color:#fff}
  .add-btn:hover{filter:brightness(1.1)}
  .btn:active{transform:scale(.96)}
  .add-btn.added{background:var(--green);border-color:var(--green)}
  .btn:focus-visible{outline:2px solid #006aff;outline-offset:3px}

  /* Tablet */
  @media (max-width:1024px){
    .product-card{padding:30px 22px 34px}
    .card-image{height:280px;margin-bottom:28px}
    .card-title{font-size:20px}
  }
  /* Large phone / small tablet */
  @media (max-width:820px){
    .product-grid{gap:18px}
    .product-card{padding:26px 16px 28px;border-radius:20px}
    .card-image{height:220px;margin-bottom:22px}
    .card-name{font-size:14px;margin-bottom:10px}
    .card-title{font-size:17px}
    .card-price{font-size:14px;margin-bottom:22px}
    .btn{font-size:14px;padding:12px 18px}
  }
  /* Phone */
  @media (max-width:640px){
    .product-card{padding:28px 20px 30px}
    .card-image{height:250px}
    .card-title{font-size:19px}
    .card-price{font-size:15px}
    .card-actions{width:100%;flex-wrap:nowrap}
    .btn{flex:1;font-size:15px;padding:14px 12px}
  }

  /* ================= SKELETON (shown while loading, prevents the flash) ================= */
  .skeleton{background:#fff;border-radius:24px;border:1px solid #e9eef6;overflow:hidden;padding:36px 28px;display:flex;flex-direction:column;align-items:center;gap:14px}
  .sk{background:linear-gradient(90deg,#edf1f7 25%,#f8fafd 45%,#edf1f7 65%);background-size:200% 100%;animation:shimmer 1.2s infinite;border-radius:10px}
  @keyframes shimmer{from{background-position:200% 0}to{background-position:-200% 0}}
  .skeleton .sk-img{width:100%;height:300px;margin-bottom:16px}
  .sk-line{height:18px;width:70%}.sk-line.s{width:45%}.sk-price{height:16px;width:55%}.sk-btns{display:flex;gap:10px;margin-top:10px}.sk-btn{height:46px;width:120px;border-radius:999px}
  .sk-cat{flex:1 0 110px;display:flex;flex-direction:column;align-items:center;gap:12px;padding:10px 6px}
  .sk-cat .a{width:76px;height:58px}.sk-cat .b{width:70px;height:14px}
  @media (max-width:820px){.skeleton .sk-img{height:200px}}

  .empty{grid-column:1/-1;text-align:center;background:#fff;border-radius:26px;padding:70px 20px;color:var(--muted);font-size:16px;font-weight:600;box-shadow:0 8px 28px rgba(20,40,75,.06)}
  .empty b{display:block;font-size:20px;color:var(--navy);margin-bottom:6px}

  .cart-badge{position:fixed;right:22px;bottom:22px;z-index:30;background:var(--navy);color:#fff;padding:14px 22px;border-radius:40px;font-weight:700;font-size:15px;box-shadow:0 12px 30px rgba(0,0,0,.28);display:flex;gap:10px;align-items:center}
  .cart-badge b{background:var(--blue);border-radius:20px;padding:2px 11px}