/* CSS/products.css */
/* (kept identical to your uploaded version) */

:root{
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, 0.10);
  --shadow: 0 12px 30px rgba(2, 6, 23, 0.10);
  --shadow-soft: 0 10px 24px rgba(2, 6, 23, 0.08);
  --emerald: #059669;
  --emerald-700: #047857;
  --emerald-50: #ecfdf5;
  --overlay: rgba(2, 6, 23, 0.60);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

.container{
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
  user-select: none;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--emerald);
  color: #fff;
  box-shadow: 0 10px 20px rgba(5, 150, 105, 0.25);
}
.btn-primary:hover{ background: var(--emerald-700); }

.btn-ghost{
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover{ background: rgba(15, 23, 42, 0.04); }

.btn-invert{
  background: #fff;
  color: var(--emerald-700);
}
.btn-invert:hover{ background: rgba(255,255,255,0.92); }

.btn-ghost{
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}
.program-card .btn-ghost:hover{
  background: rgba(255,255,255,0.10);
}

.page-banner{
  height: 350px;
  position: relative;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  color: #fff;
}
.banner-overlay{
  position: absolute;
  inset: 0;
  background: rgba(6, 78, 59, 0.78);
}
.banner-content{
  position: relative;
  padding: 76px 0;
}
.banner-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
}
.banner-title{
  margin: 14px 0 0;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.02em;
}
.banner-subtitle{
  margin: 10px 0 0;
  max-width: 820px;
  color: rgba(236, 253, 245, 0.95);
  font-size: 16px;
  line-height: 1.55;
}

.section{ padding: 34px 0; }
.section-tight{ padding-top: 18px; }
.section-head{ margin-bottom: 18px; }
.section-title{ margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.section-desc{ margin: 8px 0 0; color: var(--muted); max-width: 820px; }

.program-card{
  position: relative;
  background: linear-gradient(135deg, #003502, #01ad1b);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 16px;
  color: #fff;
  overflow: hidden;
}
.program-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background: url("../Photos/Golf\ Ball\ Texture.jpg") center / cover no-repeat;
  opacity: 0.5;
  z-index: 0;
}
.program-card > *{ position: relative; z-index: 1; }

.program-left .tag{
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.16);
}
.program-left h2{ margin: 12px 0 6px; font-size: 24px; letter-spacing: -0.02em; }
.program-left p{ margin: 0; color: rgba(236, 253, 245, 0.95); line-height: 1.55; }

.program-actions{ display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 800px){
  .program-card{ grid-template-columns: 1fr auto; align-items: center; }
}

.products-grid{
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px){
  .products-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px){
  .products-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px){
  .products-grid{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.product-card{
  background: var(--card);
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 10px 18px rgba(2,6,23,0.05);
  overflow: hidden;
  transition: transform .14s ease, box-shadow .14s ease;
  cursor: pointer;
}
.product-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(2,6,23,0.10);
}

.product-media{
  position: relative;
  aspect-ratio: 4 / 3;
  background: white;
  overflow: hidden;
}
.product-slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity .22s ease, transform .22s ease;
}
.product-slide img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-slide.active{
  opacity: 1;
  transform: translateX(0);
}

.product-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(2, 6, 23, 0.45);
  color: #fff;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .14s ease, background .14s ease;
}
.product-card:hover .product-arrow{ opacity: 1; }
.product-arrow:hover{ background: rgba(2, 6, 23, 0.62); }
.product-prev{ left: 10px; }
.product-next{ right: 10px; }

.product-dots{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  gap: 7px;
  justify-content: center;
  padding: 0 10px;
}
.product-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.65);
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.product-dot.active{
  background: rgba(255,255,255,0.95);
  transform: scale(1.08);
}

.product-body{ padding: 12px 12px 14px; }
.product-badge{
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid rgba(5,150,105,0.18);
}
.product-title{ margin: 10px 0 4px; font-size: 14px; letter-spacing: -0.01em; }
.product-snippet{ margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }

.site-footer{
  margin-top: 34px;
  background: #0b1220;
  color: rgba(255,255,255,0.70);
  padding: 26px 0;
}
.footer-inner{ text-align: center; }

.modal{
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal.hidden{ display: none; }

.modal-overlay{
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,0.72);
  backdrop-filter: blur(2px);
}

.modal-panel{
  position: relative;
  width: min(1120px, calc(100% - 28px));
  margin: 0;
  max-height: calc(100vh - 36px);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0,0,0,0.35);
  transform: translateY(8px);
  opacity: 0;
  animation: modalIn 170ms ease-out forwards;
}
@keyframes modalIn{ to{ transform: translateY(0); opacity: 1; } }

.modal-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.92);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  z-index: 2;
}
.modal-close:hover{ background: #fff; }

.modal-grid{ display: grid; grid-template-columns: 1fr; }
@media (min-width: 920px){
  .modal-grid{ grid-template-columns: 1.05fr 1fr; }
}

.modal-left{ background: #0b1220; padding: 16px; }

.modal-carousel{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}

.modal-slides{ position: absolute; inset: 0; }
.modal-slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity .22s ease, transform .22s ease;
}
.modal-slide img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.modal-slide.active{ opacity: 1; transform: translateX(0); }

.modal-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(2, 6, 23, 0.55);
  color: #fff;
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}
.modal-arrow:hover{ background: rgba(2,6,23,0.72); }
.modal-prev{ left: 12px; }
.modal-next{ right: 12px; }

.modal-dots{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
}
.modal-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.12);
  cursor: pointer;
}
.modal-dot.active{ background: rgba(255,255,255,0.95); }

.modal-right{ padding: 18px; }
.modal-meta{ margin-top: 4px; }
.modal-badge{
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid rgba(5,150,105,0.18);
}
.modal-title{ margin: 12px 0 6px; font-size: 22px; letter-spacing: -0.02em; }
.modal-text{ margin: 0; color: #334155; line-height: 1.6; }
.modal-actions{ margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }

body.modal-open{ overflow: hidden; }
