/* =====================================================
   PRODUCTS – HOMEPAGE MIMARISI (STABLE FINAL)
   İçerik korunur
   Kart boyutu korunur
   Grid korunur
   Footer güvenli
   Offset kontrollü
===================================================== */

/* =====================================================
   ROOT OFFSET CONTROL
   (pozitif = aşağı, negatif = yukarı)
===================================================== */

:root{
  --products-offset: 0px;
}

/* =====================================================
   BODY RESET (SADECE PRODUCTS)
===================================================== */

body.is-products main{
  padding:0;
}

/* =====================================================
   PAGE WRAPPER
===================================================== */

.products-page{
  position:relative;
  width:100%;
  min-height:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  overflow:hidden;
}

/* Background Overlay */
.products-page::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;

  background:
    radial-gradient(
      1200px 600px at 50% -12%,
      rgba(255,255,255,0.06),
      rgba(255,255,255,0.02) 35%,
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(0,0,0,0.00) 0%,
      rgba(0,0,0,0.12) 45%,
      rgba(0,0,0,0.22) 100%
    );
}

/* =====================================================
   MAIN LAYOUT
===================================================== */

.products-layout{
  position:relative;
  z-index:1;
  width:100%;
  max-width:1280px;

  display:block;
  flex-direction:column;
  align-items:center;

  padding:36px;
  padding-top: calc(36px + var(--products-offset));
}

/* =====================================================
   HERO
===================================================== */

.products-hero{
  width:100%;
  text-align:center;
  margin-bottom:40px;
}

.products-brand-logo{
  max-width:360px;
  width:100%;
}

.products-title{
  margin-top:18px;
  font-size:28px;
  font-weight:700;
  color:#fff;
}

.products-desc{
  margin-top:10px;
  max-width:520px;
  margin-left:auto;
  margin-right:auto;
  font-size:15px;
  line-height:1.6;
  color:rgba(255,255,255,.75);
}

/* =====================================================
   GRID (DESKTOP KORUNDU)
===================================================== */

.products-grid{
  width:100%;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  margin-top:30px;
}

/* =====================================================
   CARD (BOYUT KORUNDU)
===================================================== */

.product-card{
  position:relative;
  height:420px;
  border-radius:24px;
  overflow:hidden;
  background-size:cover;
  background-position:center;
  text-decoration:none;

  box-shadow:
    0 24px 60px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(255,255,255,.05);

  -webkit-tap-highlight-color: transparent;
}

.product-card__shade{
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(
    to top,
    rgba(6,10,26,.92),
    rgba(6,10,26,.35)
  );
}

.product-card__content{
  position:absolute;
  left:34px;
  right:34px;
  bottom:26px;
  z-index:2;
}

.product-card__tag{
  font-size:11px;
  letter-spacing:.18em;
  color:rgba(255,255,255,.55);
}

.product-card__h{
  margin-top:10px;
  font-size:20px;
  font-weight:700;
  color:rgba(255,255,255,.92);
}

.product-card__p{
  margin-top:8px;
  font-size:13px;
  line-height:1.6;
  color:rgba(255,255,255,.72);
}

.product-card__cta{
  margin-top:14px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 18px;
  border-radius:12px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.18);
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:rgba(255,255,255,.85);
}

/* Hover */
@media (hover:hover){
  .product-card:hover .product-card__h,
  .product-card:hover .product-card__cta{
    color:#e10600;
    border-color:#e10600;
  }
}

/* Touch */
@media (hover:none){
  .product-card:active .product-card__h,
  .product-card:active .product-card__cta,
  .product-card:focus .product-card__h,
  .product-card:focus-visible .product-card__h{
    color:#e10600;
    border-color:#e10600;
  }
}

/* =====================================================
   BOTTOM NOTE
===================================================== */

.products-bottom{
  margin-top:24px;
  font-size:13px;
  opacity:.6;
  color:#fff;
  text-align:center;
}

/* =====================================================
   MOBILE / TABLET
===================================================== */

@media (max-width:1024px){

  html, body{
    height:auto !important;
    min-height:100% !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
  }

  body.is-products{
    min-height:100vh !important;
    overflow:visible !important;
  }

  body.is-products main{
    display:block !important;
    overflow:visible !important;
  }

  .products-page{
    display:block !important;
    min-height:auto !important;
    overflow:visible !important;
    padding-bottom:64px;
  }

  .products-layout{
    padding:96px 24px 56px;
    padding-top: calc(96px + var(--products-offset));
  }

  .products-grid{
    grid-template-columns:1fr;
    gap:28px;
  }

  .product-card{
    height:auto;
    aspect-ratio:16 / 10;
    min-height:240px;
    border-radius:22px;
  }

  .product-card__content{
    left:20px;
    right:20px;
    bottom:20px;
  }

  .product-card__h{
    font-size:18px;
  }

  .product-card__cta{
    padding:10px 16px;
    font-size:11px;
  }
}

@media (max-width:600px){

  .products-layout{
    padding:86px 18px 52px;
    padding-top: calc(86px + var(--products-offset));
  }

  .product-card{
    aspect-ratio:4 / 3;
  }
}

@media (max-width:420px){

  .products-layout{
    padding:78px 16px 46px;
    padding-top: calc(78px + var(--products-offset));
  }

  .product-card{
    border-radius:18px;
  }

  .product-card__content{
    left:16px;
    right:16px;
    bottom:16px;
  }
}
