/* =====================
   Home Page Styles (CLEAN)
===================== */

:root{
  --bg:#000;
  --text:#fff;
  --price:#ff3b3b;
  --gold:#ffd700;
  --border:#333;
}

*{box-sizing:border-box;}

body{
  background:var(--bg);
  color:var(--text);
  font-family:sans-serif;
  margin:0;
  min-height:100vh;
}

main{
  max-width:1150px;
  margin:0 auto 40px;
  padding:0 15px 40px;
}

/* ===== HERO ===== */
.hero-wrapper{margin-top:18px;}
.hero-title{text-align:center;margin-bottom:4px;}
.hero-title h1{margin:0;color:var(--gold);font-size:26px;}
.hero-title p{color:#e4e4e4;margin:6px 0 0;font-size:14px;}

.hero-bar{
  height:2px;
  width:100%;
  margin:16px 0 12px;
  background:linear-gradient(90deg,transparent,#f5c463,transparent);
  opacity:.7;
}

.hero-box{
  background:radial-gradient(circle at top,#1c1c1c,#050505);
  border-radius:20px;
  border:1px solid var(--border);
  padding:16px 16px 18px;
  margin-bottom:25px;
  box-shadow:0 18px 40px rgba(0,0,0,.85);
}

.hero-box p{
  margin:0;
  font-size:14px;
  color:#e0e0e0;
  text-align:justify;
  line-height:1.9;
}

/* ===== INFO BAR ===== */
.info-bar{
  max-width:1150px;
  margin:12px auto 0;
  padding:10px 14px;
  border-radius:16px;
  border:1px solid #333;
  background:radial-gradient(circle at top,#141414,#050505);
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  font-size:12px;
  color:#ddd;
}

.info-chip{
  display:flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.08);
  white-space:nowrap;
}

@media (max-width:650px){
  .info-bar{flex-direction:column;align-items:flex-start;}
  .info-chip{width:100%;white-space:normal;}
}

/* ===== PRODUCTS SECTION ===== */
.section-title{
  margin-top:25px;
  margin-bottom:6px;
  font-size:17px;
  font-weight:600;
}

.section-sub{
  font-size:13px;
  color:#999;
  margin-bottom:10px;
}

/* ===== PRODUCTS GRID ===== */
.products-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:28px;
}

@media (max-width:900px){
  .products-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:520px){
  .products-grid{grid-template-columns:1fr;}
}

/* ===== HOME PRODUCT CARD (ISOLATED) ===== */
#homepage-products .product-card{
  background:#0b0b0b;
  border-radius:18px;
  padding:10px 10px 12px;
  text-align:center;
  border:1px solid rgba(255,215,0,0.05);
  display:flex;
  flex-direction:column;
  min-height:100%;
  text-decoration:none;
  color:inherit;
}

#homepage-products .product-card:hover{
  border-color:var(--gold);
  box-shadow:0 0 18px rgba(255,215,0,0.25);
  transform:translateY(-3px);
  transition:.2s;
}

/* ✅ ONLY FIX THAT MATTERS: no stretch */
#homepage-products .product-img-box{
  background:#fff;
  border-radius:14px;
  height:230px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:8px;
  overflow:hidden;
}

#homepage-products .product-img-box img{
  width:auto;
  height:auto;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
}

#homepage-products .product-title{
  color:#fff;
  font-weight:700;
  font-size:14px;
  margin-bottom:3px;
  min-height:26px;
}

#homepage-products .product-code{
  font-size:12px;
  color:#aaa;
  margin-bottom:5px;
}

#homepage-products .product-price{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px;
  margin-bottom:9px;
  font-size:13px;
}

#homepage-products .product-price .amount{
  color:var(--price);
  font-weight:bold;
  font-size:15px;
}

#homepage-products .product-price .currency{
  color:#fff;
  font-size:12px;
  opacity:.85;
}

#homepage-products .product-price .out-of-stock{
  color:var(--price);
  font-weight:bold;
  font-size:14px;
}

#homepage-products .details-btn{
  display:inline-block;
  background:transparent;
  color:var(--gold);
  padding:6px 12px;
  border-radius:999px;
  font-weight:600;
  font-size:12px;
  border:1px solid var(--gold);
  margin-top:auto;
}

#homepage-products .product-card:hover .details-btn{
  background:linear-gradient(90deg,#ffd700,#ffbf00);
  color:#000;
}

/* Scroll to products CTA */
.scroll-to-products{
  display:block;
  text-align:center;
  margin:14px 0;
  color:var(--gold);
  text-decoration:none;
  font-size:13px;
}

/* ===== SUPPORT FLOAT ===== */
.support-wrapper{
  position:fixed;
  bottom:20px;
  right:20px;
  z-index:999;
}

.support-btn{
  background:linear-gradient(90deg,#ffd700,#ffbf00);
  color:#000;
  border:none;
  padding:12px 20px;
  border-radius:999px;
  font-weight:bold;
  cursor:pointer;
  box-shadow:0 0 20px rgba(255,215,0,.55);
}

/* ===== BLOG ===== */
#latest-blog{
  margin:70px auto 60px;
  max-width:1050px;
}

#blogMoreBtn{
  margin:18px auto 0;
  display:none;
  background:transparent;
  border:1px solid rgba(255,255,255,.35);
  color:#fff;
  border-radius:999px;
  padding:6px 18px;
  font-size:.85rem;
  cursor:pointer;
}

#blogMoreBtn:hover{
  background:#ffd700;
  color:#000;
}

@media (max-width:980px){
  #blog-list{
    grid-template-columns:repeat(2,minmax(260px,1fr))!important;
  }
}

@media (max-width:600px){
  #blog-list{
    grid-template-columns:1fr!important;
  }
}
