/**
 * AT Wire — assets/css/products.css
 * Professional 4-Column Product Grid Design
 */

:root {
  --brand: #008fd0;
  --brand-hover: #0077ad;
  --ink: #102838;
  --muted: #6b8090;
  --white: #ffffff;
  --bg: #f8fafc;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.atw-products-premium-wrapper {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    padding-bottom: 100px;
}

.atw-products-premium-wrapper .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

/* =========================================================
   AT WIRE – PRODUCTS HEADER
   Clean corporate German style
   ========================================================= */

.atw-products-premium-wrapper .atw-page-header{
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 88px 0 78px !important;
    margin: 0 0 42px 0 !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(46,129,192,0.14) 0%, rgba(46,129,192,0.05) 20%, rgba(14,24,34,0) 46%),
        linear-gradient(180deg, #14253a 0%, #0E1822 52%, #0A141D 100%) !important;
    border-radius: 0 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.atw-products-premium-wrapper .atw-page-header::before{
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0) 24%);
    pointer-events: none;
}

.atw-products-premium-wrapper .atw-page-header .container{
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 30px;
}

.atw-products-premium-wrapper .atw-page-header .eyebrow{
    display: inline-block;
    margin-bottom: 18px;
    color: rgba(255,255,255,0.62) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.30em !important;
    text-transform: uppercase !important;
}

/* page-products.php içinde class verilmese bile çalışsın */
.atw-products-premium-wrapper .atw-page-header h1{
    max-width: 980px;
    margin: 0 auto 24px !important;
    color: #ffffff !important;
    font-size: clamp(30px, 4.2vw, 54px) !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.03em !important;
    text-align: center !important;
    text-wrap: balance;
    text-shadow: 0 1px 0 rgba(255,255,255,0.03);
}


.atw-products-premium-wrapper .atw-page-header p{
    max-width: 880px;
    margin: 0 auto !important;
    color: rgba(255,255,255,0.80) !important;
    font-size: clamp(16px, 1.28vw, 21px) !important;
    font-weight: 400 !important;
    line-height: 1.72 !important;
    text-align: center !important;
}

.atw-products-premium-wrapper .atw-page-header h1 br{
    display: block;
}

/* Özel yeni başlık classı */
.atw-hero-title{
    max-width: 900px;
    margin: 0 auto 24px !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: clamp(30px, 4vw, 52px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.03em !important;
    text-align: center !important;
    text-wrap: balance;
    text-shadow: 0 1px 0 rgba(255,255,255,0.03);
}


.atw-hero-title br{
    display: block;
}

/* 4-Column Grid */
.atw-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.atw-product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
}

.atw-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand);
}

.atw-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f5f9;
}

.atw-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.atw-product-card:hover .atw-card-media img {
    transform: scale(1.08);
}

.atw-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.atw-card-sub {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.atw-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.3;
}

.atw-card-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Clearly Visible Button */
.atw-btn-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    background: var(--brand);
    color: var(--white);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.atw-btn-card:hover {
    background: var(--ink);
    color: var(--white);
}

.atw-btn-card svg {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.atw-btn-card:hover svg {
    transform: translateX(4px);
}

/* CTA */
.atw-section-cta {
    margin-top: 80px;
    padding: 60px;
    background: var(--ink);
    border-radius: var(--radius);
    color: var(--white);
    text-align: center;
}

.atw-section-cta h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}

.atw-section-cta p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 1100px) {
    .atw-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px){
    .atw-products-premium-wrapper .atw-page-header{
        padding: 72px 0 64px !important;
        margin-bottom: 34px !important;
    }

    .atw-products-premium-wrapper .atw-page-header .container{
        padding: 0 22px;
    }

    .atw-products-premium-wrapper .atw-page-header h1,
    .atw-hero-title{
        max-width: 860px;
        font-size: clamp(28px, 5.8vw, 44px) !important;
        line-height: 1.10 !important;
    }

    .atw-products-premium-wrapper .atw-page-header p{
        max-width: 760px;
        font-size: 17px !important;
        line-height: 1.62 !important;
    }
}

@media (max-width: 850px) {
    .atw-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px){
    .atw-products-premium-wrapper .atw-page-header{
        padding: 56px 0 50px !important;
        margin-bottom: 28px !important;
    }

    .atw-products-premium-wrapper .atw-page-header .container{
        padding: 0 18px;
    }

    .atw-products-premium-wrapper .atw-page-header .eyebrow{
        font-size: 10px !important;
        letter-spacing: 0.22em !important;
        margin-bottom: 12px !important;
    }

    .atw-products-premium-wrapper .atw-page-header h1,
    .atw-hero-title{
        max-width: 100%;
        font-size: clamp(25px, 8vw, 36px) !important;
        line-height: 1.12 !important;
        letter-spacing: -0.02em !important;
        margin-bottom: 16px !important;
    }

    .atw-products-premium-wrapper .atw-page-header p{
        max-width: 100% !important;
        font-size: 15px !important;
        line-height: 1.58 !important;
    }
}

