/* Goyoga Shop — shared styles for hub, category, and product pages */

/* Breadcrumbs */
.shop-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}
.shop-breadcrumb-link {
  color: #db2777;
  text-decoration: none;
}
.shop-breadcrumb-link:hover {
  text-decoration: underline;
}
.shop-breadcrumb-sep {
  color: #d1d5db;
}
.shop-breadcrumb-current {
  color: #374151;
  font-weight: 500;
}

/* Hero */
.shop-hero {
  background: linear-gradient(180deg, #fdf2f8 0%, #faf9f6 100%);
  border-bottom: 1px solid #f3e8ff;
  padding: 2.5rem 1.5rem 2rem;
}
.shop-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.shop-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 500;
  color: #111827;
  margin: 0 0 0.75rem;
}
.shop-hero-subtitle {
  color: #6b7280;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}
.shop-hero-request {
  margin-bottom: 1.5rem;
}
.shop-request-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  border: 1px solid #f9a8d4;
  background: #fff;
  color: #be185d;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.shop-request-cta:hover {
  background: #fdf2f8;
  border-color: #f472b6;
}
.shop-request-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: #9ca3af;
}

/* Search */
.shop-search-wrap {
  display: flex;
  align-items: stretch;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.shop-search-category {
  position: relative;
  flex-shrink: 0;
}
.shop-search-category-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 100%;
  padding: 0.75rem 1rem;
  border: 0;
  background: transparent;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.shop-search-category-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 40;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 0.35rem;
}
.shop-search-category-dropdown.open {
  display: block;
}
.shop-search-category-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  text-align: left;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
}
.shop-search-category-option:hover,
.shop-search-category-option.active {
  background: #fdf2f8;
  color: #be185d;
}
.shop-search-divider {
  width: 1px;
  background: #e5e7eb;
  align-self: stretch;
}
.shop-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  outline: none;
  background: transparent;
}

/* Category filter bar */
.shop-filter-bar {
  position: sticky;
  top: 4.5rem;
  z-index: 30;
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 0 0.5rem;
}
.shop-filter-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.shop-filter-inner {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.25rem;
}
.shop-filter-inner::-webkit-scrollbar {
  display: none;
}
.shop-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.shop-filter-tab:hover {
  border-color: #fbcfe8;
  color: #be185d;
}
.shop-filter-tab.active {
  background: #db2777;
  border-color: #db2777;
  color: #fff;
}
.shop-filter-slider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 1280px;
  margin: 0.35rem auto 0;
  padding: 0 1.5rem;
}
.shop-filter-arrow {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #374151;
}
.shop-filter-slider-track {
  position: relative;
  flex: 1;
  height: 4px;
  background: #e5e7eb;
  border-radius: 999px;
}
.shop-filter-slider-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  min-width: 48px;
  background: #db2777;
  border-radius: 999px;
  cursor: grab;
}
.shop-filter-slider-thumb.dragging {
  cursor: grabbing;
}

/* Product grid */
.shop-grid-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}
.shop-grid-header {
  margin-bottom: 1.5rem;
}
.shop-grid-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #111827;
  margin: 0 0 0.35rem;
}
.shop-grid-subtitle {
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}
.shop-grid-count {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.shop-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  animation: shopCardIn 0.45s ease both;
}
@keyframes shopCardIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.shop-card:hover {
  border-color: #fbcfe8;
  box-shadow: 0 12px 30px rgba(219, 39, 119, 0.08);
  transform: translateY(-2px);
}
.shop-card-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f9fafb;
  overflow: hidden;
}
.shop-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.shop-card:hover .shop-card-image {
  transform: scale(1.03);
}
.shop-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.shop-card-badge--new {
  background: #ecfdf5;
  color: #047857;
}
.shop-card-badge--popular {
  background: #fdf2f8;
  color: #be185d;
}
.shop-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1rem 1.125rem;
  gap: 0.35rem;
}
.shop-card-category {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  font-weight: 600;
}
.shop-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
  line-height: 1.35;
}
.shop-card-desc {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-card-stock {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.15rem;
}
.shop-card-stock--digital { color: #7c3aed; }
.shop-card-stock--local { color: #059669; }
.shop-card-stock--both { color: #2563eb; }
.shop-card-stock--order { color: #d97706; }
.shop-card-stock--out { color: #dc2626; }
.shop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.75rem;
}
.shop-card-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #db2777;
}
.shop-card-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 0;
  background: #111827;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.shop-card-buy:hover {
  background: #db2777;
  transform: scale(1.05);
}
.shop-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem 1rem;
  color: #9ca3af;
}
.shop-empty-icon {
  width: 2.5rem;
  height: 2.5rem;
}

/* Bag button + panel */
.shop-bag-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  cursor: pointer;
}
.shop-bag-count {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #db2777;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}
.shop-bag-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}
.shop-bag-panel.open {
  pointer-events: auto;
}
.shop-bag-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  opacity: 0;
  transition: opacity 0.25s;
}
.shop-bag-panel.open .shop-bag-panel-backdrop {
  opacity: 1;
}
.shop-bag-panel-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 24rem);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.08);
}
.shop-bag-panel.open .shop-bag-panel-drawer {
  transform: translateX(0);
}
.shop-bag-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}
.shop-bag-panel-header h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}
.shop-bag-panel-close {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #6b7280;
}
.shop-bag-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}
.shop-bag-empty {
  color: #9ca3af;
  text-align: center;
  margin: 2rem 0;
}
.shop-bag-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.shop-bag-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.shop-bag-item-image {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: 0.5rem;
  background: #f3f4f6;
}
.shop-bag-item-info {
  flex: 1;
  min-width: 0;
}
.shop-bag-item-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}
.shop-bag-item-price {
  display: block;
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.15rem;
}
.shop-bag-item-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.shop-bag-qty-btn {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
}
.shop-bag-item-remove {
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.25rem;
}
.shop-bag-panel-footer {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid #e5e7eb;
}
.shop-bag-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 0.875rem;
}
.shop-bag-checkout {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 0;
  border-radius: 0.75rem;
  background: #db2777;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.shop-bag-checkout:hover {
  background: #be185d;
}

