/*
Theme Name: Rhythm Dev
Theme URI: https://rhythmdev.co
Author: Rhythm Development
Author URI: https://rhythmdev.co
Description: Custom marketing theme for Rhythm Development. Monochromatic black/off-white brand design with WooCommerce integration.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: Proprietary
Text Domain: rhythm-dev
*/

/* ============================================================
   Rhythm Development — style.css
   Stack: Tailwind CSS (CDN) + custom properties
   Font: Plus Jakarta Sans (Google Fonts)
   Color system: monochromatic black / off-white brand palette
   ============================================================ */

/* ----------------------------------------------------------
   Reset & Base
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #F7F6F4;
  color: #0A0A0A;
  font-family: 'Plus Jakarta Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----------------------------------------------------------
   Grain texture overlay (purely decorative)
   ---------------------------------------------------------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ----------------------------------------------------------
   Scroll-triggered fade-up animation
   ---------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* ----------------------------------------------------------
   Navigation
   ---------------------------------------------------------- */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition:
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    box-shadow 0.4s ease;
}

#nav.scrolled {
  background: rgba(247, 246, 244, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 #E4E3E0;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.nav-logo-main {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0A0A0A;
  line-height: 1;
}

.nav-logo-sub {
  font-size: 0.6rem;
  font-weight: 400;
  color: #767674;
  letter-spacing: 0.01em;
  margin-left: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #767674;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover { color: #0A0A0A; }
.nav-link:focus-visible { outline: 2px solid #0A0A0A; outline-offset: 3px; border-radius: 2px; }

/* ----------------------------------------------------------
   Nav actions (cart icon + hamburger wrapper)
   ---------------------------------------------------------- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Cart icon button */
.nav-cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0A0A0A;
  text-decoration: none;
  padding: 6px;
  border-radius: 8px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-cart-icon:hover { opacity: 0.6; }
.nav-cart-icon:focus-visible { outline: 2px solid #0A0A0A; outline-offset: 3px; border-radius: 8px; }

/* Badge */
.rhythm-cart-count {
  position: absolute;
  top: -3px;
  right: -5px;
  background: #0A0A0A;
  color: #F7F6F4;
  font-size: 0.5rem;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  border-radius: 100px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 3.5px;
  line-height: 1;
  border: 1.5px solid #F7F6F4;
}

.rhythm-cart-count.is-visible {
  display: flex;
}

/* ----------------------------------------------------------
   Mobile menu
   ---------------------------------------------------------- */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: #0A0A0A;
  padding: 6rem 2rem 2rem;
  flex-direction: column;
  gap: 2rem;
}

#mobile-menu.open {
  display: flex;
}

#mobile-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #F7F6F4;
  padding: 8px;
}

.mobile-link {
  font-size: 2rem;
  font-weight: 800;
  color: #F7F6F4;
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.mobile-link:hover { color: rgba(247, 246, 244, 0.6); }

.mobile-cta-wrap {
  margin-top: auto;
  padding-top: 2rem;
}

/* Hamburger button */
#hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #0A0A0A;
}

/* ----------------------------------------------------------
   Responsive nav visibility
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .nav-links  { display: none; }
  #hamburger  { display: flex; }
}

@media (min-width: 769px) {
  #hamburger  { display: none; }
}

/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0A0A0A;
  color: #F7F6F4;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(10, 10, 10, 0.18), 0 1px 3px rgba(10, 10, 10, 0.12);
}

.btn-primary:hover {
  background: #2A2A28;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(10, 10, 10, 0.22), 0 2px 6px rgba(10, 10, 10, 0.12);
}

.btn-primary:active  { transform: translateY(0); }
.btn-primary:focus-visible { outline: 2px solid #0A0A0A; outline-offset: 3px; }

/* ---- */

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #0A0A0A;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  border: 1.5px solid #0A0A0A;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-outline:hover {
  background: #0A0A0A;
  color: #F7F6F4;
  transform: translateY(-1px);
}

