*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:#0f172a;
  background:
    radial-gradient(circle at top left, rgba(255,107,0,.08), transparent 25%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 38%, #f8fafc 100%);
}
a{color:inherit}
img{max-width:100%;display:block}

.page-shell{
  max-width:1400px;
  margin:0 auto;
  padding:0 20px;
}

.hero-marketing-slider{
  position:relative;
  width:min(1400px, calc(100% - 40px));
  height:540px;
  margin:28px auto 24px;
  border-radius:36px;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(226,232,240,.85);
  box-shadow:
    0 30px 80px rgba(15,23,42,.10),
    0 8px 24px rgba(15,23,42,.06);
}

.hero-slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  z-index:0;
  transition:
    opacity .7s ease,
    transform .7s ease,
    visibility .7s ease;
  transform:scale(1.03);
}

.hero-slide.active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  z-index:2;
  transform:scale(1);
}

.hero-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.hero-slide::after{
  content:'';
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      to top,
      rgba(15,23,42,.34),
      rgba(15,23,42,.06),
      transparent
    );
  z-index:1;
}

.hero-slide-overlay{
  position:absolute;
  left:24px;
  bottom:24px;
  z-index:5;
  padding:14px 20px;
  border-radius:20px;
  background:rgba(15,23,42,.72);
  color:#fff;
  backdrop-filter:blur(16px);
  box-shadow:0 12px 24px rgba(0,0,0,.14);
}

.hero-slide-overlay span{
  font-size:15px;
  font-weight:900;
  letter-spacing:.02em;
}

.hero-slide-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:9;
  width:54px;
  height:54px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:#111827;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  transition:.25s ease;
  box-shadow:0 18px 40px rgba(15,23,42,.18);
}

.hero-slide-btn:hover{
  transform:translateY(-50%) scale(1.08);
  background:#fff;
}

.hero-slide-btn.prev{
  left:18px;
}

.hero-slide-btn.next{
  right:18px;
}

.hero-dots{
  position:absolute;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  z-index:10;
  display:flex;
  align-items:center;
  gap:8px;
}

.hero-dots span{
  width:10px;
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.6);
  border:1px solid rgba(255,255,255,.5);
  transition:.25s ease;
}

.hero-dots span.active{
  width:30px;
  background:#ff5a00;
}
.products{
  padding:24px 20px 90px;
  max-width:1400px;
  margin:0 auto;
}

.section-top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin:0 0 18px;
}

.section-top > div{
  min-width:0;
}

.section-top h2{
  margin:0;
  font-size:clamp(1.35rem, 2.2vw, 2rem);
  line-height:1.15;
  overflow:hidden;
  text-overflow:ellipsis;
}

.section-top p{
  margin:6px 0 0;
  color:#64748b;
  font-weight:700;
}

