/* =========================================
   PS SMART PICKS – COMPLETE PROFESSIONAL UI
========================================= */

:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --dark:#062751;
  --text:#1f2937;
  --muted:#6b7280;
  --primary:#4f46e5;
  --primary-dark:#3730a3;
  --accent:#f59e0b;
  --success:#10b981;
  --brown:#2E05A8;
  --price:#b12704;
  --border:#e5e7eb;
  --radius:12px;
  --shadow-sm:0 3px 8px rgba(0,0,0,.05);
  --shadow-md:0 8px 20px rgba(0,0,0,.08);
  --transition:all .18s ease;
}

/* =========================================
   RESET
========================================= */

*{margin:0;padding:0;box-sizing:border-box;}

html,body{
  height:100%;
  scroll-behavior:smooth;
}

body{
  display:flex;
  flex-direction:column;
  font-family:"Inter",system-ui,-apple-system,sans-serif;
  background:var(--bg);
  color:var(--text);
  font-size:13px;
  line-height:1.55;
}

h1,h2,h3,h4{font-weight:600;}

a{text-decoration:none;color:inherit;}
a:hover{text-decoration:underline;color:var(--primary);}

/* =========================================
   MAIN
========================================= */

main{
  flex:1;
  width:86%;
  max-width:1180px;
  margin:1.8rem auto;
}

/* =========================================
   HEADER
========================================= */

header{
  background:var(--dark);
  padding:.6rem 0;
  position:sticky;
  top:0;
  z-index:1000;
  box-shadow:var(--shadow-sm);
}

.header-inner{
  width:86%;
  max-width:1180px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.logo a{
  color:white;
  font-size:1.05rem;
  font-weight:700;
}

nav{
  display:flex;
  gap:.4rem;
}

.nav-link{
  color:white;
  padding:.35rem .7rem;
  font-size:.85rem;
  border-radius:6px;
  transition:var(--transition);
}

.nav-link:hover{
  background:rgba(255,255,255,.15);
}

.menu-toggle{
  display:none;
  background:none;
  border:none;
  color:white;
  font-size:1rem;
  cursor:pointer;
}

@media(max-width:900px){
  .header-inner{
    flex-direction:column;
    gap:.4rem;
  }
  .menu-toggle{display:block;}
  nav{
    display:none;
    flex-direction:column;
    width:100%;
    background:var(--dark);
    padding:.6rem 0;
    align-items:center;
  }
  nav.active{display:flex;}
  .nav-link{
    width:100%;
    text-align:center;
    padding:.7rem 0;
    border-bottom:1px solid rgba(255,255,255,.08);
  }
}

/* =========================================
   HERO
========================================= */

.hero{
  background:linear-gradient(135deg,#37018E,#374151);
  color:white;
  padding:2rem;
  border-radius:var(--radius);
  margin-bottom:2rem;
  text-align:center;
  box-shadow:var(--shadow-md);
}

.hero h1{
  font-size:1.8rem;
  margin-bottom:.8rem;
}

.hero p{
  font-size:.95rem;
  opacity:.9;
  margin-bottom:1.4rem;
}

@media(max-width:768px){
  .hero{
    padding:1.6rem 1.2rem;
  }
  .hero h1{font-size:1.4rem;}
}
/* TRUST STRIP */
.trust-strip{
  text-align:center;
  font-size:.85rem;
  color:var(--muted);
  margin-bottom:2rem;
}

/* SECTION TITLE */
.section-title{
  position:relative;
  font-size:1rem;
  font-weight:700;
  margin-bottom:1.2rem;
  padding-top:.5rem;
}

.section-title::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:40px;
  height:3px;
  background:linear-gradient(90deg,var(--accent),#fbbf24);
  border-radius:3px;
}

/* EDITOR CATEGORY BADGE */
.editor-sub{
  display:inline-block;
  background:linear-gradient(135deg,#4f46e5,#6366f1);
  color:white;
  font-size:.7rem;
  font-weight:700;
  padding:5px 10px;
  border-radius:20px;
  margin-bottom:.6rem;
  text-transform:uppercase;
  letter-spacing:.3px;
}

/* HOVER IMPROVEMENT */
.btn-review:hover,
.btn-buy:hover{
  box-shadow:0 8px 18px rgba(0,0,0,.12);
}
.badge{
	background:#B0E10E;
	padding:0.5rem 0.5rem;
}
#breadcrumb{
	font-size:1rem;
}
/* =========================================
   BROWSE CATEGORIES
========================================= */

#categoriesGrid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:.8rem;
  margin-bottom:2rem;
}

.category-card{
  background:var(--card);
  padding:.8rem;
  border-radius:var(--radius);
  border:1px solid var(--border);
  text-align:center;
  box-shadow:var(--shadow-sm);
  transition:var(--transition);
}

.category-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-md);
}