.btn-outline:active  { transform: translateY(0); }
.btn-outline:focus-visible { outline: 2px solid #0A0A0A; outline-offset: 3px; }

/* ---- */

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F7F6F4;
  color: #0A0A0A;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(247, 246, 244, 0.3);
}

.btn-white:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(247, 246, 244, 0.4);
}

.btn-white:active  { transform: translateY(0); }
.btn-white:focus-visible { outline: 2px solid #F7F6F4; outline-offset: 3px; }

/* Full-width buttons */
.btn-full {
  width: 100%;
  box-sizing: border-box;
}

/* Small button padding variant */
.btn-sm {
  padding: 0.625rem 1.375rem;
  font-size: 0.75rem;
}

/* ----------------------------------------------------------
   Section utilities
   ---------------------------------------------------------- */
.section-container {
  padding: 7rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #767674;
}

.section-divider {
  height: 1px;
  background: #E4E3E0;
  max-width: 1280px;
  margin: 0 auto;
}

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */
#hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: #0A0A0A;
}

.hero-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center 15%;
  width: 100%;
  height: 100%;
}

.hero-gradient-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.2) 0%,
    rgba(10, 10, 10, 0) 40%,
    rgba(10, 10, 10, 0.6) 100%
  );
}

.hero-gradient-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 10, 10, 0.4) 0%,
    rgba(10, 10, 10, 0) 60%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 2rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
  left: 0;
  right: 0;
}

.hero-eyebrow {
  margin-bottom: 1rem;
  color: rgba(247, 246, 244, 0.6);
}

.hero-headline {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  color: #F7F6F4;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin: 0 0 1.5rem;
  max-width: 14ch;
}

.hero-body {
  font-size: 1rem;
  color: rgba(247, 246, 244, 0.7);
  line-height: 1.7;
  max-width: 36ch;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-text-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(247, 246, 244, 0.7);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.hero-text-link:hover { color: #F7F6F4; }

/* Scroll hint mouse icon */
@keyframes bounce-y {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

.scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: bounce-y 2s ease-in-out infinite;
}

/* ----------------------------------------------------------
   About section
   ---------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-headline {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 1.5rem;
  max-width: 18ch;
}

.about-body {
  font-size: 1rem;
  color: #767674;
  line-height: 1.7;
  max-width: 44ch;
}

.stat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.stat-item { display: flex; flex-direction: column; gap: 2px; }

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0A0A0A;
  margin: 0;
}

.stat-label {
  font-size: 0.8125rem;
  color: #767674;
  margin: 0;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  background: #E4E3E0;
}

/* About image grid */
.about-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #EEECEA;
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(10, 10, 10, 0.3) 100%);
}

.about-img-offset-up   { margin-top: 2rem; }
.about-img-offset-down { margin-top: -2rem; }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.testimonial-card {
  background: #FFFFFF;
  border: 1.5px solid #E4E3E0;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(10, 10, 10, 0.04);
}

.stars {
  color: #0A0A0A;
  letter-spacing: 2px;
  font-size: 0.875rem;
  margin-bottom: 0.875rem;
}

.testimonial-quote {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #2A2A28;
  margin: 0 0 1.25rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0A0A0A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #F7F6F4;
  flex-shrink: 0;
}

.author-name {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0;
  color: #0A0A0A;
}

.author-since {
  font-size: 0.75rem;
  color: #767674;
  margin: 0;
}

/* ----------------------------------------------------------
   Membership section
   ---------------------------------------------------------- */
.membership-headline {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 24ch;
  margin: 0 auto 1.25rem;
}

/* Feature icons row */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 4rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: #FFFFFF;
  border: 1.5px solid #E4E3E0;
  border-radius: 16px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #EEECEA;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #0A0A0A;
}

.feature-desc {
  font-size: 0.8125rem;
  color: #767674;
  margin: 0;
  line-height: 1.55;
}

