/* ========================================
   KUKAI MATCHA STUDIO — Style Sheet
   Fonts: EB Garamond (headers), Open Sans (body)
   Colors: #e3e3e3 (decoration), #0d0d0d (affirmation), #393838 (attention), #616161 (link)
   ======================================== */

/* --- CSS Variables --- */
:root {
  --color-affirmation: #0d0d0d;
  --color-decoration: #e3e3e3;
  --color-attention: #393838;
  --color-link: #616161;
  --color-warning: #B50E18;
  --color-white: #ffffff;
  --color-black: #000000;
  --font-headers: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max: 1200px;
  --container-padding: 20px;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

@media (min-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
  width: 100%;
  background: var(--color-decoration);
  color: var(--color-black);
  border-bottom: 1px solid rgba(0,0,0,0.2);
  padding: 10px 10px;
  position: relative;
  z-index: 1000;
}

@media (min-width: 1024px) {
  .site-header {
    padding: 20px 20px;
  }
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  min-height: 44px;
}

.header-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  margin-right: 8px;
  color: var(--color-black);
  border-radius: 4px;
}

.hamburger-btn:hover {
  opacity: 0.7;
}

@media (min-width: 1024px) {
  .hamburger-btn {
    display: none;
  }
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: auto;
  width: 53px;
  max-width: none;
}

@media (min-width: 1024px) {
  .logo-img {
    min-width: 53px;
  }
}

/* Main Nav */
.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: block;
    flex: 1;
    padding: 0 20px;
  }
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.nav-link {
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 1rem;
  line-height: 1.2;
  padding: 6px 0;
  color: var(--color-link);
  transition: color 0.15s ease;
}

.nav-link:hover {
  text-decoration: underline;
  color: var(--color-black);
}

.nav-link.active {
  font-weight: 700;
  text-decoration: underline;
  color: var(--color-black);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .header-actions {
    flex: 1;
    justify-content: flex-end;
  }
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-black);
  border-radius: 4px;
  position: relative;
}

.icon-btn:hover {
  opacity: 0.7;
}

.cart-btn {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  background: var(--color-affirmation);
  color: var(--color-white);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cart-badge.visible {
  opacity: 1;
}

/* ========================================
   MOBILE MENU
   ======================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-white);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.close-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-black);
}

.mobile-nav-list {
  overflow-y: auto;
}

.mobile-nav-list li {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.mobile-nav-link {
  display: block;
  padding: 16px;
  font-size: 1rem;
  color: var(--color-black);
}

.mobile-nav-link.active {
  font-weight: 700;
  text-decoration: underline;
}

.mobile-nav-link:hover {
  opacity: 0.7;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   HERO BANNER
   ======================================== */
.hero-banner {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  min-height: 400px;
  overflow: hidden;
}

@media (min-width: 480px) {
  .hero-banner {
    min-height: 540px;
  }
}

@media (min-width: 768px) {
  .hero-banner {
    min-height: 420px;
  }
}

@media (min-width: 1024px) {
  .hero-banner {
    min-height: 530px;
  }
}

@media (min-width: 1280px) {
  .hero-banner {
    min-height: 600px;
    max-height: 600px;
  }
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-black);
  opacity: 0.3;
  pointer-events: none;
}

/* ========================================
   TAGLINE SECTION
   ======================================== */
.tagline-section {
  background: var(--color-decoration);
  color: var(--color-black);
  padding: 20px 0;
  text-align: center;
}

@media (min-width: 1024px) {
  .tagline-section {
    padding: 28px 0;
  }
}

.tagline-heading {
  font-family: var(--font-headers);
  font-weight: 400;
  font-size: clamp(2.5rem, 4vw + 1rem, 3.5rem);
  line-height: 1.2;
  text-align: center;
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products-section {
  background: var(--color-white);
  color: var(--color-black);
  padding: 20px 0;
}

@media (min-width: 1024px) {
  .products-section {
    padding: 28px 0;
  }
}

.products-section.alt-bg {
  background: var(--color-white);
}

.section-title {
  font-family: var(--font-headers);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw + 1rem, 2.5rem);
  line-height: 1.2;
  text-align: left;
  margin-bottom: 24px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 16px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 20px;
  }
}

@media (min-width: 1280px) {
  .products-grid {
    gap: 20px 20px;
  }
}

/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 16px;
  position: relative;
  color: var(--color-black);
  transition: opacity 0.15s ease;
}

.product-card:hover {
  opacity: 0.9;
}

.product-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-in-out;
}

.product-card:hover .product-image {
  transform: scale(1.15);
}

.product-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
}

.product-name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 16px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

@media (min-width: 640px) {
  .product-name {
    font-size: 1rem;
  }
}

.product-price {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  padding-bottom: 7px;
}

@media (min-width: 640px) {
  .product-price {
    font-size: 0.875rem;
  }
}

.product-variants {
  font-size: 0.7rem;
  line-height: 1.2;
  min-height: 16px;
  text-transform: uppercase;
  word-break: break-word;
  color: rgba(0,0,0,0.4);
}

/* Explore Products Button */
.explore-btn-wrap {
  text-align: center;
  margin-top: 8px;
}

.explore-btn {
  display: inline-block;
  padding: 13px 20px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.2;
  color: var(--color-link);
  background: var(--color-white);
  border: 1px solid var(--color-link);
  text-align: center;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.explore-btn:hover {
  background: rgba(97,97,97,0.1);
}

/* ========================================
   WORKSHOP SECTION
   ======================================== */
.workshop-text {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 24px;
  text-align: center;
  color: var(--color-link);
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-link);
  font-size: 0.95rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-content {
  max-width: 680px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-link);
}

.contact-item a {
  color: var(--color-link);
  text-decoration: underline;
}

.contact-item a:hover {
  color: var(--color-black);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  width: 100%;
}

.footer-social {
  background: var(--color-decoration);
  color: var(--color-black);
  padding: 32px 0 24px;
  text-align: center;
  position: relative;
}

.footer-social::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.05);
  z-index: 0;
}

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

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0 0;
}

.social-links li {
  margin: 0 20px 0 0;
}

.social-links li:last-child {
  margin-right: 0;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-black);
  transition: opacity 0.15s ease;
}

.social-links a:hover {
  opacity: 0.6;
}

.footer-bottom {
  background: var(--color-black);
  color: var(--color-white);
  padding: 0;
  min-height: 80px;
  display: flex;
  align-items: center;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
  }
}

.footer-copyright {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.footer-copyright strong {
  margin-left: 4px;
  word-break: break-word;
}

.footer-powered {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  margin-top: 12px;
}

@media (min-width: 768px) {
  .footer-powered {
    margin-top: 0;
    text-align: right;
    display: flex;
    align-items: center;
  }
}

.footer-powered a {
  color: rgba(255,255,255,0.5);
  margin-left: 6px;
  text-decoration: underline;
}

.footer-powered a:hover {
  color: var(--color-white);
}

/* ========================================
   UTILITY
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
