/* =============================================================================
   SUNNY SIDE BJJ — STYLES
   Palette sampled from the brand: sky blue + deep teal + warm sun gold.
   ============================================================================= */
:root {
  --brand:      #173e4c;   /* deep teal (headings, footer) */
  --accent:     #2f9bbf;   /* sky blue (links, buttons)    */
  --accent-2:   #73bcd5;   /* light sky blue               */
  --accent-dk:  #1f6f8b;
  --sun:        #f6a821;   /* warm gold sun accent / sale  */
  --ink:        #0d0d0d;
  --muted:      #6b7785;
  --line:       #e6eaee;
  --bg:         #ffffff;
  --bg-soft:    #f5f8fa;
  --ok:         #2e9e5b;
  --radius:     14px;
  --shadow:     0 6px 24px rgba(23, 62, 76, .10);
  --shadow-sm:  0 2px 8px rgba(23, 62, 76, .08);
  --wrap:       1200px;
  --font:       "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dk); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-weight: 800; line-height: 1.15; color: var(--brand); letter-spacing: -.01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }

/* --- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: .95rem; cursor: pointer;
  padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); color: #fff; }
.btn-sun { background: var(--sun); color: #2a1c00; }
.btn-sun:hover { background: #ffb733; color: #2a1c00; }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: #0f2c36; color: #fff; }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dk); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* --- Top announcement bar --------------------------------------------- */
.topbar {
  background: var(--brand); color: #eaf6fb; font-size: .82rem; text-align: center;
  padding: .5rem 1rem; letter-spacing: .02em;
}
.topbar strong { color: var(--sun); }

/* --- Header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95);
  backdrop-filter: saturate(150%) blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.2rem; height: 68px; }
.brand-logo { display: flex; align-items: center; gap: .55rem; font-weight: 800;
  font-size: 1.25rem; color: var(--brand); }
.brand-logo .sun {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #ffce5c 0 45%, var(--sun) 46% 100%);
  box-shadow: 0 0 0 3px rgba(246,168,33,.25); flex: none;
}
.brand-logo small { color: var(--muted); font-weight: 600; font-size: .7rem; display: block; }
.main-nav { display: flex; gap: 1.3rem; margin-left: auto; }
.main-nav a { color: var(--brand); font-weight: 600; font-size: .95rem; }
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: .4rem; }
.icon-btn {
  position: relative; background: none; border: none; cursor: pointer; padding: .5rem;
  color: var(--brand); border-radius: 10px; line-height: 0;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--accent); }
.icon-btn svg { width: 22px; height: 22px; }
.badge {
  position: absolute; top: 0; right: 0; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--sun); color: #2a1c00; font-size: .68rem; font-weight: 800;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
}
.nav-toggle { display: none; }

/* --- Hero ------------------------------------------------------------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(15,44,54,.86), rgba(47,155,191,.55));
  z-index: 1;
}
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; }
.hero .wrap { position: relative; z-index: 2; padding: 5.5rem 20px; max-width: 760px;
  margin: 0 auto; text-align: center; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 1rem; }
.hero p { font-size: 1.12rem; color: #eaf6fb; margin: 0 auto 1.8rem; max-width: 560px; }
.hero .badge-pill {
  display: inline-block; background: rgba(246,168,33,.95); color: #2a1c00;
  font-weight: 700; font-size: .8rem; padding: .35rem .9rem; border-radius: 999px;
  margin-bottom: 1.1rem; letter-spacing: .03em;
}

/* --- New Collection split band (matches original) --------------------- */
.collection-band {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.collection-band .band-img {
  min-height: 420px; background-size: cover; background-position: center 30%;
}
.collection-band .band-text {
  background: var(--brand); color: #eaf6fb; padding: 2.8rem;
  display: flex; flex-direction: column; justify-content: center; gap: .9rem;
}
.collection-band .band-text h2 { color: #fff; }
.collection-band .band-text .eyebrow {
  color: var(--sun); font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  font-size: .78rem;
}
.collection-band .band-text p { margin: 0; color: #cfe2ea; }
.collection-band .band-text .btn { align-self: flex-start; margin-top: .4rem; }
@media (max-width: 760px) {
  .collection-band { grid-template-columns: 1fr; }
  .collection-band .band-img { min-height: 300px; }
  .collection-band .band-text { padding: 2rem 1.5rem; }
}

/* --- Sections --------------------------------------------------------- */
section { padding: 3.2rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 .5rem; }
.section-head p { color: var(--muted); margin: 0; }
.bg-soft { background: var(--bg-soft); }

/* --- Product grid + cards --------------------------------------------- */
.product-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .12s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 3/4; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-sale {
  position: absolute; top: 10px; left: 10px; background: var(--sun); color: #2a1c00;
  font-weight: 800; font-size: .7rem; padding: .25rem .55rem; border-radius: 6px;
}
.card-wish {
  position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.92);
  border: none; border-radius: 50%; width: 34px; height: 34px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--brand);
}
.card-wish:hover { color: var(--sun); }
.card-wish.active { color: var(--sun); }
.card-wish svg { width: 18px; height: 18px; }
.card-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem;
  flex: 1; }
.card-name { font-weight: 700; color: var(--brand); font-size: .98rem; line-height: 1.3; }
.card-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent); font-weight: 700; }
.price { font-weight: 800; color: var(--ink); }
.price .old { color: var(--muted); font-weight: 500; text-decoration: line-through;
  margin-left: .4rem; font-size: .9em; }
