@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Outfit:wght@400;600;800&display=swap');

:root {
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --card-bg-hover: #f1f5f9;
  --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  --primary-color: #7c3aed;
  --accent-color: #db2777;
  --text-color: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --debug-bg: #f8fafc;
  --debug-primary: #10b981;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 60px; /* For mobile footer safety */
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* ==========================================
   Site Header (CyStore-style Dark 2-Row)
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header-main {
  background-color: #1a1a2e;
  display: flex;
  align-items: center;
  padding: 1.1rem 2rem;
  gap: 1.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
  cursor: pointer;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Header Search Bar */
.header-search {
  flex-grow: 1;
  max-width: 480px;
  display: flex;
  margin: 0 auto;
}

.header-search input {
  flex-grow: 1;
  background: #ffffff;
  border: 2px solid #3a3a5c;
  border-right: none;
  border-radius: 4px 0 0 4px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  color: var(--text-color);
  outline: none;
  transition: border-color 0.3s;
}

.header-search input:focus {
  border-color: var(--primary-color);
}

.header-search input::placeholder {
  color: #9ca3af;
}

.header-search-btn {
  background: #2d6a4f;
  color: #ffffff;
  border: none;
  padding: 0.45rem 1.2rem;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.header-search-btn:hover {
  background: #1b4332;
}

/* Header Utility Icons */
.header-utils {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

.header-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: transparent;
  border-radius: 4px;
  transition: background 0.2s;
}

.header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.header-icon {
  font-size: 1.2rem;
  line-height: 1;
  filter: grayscale(100%) brightness(2);
}

.header-icon-label {
  font-size: 0.65rem;
  color: #b0b0c8;
  white-space: nowrap;
  font-weight: 500;
}

.nav-cart-count-dark {
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  padding: 1px 5px;
  font-size: 0.65rem;
  font-weight: bold;
  margin-left: 3px;
  vertical-align: middle;
}

/* Header Nav Row 2 (Category Bar) */
.header-nav {
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  overflow: visible;
}

.header-nav::-webkit-scrollbar {
  display: none;
}

.header-nav a {
  color: #4b5563; /* slate-600 */
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 1.05rem 1.6rem;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  transition: color 0.2s, background 0.2s;
}

.header-nav a:hover {
  color: #111827; /* gray-900 */
  background: rgba(0, 0, 0, 0.03);
}

.header-nav a.active {
  color: #111827;
}

.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-gradient);
}

/* Nav Dropdown Styles (CyStore-style) */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  cursor: pointer;
  display: inline-block;
  color: #4b5563;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 1.05rem 1.6rem;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.dropdown-trigger:hover {
  color: #111827;
  background: rgba(0, 0, 0, 0.03);
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 240px;
  box-shadow: 0px 8px 30px rgba(0,0,0,0.12);
  z-index: 150;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: none;
  border-radius: 0 0 8px 8px;
  
  /* Fade and slide transitions */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.dropdown-content a {
  color: #4b5563;
  padding: 0.75rem 1.2rem;
  text-decoration: none;
  display: block;
  font-size: 0.8rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background 0.2s, color 0.2s;
}

.dropdown-content a:last-child {
  border-bottom: none;
  border-radius: 0 0 8px 8px;
}

.dropdown-content a:hover {
  background-color: rgba(0, 0, 0, 0.03);
  color: #111827;
}

.nav-dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hide old hamburger three-line style — replaced by icon */
.hamburger-icon span.hamburger-line { display: none; }

/* Keep old nav-cart-count for backward compat */
.nav-cart-count {
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-left: 4px;
  vertical-align: middle;
}

.container {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

/* Page states visibility */
.page {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Old filter-section styles kept for backward compat but hidden */
.filter-section {
  display: none;
}

/* Slideshow / Carousel Banner Component (3-Column Style) */
.slideshow-container {
  position: relative;
  width: 100%;
  margin-bottom: 2.5rem;
  overflow: hidden;
  padding: 1.5rem 0;
}

.slideshow-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.slideshow-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
  will-change: transform;
}

.mySlides-card {
  flex: 0 0 65%;
  padding: 0 1rem;
  box-sizing: border-box;
  opacity: 0.45;
  transform: scale(0.92);
  transition: opacity 0.5s ease, transform 0.5s ease;
  cursor: pointer;
}

.mySlides-card.active {
  opacity: 1;
  transform: scale(1);
  cursor: default;
}

.slide-banner {
  height: 480px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  position: relative;
  display: flex;
  align-items: center;
  padding: 3rem 4rem;
  overflow: hidden;
}

.slide-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.15) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  animation: slideTextIn 0.5s ease forwards;
}