@media(max-width:1200px){#categoriesGrid{grid-template-columns:repeat(4,1fr);}}
@media(max-width:900px){#categoriesGrid{grid-template-columns:repeat(3,1fr);}}
@media(max-width:640px){#categoriesGrid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:480px){#categoriesGrid{grid-template-columns:1fr;}}

/* =========================================
   EDITORS PICKS
========================================= */

.editors-slider{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1rem;
  margin-bottom:2rem;
}

.editor-slide-card{
  background:var(--card);
  padding:1rem;
  border-radius:var(--radius);
  border:1px solid var(--border);
  box-shadow:var(--shadow-sm);
  display:flex;
  flex-direction:column;
  transition:var(--transition);
}

.editor-slide-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-md);
}

.editor-img{
  height:180px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f9fafb;
  border-radius:10px;
  overflow:hidden;
  margin-bottom:.6rem;
}

.editor-img img{
  max-height:160px;
  max-width:100%;
  object-fit:contain;
}

@media(max-width:768px){
  .editor-img{height:200px;}
  .editor-img img{max-height:180px;}
}

@media(max-width:1200px){.editors-slider{grid-template-columns:repeat(3,1fr);}}
@media(max-width:900px){.editors-slider{grid-template-columns:repeat(2,1fr);}}
@media(max-width:640px){.editors-slider{grid-template-columns:1fr;}}


/* =========================================
   AMAZON STYLE STARS ⭐
========================================= */

.fa-star,
.fa-star-half-alt,
.fa-star-half-stroke{
  color:var(--accent) !important;
}

.rating,
.stars{
  color:var(--accent);
  font-size:.9rem;
  margin:.3rem 0;
}


/* =========================================
   CATEGORY PRODUCT ROW
========================================= */

.product-list{
  display:flex;
  flex-direction:column;
  gap:1.1rem;
}

.product-row{
  position:relative;
  display:flex;
  gap:1.2rem;
  background:var(--card);
  padding:1rem;
  border-radius:var(--radius);
  border:1px solid var(--border);
  box-shadow:var(--shadow-sm);
  transition:var(--transition);
}

.product-row:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-md);
}

.product-image{
  flex:0 0 160px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f9fafb;
  border-radius:10px;
  padding:.6rem;
}

.product-image img{
  max-height:150px;
  object-fit:contain;
}

@media(max-width:900px){
  .product-row{
    flex-direction:column;
    text-align:center;
  }
  .product-image{height:200px;}
  .product-image img{max-height:180px;}
}

/* =========================================
   PRODUCT PAGE
========================================= */

.product-wrapper{
  display:grid;
  grid-template-columns:420px 1fr;
  gap:40px;
  margin:1.8rem 0 2.5rem;
}

.product-image-section{
  background:white;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.2rem;
  display:flex;
  justify-content:center;
  align-items:center;
}

.product-image-section img{
  max-height:380px;
  object-fit:contain;
}

.product-details-section{
  display:flex;
  flex-direction:column;
  gap:.9rem;
}

.product-price{
  font-size:1.8rem;
  font-weight:800;
  color:var(--price);
}

@media(max-width:1024px){
  .product-wrapper{grid-template-columns:1fr;}
}

/* =========================================
   BUTTONS
========================================= */

.btn-review,
.btn-buy,
.amazon-btn{
  display:inline-block;
  padding:.7rem 0.6rem;
  border-radius:8px;
  font-size:.85rem;
  font-weight:600;
  text-align:center;
  transition:var(--transition);
}

.btn-review{
  background:var(--primary);
  color:white;
}

.btn-explore{
  display:inline-block;
  width:100%;
  padding:.4rem 0.4rem;
  border-radius:8px;
  font-size:.85rem;
  font-weight:600;
  text-align:center;
  background:var(--brown);
  color:white;
}

.btn-review:hover{
  background:var(--primary-dark);
}