.card-body .btn { margin-top: auto; }

/* --- Shop layout (filters) -------------------------------------------- */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
.filters { position: sticky; top: 84px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem; }
.filters h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin: 0 0 .6rem; }
.filter-group { margin-bottom: 1.3rem; }
.filter-group label { display: flex; align-items: center; gap: .5rem; padding: .25rem 0;
  cursor: pointer; font-size: .92rem; color: var(--ink); }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.shop-toolbar select { padding: .55rem .8rem; border: 1px solid var(--line);
  border-radius: 10px; font-family: inherit; font-size: .92rem; background: #fff; }
.filter-toggle { display: none; }

/* --- Product detail page ---------------------------------------------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.gallery-main { border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 3/4; background: var(--bg-soft); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .7rem; flex-wrap: wrap; }
.gallery-thumbs img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px;
  border: 2px solid transparent; cursor: pointer; }
.gallery-thumbs img.active { border-color: var(--accent); }
.product-detail h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 .4rem; }
.detail-price { font-size: 1.5rem; margin: .4rem 0 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .4rem; color: var(--brand); }
.pill-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-options button {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: .45rem .9rem; cursor: pointer; font-family: inherit; font-weight: 600;
  font-size: .9rem; color: var(--ink);
}
.pill-options button.active { border-color: var(--accent); background: var(--accent);
  color: #fff; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line);
  border-radius: 999px; overflow: hidden; }
.qty button { border: none; background: #fff; width: 38px; height: 38px; font-size: 1.1rem;
  cursor: pointer; color: var(--brand); }
.qty input { width: 46px; text-align: center; border: none; font-family: inherit;
  font-size: 1rem; }
.detail-desc { margin-top: 1.6rem; border-top: 1px solid var(--line); padding-top: 1.4rem;
  color: #374049; }
.detail-desc p { margin: 0 0 .8rem; }

/* --- Cart / checkout tables ------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img { width: 84px; height: 104px; object-fit: cover; border-radius: 10px; }
.cart-item .meta { font-size: .85rem; color: var(--muted); }
.cart-item .remove { background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: .82rem; text-decoration: underline; padding: 0; margin-top: .3rem; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; position: sticky; top: 84px; }
.summary h3 { margin-top: 0; }
.summary-row { display: flex; justify-content: space-between; padding: .4rem 0;
  color: var(--ink); }
.summary-row.total { font-size: 1.2rem; font-weight: 800; border-top: 1px solid var(--line);
  margin-top: .5rem; padding-top: .8rem; color: var(--brand); }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty-state .sun-lg { font-size: 3rem; }

/* --- Forms ------------------------------------------------------------ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row { display: flex; flex-direction: column; gap: .35rem; }
.form-row.full { grid-column: 1 / -1; }
.form-row label { font-weight: 600; font-size: .9rem; color: var(--brand); }
.form-row input, .form-row textarea, .form-row select {
  padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .95rem; background: #fff;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); }
.field-error { color: #c0392b; font-size: .82rem; }

/* --- Testimonials ----------------------------------------------------- */
.testimonials { display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); }
.quote .stars { color: var(--sun); letter-spacing: 2px; margin-bottom: .6rem; }
.quote p { margin: 0 0 1rem; color: #2c3a44; }
.quote .who { font-weight: 700; color: var(--brand); }

/* --- Payment options (confirmation) ----------------------------------- */
.pay-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  margin: 1.5rem 0; }
.pay-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.4rem;
  text-align: center; background: #fff; }
