@charset "UTF-8";
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  --l-red: #c41230;
  --l-black: #000000;
  --l-white: #ffffff;
  --l-gray-bg: #f5f5f5;
  --l-gray-border: #e0e0e0;
  --l-text-main: #111111;
  --l-text-light: #666666;
  --font-base: 'Pretendard', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-base);
  background-color: var(--l-white);
  color: var(--l-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; cursor: pointer; }
ul { list-style: none; }

/* -------------------
   Global Utilities
------------------- */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--font-base);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  user-select: none;
}
.btn-red { background: var(--l-red); color: var(--l-white); border-color: var(--l-red); }
.btn-red:hover { background: #a20f26; }
.btn-black { background: var(--l-black); color: var(--l-white); border-color: var(--l-black); }
.btn-black:hover { background: #333; }
.btn-outline { background: transparent; color: var(--l-black); border-color: var(--l-black); }
.btn-outline:hover { background: var(--l-black); color: var(--l-white); }
.btn-white { background: var(--l-white); color: var(--l-black); border-color: var(--l-white); }
.btn-white:hover { background: #f0f0f0; }
.d-none { display: none !important; }

/* -------------------
   Header (Levi's 1:1)
------------------- */
.top-banner {
  background: var(--l-bg-gray, #f0f0f0);
  color: var(--l-text-main);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  padding: 10px;
  border-bottom: 1px solid var(--l-gray-border);
}
.header {
  height: 60px;
  background: var(--l-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--l-gray-border);
}
.header-left, .header-right { flex: 1; display: flex; align-items: center; }
.header-left { gap: 24px; font-weight: 800; font-size: 0.85rem; }
.header-right { justify-content: flex-end; gap: 20px; font-size: 1.25rem; }
.header-left a:hover { border-bottom: 2px solid var(--l-red); padding-bottom: 2px; }

/* Red Tab Logo */
.header-logo {
  display: flex; justify-content: center; align-items: center; width: 100px; height: 100%;
}
.header-logo svg { height: 40px; }

/* -------------------
   Main Page Layout (index.html)
------------------- */

/* Hero Banner */
.hero-full {
  position: relative;
  width: 100%;
  height: calc(100vh - 100px);
  min-height: 500px;
  background-color: #eee;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-full img {
  position: absolute; top:0; left:0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 1;
}
.hero-full::after {
  content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 5%;
  color: var(--l-white);
  text-align: left;
}
.hero-content h2 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 15px;
}
.hero-content p {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 30px;
  max-width: 600px;
}

/* 3-Column Banner Grid */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px 4%;
}
.promo-card { position: relative; width: 100%; aspect-ratio: 4/5; overflow: hidden; background: #eee; }
.promo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.promo-card:hover img { transform: scale(1.05); }
.promo-info {
  position: absolute; bottom: 30px; left: 30px; right: 30px;
  color: var(--l-white); z-index: 2; text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.promo-info h3 { font-size: 1.8rem; font-weight: 800; text-transform: uppercase; margin-bottom: 10px; }

/* Product Carousel / Grid */
.product-slider { padding: 60px 4%; }
.section-heading { font-size: 2rem; font-weight: 900; text-transform: uppercase; margin-bottom: 30px; text-align: center; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.product-item { text-align: left; cursor: pointer; }
.product-item img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--l-gray-bg);
  margin-bottom: 12px;
}
.product-item .title { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.product-item .price { font-size: 0.95rem; color: var(--l-text-light); }

/* Double Banner */
.double-banner { display: flex; flex-wrap: wrap; }
.double-banner > div { flex: 1; min-width: 50%; aspect-ratio: 16/10; position: relative; }
.double-banner img { width: 100%; height: 100%; object-fit: cover;}

/* Big Text Marquee or Header */
.big-text-section { padding: 100px 4%; text-align: center; background: var(--l-white); }
.big-text-section h2 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; text-transform: uppercase; line-height: 1.1; }

/* Footer */
.footer {
  background: var(--l-white);
  border-top: 1px solid var(--l-gray-border);
  padding: 60px 4% 30px;
}
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 60px; }
.footer-col { flex: 1; min-width: 200px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; font-size: 0.85rem; color: var(--l-text-light); cursor: pointer; }
.footer-col ul li:hover { color: var(--l-black); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--l-gray-border); padding-top: 30px; text-align: center; font-size: 0.75rem; color: #999; }

/* -------------------
   Product Page Layout (product.html) 1:1 Clone
------------------- */
.product-page-main {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0;
}

/* Left: Thumbnail Column */
.prd-thumbnails {
  width: 120px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  position: sticky;
  top: 60px;
  background: var(--l-white);
  z-index: 10;
}
.prd-thumbnails::-webkit-scrollbar { width: 4px; }
.prd-thumbnails::-webkit-scrollbar-thumb { background: #ccc; }
.prd-thumb {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid transparent;
  opacity: 0.6;
}
.prd-thumb.active { border: 1px solid var(--l-black); opacity: 1; }

/* Center: Main Image Viewer */
.prd-image {
  flex: 1;
  background: var(--l-gray-bg);
  min-height: calc(100vh - 60px);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden; /* For INNER ZOOM */
  cursor: crosshair;
}
.prd-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.1s; /* VERY fast for panning */
  will-change: transform;
}

/* Right: Product Details */
.prd-details {
  width: 450px;
  padding: 40px;
  background: var(--l-white);
  height: calc(100vh - 60px);
  overflow-y: auto;
  position: sticky;
  top: 60px;
}
.prd-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 5px; }
.prd-reviews { font-size: 0.8rem; color: #888; margin-bottom: 20px; }
.prd-price { font-size: 1.5rem; font-weight: 700; margin-bottom: 30px; }

/* Options Area */
.opt-section { margin-bottom: 25px; }
.opt-label { font-size: 0.85rem; font-weight: 700; margin-bottom: 10px; display: block; }
.swatch-group { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch-item {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--l-gray-border);
  padding: 2px;
  background-clip: content-box;
  cursor: pointer;
}
.swatch-item.active { border-color: var(--l-black); }
.swatch-c1 { background-color: #55718a; }
.swatch-c2 { background-color: #8da4b8; }
.swatch-c3 { background-color: #2b2b2b; }
.swatch-c4 { background-color: #d1d1d1; }

.size-group { display: flex; flex-wrap: wrap; gap: 8px; }
.size-box {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--l-gray-border);
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer;
}
.size-box:hover { border-color: var(--l-black); }
.size-box.active { border-width: 2px; border-color: var(--l-black); background: var(--l-gray-bg); }
.size-box.disabled { color: #ccc; text-decoration: line-through; pointer-events: none; }

.stock-alert { color: var(--l-red); font-size: 0.8rem; font-weight: 700; margin: 20px 0; }

.qty-wrap {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--l-gray-border);
  border-bottom: 1px solid var(--l-gray-border);
  padding: 15px 0; margin-bottom: 30px;
}
.qty-controls { display: flex; gap: 20px; font-weight: 700; font-size: 1.1rem; }
.qty-btn { cursor: pointer; user-select: none; }

.btn-group { display: flex; flex-direction: column; gap: 10px; }
.delivery-notice { margin-top: 20px; font-size: 0.8rem; color: #555; }

/* =========================================
   Responsive Overrides (Official Levi's Mobile)
   ========================================= */
@media (max-width: 1024px) {
  .product-page-main { flex-direction: column; }
  /* Horizontal swipeable thumbnails */
  .prd-thumbnails { 
    flex-direction: row; 
    width: 100vw; 
    height: auto; 
    position: static; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    padding: 10px 20px; 
    gap: 10px;
  }
  .prd-thumbnails::-webkit-scrollbar { display: none; }
  .prd-thumb { width: 75px; flex-shrink: 0; }
  .prd-image { min-height: 450px; width: 100vw; }
  .prd-details { width: 100vw; position: static; height: auto; padding: 30px 20px; }
}

@media (max-width: 768px) {
  body { overflow-x: hidden; width: 100%; }
  
  /* Header Mobile Tweak */
  .header { padding: 0 20px; height: 55px; }
  .header-left { gap: 15px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .header-left::-webkit-scrollbar { display: none; }
  .header-left a { font-size: 0.8rem; }
  .header-right { gap: 12px; font-size: 1.1rem; }
  .header-logo svg { height: 28px; }

  /* Adjust Hero */
  .hero-content { padding: 0 20px; }
  .hero-content h2 { font-size: 2.8rem; margin-bottom: 12px; }
  .hero-content p { font-size: 1rem; }
  .hero-full { min-height: 400px; height: 70vh; }

  /* Promo Grids to 1 Column */
  .promo-grid { grid-template-columns: 1fr; padding: 40px 20px; gap: 20px; }

  /* Product Slider Grid (2 items across) */
  .product-slider { padding: 40px 20px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .section-heading { font-size: 1.5rem; margin-bottom: 25px; }

  /* Double Banner to Stack */
  .double-banner { flex-direction: column; }
  .double-banner > div { min-width: 100%; aspect-ratio: auto; min-height: 400px; }
  .double-banner h3 { font-size: 1.5rem !important; }

  /* Big Text */
  .big-text-section { padding: 60px 20px; }
  .big-text-section h2 { font-size: 1.8rem; }

  /* Footer Stack */
  .footer { padding: 40px 20px 20px; }
  .footer-top { flex-direction: column; gap: 30px; margin-bottom: 40px; }
  .footer-col h4 { font-size: 0.95rem; }
  .footer-col { flex: 1 1 100%; min-width: 100%; }
}
