/* ==========================================================================
   CricketGhar — Premium Cricket Equipment Store
   Core stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+Da+2:wght@500;600;700;800&family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

:root{
  --navy: #0e2340;
  --navy-dark: #081527;
  --navy-soft: #16345f;
  --gold: #c9a227;
  --gold-light: #e6c65c;
  --cream: #f8f6f1;
  --off-white: #fbfaf7;
  --gray-text: #5b6472;
  --line: #e8e5dd;
  --danger: #b3261e;
  --success: #1e7a4c;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
  color: var(--navy-dark);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display{
  font-family: 'Baloo Da 2', 'Hind Siliguri', sans-serif;
}

a{ text-decoration: none; }

/* ---------------- Header ---------------- */
.site-header{
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--gold);
}

.brand-logo-icon{
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.nav-link{
  color: #d9e0ec;
  font-weight: 600;
  font-size: 15px;
  transition: color .2s ease;
  position: relative;
  padding-bottom: 4px;
}
.nav-link:hover, .nav-link.active{ color: var(--gold-light); }
.nav-link.active::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-6px; height:2px;
  background: var(--gold);
}

.cart-btn{
  position: relative;
  color: #fff;
}
.cart-count{
  position: absolute;
  top: -8px; right: -10px;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 11px;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ---------------- Buttons ---------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 999px;
  padding: 13px 30px;
  transition: all .25s ease;
  cursor: pointer;
  border: none;
  font-size: 15px;
  line-height: 1;
}
.btn-gold{
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-dark);
  box-shadow: 0 8px 20px rgba(201,162,39,.35);
}
.btn-gold:hover{ transform: translateY(-2px); box-shadow: 0 12px 26px rgba(201,162,39,.45); }
.btn-outline{
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn-outline:hover{ background: #fff; color: var(--navy); }
.btn-navy{
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover{ background: var(--navy-soft); }
.btn-block{ width: 100%; }
.btn-sm{ padding: 9px 18px; font-size: 13px; }
.btn:disabled{ opacity: .5; cursor: not-allowed; }

/* ---------------- Hero ---------------- */
.hero-section{
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(8,21,39,.92) 10%, rgba(8,21,39,.68) 55%, rgba(8,21,39,.4) 100%);
}
.hero-inner{ position: relative; z-index: 2; }

.page-hero{
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 260px;
  display: flex;
  align-items: center;
  color: #fff;
}
.page-hero .hero-overlay{ background: linear-gradient(180deg, rgba(8,21,39,.85), rgba(8,21,39,.75)); }

/* ---------------- Cards ---------------- */
.product-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(14,35,64,.14);
}
.product-card .prod-img-wrap{
  aspect-ratio: 1/1;
  background: var(--cream);
  overflow: hidden;
  position: relative;
}
.product-card .prod-img-wrap img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .prod-img-wrap img{ transform: scale(1.06); }

.badge-tag{
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--navy);
  border: 1px solid var(--line);
}
.badge-sale{
  position: absolute; top: 12px; left: 12px;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
}

.price-old{
  text-decoration: line-through;
  color: #9aa2ad;
  font-size: 14px;
  margin-right: 6px;
}
.price-now{
  color: var(--navy);
  font-weight: 800;
  font-size: 19px;
}

.feature-card{
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 30px 24px;
  text-align: center;
  transition: box-shadow .25s ease, transform .25s ease;
}
.feature-card:hover{ box-shadow: 0 16px 30px rgba(14,35,64,.1); transform: translateY(-4px); }
.feature-icon{
  width: 64px; height: 64px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px;
}

/* ---------------- Section helpers ---------------- */
.section-eyebrow{
  color: var(--gold);
  font-weight: 800;
  letter-spacing: .06em;
  font-size: 13px;
  text-transform: uppercase;
}
.section-title{
  font-size: 32px;
  font-weight: 700;
  color: var(--navy-dark);
}
.divider-gold{
  width: 64px; height: 4px;
  background: var(--gold);
  border-radius: 999px;
}

/* ---------------- Forms ---------------- */
.form-label{
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--navy-dark);
}
.form-input, .form-select, .form-textarea{
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 15px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus{
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,162,39,.15);
}
.radio-card{
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.radio-card:has(input:checked){
  border-color: var(--gold);
  background: #fdf9ec;
}

/* ---------------- Footer ---------------- */
.site-footer{
  background: var(--navy-dark);
  color: #cdd6e3;
}
.footer-heading{
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 18px;
}
.footer-link{
  color: #b7c1d1;
  display: block;
  margin-bottom: 10px;
  font-size: 14.5px;
  transition: color .2s ease;
}
.footer-link:hover{ color: var(--gold-light); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ---------------- Loader / Toast ---------------- */
.loader-overlay{
  position: fixed; inset: 0;
  background: rgba(8,21,39,.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  flex-direction: column;
  gap: 18px;
}
.spinner{
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,.2);
  border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

.toast{
  position: fixed;
  bottom: 26px; right: 26px;
  background: var(--navy-dark);
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.3);
  z-index: 300;
  display: flex; align-items: center; gap: 10px;
  border-left: 4px solid var(--gold);
  transform: translateY(20px);
  opacity: 0;
  transition: all .3s ease;
}
.toast.show{ transform: translateY(0); opacity: 1; }

/* ---------------- Cart page ---------------- */
.cart-row{
  display: grid;
  grid-template-columns: 90px 1fr auto auto auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.qty-control{
  display: flex; align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.qty-control button{
  width: 32px; height: 32px;
  background: var(--cream);
  border: none;
  font-weight: 800;
  cursor: pointer;
  color: var(--navy);
}
.qty-control input{
  width: 40px; text-align: center; border: none; font-weight: 700;
}

/* ---------------- Misc ---------------- */
.step-num{
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

::selection{ background: var(--gold-light); color: var(--navy-dark); }

.mobile-menu{
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.mobile-menu.open{ max-height: 480px; }