@media (max-width: 550px) {
    .atw-product-grid {
        grid-template-columns: 1fr;
    }

    .atw-page-header {
        padding: 60px 0 40px;
    }
}
/* =========================
   FORCE WHITE HERO TITLE
   ========================= */

.atw-page-header h1,
.atw-page-header h1 span,
.atw-hero-title,
.atw-hero-title span,
.atw-hero-title .line-main,
.atw-hero-title .line-accent{
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow:
        0 1px 0 rgba(255,255,255,0.06),
        0 8px 20px rgba(0,0,0,0.18) !important;
}
/* =========================================================
   AT WIRE — PRODUCTS GRID
   German industrial premium card system
   ========================================================= */

.atw-products-premium-wrapper .atw-product-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:20px !important;
  align-items:stretch !important;
}

.atw-products-premium-wrapper .atw-product-card{
  display:flex !important;
  flex-direction:column !important;
  height:100% !important;
  background:#ffffff !important;
  border:1px solid rgba(16,40,56,.10) !important;
  border-radius:16px !important;
  overflow:hidden !important;
  box-shadow:0 6px 18px rgba(16,40,56,.08) !important;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

.atw-products-premium-wrapper .atw-product-card:hover{
  transform:translateY(-2px) !important;
  box-shadow:0 12px 26px rgba(16,40,56,.12) !important;
  border-color:rgba(0,158,219,.22) !important;
}

/* IMAGE */
.atw-products-premium-wrapper .atw-card-media{
  position:relative !important;
  aspect-ratio: 1.34 / 1 !important;
  overflow:hidden !important;
  background:#0f1720 !important;
  border-bottom:1px solid rgba(16,40,56,.08) !important;
  flex-shrink:0 !important;
}

.atw-products-premium-wrapper .atw-card-media img{
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:cover !important;
  object-position:center center !important;
  image-rendering:auto !important;
  transform:translateZ(0) !important;
}

.atw-products-premium-wrapper .atw-card-no-img{
  width:100% !important;
  height:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

/* BODY */
.atw-products-premium-wrapper .atw-card-body{
  display:grid !important;
  grid-template-rows: 30px 56px 1fr auto !important;
  gap:0 !important;
  flex:1 1 auto !important;
  padding:18px 18px 18px !important;
  background:#fff !important;
}

/* TOP LABEL */
.atw-products-premium-wrapper .atw-card-sub{
  display:flex !important;
  align-items:flex-start !important;
  margin:0 !important;
  font-size:11px !important;
  line-height:1.2 !important;
  font-weight:800 !important;
  letter-spacing:.06em !important;
  text-transform:uppercase !important;
  color:#009EDB !important;
}

/* TITLE */
.atw-products-premium-wrapper .atw-card-title{
  display:flex !important;
  align-items:flex-start !important;
  margin:0 !important;
  padding-top:4px !important;
  font-size:17px !important;
  line-height:1.18 !important;
  font-weight:800 !important;
  color:#102838 !important;
}

/* DESCRIPTION */
.atw-products-premium-wrapper .atw-card-desc{
  margin:0 !important;
  padding-top:6px !important;
  padding-bottom:16px !important;
  font-size:14px !important;
  line-height:1.55 !important;
  color:#6b8090 !important;
}

/* BUTTON */
.atw-products-premium-wrapper .atw-btn-card{
  margin-top:auto !important;
  width:100% !important;
  min-height:44px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
  padding:12px 16px !important;
  border-radius:10px !important;
  background:#009EDB !important;
  color:#ffffff !important;
  font-size:14px !important;
  font-weight:800 !important;
  letter-spacing:.01em !important;
  text-align:center !important;
  box-shadow:none !important;
}

.atw-products-premium-wrapper .atw-btn-card:hover{
  background:#0f5f87 !important;
}

/* Better spacing for button icon */
.atw-products-premium-wrapper .atw-btn-card svg{
  flex-shrink:0 !important;
}

/* 3 columns */
@media (max-width: 1200px){
  .atw-products-premium-wrapper .atw-product-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

/* 2 columns */
@media (max-width: 900px){
  .atw-products-premium-wrapper .atw-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

/* mobile */
@media (max-width: 640px){
  .atw-products-premium-wrapper .atw-product-grid{
    grid-template-columns:1fr !important;
    gap:16px !important;
  }

  .atw-products-premium-wrapper .atw-card-body{
    grid-template-rows:auto auto auto auto !important;
    padding:16px !important;
  }

  .atw-products-premium-wrapper .atw-card-media{
    aspect-ratio: 1.45 / 1 !important;
  }
}