.pg-header{
  border-bottom: 1px solid var(--pg-border);
  background:#fff;
}
.pg-header__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 0;
}
.pg-brand{
  font-weight: 800;
  letter-spacing: .2px;
}
.pg-nav{
  display:flex;
  gap: 14px;
  flex-wrap:wrap;
  align-items:center;
  color: var(--pg-muted);
  font-size: 14px;
}
.pg-nav a:hover{ color: var(--pg-text); }
.pg-cta{
  display:flex;
  gap:10px;
  align-items:center;
}

.pg-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--pg-border);
  background:#fff;
  font-size:14px;
}
.pg-btn--primary{
  background: var(--pg-primary);
  color:#fff;
  border-color: transparent;
}

.pg-card{
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-card);
  padding: 14px;
}

/* Home hero */
.pg-hero{
  display:grid;
  grid-template-columns: 1.6fr .9fr;
  gap: var(--pg-gap);
  margin-top: 18px;
}
.pg-hero__main, .pg-hero__side{
  border-radius: var(--pg-radius);
  overflow:hidden;
  border: 1px solid var(--pg-border);
  background: var(--pg-card);
}
.pg-hero__main img{ width:100%; height: 360px; object-fit: cover; }
.pg-hero__side{
  display:grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--pg-gap);
  border:0;
  background:transparent;
}
.pg-hero__side .pg-banner{
  border-radius: var(--pg-radius);
  overflow:hidden;
  border: 1px solid var(--pg-border);
  background: var(--pg-card);
}
.pg-hero__side .pg-banner img{ width:100%; height: 171px; object-fit: cover; }

/* Category cards on home */
.pg-grid-cats{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--pg-gap);
}
.pg-cat{
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  overflow:hidden;
  background:#fff;
  transition: transform .15s ease;
}
.pg-cat:hover{ transform: translateY(-2px); }
.pg-cat__thumb img{ height: 140px; object-fit:cover; width:100%; }
.pg-cat__body{ padding: 12px; }
.pg-cat__title{ font-weight: 700; }
.pg-cat__meta{ color: var(--pg-muted); font-size: 13px; margin-top:6px; }

/* Footer */
.pg-footer{
  border-top: 1px solid var(--pg-border);
  margin-top: 24px;
  padding: 18px 0;
  color: var(--pg-muted);
  font-size: 13px;
}

/* Responsive home */
@media (max-width: 1100px){
  .pg-grid-cats{ grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 860px){
  .pg-hero{ grid-template-columns: 1fr; }
  .pg-hero__main img{ height: 280px; }
  .pg-hero__side .pg-banner img{ height: 180px; }
  .pg-grid-cats{ grid-template-columns: repeat(2,1fr); }
}
/* Remove underline globally */
a, a:visited, a:hover { text-decoration: none !important; }

/* Home category cards – force cover + tidy layout */
body .pg-grid-cats{
  display:grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

body a.pg-cat{
  display:flex !important;
  flex-direction:column !important;
  border-radius:18px !important;
  overflow:hidden !important;
}

body a.pg-cat .pg-cat__thumb{
  height: 140px !important;
  overflow:hidden !important;
  background:#f3f6fb !important;
}

body a.pg-cat .pg-cat__thumb img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
}
/* ================================
   Category Card = Product Card Style
================================ */

/* Card */
body .pg-cat{
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(20,30,70,.08);
  box-shadow: 0 8px 22px rgba(15,23,42,.06);
  transition: all .18s ease;
}

body .pg-cat:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15,23,42,.10);
}

/* Image box (same logic as product cards) */
body .pg-cat__thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;   /* ⬅️ مثل کارت محصول مربعی */
  overflow: hidden;
  background: #f3f6fb;
}

/* Image */
body .pg-cat__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;     /* ⬅️ مثل محصول */
  object-position: center;
  transition: transform .35s ease;
}

/* Hover zoom */
body .pg-cat:hover .pg-cat__thumb img{
  transform: scale(1.06);
}

/* Body */
body .pg-cat__body{
  padding: 14px;
  text-align: center;
}

/* Title */
body .pg-cat__title{
  font-weight: 800;
  font-size: 14px;
  color: #0f172a;
  line-height: 1.7;
}

/* Meta */
body .pg-cat__meta{
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}
