/* =====================================================
   HERO SECTION (UPDATED ✅)
===================================================== */

.templates-hero {

  position: relative;
  padding: 120px 0;
  text-align: center;
  color: #ffffff;

  /* ✅ HERO BACKGROUND IMAGE */
  background-image:
    linear-gradient(
      rgba(0,0,0,0.65),
      rgba(0,0,0,0.65)
    ),
    url("/images/web-hero.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* ✅ GLASS CONTAINER EFFECT */

.templates-hero .container{
  max-width: 900px;
  margin: auto;

  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);

  padding: 45px;
  border-radius: 16px;
}


/* HERO TEXT */

.templates-hero h1{
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.templates-hero p{
  font-size: 18px;
  opacity: .95;
  max-width: 700px;
  margin: auto;
}


/* =====================================================
   SECTION
===================================================== */

.templates-section{
  padding:70px 0;
}


/* =====================================================
   GRID
===================================================== */

.template-grid{
  display:grid;
  grid-template-columns:
    repeat(auto-fill,minmax(300px,1fr));
  gap:32px;
}


/* =====================================================
   CARD (PREMIUM STYLE)
===================================================== */

.template-card{

  background:#ffffff;
  border-radius:18px;
  overflow:hidden;

  position:relative;
  text-decoration:none;

  transition:.35s ease;

  box-shadow:
    0 10px 25px rgba(0,0,0,.08);
}

.template-card:hover{

  transform:
    translateY(-10px)
    scale(1.02);

  box-shadow:
    0 25px 60px rgba(0,0,0,.18);
}


/* =====================================================
   IMAGE WRAP
===================================================== */

.template-image-wrap{
  position:relative;
  overflow:hidden;
}

.template-card img{
  width:100%;
  height:220px;
  object-fit:cover;

  transition:.5s ease;
}

.template-card:hover img{
  transform:scale(1.08);
}


/* =====================================================
   DISCOUNT BADGE
===================================================== */

.discount-badge{
  position:absolute;
  top:14px;
  left:14px;

  background:#16a34a;
  color:#fff;

  padding:6px 12px;
  font-size:13px;
  font-weight:600;

  border-radius:8px;

  box-shadow:
    0 6px 16px rgba(0,0,0,.25);
}


/* =====================================================
   BODY
===================================================== */

.template-body{
  padding:22px;
}


/* =====================================================
   TITLE
===================================================== */

.template-title{
  font-size:18px;
  font-weight:600;
  color:#111827;

  margin-bottom:14px;
  line-height:1.4;
}


/* =====================================================
   PRICE
===================================================== */

.template-price{
  display:flex;
  align-items:center;
  gap:10px;
}

.final-price{
  color:#16a34a;
  font-size:22px;
  font-weight:700;
}

.old-price{
  text-decoration:line-through;
  color:#9ca3af;
  font-size:15px;
}


/* =====================================================
   EMPTY STATE
===================================================== */

.empty-state{
  text-align:center;
  color:#6b7280;
  font-size:18px;
  padding:60px 0;
}


/* =====================================================
   SEO TEXT SECTION
===================================================== */

.seo-text{
  max-width:900px;
  margin:auto;
  padding:60px 20px;
  text-align:center;
}

.seo-text h2{
  font-size:32px;
  margin-bottom:15px;
}

.seo-text p{
  color:#6b7280;
  line-height:1.7;
  font-size:17px;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width:768px){

.templates-hero{
  padding:90px 20px;
}

.templates-hero h1{
  font-size:34px;
}

.templates-hero .container{
  padding:30px;
}

.template-card img{
  height:200px;
}

}