.product-grid{
   display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:16px;
  align-items:start;
}
.product-card{
  position:relative;
  border-radius:20px;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(15,23,42,.06);
  box-shadow:0 16px 34px rgba(15,23,42,.06);
  transition:transform .25s ease, box-shadow .25s ease;
  min-width:0;
  height:100%;
}
.product-card:hover{
  transform:translateY(-6px);
  box-shadow:0 24px 44px rgba(15,23,42,.12);
}
.product-link{
  display:block;
  text-decoration:none;
}
.product-card img{
  width:100%;
  aspect-ratio: 1 / 1.18;
  object-fit:cover;
  background:#f8fafc;
}
.product-card-body{
  padding:7px 58px 14px 10px;
}
.product-card h3{
  margin:0 0 4px;
  font-size:16px;
  line-height:1.35;
  min-height:auto;
  text-align:center;
  overflow-wrap:anywhere;
}
.price-row{display:flex;align-items:center;justify-content:flex-start;gap:7px;flex-wrap:wrap}
    .price{font-size:18px;font-weight:900;color:#ff5a1f}
    .old-price{text-decoration:line-through;color:#9ca3af;font-weight:700;font-size:13px}
    .promo-badge,
    .stock-badge{position:absolute;top:14px;left:14px;background:#ff5000;color:#fff;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:900;z-index:3}
    .stock-badge{left:auto;right:14px;background:#111}
    .stock-badge.out{background:#b91c1c}
    .card-actions{display:flex;justify-content:flex-end;gap:10px;padding:0 12px 12px}
.add-cart-btn{
  position:absolute;
  right:12px;
  bottom:12px;
  width:38px;
  height:38px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#101828;
  color:#fff;
  text-decoration:none;
  box-shadow:0 12px 20px rgba(15,23,42,.18);
}
.add-cart-btn::before{
  content:'\f07a';
  font-family:'Font Awesome 6 Free';
  font-weight:900;
}

.categories-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:20px;
}
.pagination{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin:30px auto 140px;
}

.page-btn{
  min-width:46px;
  height:46px;
  padding:0 14px;
  border-radius:14px;
  background:#fff;
  border:1px solid #e5e7eb;
  color:#111827;
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  transition:.25s ease;
  box-shadow:0 8px 22px rgba(15,23,42,.06);
}

.page-btn:hover{
  transform:translateY(-2px);
  border-color:#ff6b00;
  color:#ff6b00;
}

.page-btn.active{
  background:#111827;
  color:#fff;
  border-color:#111827;
}

@media(max-width:560px){

  .pagination{
    gap:8px;
    margin-bottom:170px;
  }

  .page-btn{
    min-width:40px;
    height:40px;
    border-radius:12px;
    font-size:14px;
  }

}

@media (max-width: 1200px){
  .product-grid,
  .categories-grid{ grid-template-columns:repeat(4, minmax(0,1fr)); }
}

@media (max-width: 1050px){
  .product-grid,
  .categories-grid{ grid-template-columns:repeat(3, minmax(0,1fr)); }
}

 
@media (max-width: 900px){
     .hero-marketing-slider{
    width:calc(100% - 24px);
    height:360px;
    margin:18px auto;
    border-radius:28px;
  }

  .hero-slide-btn{
    width:42px;
    height:42px;
    font-size:14px;
  }

  .hero-slide-overlay{
    left:14px;
    right:14px;
    bottom:14px;
    padding:12px 14px;
    border-radius:16px;
  }


  .section-top{
    align-items:center;
    gap:12px;
  }

  .section-top h2{
    font-size:1.25rem;
  }

  .section-top p{
    font-size:.9rem;
  }

  .categories-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .product-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:14px;
    align-items:start;
  }

  .product-card{
    width:100%;
    min-width:0;
    border-radius:22px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 8px 22px rgba(15,23,42,.06);
  }

  .product-link{
    display:block;
    text-decoration:none;
    color:inherit;
  }

  .product-card img,
  .product-link img{
    width:100%;
    height:178px;
    object-fit:cover;
    display:block;
  }

  .product-card-body{
    padding:10px 60px 12px 12px;
  }

  .product-card h3{
    margin:0 0 10px;
    font-size:15px;
    line-height:1.2;
    text-align:center;
    font-weight:800;
  }

  .price-row{
    display:flex;
    align-items:baseline;
    justify-content:flex-start;
    gap:8px;
    flex-wrap:wrap;
  }

  .price{
    font-size:17px;
    font-weight:900;
    line-height:1;
  }

  .old-price{
    font-size:12px;
    line-height:1;
  }

  .card-actions{
    padding:0 12px 12px;
    display:flex;
    justify-content:flex-end;
  }

  .add-cart-btn{
    width:46px;
    height:46px;
    border-radius:50%; 
    flex-shrink:0;
      
      
  }

  .promo-badge{
    top:10px;
    left:10px;
    padding:8px 12px;
    font-size:13px;
    border-radius:999px;
  }

  .stock-badge{
    top:10px;
    right:10px;
    padding:8px 12px;
    font-size:13px;
    border-radius:999px;
  }
}

@media (max-width: 560px){
  .hero-marketing-slider{
    width:calc(100% - 24px);
    height:212px;
    min-height:212px;
     margin:20px auto 24px !important;
    border-radius:18px;
  }

  .hero-slide,
  .hero-slide img{
    height:100%;
  }

  .hero-slide img{
    object-fit:cover;
    object-position:center;
  }

  .products{
    height:auto !important;
    min-height:auto !important;
    padding-top:0 !important;
    padding-bottom:180px !important;
  }

  .section-top{
    margin-top:0 !important;
    padding:0 2px;
    align-items:center;
    justify-content:space-between;
    flex-wrap:nowrap;
  }

  .section-top h2{
    font-size:1.12rem;
    white-space:nowrap;
  }

  .section-top p{
    font-size:.8rem;
  }

  .product-grid,
  .categories-grid{ gap:12px; }
  .product-card{ border-radius:18px; }
  .product-card h3{ font-size:13px; min-height:34px; }
  .product-card-body{ padding:9px 54px 10px 9px; }
  
}
@media (max-width: 430px){
  .products{
    padding-left:10px;
    padding-right:10px;
  }

  .product-grid{
    gap:10px;
  }

  .product-card{
    border-radius:18px;
  }

  .product-card img,
  .product-link img{
     height:210px;
    object-fit:cover;
  
  }

  .product-card-body{
    padding:2px 48px 4px 7px;
    margin-top:-20px;
  }

  .product-card h3{
    width:100%;
    text-align:center;
    transform: translateY(20px);
    
  }
  .price-row{
   display: flex;
   justify-content: flex-start;
   flex-direction: column-reverse;
   align-items:flex-start;
   transform:none;
  }
  .price{
    font-size:13px;
  }

  .old-price{
    font-size:10px;
  }

  .add-cart-btn{
    width:38px;
    height:38px;
    
  }

  .card-actions{
    padding:0 9px 9px;
    transform:none;
  }

  .promo-badge,
  .stock-badge{
    font-size:10px;
    padding:6px 9px;
  }
}

/* =========================================================
   Layout polish — CSS only, existing colors preserved
   ========================================================= */
:where(button, input, select, textarea){font:inherit}
:where(a, button, .btn, [role="button"]){-webkit-tap-highlight-color:transparent}
:where(button, .btn, .hero-btn, .product-card, .category-card){touch-action:manipulation}
:where(.page-shell, .hero, .section-head, .products-grid, .collections-grid){width:min(100%, 1400px)}
:where(.products-grid, .collections-grid, .category-grid){
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:clamp(14px, 2vw, 24px);
}
:where(.product-card, .collection-card, .category-card){
  min-width:0;
  height:100%;
}

:where(.product-title, .collection-title, .category-title){
  overflow-wrap:anywhere;
}
@media (max-width: 768px){
  body{overflow-x:hidden}
  .page-shell{padding-inline:14px}
  .hero{padding-inline:14px}
  :where(.hero, .section-head){text-align:center}
  :where(.products-grid, .collections-grid, .category-grid){
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:12px;
  }
}
@media (max-width: 420px){
  :where(.products-grid, .collections-grid, .category-grid){
    grid-template-columns:1fr;
  }
}