/* Membership card grid */
.membership-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.membership-card {
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.membership-card--light {
  background: #FFFFFF;
  border: 1.5px solid #E4E3E0;
  box-shadow: 0 4px 24px rgba(10, 10, 10, 0.06), 0 1px 4px rgba(10, 10, 10, 0.04);
}

.membership-card--dark {
  background: #0A0A0A;
  color: #F7F6F4;
}

.card-bg-texture {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
}

.card-inner { position: relative; z-index: 1; }

.card-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

.card-badge--dark {
  background: #0A0A0A;
  color: #F7F6F4;
}

.card-badge--ghost {
  background: rgba(247, 246, 244, 0.12);
  color: #F7F6F4;
}

.card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.card-badge--pill-light {
  display: inline-block;
  background: #F7F6F4;
  color: #0A0A0A;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

.card-title {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.875rem;
}

.card-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0 0 2rem;
}

.card-desc--muted   { color: #767674; }
.card-desc--faded   { color: rgba(247, 246, 244, 0.6); }

.card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-feature-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.card-feature-item--dark  { color: #2A2A28; }
.card-feature-item--light { color: rgba(247, 246, 244, 0.85); }

.card-price-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(247, 246, 244, 0.5);
  margin: 0 0 0.375rem;
}

.card-price {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.card-price--dark  { color: #0A0A0A; }
.card-price--light { color: #F7F6F4; }

.card-powered {
  font-size: 0.75rem;
  margin: 0.875rem 0 0;
  text-align: center;
}

.card-powered--muted  { color: #767674; }
.card-powered--faded  { color: rgba(247, 246, 244, 0.4); }

/* Next call banner */
.next-call-banner {
  margin-top: 3rem;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  height: 380px;
  background: #0A0A0A;
}

.next-call-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.65;
  filter: grayscale(30%);
}

.next-call-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.2) 60%, transparent 100%);
}

.next-call-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.next-call-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 246, 244, 0.5);
  margin: 0 0 0.375rem;
}

.next-call-date {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #F7F6F4;
  margin: 0 0 0.25rem;
}

.next-call-detail {
  font-size: 0.875rem;
  color: rgba(247, 246, 244, 0.6);
  margin: 0;
}

/* ----------------------------------------------------------
   Shop section
   ---------------------------------------------------------- */
.shop-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.shop-headline {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  max-width: 22ch;
}

