/*
 Theme Name:   Hiruandon Store Child
 Theme URI:    https://hiruandon-store.com
 Description:  Professional Japanese goods EC theme for overseas customers
 Author:       Hiruandon Store
 Template:     twentytwentyfive
 Version:      2.1.0
 Text Domain:  hiruandon-child
*/

:root {
  --color-hokusai-blue: #1B3A5C;
  --color-hokusai-blue-light: #2A5580;
  --color-hokusai-blue-dark: #122840;
  --color-ukiyo-vermillion: #C43A2A;
  --color-ukiyo-vermillion-hover: #A83020;
  --color-soji-white: #F5F0E8;
  --color-kinpaku-gold: #C8A84E;
  --color-kinpaku-gold-light: #D4BA6A;
  --color-sumi-black: #1A1A1A;
  --color-bg-secondary: #EDE8DC;
  --radius: 8px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 120px;
  --space-2xl: 160px;
  --section-gap: var(--space-xl);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-card-hover: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
}

/* ============================================
   Global Base
   ============================================ */
body {
  background-color: var(--color-soji-white) !important;
  color: var(--color-sumi-black);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  line-height: 1.8;
}
h1, h2, h3 {
  font-family: "Bebas Neue", "Noto Serif JP", sans-serif;
  letter-spacing: 0.08em;
  color: var(--color-hokusai-blue);
}
h4, h5, h6 {
  font-family: "Oswald", "Noto Sans JP", sans-serif;
  letter-spacing: 0.05em;
  color: var(--color-hokusai-blue);
}
a { color: var(--color-hokusai-blue); transition: color 0.3s ease; }
a:hover { color: var(--color-kinpaku-gold); }

/* ============================================
   Scroll Fade-In Animation
   ============================================ */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Header
   ============================================ */
header.wp-block-template-part { background-color: var(--color-hokusai-blue) !important; }
.wp-block-site-title a, .wp-block-site-title {
  font-family: "Bebas Neue", sans-serif !important;
  color: var(--color-soji-white) !important;
  letter-spacing: 0.12em;
  font-size: 2rem !important;
  text-decoration: none !important;
}
.wp-block-navigation a {
  color: var(--color-soji-white) !important;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.wp-block-navigation a:hover { color: var(--color-kinpaku-gold) !important; }

/* ============================================
   HERO Section — Product Image Background
   ============================================ */
.hero-section {
  background-color: var(--color-hokusai-blue);
  background-size: cover;
  background-position: center;
  color: var(--color-soji-white);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* Dark overlay on top of product image */
.hero-section::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(
    135deg,
    rgba(18,40,64,0.92) 0%,
    rgba(27,58,92,0.85) 50%,
    rgba(42,85,128,0.88) 100%
  );
  z-index: 0;
}
/* Bottom curve divider */
.hero-section::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 60px;
  background: var(--color-soji-white);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 3;
}
.hero-section > * {
  position: relative;
  z-index: 2;
}
.hero-section h1 {
  font-family: "Bebas Neue", sans-serif !important;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--color-soji-white) !important;
  letter-spacing: 0.15em;
  margin-bottom: 0.4em;
  line-height: 1.05;
  text-shadow: 0 3px 12px rgba(0,0,0,0.4);
}
.hero-section .tagline {
  color: var(--color-kinpaku-gold);
  font-family: "Oswald", sans-serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: 0.12em;
  margin-bottom: 1.5em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.hero-section .subtitle {
  color: rgba(245, 240, 232, 0.9);
  font-family: "Inter", sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  max-width: 560px;
  margin: 0 auto 2.5em;
  line-height: 1.9;
}

/* CTA Button */
.btn-cta {
  display: inline-block;
  background: var(--color-ukiyo-vermillion) !important;
  color: var(--color-soji-white) !important;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  padding: 16px 52px;
  border-radius: var(--radius) !important;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(196,58,42,0.35);
  transition: all 0.3s ease;
}
.btn-cta:hover {
  background: var(--color-ukiyo-vermillion-hover) !important;
  color: var(--color-soji-white) !important;
  box-shadow: 0 6px 28px rgba(196,58,42,0.45);
  transform: translateY(-2px);
}

/* ============================================
   Categories Section
   ============================================ */
.categories-section {
  padding: var(--section-gap) var(--space-lg);
  text-align: center;
  background-color: var(--color-soji-white);
}
.categories-section h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--color-hokusai-blue);
  margin-bottom: var(--space-lg);
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

