/*
 * BunnyKorea Store styles
 *
 * This stylesheet takes inspiration from Apple's clean, modern aesthetic.
 * We emphasize generous white space, subtle shadows, and typographic hierarchy
 * to showcase products elegantly. Variables are not used here for brevity,
 * but could be introduced for easier theming.
 */

/* Reset and base font settings */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #1d1d1f;
  background-color: #ffffff;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Container utility for consistent widths */
.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Header styling */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid #e5e5e5;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo a {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1d1d1f;
}
.nav a {
  margin-left: 24px;
  font-size: 0.95rem;
  color: #1d1d1f;
  opacity: 0.9;
  transition: color 0.2s;
}
.nav a:hover {
  color: #0071e3;
}

/* Hero section */
.hero {
  background-color: #f5f5f7;
  padding: 80px 0 60px;
  border-bottom: 1px solid #eee;
}
.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero-text {
  max-width: 540px;
}
.hero-text h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1d1d1f;
}
.tagline {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: #1d1d1f;
}
.description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
  color: #555555;
}
.cta .btn {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  display: inline-block;
  margin-right: 12px;
  transition: background-color 0.2s;
}
.btn-dark {
  background-color: #000000;
  color: #ffffff;
}
.btn-dark:hover {
  background-color: #333333;
}
.btn-light {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #cccccc;
}
.btn-light:hover {
  background-color: #f0f0f0;
}
.hero-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Categories row below hero */
.categories {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 40px 0 20px;
  border-top: 1px solid #eee;
}
.category {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.85rem;
  color: #444444;
}
.category .icon {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  color: #0071e3;
}

/* Latest products grid */
.latest-products {
  padding: 80px 0;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
}
.latest-products h2 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: #1d1d1f;
}
.latest-products .subtitle {
  color: #888888;
  font-size: 1rem;
  margin-bottom: 32px;
}
.product-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.product-card {
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
}
.dark-card {
  background-color: #000000;
  color: #ffffff;
}
.light-card {
  background-color: #f5f5f7;
  color: #1d1d1f;
}
.product-card h3 {
  margin-top: 16px;
  font-size: 1.4rem;
}
.product-card p {
  margin-top: 8px;
  font-size: 0.9rem;
}
.product-card .price {
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 600;
}
.product-image-placeholder {
  width: 100%;
  height: auto;
  background-color: #f5f5f5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}
/* Ensure product images scale properly without being cropped */
.product-image-placeholder img.product-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: contain;
}

/* Features/value cards */
.features {
  padding: 80px 0;
  background-color: #f5f5f7;
}
.features h2 {
  font-size: 2rem;
  margin-bottom: 32px;
  text-align: center;
  color: #1d1d1f;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background-color: #ffffff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}
.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: #1d1d1f;
}
.feature-card p {
  font-size: 0.9rem;
  color: #555555;
}

/* Specs table */
.specs {
  padding: 80px 0;
  background-color: #ffffff;
}
.specs h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #1d1d1f;
}
.specs .subtitle {
  margin-bottom: 32px;
  font-size: 1rem;
  color: #555555;
}
.spec-table {
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  overflow: hidden;
}
.spec-row {
  display: flex;
  border-top: 1px solid #e5e5e5;
}
.spec-row:first-child {
  border-top: none;
}
.spec-key {
  flex: 1;
  background-color: #f5f5f7;
  padding: 16px 20px;
  font-weight: 600;
  color: #1d1d1f;
}
.spec-value {
  flex: 2;
  padding: 16px 20px;
  color: #555555;
}

/* Contact section */
.contact {
  padding: 80px 0;
  background-color: #f5f5f7;
}
.contact h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #1d1d1f;
}
.contact .contact-desc {
  margin-bottom: 32px;
  color: #555555;
  font-size: 1rem;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-item {
  display: flex;
  justify-content: space-between;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 16px;
  background-color: #ffffff;
}
.contact-label {
  font-weight: 600;
  color: #333333;
}
.contact-value {
  color: #555555;
}

/* Footer */
.footer {
  background-color: #f5f5f7;
  padding: 40px 0;
  border-top: 1px solid #e5e5e5;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.footer-left, .footer-right {
  max-width: 500px;
}
.footer-brand {
  font-weight: 600;
  margin-bottom: 8px;
  color: #1d1d1f;
}
.footer-tagline {
  color: #555555;
  margin-bottom: 16px;
}
.footer-right p {
  font-size: 0.85rem;
  color: #777777;
  margin-bottom: 8px;
}

/* Side navigation floating on the right */
.side-nav {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 240px;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid #e5e5e5;
  border-right: none;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 900;
  padding: 16px;
}
.side-nav .map {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

/*
 * Improve the appearance of the embedded map. We desaturate and slightly dim
 * the map by default and add a gentle scale and brightness change on hover.
 * This creates a subtle motion effect without disrupting the page's focus.
 */
.side-nav .map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.2) brightness(0.95);
  transition: transform 0.3s ease, filter 0.3s ease;
}
.side-nav .map:hover iframe {
  transform: scale(1.05);
  filter: grayscale(0) brightness(1);
}