@keyframes slideTextIn {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.slide-tag {
  background: var(--accent-color);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 0.5rem;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-content h1 {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  color: var(--text-color);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* Slideshow navigation buttons (Round Orange Style) */
.slideshow-container .prev,
.slideshow-container .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background-color: #f97316; /* Orange */
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.4rem;
  transition: all 0.25s ease;
  user-select: none;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
}

.slideshow-container .prev {
  left: calc(17.5% - 24px); /* Position arrow on Kyoani design boundaries */
}

.slideshow-container .next {
  right: calc(17.5% - 24px);
}

@media (max-width: 1200px) {
  .slideshow-container .prev {
    left: 20px;
  }
  .slideshow-container .next {
    right: 20px;
  }
}

.slideshow-container .prev:hover,
.slideshow-container .next:hover {
  background-color: #ea580c;
  transform: translateY(-50%) scale(1.08);
}

/* Dots / Indicators container (Round Dot style) */
.slideshow-dots {
  text-align: center;
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  z-index: 10;
}

.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  background-color: #ffedd5; /* Light peach/orange */
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.2s;
  user-select: none;
  display: inline-block;
}

.dot.active, .dot:hover {
  background-color: #f97316;
  transform: scale(1.2);
}

/* Fade animation */
.fade {
  animation-name: fade;
  animation-duration: 0.8s;
}

@keyframes fade {
  from {opacity: 0.5}
  to {opacity: 1}
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Products Grid */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 12px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--card-shadow-hover);
  background: var(--card-bg-hover);
}