.pay-card h3 { margin: .2rem 0 .3rem; }
.pay-card .handle { font-size: .85rem; color: var(--muted); margin-bottom: 1rem;
  word-break: break-all; }
.pay-venmo { border-top: 4px solid #3d95ce; }
.pay-cashapp { border-top: 4px solid #00d632; }
.pay-paypal { border-top: 4px solid #003087; }
.pay-other { border-top: 4px solid var(--sun); }

/* --- About ------------------------------------------------------------ */
.about-hero { display: grid; grid-template-columns: 320px 1fr; gap: 2.5rem; align-items: center; }
.about-hero .card-media { border-radius: var(--radius); border: 1px solid var(--line);
  max-width: 320px; }
.prose { max-width: 720px; }
.prose p { margin: 0 0 1.1rem; color: #2c3a44; }
.prose .lead { font-size: 1.15rem; color: var(--brand); font-weight: 600; }

/* --- Blog: videos + articles ------------------------------------------ */
.video-grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.video-embed {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; background: #000; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.articles { display: grid; gap: 1.6rem; max-width: 760px; margin: 0 auto; }
.article-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm);
}
.article-card h3 { margin: 0 0 .6rem; }
.article-card p { color: #2c3a44; }
.article-card .article-cta { margin-top: 1rem; }

/* --- Footer ----------------------------------------------------------- */
.site-footer { background: var(--brand); color: #cfe2ea; padding: 3rem 0 1.5rem;
  margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2rem; }
.site-footer h4 { color: #fff; margin: 0 0 .8rem; font-size: 1rem; }
.site-footer a { color: #cfe2ea; display: block; padding: .2rem 0; }
.site-footer a:hover { color: var(--sun); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.2rem;
  text-align: center; font-size: .85rem; color: #9fc0cd; }

/* --- Toast ------------------------------------------------------------ */
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--brand); color: #fff; padding: .8rem 1.3rem; border-radius: 999px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s; z-index: 200;
  font-weight: 600; font-size: .9rem; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --- Breadcrumb ------------------------------------------------------- */
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumb a { color: var(--muted); }

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 900px) {
  .shop-layout, .product-detail, .cart-layout, .about-hero { grid-template-columns: 1fr; }
  .summary, .filters { position: static; }
  .filters { display: none; }
  .filters.open { display: block; margin-bottom: 1.2rem; }
  .filter-toggle { display: inline-flex; }
  .about-hero .card-media { max-width: 240px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .main-nav { position: fixed; inset: 68px 0 auto 0; background: #fff; flex-direction: column;
    gap: 0; padding: .5rem 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8rem 20px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-actions { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .form-grid { grid-template-columns: 1fr; }
}