/*
 * Enhanced styling for the floating navigation buttons.
 * We adopt a pill-shaped design with subtle shadows and transitions
 * to align with a clean, Apple‑inspired aesthetic. Each button uses
 * flexbox to center its text, and transitions gently when hovered.
 */
.side-nav .nav-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  background-color: #f5f5f7;
  color: #1d1d1f;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.side-nav .nav-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  background-color: #e5e5e7;
}

/* Accent styling for the contact button so it stands out */
.side-nav .nav-actions a#sideContact {
  background-color: #0071e3;
  color: #ffffff;
}
.side-nav .nav-actions a#sideContact:hover {
  background-color: #005bb5;
}
@media (max-width: 1024px) {
  .side-nav {
    display: none;
  }
}

/* Make product link anchor behave like card */
.product-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Contact link styling */
.contact-value.link {
  color: #0071e3;
  text-decoration: none;
  transition: opacity 0.2s;
}
.contact-value.link:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-image {
    margin-top: 32px;
  }
  .nav {
    display: none;
  }
}

/* ================================
   🎨 Product Card Color Customizer
   dark-card / light-card 테마별 색상 세트
================================ */

/* 공통 기본값 */
.product-card {
  color: inherit;
  transition: all 0.3s ease;
}

/* ✅ 다크 카드용 (dark-card) */
.product-card.dark-card {
  --card-bg: #111;            /* 배경색 */
  --card-title: #ffffff;      /* 제품명 색 */
  --card-text: #d1d1d1;       /* 설명 색 */
  --card-price: #4da3ff;      /* 가격 색 */
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  color: var(--card-text);
}

.product-card.dark-card h3 {
  color: var(--card-title);
}

.product-card.dark-card p {
  color: var(--card-text);
}

.product-card.dark-card .price {
  color: var(--card-price);
  font-weight: 600;
}

/* ✅ 라이트 카드용 (light-card) */
.product-card.light-card {
  --card-bg: #ffffff;
  --card-title: #111111;
  --card-text: #444444;
  --card-price: #0071e3;
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  color: var(--card-text);
}

.product-card.light-card h3 {
  color: var(--card-title);
}

.product-card.light-card p {
  color: var(--card-text);
}

.product-card.light-card .price {
  color: var(--card-price);
  font-weight: 600;
}

/* Hover 효과 (공통) */
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Shorts section */
.shorts {
  padding: 60px 0 20px;
  background: #f5f7fa;
}
.shorts .subtitle {
  margin-top: 8px;
  color: #666;
}
.shorts-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Prevent content from being hidden under the side navigation */
  margin-right: 300px; /* width of side nav + margin */
}
.shorts-grid::-webkit-scrollbar {
  height: 8px;
}
.shorts-grid::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 999px;
}
.short {
  flex: 0 0 auto;
  width: 240px;
  scroll-snap-align: start;
}
@media (min-width: 1024px) {
  .short {
    width: 280px;
  }
}
.short-card {
  background: radial-gradient(120% 120% at 80% 0%, rgba(255,255,255,0.85), rgba(245,247,250,0.95));
  border: 1px solid rgba(20,30,60,0.08);
  border-radius: 28px 28px 36px 36px;
  box-shadow: 0 12px 30px rgba(15,18,22,0.12), inset 0 1px 0 rgba(255,255,255,0.6);
  padding: 14px;
  backdrop-filter: blur(4px);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.short-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15,18,22,0.18), inset 0 1px 0 rgba(255,255,255,0.6);
}
.iframe-wrap {
  position: relative;
  width: 100%;
  padding-top: calc(16 / 9 * 100%);
  border-radius: 22px;
  overflow: hidden;
  background: #000;
}
.iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 큰 화면에서 카드 사이즈 키우기 */
@media (min-width: 1024px){
  .short{ width: 280px; }
  .short-card{ border-radius: 30px 30px 40px 40px; }
}

/* 제목 링크 스타일 */
#youtubeTitle a{ color: inherit; text-decoration: none; }
#youtubeTitle a:hover{ text-decoration: underline; }