.product-image-container {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.tag-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  z-index: 10;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.tag-preorder {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
}

.tag-limited {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
}

.tag-soldout {
  background: #374151;
  color: #9ca3af;
}

.btn-favorite-trigger {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  color: var(--text-muted);
}

.btn-favorite-trigger:hover {
  background: rgba(255, 255, 255, 1);
  color: var(--text-color);
  transform: scale(1.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-favorite-trigger.active {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.product-info {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-work {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  height: 3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-color);
}

.product-stock-status {
  font-size: 0.8rem;
  font-weight: bold;
}

.stock-ok { color: var(--success-color); }
.stock-warning { color: var(--warning-color); }
.stock-out { color: var(--danger-color); }

/* News Section */
.news-section {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.news-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: bold;
  white-space: nowrap;
}

.news-title {
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s;
}

.news-title:hover {
  color: var(--primary-color);
}

/* Modal styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 90%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.05);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255,255,255,0.15);
}

/* Product Detail UI (Vertical stack, inspired by requirements) */
.product-detail-layout {
  display: flex;
  flex-direction: column;
}

.detail-image-container {
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: #000;
}

.detail-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-content {
  padding: 2rem;
}

.detail-work {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.detail-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.3;
}

/* Visual highlights for sales type */
.detail-type-box {
  border: 2px solid var(--danger-color);
  background: rgba(239, 68, 68, 0.05);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.detail-type-badge {
  background: var(--danger-color);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
}

.detail-type-text {
  font-size: 0.9rem;
  font-weight: 500;
}

.detail-price {
  font-size: 2rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.detail-info-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.detail-info-item h4 {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.detail-info-item p {
  font-weight: 600;
}

.detail-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.detail-actions {
  display: flex;
  gap: 1rem;
}

.detail-actions button {
  flex-grow: 1;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--text-muted);
}

.btn-secondary.active {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background: rgba(236, 72, 153, 0.05);
}

/* Cart Page */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

.cart-items-card, .summary-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
}

.cart-item-row {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-row:first-child {
  padding-top: 0;
}

.cart-item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-item-image {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.cart-item-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.cart-item-delivery {
  font-size: 0.8rem;
  color: var(--accent-color);
  font-weight: 500;
  background: rgba(236, 72, 153, 0.05);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.cart-item-pricing {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-qty {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.btn-qty:hover {
  background: var(--bg-color);
  border-color: var(--text-muted);
}

.cart-qty-val {
  font-weight: bold;
  width: 20px;
  text-align: center;
}

.btn-remove {
  background: transparent;
  border: none;
  color: var(--danger-color);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-remove:hover {
  text-decoration: underline;
}

/* Bonus item special design */
.bonus-item-badge {
  background: var(--primary-gradient);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  display: inline-block;
  margin-right: 6px;
}

.bonus-item-msg {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
  margin-top: 4px;
}

/* Checkout panel */
.summary-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.summary-row.total {
  font-size: 1.4rem;
  font-weight: 800;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 1rem;
}

.summary-warning {
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid var(--warning-color);
  border-radius: 8px;
  padding: 0.8rem;
  font-size: 0.8rem;
  color: var(--warning-color);
  margin-bottom: 1.5rem;
}

.checkout-section-title {
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.payment-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.3s;
}

.payment-label:hover {
  border-color: var(--primary-color);
}

.payment-label input {
  accent-color: var(--primary-color);
}

.address-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.input-field {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 0.8rem;
  border-radius: 8px;
  outline: none;
  font-size: 0.9rem;
}

.input-field:focus {
  border-color: var(--primary-color);
}

/* My Page */
.mypage-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .mypage-grid {
    grid-template-columns: 1fr;
  }
}

.mypage-nav {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mypage-nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  text-align: left;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
}

.mypage-nav-btn:hover, .mypage-nav-btn.active {
  color: var(--text-color);
  background: var(--bg-color);
}

.mypage-nav-btn.active {
  background: var(--primary-gradient);
  font-weight: bold;
}

.mypage-panel {
  display: none;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  animation: fadeIn 0.3s;
}

.mypage-panel.active {
  display: block;
}

.panel-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

/* Orders UI */
.order-card {
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.order-card-header {
  background: rgba(255,255,255,0.02);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.order-meta-info {
  display: flex;
  gap: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.order-meta-info span strong {
  color: var(--text-color);
}

.order-status-badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}

.status-unshipped { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.status-preparing { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.status-shipped { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.status-cancelled { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.order-card-body {
  padding: 1.5rem;
}

.order-item-mini {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.order-item-mini:last-child {
  margin-bottom: 0;
}

.order-item-mini-img {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  object-fit: cover;
  background: black;
}

.order-item-mini-name {
  font-weight: 500;
  font-size: 0.95rem;
}

.order-item-mini-price {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.order-address-box {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-color);
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

/* Edit Address Modal input */
.address-edit-btn {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 4px;
}

/* Empty list states */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Toast Notification (Simulated Email / Status Update Alerts) */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #1e293b;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  min-width: 320px;
  max-width: 450px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideIn {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 0.85rem;
}

.toast-tag-email { color: #38bdf8; font-size: 0.75rem; text-transform: uppercase;}
.toast-tag-system { color: #f472b6; font-size: 0.75rem; text-transform: uppercase;}
.toast-close { cursor: pointer; color: var(--text-muted); font-weight: normal;}
.toast-body { font-size: 0.9rem; line-height: 1.4; }

/* Admin Debug Panel (Float & Toggle) */
.admin-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--debug-primary);
  color: #111827;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
  z-index: 1100;
  transition: transform 0.3s;
}

.admin-trigger:hover {
  transform: scale(1.1) rotate(15deg);
}

.admin-panel {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100vh;
  background: var(--debug-bg);
  border-left: 1px solid #1f2937;
  z-index: 1200;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

@media (max-width: 500px) {
  .admin-panel {
    width: 100vw;
    right: -100vw;
  }
}

.admin-panel.active {
  right: 0;
}

.admin-header {
  padding: 1.5rem;
  border-bottom: 1px solid #1f2937;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-title {
  color: var(--debug-primary);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.admin-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.admin-section-title {
  font-size: 0.85rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  border-bottom: 1px solid #374151;
  padding-bottom: 0.3rem;
  font-weight: bold;
}

.admin-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  background: #1f2937;
  padding: 0.8rem 1rem;
  border-radius: 8px;
}

.admin-item-info {
  display: flex;
  flex-direction: column;
}

.admin-item-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.admin-item-sub {
  font-size: 0.75rem;
  color: #9ca3af;
}

.admin-stock-ctrl {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-input-stock {
  width: 70px;
  background: #111827;
  border: 1px solid #374151;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
}

.btn-debug {
  background: var(--debug-primary);
  color: #111827;
  border: none;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: opacity 0.2s;
}

.btn-debug:hover {
  opacity: 0.9;
}

.btn-debug-danger {
  background: var(--danger-color);
  color: white;
}

.admin-order-row {
  background: #1f2937;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.admin-order-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.admin-order-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
  border-top: 1px solid #374151;
  padding-top: 0.8rem;
}

/* Contact page styles */
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.textarea-field {
  min-height: 120px;
  resize: vertical;
}

.contact-success-box {
  text-align: center;
  padding: 2rem 0;
}

.contact-success-icon {
  font-size: 3rem;
  color: var(--success-color);
  margin-bottom: 1rem;
}

/* Order Complete UI */
.order-complete-box {
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.order-complete-icon {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: 1.5rem;
}

.order-complete-details {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0 2rem;
  text-align: left;
  font-size: 0.95rem;
}

.order-complete-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.order-complete-row:last-child {
  margin-bottom: 0;
  border-top: 1px dashed var(--border-color);
  padding-top: 0.8rem;
}

/* Responsive fixes */
/* Desktop: hide hamburger icon in header */
.hamburger-icon {
  display: none !important;
}

/* Nav overlay (hidden by default) */
.nav-overlay {
  display: none;
}

@media (max-width: 768px) {
  /* Show hamburger on mobile */
  .hamburger-icon {
    display: flex !important;
  }

  /* Nav overlay for mobile drawer */
  .nav-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Header main: stack search below logo row */
  .header-main {
    flex-wrap: wrap;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }

  .header-search {
    order: 10;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .header-utils {
    margin-left: auto;
  }

  /* Mobile drawer nav */
  .header-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #1a1a2e;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 4rem 1rem 2rem;
    gap: 0;
    z-index: 105;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
  }

  .header-nav.active {
    right: 0;
  }

  /* Mobile dropdown customization */
  .header-nav .nav-dropdown {
    display: block;
    width: 100%;
  }

  .header-nav .dropdown-trigger {
    display: block;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    font-weight: bold;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: default;
    border-radius: 6px;
    width: 100%;
    text-align: left;
  }
  
  .header-nav .dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .header-nav .dropdown-content {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    background-color: rgba(0, 0, 0, 0.15);
    padding-left: 1rem;
    min-width: 100%;
    border-radius: 0;
  }

  .header-nav .dropdown-content a {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    color: #c8c8e0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  }

  .header-nav a {
    padding: 0.8rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #c8c8e0;
  }

  .header-nav a:hover, .header-nav a.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }

  .header-nav a.active::after {
    display: none;
  }

  /* Slideshow mobile */
  .slideshow-container {
    padding: 0.8rem 0;
  }
  .mySlides-card {
    flex: 0 0 85%;
    padding: 0 0.5rem;
  }
  .slide-banner {
    height: 260px;
    padding: 1.5rem;
  }
  .hero-content h1 {
    font-size: 1.4rem;
  }
  .hero-content p {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
  }
  .slideshow-container .prev,
  .slideshow-container .next {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    left: 10px;
  }
  .slideshow-container .next {
    right: 10px;
    left: auto;
  }
}

/* Footer Styles */
footer {
  background-color: #0f172a;
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
  margin-top: 5rem;
  font-size: 0.9rem;
  color: #94a3b8;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-logo {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: var(--text-color);
}

/* Auth Modal and Panels */
.auth-panel {
  display: none;
}
.auth-panel.active {
  display: block;
}

/* MyPage Dashboard Styles */
.dashboard-welcome {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.dashboard-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
}
.dashboard-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
}
.dashboard-card-title {
  font-size: 1rem;
  font-weight: bold;
  color: var(--text-color);
}
.dashboard-card-count {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0.5rem 0;
}
.dashboard-card-link {
  font-size: 0.8rem;
  color: var(--accent-color);
  text-align: right;
}

/* Admin Subsections and Table styles */
.admin-tab-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #374151;
  padding-bottom: 0.5rem;
  overflow-x: auto;
}
.admin-tab-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.85rem;
  border-radius: 4px;
  white-space: nowrap;
}
.admin-tab-btn.active {
  background: var(--primary-color);
  color: #fff;
}
.admin-sub-section {
  display: none;
}
.admin-sub-section.active {
  display: block;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.8rem;
}
.admin-table th, .admin-table td {
  padding: 8px 10px;
  border: 1px solid #374151;
  text-align: left;
}
.admin-table th {
  background-color: #1f2937;
  color: #f3f4f6;
}
.admin-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
}
.admin-badge-unshipped { background: #f59e0b; color: #1e1b4b; }
.admin-badge-preparing { background: #3b82f6; color: #eff6ff; }
.admin-badge-shipped { background: #10b981; color: #ecfdf5; }
.admin-badge-cancelled { background: #ef4444; color: #fef2f2; }

/* Product register inline styles */
.admin-form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 0.8rem;
}
.admin-form-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-form-label {
  font-size: 0.75rem;
  color: #9ca3af;
}
.admin-input {
  background: #1f2937;
  border: 1px solid #374151;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
}
.admin-input:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* ==========================================
   SPA Product Detail View Style (Mobile-First / Premium)
   ========================================== */

#page-detail {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem;
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.detail-back-link {
  margin-bottom: 1.5rem;
}

.detail-back-link a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}

.detail-back-link a:hover {
  color: var(--primary-color);
}

/* Carousel */
.detail-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.detail-carousel-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.detail-carousel-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.detail-carousel-thumbnails {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}

.detail-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  background-color: #ffffff;
}

.detail-thumb:hover, .detail-thumb.active {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Info Section */
.detail-main-info {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.detail-work-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.detail-product-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-color);
}

.detail-type-badge-container {
  margin: 0.3rem 0;
}

.detail-type-badge {
  display: inline-block;
  padding: 0.4rem 1.5rem;
  font-size: 0.85rem;
  font-weight: bold;
  border-radius: 4px;
  text-align: center;
  width: 100%;
  max-width: 320px;
}

.detail-type-badge.preorder {
  border: 1px solid var(--danger-color);
  color: var(--danger-color);
  background-color: rgba(239, 68, 68, 0.03);
}

.detail-type-badge.limited {
  border: 1px solid var(--warning-color);
  color: var(--warning-color);
  background-color: rgba(245, 158, 11, 0.03);
}

.detail-type-badge.soldout {
  border: 1px solid var(--text-muted);
  color: var(--text-muted);
  background-color: rgba(100, 116, 139, 0.03);
}

.detail-price-tag {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-color);
  margin: 0.5rem 0;
}

.detail-price-tag .tax-text {
  font-size: 0.9rem;
  font-weight: normal;
  color: var(--text-muted);
  margin-left: 4px;
}

.detail-delivery-tag {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.detail-action-container {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-detail-action {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.btn-detail-action.btn-orange {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
}

.btn-detail-action.btn-orange:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.25);
}

.btn-detail-action.btn-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.btn-detail-action.btn-green:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
}

.btn-detail-action.btn-gray {
  background: #cbd5e1;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-detail-action.btn-gray:hover {
  background: #94a3b8;
}

.detail-stock-status-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.3rem;
  font-weight: 500;
}

/* Description Section */
.detail-description-section {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.detail-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.detail-section-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  position: relative;
  padding-left: 10px;
}

.detail-section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.btn-detail-fav {
  background: none;
  border: 1px solid var(--border-color);
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s;
}

.btn-detail-fav:hover, .btn-detail-fav.active {
  border-color: #f43f5e;
  color: #f43f5e;
  background-color: rgba(244, 63, 94, 0.05);
  transform: scale(1.05);
}

.detail-desc-content {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.7;
}

.detail-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.detail-specs-table th, .detail-specs-table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.detail-specs-table th {
  font-weight: bold;
  color: var(--text-muted);
  width: 120px;
}

.detail-specs-table td {
  color: var(--text-color);
}

/* ==========================================
   Work Shortcuts Premium Card Style (Logo Grid)
   ========================================== */

.work-shortcuts-section {
  margin: 2.5rem 0 3.5rem;
  text-align: center;
  padding: 0 1rem;
}

.shortcuts-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}

.shortcuts-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: 1px;
}

.work-shortcuts-list {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* 四角いロゴカード */
.btn-shortcut {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 240px;
  height: 140px;
  padding: 0.4rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  outline: none;
  background-color: #ffffff; /* 白ベース */
}

/* 画像ラッパー */
.shortcut-logo-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* 作品の公式ロゴ */
.shortcut-work-logo {
  max-width: 95%;
  max-height: 90%;
  object-fit: contain;
  filter: grayscale(15%) contrast(95%);
  transition: all 0.3s ease;
}

/* ホバーエフェクト */
.btn-shortcut:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
  background-color: #ffffff;
}

.btn-shortcut:hover .shortcut-work-logo {
  filter: grayscale(0%) contrast(100%);
  transform: scale(1.05);
}

/* === アクティブ（選択中）と個別テーマカラーの境界線 === */

/* ツンデレ彼女と始める同居生活 (ピンク) */
.btn-shortcut.shortcut-lovecom:hover {
  border-color: rgba(244, 63, 94, 0.4);
}
.btn-shortcut.shortcut-lovecom.active {
  border: 2px solid #f43f5e;
  background-color: #ffffff;
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.12);
}
.btn-shortcut.shortcut-lovecom.active .shortcut-work-logo {
  filter: grayscale(0%) contrast(100%);
}

/* 転生したら大賢者だった件 (ブルー) */
.btn-shortcut.shortcut-isekai:hover {
  border-color: rgba(59, 130, 246, 0.4);
}
.btn-shortcut.shortcut-isekai.active {
  border: 2px solid #3b82f6;
  background-color: #ffffff;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
}
.btn-shortcut.shortcut-isekai.active .shortcut-work-logo {
  filter: grayscale(0%) contrast(100%);
}

/* のんびり田舎の日常ライフ (グリーン) */
.btn-shortcut.shortcut-nichijou:hover {
  border-color: rgba(16, 185, 129, 0.4);
}
.btn-shortcut.shortcut-nichijou.active {
  border: 2px solid #10b981;
  background-color: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.12);
}
.btn-shortcut.shortcut-nichijou.active .shortcut-work-logo {
  filter: grayscale(0%) contrast(100%);
}

/* シャドウ・ブレード：漆黒の暗殺者 (レッド) */
.btn-shortcut.shortcut-action:hover {
  border-color: rgba(239, 68, 68, 0.4);
}
.btn-shortcut.shortcut-action.active {
  border: 2px solid #ef4444;
  background-color: #ffffff;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.12);
}
.btn-shortcut.shortcut-action.active .shortcut-work-logo {
  filter: grayscale(0%) contrast(100%);
}

/* 輝け！スターライトステージ (ピンクゴールド) */
.btn-shortcut.shortcut-idol:hover {
  border-color: rgba(236, 72, 153, 0.4);
}
.btn-shortcut.shortcut-idol.active {
  border: 2px solid #ec4899;
  background-color: #ffffff;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.12);
}
.btn-shortcut.shortcut-idol.active .shortcut-work-logo {
  filter: grayscale(0%) contrast(100%);
}

/* 灼熱キックオフ！ (オレンジ) */
.btn-shortcut.shortcut-sports:hover {
  border-color: rgba(249, 115, 22, 0.4);
}
.btn-shortcut.shortcut-sports.active {
  border: 2px solid #f97316;
  background-color: #ffffff;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.12);
}
.btn-shortcut.shortcut-sports.active .shortcut-work-logo {
  filter: grayscale(0%) contrast(100%);
}

/* レスポンシブ */
@media (max-width: 600px) {
  .work-shortcuts-list {
    gap: 1rem;
  }
  .btn-shortcut {
    width: 45%;
    height: 110px;
    padding: 0.3rem;
  }
}