.btn-buy,
.amazon-btn{
  background:linear-gradient(135deg,#ff9900,#ffaa33);
  color:#111;
  border:1px solid #e69500;
}

.btn-buy:hover,
.amazon-btn:hover{
  transform:translateY(-2px);
}

@media(max-width:768px){
  .btn-review,
  .btn-buy,
  .amazon-btn{
    width:100%;
  }
}

/* =========================================
   REVIEWS
========================================= */

.reviews-container{
  max-width:900px;
  margin:2.5rem auto;
}

.review-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.2rem;
  margin-bottom:1rem;
  box-shadow:var(--shadow-sm);
}

.review-form-section{
  max-width:750px;
  margin:3rem auto 4rem;
  background:var(--card);
  border-radius:var(--radius);
  border:1px solid var(--border);
  box-shadow:var(--shadow-md);
}

.review-form-section h2{
  padding:1.2rem;
  border-bottom:1px solid var(--border);
}

#reviewForm{
  padding:1.4rem;
  display:grid;
  gap:1rem;
}

#reviewName,
#reviewRating,
#reviewEmail,
#reviewComment{
  padding:.7rem 1rem;
  border:1px solid #d1d5db;
  border-radius:8px;
}

#reviewComment{
  min-height:110px;
}

/* =========================================
   FINAL MOBILE FIX (PRODUCT + REVIEWS)
========================================= */

@media (max-width: 768px) {

  main {
    width: 94%;
    margin: 1rem auto;
  }

  .product-wrapper {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .product-image-section img {
    max-height: 250px;
  }

  .product-details-section h1 {
    font-size: 1.15rem;
  }

  .product-price {
    font-size: 1.4rem;
  }

  .reviews-container,
  .review-form-section {
    max-width: 100%;
    width: 100%;
    margin: 2rem 0;
  }

  #reviewForm {
    padding: 1rem;
  }
}

/* =========================================
   FOOTER
========================================= */

footer{
  background:var(--dark);
  color:#cbd5e1;
  padding:2.5rem 0 1.2rem;
  margin-top:2.5rem;
}

.footer-inner{
  width:86%;
  max-width:1180px;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(3, minmax(220px,1fr));
  gap:2.2rem;
}

.footer-column h4{
  color:white;
  margin-bottom:.9rem;
  font-size:.95rem;
}

.footer-column a{
  display:block;
  font-size:.82rem;
  margin-bottom:.45rem;
  color:#cbd5e1;
}

.footer-bottom{
  background:#28006b;
  text-align:center;
  font-size:.72rem;
  padding:.9rem;
  margin-top:2rem;
}

@media(max-width:1024px){
  .footer-inner{grid-template-columns:repeat(2,1fr);}
}

@media(max-width:640px){
  .footer-inner{grid-template-columns:1fr;text-align:center;}
}

/* =========================================
   HOSTING PROMO SECTION (Homepage)
========================================= */

.hosting-promo{
  background:linear-gradient(135deg,#4f46e5,#6366f1);
  color:white;
  padding:2rem;
  border-radius:var(--radius);
  margin-bottom:2rem;
  box-shadow:var(--shadow-md);
}

.hosting-promo-content{
  max-width:900px;
  margin:auto;
  text-align:center;
}

.hosting-promo h2{
  font-size:1.4rem;
  margin-bottom:.8rem;
}

.hosting-promo p{
  font-size:.9rem;
  opacity:.95;
  margin-bottom:1.2rem;
}

.hosting-btn{
  display:inline-block;
  background:white;
  color:#4f46e5;
  padding:.7rem 1.4rem;
  border-radius:8px;
  font-weight:600;
  transition:var(--transition);
}

.hosting-btn:hover{
  background:#f3f4f6;
  transform:translateY(-2px);
}

/* Mobile */
@media(max-width:768px){
  .hosting-promo{
    padding:1.5rem 1rem;
  }
  .hosting-promo h2{
    font-size:1.2rem;
  }
}

/* =========================================
   HERO WITH SIDE HOSTING CARD
========================================= */

.hero-wrapper{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:1.5rem;
  margin-bottom:2rem;
}

.hosting-side-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.2rem;
  box-shadow:var(--shadow-sm);
  display:flex;
  flex-direction:column;
  justify-content:center;
  transition:var(--transition);
}

.hosting-side-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-md);
}

/* Responsive */
@media(max-width:900px){
  .hero-wrapper{
    grid-template-columns:1fr;
  }
}