/* Modals */
.shop-modal-overlay,
.shop-request-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(17, 24, 39, 0.5);
}
.shop-modal-overlay.active,
.shop-request-modal-overlay.active {
  display: flex;
}
.shop-modal,
.shop-request-modal {
  position: relative;
  width: min(100%, 42rem);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
}
.shop-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #6b7280;
}
.shop-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .shop-modal-body {
    grid-template-columns: 1fr;
  }
}
.shop-modal-image-wrap {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f9fafb;
}
.shop-modal-image {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
}
.shop-request-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin: 0 0 1rem;
}
.shop-request-form,
.shop-request-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.shop-request-form {
  gap: 0.875rem;
}
.shop-request-field input,
.shop-request-field textarea {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
}
.shop-request-submit {
  margin-top: 0.25rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 0.5rem;
  background: #db2777;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.shop-request-success {
  color: #059669;
  font-size: 0.875rem;
}

/* FAQ */
.shop-faq {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 3rem 1.5rem;
}
.shop-faq-inner {
  max-width: 720px;
  margin: 0 auto;
}
.shop-faq-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
}
.shop-faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.875rem 0;
}
.shop-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: #111827;
}
.shop-faq-item p {
  margin: 0.75rem 0 0;
  color: #6b7280;
  line-height: 1.6;
}
.shop-faq-legal {
  margin-top: 1.5rem;
  font-size: 0.875rem;
}
.shop-faq-legal a {
  color: #db2777;
}

/* Product detail page */
.product-detail {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 960px) {
  .product-detail {
    grid-template-columns: 1fr;
    padding-top: 5.5rem;
  }
}
.product-detail-image-col {
  position: sticky;
  top: 5.5rem;
}
.product-detail-image-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}
.product-detail-image {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
}
.product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.product-thumb {
  width: 4rem;
  height: 4rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: #f3f4f6;
}
.product-thumb.active {
  border-color: #db2777;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail-info-col {
  min-width: 0;
}
.product-detail-category {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #db2777;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.product-detail-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 500;
  color: #111827;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
.product-detail-desc {
  color: #4b5563;
  line-height: 1.7;
  margin: 0 0 1rem;
}
.product-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.product-detail-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: #db2777;
}
.product-detail-digital,
.product-detail-physical {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: #6b7280;
}
.product-qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}
.product-qty-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
}
.product-qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}
.product-qty-btn {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: #fff;
  cursor: pointer;
}
.product-qty-input {
  width: 3rem;
  text-align: center;
  border: 0;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  font-size: 0.9375rem;
}
.product-line-total {
  font-weight: 600;
  color: #111827;
}
.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.product-detail-add-bag,
.product-detail-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  border: 0;
}
.product-detail-add-bag {
  background: #fff;
  color: #111827;
  border: 1px solid #d1d5db;
}
.product-detail-buy {
  background: #db2777;
  color: #fff;
}
.product-detail-buy:hover {
  background: #be185d;
}
.product-detail-trust {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}
.product-detail-trust-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: #4b5563;
}
.product-about {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}
.product-about-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}
.product-about-body {
  color: #4b5563;
  line-height: 1.7;
}
.product-related {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
.product-related-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin: 0 0 1rem;
}
.product-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.product-ask {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
.product-ask-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}
.product-ask-hint {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0 0 1rem;
}
.product-ask-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
}
@media (max-width: 640px) {
  .product-ask-grid {
    grid-template-columns: 1fr;
  }
}
.product-ask-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.product-ask-field--full {
  grid-column: 1 / -1;
}
.product-ask-field input,
.product-ask-field textarea {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
}
.product-ask-submit {
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 0.5rem;
  background: #111827;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.product-ask-success {
  color: #059669;
  font-size: 0.875rem;
}
