/* =============================================
   KOROMO — Shop Pages Stylesheet
   Extends home.css design system for shop pages
   ============================================= */

/* ---------- Shop Page Hero ---------- */
.shop-hero {
  position: relative;
  height: 320px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  margin-top: 72px;
}
.shop-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
}
.shop-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 32px 48px;
}
.shop-hero-en {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.shop-hero-title {
  font-family: var(--font-ja);
  font-size: 30px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.shop-hero-sub {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
}

/* ---------- Breadcrumb ---------- */
.shop-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
}
.shop-breadcrumb nav {
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.shop-breadcrumb a {
  color: var(--navy);
  transition: opacity .2s;
}
.shop-breadcrumb a:hover {
  opacity: .7;
}
.shop-breadcrumb .sep {
  color: var(--mid-gray);
  font-size: 11px;
}

/* ---------- Shop Section ---------- */
.shop-section {
  padding: 80px 0;
}
.shop-section.alt {
  background: var(--pale-gray);
}
.shop-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Section heading */
.shop-section-head {
  text-align: center;
  margin-bottom: 48px;
}
.shop-section-en {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 3px;
  color: var(--mid-gray);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.shop-section-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 1px;
}
.shop-section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ---------- Product Card ---------- */
.product-card {
  max-width: 900px;
  margin: 0 auto 48px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--duration) var(--ease);
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
}
.product-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
}
.product-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--pale-gray);
  position: relative;
}
.product-visual i {
  font-size: 64px;
  color: var(--navy-light);
  opacity: .4;
}
.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
}
.product-badge.digital {
  background: var(--navy);
  color: var(--white);
}
.product-badge.shipping {
  background: var(--green-deep);
  color: var(--white);
}
.product-badge.handoff {
  background: var(--text-secondary);
  color: var(--white);
}
.product-body {
  padding: 36px 40px;
}
.product-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}
.product-price {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 24px;
}
.product-price .tax {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-light);
}

/* Detail blocks */
.product-detail {
  margin-bottom: 20px;
}
.product-detail-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 4px;
  display: inline-block;
}
.product-detail p,
.product-detail li {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
}
.product-detail ul {
  padding-left: 18px;
}
.product-detail ul li {
  list-style: disc;
}
.product-detail a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Purchase button */
.btn-purchase {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  border-radius: 50px;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.btn-purchase:hover {
  background: var(--navy-light);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-purchase.line {
  background: var(--line-color);
}
.btn-purchase.line:hover {
  background: #05b34a;
  color: var(--white);
}
.purchase-note {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 8px;
}

/* ---------- Info Box (Disclaimers etc) ---------- */
.shop-info-box {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 40px;
  border-left: 4px solid var(--navy);
}
.shop-info-box.warning {
  border-left-color: #c0392b;
}
.shop-info-box.notice {
  border-left-color: #e67e22;
}
.shop-info-box h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.shop-info-box h3 i {
  color: var(--navy);
}
.shop-info-box.warning h3 i {
  color: #c0392b;
}
.shop-info-box.notice h3 i {
  color: #e67e22;
}
.shop-info-block {
  margin-bottom: 16px;
}
.shop-info-block:last-child {
  margin-bottom: 0;
}
.shop-info-block h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.shop-info-block p,
.shop-info-block li {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
}
.shop-info-block ul {
  padding-left: 18px;
}
.shop-info-block ul li {
  list-style: disc;
}

/* ---------- Shop FAQ ---------- */
.shop-faq {
  max-width: 760px;
  margin: 0 auto;
}
.shop-faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}
.shop-faq-q {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  transition: background .2s;
  user-select: none;
}
.shop-faq-q:hover {
  background: var(--off-white);
}
.shop-faq-q .q-label {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  flex-shrink: 0;
}
.shop-faq-q .toggle-icon {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-light);
  transition: transform .3s var(--ease);
}
.shop-faq-item.open .shop-faq-q .toggle-icon {
  transform: rotate(180deg);
}
.shop-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease), padding .35s var(--ease);
}
.shop-faq-item.open .shop-faq-a {
  max-height: 400px;
  padding: 0 24px 20px;
}
.shop-faq-a p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
  padding-left: 32px;
}
.shop-faq-a a {
  color: var(--navy);
  text-decoration: underline;
}

/* ---------- Category Cards (index page) ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}
.category-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.category-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  background: var(--pale-gray);
  position: relative;
}
.category-visual i {
  font-size: 48px;
  color: var(--navy-light);
  opacity: .35;
}
.category-visual .category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  background: var(--navy);
  color: var(--white);
}
.category-body {
  padding: 24px;
}
.category-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.category-body p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.category-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.category-meta .count {
  font-size: 12px;
  color: var(--text-light);
}
.category-meta .more {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Info cards (3-col) */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 48px;
}
.info-card {
  text-align: center;
  background: var(--white);
  padding: 32px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
}
.info-card i {
  font-size: 28px;
  color: var(--navy-light);
  margin-bottom: 12px;
}
.info-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.info-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Purchase info box */
.purchase-info-box {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.purchase-info-box h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 28px;
}
.purchase-info-block {
  margin-bottom: 24px;
}
.purchase-info-block:last-child {
  margin-bottom: 0;
}
.purchase-info-block h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.purchase-info-block p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.btn-outline-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

/* Benefit cards */
.benefit-grid {
  display: grid;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.benefit-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-subtle);
}
.benefit-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.benefit-card h4 i {
  color: var(--navy-light);
}
.benefit-card p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
}

/* ---------- Shop Footer ---------- */
.shop-footer {
  background: var(--text-primary);
  color: var(--white);
  padding: 64px 0 32px;
}
.shop-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.shop-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
  margin-bottom: 48px;
}
.shop-footer-col h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}
.shop-footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shop-footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  transition: color .2s;
}
.shop-footer-col a:hover {
  color: var(--white);
}
.shop-footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.shop-footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: .5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .shop-hero {
    height: 240px;
  }
  .shop-hero-title {
    font-size: 22px;
  }
  .product-inner {
    grid-template-columns: 1fr;
  }
  .product-visual {
    padding: 32px 24px;
    min-height: 140px;
  }
  .product-body {
    padding: 24px;
  }
  .product-name {
    font-size: 18px;
  }
  .product-price {
    font-size: 18px;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .info-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .shop-info-box {
    padding: 24px;
  }
  .purchase-info-box {
    padding: 28px;
  }
  .shop-section {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .shop-hero {
    height: 200px;
  }
  .shop-hero-content {
    padding-bottom: 32px;
  }
  .shop-hero-title {
    font-size: 20px;
  }
  .btn-purchase {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }
}