/* Category Card */
.category-card {
  background: #fff;
  padding: var(--space-md);
  text-align: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
}
.category-card h3 {
  font-family: "Oswald", sans-serif;
  font-size: 1.05rem;
  color: var(--color-hokusai-blue);
  margin-top: var(--space-sm);
  letter-spacing: 0.03em;
}
.category-card .emoji { font-size: 2.5rem; display: block; margin-bottom: var(--space-xs); }

/* ============================================
   Features Section
   ============================================ */
.features-section {
  background-color: var(--color-bg-secondary);
  padding: var(--section-gap) var(--space-lg);
  text-align: center;
}
.features-section h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: var(--space-lg);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  max-width: 1000px;
  margin: 0 auto;
}
.feature-item {
  padding: var(--space-md);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.feature-item:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}
.feature-item .icon { font-size: 2.5rem; margin-bottom: var(--space-sm); }
.feature-item h3 {
  font-family: "Oswald", sans-serif;
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}
.feature-item p { font-size: 0.95rem; color: #555; line-height: 1.7; }

/* ============================================
   Story Section
   ============================================ */
.story-section {
  background: var(--color-hokusai-blue);
  color: var(--color-soji-white);
  padding: var(--section-gap) var(--space-lg);
  text-align: center;
}
.story-section h2 {
  color: var(--color-soji-white) !important;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}
.story-section p {
  max-width: 680px;
  margin: 0 auto var(--space-md);
  line-height: 2;
  color: rgba(245,240,232,0.9);
  font-size: 1rem;
}
.story-section .gold-text {
  color: var(--color-kinpaku-gold);
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.08em;
}

/* ============================================
   WooCommerce Products
   ============================================ */
.woocommerce ul.products li.product {
  border: none !important; box-shadow: none !important;
  background: transparent; text-align: center;
  transition: transform 0.3s ease;
}
.woocommerce ul.products li.product:hover { transform: translateY(-4px); }
.woocommerce ul.products li.product img {
  border-radius: var(--radius) !important;
  transition: transform 0.3s ease;
}
.woocommerce ul.products li.product:hover img { transform: scale(1.02); }
.woocommerce ul.products li.product .price {
  color: var(--color-ukiyo-vermillion) !important;
  font-family: "Oswald", sans-serif;
  font-size: 1.1rem;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 0.95rem;
  color: var(--color-sumi-black);
}
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .button.alt {
  background-color: var(--color-hokusai-blue) !important;
  color: var(--color-soji-white) !important;
  border-radius: var(--radius) !important;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  padding: 10px 24px;
  border: none !important;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .button.alt:hover {
  background-color: var(--color-hokusai-blue-light) !important;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}
.woocommerce div.product form.cart .button {
  background-color: var(--color-ukiyo-vermillion) !important;
  font-size: 1.2rem; padding: 14px 40px;
  border-radius: var(--radius) !important;
  box-shadow: 0 4px 20px rgba(196,58,42,0.3);
}
.woocommerce div.product form.cart .button:hover {
  background-color: var(--color-ukiyo-vermillion-hover) !important;
  box-shadow: 0 6px 28px rgba(196,58,42,0.4);
}
.woocommerce span.onsale {
  background-color: var(--color-ukiyo-vermillion) !important;
  color: var(--color-soji-white) !important;
  border-radius: var(--radius) !important;
  font-family: "Bebas Neue", sans-serif;
}
.woocommerce .woocommerce-breadcrumb { font-family: "Inter", sans-serif; font-size: 0.85rem; color: #888; }
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: var(--space-md) !important;
}

/* ============================================
   Footer — Clean & Minimal
   ============================================ */
footer.wp-block-template-part {
  background-color: var(--color-sumi-black) !important;
  color: rgba(245,240,232,0.7) !important;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  font-size: 0.85rem;
}
footer a {
  color: rgba(245,240,232,0.7) !important;
  transition: color 0.3s ease;
}
footer a:hover { color: var(--color-soji-white) !important; }
.footer-copyright {
  font-family: "Inter", sans-serif;
  letter-spacing: 0.02em;
  color: rgba(245,240,232,0.5);
  margin-top: var(--space-sm);
}

/* ============================================
   Product Slideshow (Infinite CSS Carousel)
   ============================================ */
.product-slideshow-section {
  padding: var(--section-gap) 0;
  background: linear-gradient(180deg, var(--color-soji-white) 0%, var(--color-bg-secondary) 100%);
  text-align: center;
  overflow: hidden;
}
.slideshow-heading {
  font-family: "Bebas Neue", sans-serif !important;
  font-size: clamp(1.8rem, 3vw, 2.5rem) !important;
  color: var(--color-hokusai-blue) !important;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg) !important;
}
.product-slideshow-wrapper {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.product-slideshow-track {
  display: flex !important;
  gap: var(--space-md) !important;
  animation: slideshow-scroll 60s linear infinite;
  width: max-content !important;
  flex-wrap: nowrap !important;
}
.product-slideshow-track:hover {
  animation-play-state: paused;
}
@keyframes slideshow-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.slideshow-item {
  flex: 0 0 220px !important;
  text-decoration: none !important;
  display: block !important;
  min-width: 220px !important;
  max-width: 220px !important;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.slideshow-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.slideshow-item-image {
  width: 220px;
  height: 220px;
  overflow: hidden;
  background: #fff;
}
.slideshow-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.slideshow-item:hover .slideshow-item-image img {
  transform: scale(1.05);
}
.slideshow-item-info {
  padding: 14px 12px;
  text-align: center;
}
.slideshow-item-name {
  display: block;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 0.8rem;
  color: var(--color-sumi-black);
  line-height: 1.4;
  max-height: 2.8em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.slideshow-item-price {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 0.95rem;
  color: var(--color-ukiyo-vermillion);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .hero-section { padding: var(--space-xl) var(--space-md); min-height: 400px; }
  .hero-section::before { height: 40px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
  .features-grid { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: var(--space-sm) !important; }
  .btn-cta { padding: 14px 36px; font-size: 1rem; }
  .slideshow-item {
    flex: 0 0 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
  }
  .slideshow-item-image { width: 180px; height: 180px; }
  .product-slideshow-section { padding: var(--space-lg) 0; }
}
@media (max-width: 480px) {
  .hero-section { min-height: 360px; }
  .category-grid { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: 1fr !important; }
  .slideshow-item {
    flex: 0 0 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
  }
  .slideshow-item-image { width: 150px; height: 150px; }
  .slideshow-item-name { font-size: 0.75rem; }
  .slideshow-item-price { font-size: 0.85rem; }
}

/* ============================================
   Full-Width Layout Override (2026-02-02)
   ============================================ */
:root {
  --wp--style--global--content-size: 100% !important;
  --wp--style--global--wide-size: 100% !important;
}
body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 100% !important;
}
body .is-layout-constrained > .alignwide {
  max-width: 100% !important;
}
body .is-layout-constrained > .alignfull {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.wp-site-blocks > * {
  max-width: 100% !important;
}
.wp-block-group,
.wp-block-columns,
.wp-block-cover,
.wp-block-post-content,
.entry-content,
.site-content,
main {
  max-width: 100% !important;
}
/* WooCommerce full-width */
.woocommerce .woocommerce-products-header,
.woocommerce .products,
.woocommerce div.product,
.woocommerce-page .woocommerce {
  max-width: 100% !important;
}
/* Keep inner content readable with padding */
.wp-block-post-content > *:not(.alignfull):not(.alignwide):not(.hero-section):not(.product-slideshow-section):not(.features-section):not(.story-section):not(.categories-section) {
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}
/* Full-width: remove internal max-width constraints */
.category-grid,
.features-grid {
  max-width: 100% !important;
}