.shop-view-all {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #767674;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.shop-view-all:hover { color: #0A0A0A; }

.shop-subsection { margin-bottom: 4rem; }
.shop-subsection:last-child { margin-bottom: 0; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* Product image link wrapper */
.product-img-link {
  display: block;
  text-decoration: none;
}

/* Product name link */
.product-name-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-name-link:hover .product-name {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Product card */
.product-card { display: flex; flex-direction: column; }

.product-img-wrap {
  background: #EEECEA;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  position: relative;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-img-wrap:hover img { transform: scale(1.04); }

/* T-shirt product images: 4/5 ratio, cover fill */
.product-img-wrap--tshirt {
  aspect-ratio: 4 / 5;
}

.product-img-wrap--tshirt img {
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  background: #0A0A0A;
  color: #F7F6F4;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

.product-info {
  padding: 1rem 0.25rem 0;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.product-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0A0A0A;
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
}

.product-sub {
  font-size: 0.8125rem;
  color: #767674;
  margin: 0;
}

.product-price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0A0A0A;
  margin: 0;
  white-space: nowrap;
}

/* Color swatches */
.color-swatches {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.color-dot--selected-black {
  box-shadow: 0 0 0 2px rgba(10,10,10,0.3), 0 0 0 3.5px #F7F6F4, 0 0 0 5px rgba(10,10,10,0.2);
}

.color-dot--selected-blue {
  box-shadow: 0 0 0 2px rgba(74,106,124,0.3), 0 0 0 3.5px #F7F6F4, 0 0 0 5px rgba(74,106,124,0.3);
}

/* ----------------------------------------------------------
   Instagram section
   ---------------------------------------------------------- */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.ig-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  display: block;
}

@media (max-width: 520px) {
  .ig-card { border-radius: 8px; }
}

.ig-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ig-card:hover img { transform: scale(1.05); }

.ig-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0);
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ig-card:hover .ig-overlay { background: rgba(10, 10, 10, 0.35); }

.ig-icon {
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ig-card:hover .ig-icon {
  opacity: 1;
  transform: scale(1);
}

.ig-follow-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

/* ----------------------------------------------------------
   Footer CTA section
   ---------------------------------------------------------- */
.footer-cta {
  background: #0A0A0A;
  padding: 6rem 1.5rem;
}

.footer-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.footer-cta-headline {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
  color: #F7F6F4;
  margin: 0 0 1.5rem;
}

.footer-cta-sub {
  font-size: 1.0625rem;
  color: rgba(247, 246, 244, 0.55);
  line-height: 1.7;
  margin: 0 0 2.5rem;
}

.footer-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
footer {
  background: #0A0A0A;
  border-top: 1px solid rgba(247, 246, 244, 0.08);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-logo {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.footer-logo-main {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #F7F6F4;
  line-height: 1;
}

.footer-logo-sub {
  font-size: 0.55rem;
  font-weight: 400;
  color: rgba(247, 246, 244, 0.4);
  letter-spacing: 0.01em;
  margin-left: 1px;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.8125rem;
  color: rgba(247, 246, 244, 0.4);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover { color: rgba(247, 246, 244, 0.8); }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(247, 246, 244, 0.25);
  margin: 0;
}

/* ----------------------------------------------------------
   Footer CTA dark button variant
   ---------------------------------------------------------- */
.btn-outline--dark {
  color: #F7F6F4;
  border-color: rgba(247, 246, 244, 0.25);
}

.btn-outline--dark:hover {
  background: rgba(247, 246, 244, 0.1);
  color: #F7F6F4;
  border-color: rgba(247, 246, 244, 0.4);
}

/* ----------------------------------------------------------
   WooCommerce overrides — keep brand look inside WC pages
   ---------------------------------------------------------- */
.woocommerce-page .woocommerce,
.woocommerce {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 1.5rem 7rem;
}

/* Headings */
.woocommerce h1,
.woocommerce h2,
.woocommerce h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0A0A0A;
}

/* Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: #0A0A0A;
  color: #F7F6F4;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background: #2A2A28;
  color: #F7F6F4;
  transform: translateY(-1px);
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: #0A0A0A;
}

/* Product grid */
.woocommerce ul.products li.product a img {
  border-radius: 16px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-weight: 700;
  color: #0A0A0A;
  letter-spacing: -0.01em;
}

.woocommerce ul.products li.product .price {
  color: #0A0A0A;
  font-weight: 700;
}

/* Form fields */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1.5px solid #E4E3E0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9375rem;
  color: #0A0A0A;
  background: #FFFFFF;
  transition: border-color 0.2s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  outline: none;
  border-color: #0A0A0A;
}

/* Notices */
.woocommerce-message,
.woocommerce-info {
  border-top-color: #0A0A0A;
}

/* ----------------------------------------------------------
   WooCommerce page content wrapper
   ---------------------------------------------------------- */
.rhythm-wc-page {
  min-height: 60vh;
  padding-top: 68px; /* nav height */
}

/* ==========================================================
   TASK 1 — WooCommerce Shop Grid
   3 cols desktop (≥1024px) | 2 cols tablet + mobile
   ========================================================== */

/* Grid base — overrides WC default float/flex layout */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  gap: 1.25rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* Reset inline widths WooCommerce injects via PHP */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  clear: none !important;
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Tablet: 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Mobile: 2 columns */
@media (max-width: 767px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
}

/* Product image: fill card, maintain aspect ratio, no overflow */
.woocommerce ul.products li.product a img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  aspect-ratio: 3 / 4;
}

/* Product title + price: readable on small screens */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: clamp(0.8rem, 2.5vw, 0.9375rem) !important;
  white-space: normal !important;
  word-break: break-word !important;
  padding: 0.5rem 0 0.25rem !important;
}

.woocommerce ul.products li.product .price {
  font-size: clamp(0.75rem, 2vw, 0.9375rem) !important;
  display: block !important;
}

/* ==========================================================
   TASK 2 — Add to Cart Button: 3-state animation
   States: default → .loading (spinner) → .rhythm-added (success)
   ========================================================== */

/* ── Loading state ────────────────────────────────────────── */
@keyframes rhythm-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.woocommerce ul.products li.product .add_to_cart_button.loading,
.woocommerce ul.products li.product .add_to_cart_button[disabled],
.single-product .single_add_to_cart_button.loading {
  pointer-events: none !important;
  color: transparent !important;
  position: relative;
  overflow: hidden;
}

.woocommerce ul.products li.product .add_to_cart_button.loading::after,
.single-product .single_add_to_cart_button.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(247, 246, 244, 0.35);
  border-top-color: #F7F6F4;
  border-radius: 50%;
  animation: rhythm-spin 0.65s linear infinite;
  transform: translate(-50%, -50%);
}

/* ── Success state ────────────────────────────────────────── */
.woocommerce ul.products li.product .add_to_cart_button.rhythm-added,
.single-product .single_add_to_cart_button.rhythm-added {
  background: #16a34a !important;
  color: #ffffff !important;
  pointer-events: none !important;
  transition:
    background 0.3s ease-in-out,
    color 0.3s ease-in-out,
    transform 0.3s ease-in-out !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
}

.add_to_cart_button.rhythm-added:hover,
.single_add_to_cart_button.rhythm-added:hover {
  transform: none !important;
  background: #16a34a !important;
}

/* Icon inside success button */
.rct-check-icon {
  flex-shrink: 0;
  vertical-align: middle;
  display: inline-block;
}

/* Smooth transition on all button states (300ms ease-in-out) */
.woocommerce ul.products li.product .add_to_cart_button,
.single-product .single_add_to_cart_button {
  transition:
    background 0.3s ease-in-out,
    color 0.3s ease-in-out,
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.2s ease !important;
}

/* ==========================================================
   TASK 2 — Mini Cart Toast Notification
   Fixed bottom-right, slides in from off-screen right
   ========================================================== */

#rhythm-cart-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  width: 300px;
  max-width: calc(100vw - 3rem);
  background: #ffffff;
  border: 1.5px solid #E4E3E0;
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(10, 10, 10, 0.10),
    0 2px 8px rgba(10, 10, 10, 0.06);
  padding: 1.125rem 1.125rem 1rem;
  opacity: 0;
  transform: translateX(calc(100% + 1.5rem));
  transition:
    opacity 0.3s ease-in-out,
    transform 0.3s ease-in-out;
  pointer-events: none;
  font-family: 'Plus Jakarta Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#rhythm-cart-toast.is-visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Toast header row */
.rct-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.625rem;
}

.rct-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #16a34a;
}

.rct-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: #767674;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.rct-close:hover { color: #0A0A0A; }

/* Toast body */
.rct-body {
  margin-bottom: 0.875rem;
}

.rct-product-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0A0A0A;
  margin: 0 0 0.375rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.rct-details {
  display: flex;
  gap: 0.875rem;
  font-size: 0.8125rem;
  color: #767674;
  font-weight: 500;
}

/* CTA inside toast */
.rct-view-cart {
  display: block;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.75rem !important;
  padding: 0.625rem 1.25rem !important;
  text-decoration: none;
  border-radius: 100px;
  background: #0A0A0A;
  color: #F7F6F4;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    background 0.2s ease,
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.rct-view-cart:hover {
  background: #2A2A28;
  transform: translateY(-1px);
  color: #F7F6F4;
}

/* Mobile: nudge toast to avoid edge clipping */
@media (max-width: 480px) {
  #rhythm-cart-toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    width: auto;
    max-width: 100%;
    transform: translateY(calc(100% + 1rem));
  }

  #rhythm-cart-toast.is-visible {
    transform: translateY(0);
  }
}
