/*
Theme Name: JIMOK Storefront
Theme URI: https://topjimok.com
Author: JIMOK
Author URI: https://topjimok.com
Description: Custom Storefront child theme with a jimokusa.com-style clean DTC design for JIMOK sonic electric toothbrushes (J6 PRO / J7).
Template: storefront
Version: 1.0.0
Text Domain: jimok-storefront
*/

/* ===== Palette =====
   ink    #171820
   accent #706cff
   bg     #f7f7f5
   muted  #6b6b76
   line   #e8e8e4
*/

/* ---- Storefront CSS variable overrides ---- */
:root {
  --background: #f7f7f5;
  --color-link: #706cff;
  --color-link-hover: #171820;
  --button-background-color: #706cff;
  --button-background-color-hover: #171820;
  --button-text-color: #ffffff;
  --button-text-color-hover: #ffffff;
  --body-text-color: #6b6b76;
  --heading-text-color: #171820;
  --header-background-color: #ffffff;
  --header-text-color: #171820;
  --footer-background-color: #171820;
  --footer-text-color: #f7f7f5;
}

/* ---- Global ---- */
html { -webkit-text-size-adjust: 100%; }
body, button, input, select, textarea {
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
}
body {
  background: #f7f7f5;
  color: #6b6b76;
  line-height: 1.65;
}
h1, h2, h3, h4, h5, h6 {
  color: #171820;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
a { color: #706cff; text-decoration: none; transition: color .15s ease; }
a:hover { color: #171820; }
p { margin: 0 0 1em; }

/* ---- Buttons (Storefront + WooCommerce) ---- */
.button, button, input[type="submit"], input[type="button"],
a.button, .added_to_cart, .wc-forward, .single_add_to_cart_button,
.woocommerce #respond input#submit, .woocommerce a.button.alt,
.woocommerce button.button.alt, .woocommerce input.button.alt,
.checkout-button, #place_order, .wp-element-button, .wc-block-components-button {
  background-color: #706cff !important;
  color: #ffffff !important;
  border: 1px solid #706cff !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  padding: 0.8em 1.9em !important;
  text-shadow: none !important;
  box-shadow: none !important;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.button:hover, button:hover, a.button:hover, .wc-forward:hover,
.single_add_to_cart_button:hover, .woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover, .checkout-button:hover, #place_order:hover {
  background-color: #171820 !important;
  border-color: #171820 !important;
  color: #ffffff !important;
}

/* ---- Header (Storefront) ---- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #eee;
  padding: 0;
}
.storefront-primary-navigation {
  background: #ffffff;
  border-top: none;
}
.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a {
  color: #171820;
  font-weight: 600;
}
.main-navigation ul.menu li a:hover,
.main-navigation ul.nav-menu li a:hover {
  color: #706cff;
}
.site-header-cart .cart-contents {
  color: #171820;
  background: transparent;
}
.site-header-cart .cart-contents .count {
  background: #706cff;
  color: #fff;
  border-radius: 999px;
}
.site-branding .site-title a,
.site-branding .site-description { color: #171820; }
.site-header .site-branding { padding: 0.6em 0; }

/* ================================================================
   Homepage (front-page.php) — jimokusa-style
   ================================================================ */
.jm-home { background: #f7f7f5; }
.jm-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---- Hero ---- */
.jm-hero {
  background: #f7f7f5;
  padding: 72px 0 64px;
}
.jm-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.jm-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  margin: 0 0 16px;
}
.jm-hero-sub { font-size: 1.15rem; color: #6b6b76; margin-bottom: 28px; }
.jm-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.jm-hero-note { font-size: 0.95rem; color: #6b6b76; margin: 0; }
.jm-hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  background: #fff;
  display: block;
}

/* ---- Intro line ---- */
.jm-intro { padding: 24px 24px 8px; }
.jm-intro h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-align: center;
  margin: 0;
}

/* ---- Product cards ---- */
.jm-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding: 32px 24px 64px;
}
.jm-card {
  background: #ffffff;
  border: 1px solid #e8e8e4;
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 28px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.jm-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(23,24,32,0.08); }
.jm-card-img { display: block; background: #f7f7f5; }
.jm-card-img img { width: 100%; height: auto; display: block; }
.jm-card-body { padding: 24px 24px 0; }
.jm-card h3 { font-size: 1.5rem; margin: 0 0 4px; }
.jm-card-sub { color: #6b6b76; margin: 0 0 12px; font-size: 0.95rem; }
.jm-card-price { font-size: 1.15rem; font-weight: 700; color: #171820; margin-bottom: 16px; }
.jm-card-price del { color: #b0b0b8; font-weight: 400; }

/* ---- Feature ---- */
.jm-feature { background: #ffffff; padding: 72px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.jm-feature h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: 0.06em;
  margin-bottom: 40px;
}
.jm-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.jm-feature-item { text-align: center; }
.jm-feature-item h3 { font-size: 1.15rem; margin: 0 0 10px; }
.jm-feature-item p { margin: 0; color: #6b6b76; font-size: 0.98rem; }

/* ---- Anywhere ---- */
.jm-anywhere { background: #f7f7f5; padding: 80px 0; text-align: center; }
.jm-anywhere h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 16px; }
.jm-anywhere p { max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* ---- Trust / badges ---- */
.jm-trust { background: #ffffff; padding: 72px 0; text-align: center; border-top: 1px solid #eee; }
.jm-trust h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 12px; }
.jm-trust > .jm-wrap > p { max-width: 620px; margin: 0 auto 28px; }
.jm-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.jm-badge {
  border: 1.5px solid #171820;
  color: #171820;
  border-radius: 999px;
  padding: 8px 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.jm-trust-note { font-size: 0.9rem; color: #6b6b76; margin: 0; }

/* ---- FAQ ---- */
.jm-faq { padding: 80px 24px; max-width: 760px; }
.jm-faq h2 { text-align: center; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 36px; }
.jm-faq-list details {
  border-bottom: 1px solid #e8e8e4;
  padding: 20px 0;
}
.jm-faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: #171820;
  font-size: 1.08rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.jm-faq-list summary::-webkit-details-marker { display: none; }
.jm-faq-list summary::after { content: "+"; font-size: 1.4rem; color: #706cff; transition: transform .2s ease; }
.jm-faq-list details[open] summary::after { transform: rotate(45deg); }
.jm-faq-list details p { margin: 14px 0 0; color: #6b6b76; }

/* ---- CTA ---- */
.jm-cta { background: #706cff; padding: 80px 0; text-align: center; }
.jm-cta h2 { color: #ffffff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 28px; }
.jm-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.jm-cta .jm-btn-solid {
  background: #171820 !important;
  border-color: #171820 !important;
  color: #fff !important;
}
.jm-cta .jm-btn-solid:hover { background: #ffffff !important; border-color: #ffffff !important; color: #171820 !important; }

/* ---- Footer links ---- */
.jm-footer-links { background: #171820; padding: 56px 0; }
.jm-footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.jm-footer-links h3 { color: #f7f7f5; margin-bottom: 16px; font-size: 1rem; letter-spacing: 0.02em; }
.jm-footer-links ul { list-style: none; margin: 0; padding: 0; }
.jm-footer-links ul li { margin-bottom: 10px; }
.jm-footer-links ul li a { color: #b8b8c0; }
.jm-footer-links ul li a:hover { color: #ffffff; }

/* ---- Shared CTA button ---- */
.jm-btn {
  display: inline-block;
  background: #706cff;
  color: #fff;
  border: 1px solid #706cff;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.8em 1.9em;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.jm-btn:hover { background: #171820; border-color: #171820; color: #fff; }

/* ---- Storefront footer credit cleanup ---- */
.site-footer { background: #171820; color: #b8b8c0; }
.site-footer .site-info, .site-footer a { color: #b8b8c0; }
.site-footer a:hover { color: #ffffff; }

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 768px) {
  .jm-hero { padding: 48px 0 40px; }
  .jm-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .jm-hero-visual { order: -1; max-width: 320px; margin: 0 auto; }
  .jm-products { grid-template-columns: 1fr; }
  .jm-feature-grid { grid-template-columns: 1fr; gap: 28px; }
  .jm-footer-grid { grid-template-columns: 1fr 1fr; }
}
