/* ========================================
   LUXURY WATCH STORE - MODERN MINIMAL BLUE
   Clean & Contemporary Design
======================================== */

:root {
  --primary-navy: #1a365d;
  --primary-dark: #2d5a8c;
  --primary-blue: #3b82f6;
  --accent-cyan: #00d9ff;
  --light-cyan: #e0f7ff;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-dark: #1e293b;
  --text-gray: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== TYPOGRAPHY ========== */

h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -1.5px;
  line-height: 1.1;
}

h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  letter-spacing: -0.8px;
  margin: 2rem 0 1rem 0;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-navy);
}

h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-navy);
}

p {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.7;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-cyan);
}

/* ========== HEADER / NAVIGATION ========== */

header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

nav a {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
  transition: var(--transition);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--primary-blue);
}

nav a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--primary-navy);
  transition: var(--transition);
}

/* ========== SEARCH BAR ========== */

.search-section {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(0, 217, 255, 0.05));
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
}

.search-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
}

.search-input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-input::placeholder {
  color: var(--text-light);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.search-btn {
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
  color: var(--bg-white);
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

/* ========== BANNER ========== */

.banner-section {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.banner-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.banner-large {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 250px;
  cursor: pointer;
}

.banner-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.4), rgba(0, 0, 0, 0.2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  transition: var(--transition);
}

.banner-large:hover .banner-overlay {
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.6), rgba(0, 0, 0, 0.4));
}

.banner-overlay h2 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  color: var(--bg-white);
}

.banner-overlay p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.banner-btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: rgba(0, 217, 255, 0.2);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.banner-btn:hover {
  background: var(--accent-cyan);
  color: var(--primary-navy);
}

.banner-small .banner-overlay h2 {
  font-size: 1.3rem;
}

.banner-grid-right {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1.5rem;
  height: 250px;
}

.banner-small {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 115px;
  cursor: pointer;
}

.banner-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== PRODUCT CARDS ========== */

.products-section {
  max-width: 1400px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
  margin: 1rem auto 0;
  border-radius: 2px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1), var(--shadow-lg);
  transform: translateY(-4px);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: linear-gradient(135deg, #e0f7ff, #e0f2fe);
  transition: var(--transition);
}

.product-card:hover .product-image {
  transform: scale(1.04);
}

.product-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.product-brand {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary-blue);
  font-weight: 800;
  margin-top: auto;
  margin-bottom: 1rem;
}

.product-card .btn {
  padding: 0.7rem 1rem;
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
  color: var(--bg-white);
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
  width: 100%;
  text-align: center;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ========== FILTER SECTION ========== */

.filter-section {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.9rem;
  color: var(--primary-navy);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group select {
  padding: 0.7rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-dark);
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

/* ========== PAGINATION ========== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem 0;
}

.pagination a,
.pagination span {
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-white);
  color: var(--text-dark);
  transition: var(--transition);
  font-weight: 600;
  cursor: pointer;
}

.pagination a:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.pagination .active {
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
  border-color: var(--primary-blue);
  color: var(--bg-white);
}

/* ========== FOOTER ========== */

footer {
  background: var(--primary-navy);
  color: rgba(255, 255, 255, 0.9);
  margin-top: 4rem;
  padding: 2rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--accent-cyan);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* ========== DETAIL PAGE ========== */

.detail-container {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
}

.detail-left {
  display: flex;
  flex-direction: column;
}

.detail-image {
  width: 100%;
  height: 400px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.detail-info {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.detail-brand {
  color: var(--accent-cyan);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.detail-name {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

.detail-price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary-blue);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.detail-description {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
}

.spec-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.spec-label {
  color: var(--primary-blue);
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.spec-value {
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
}

.detail-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  sticky: top;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--primary-navy);
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stars {
  color: var(--accent-cyan);
  font-size: 0.9rem;
  font-weight: 700;
}

.recommend-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.recommend-item {
  display: flex;
  gap: 0.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.recommend-item:last-child {
  border-bottom: none;
}

.recommend-item:hover {
  opacity: 0.8;
  transform: translateX(4px);
}

.recommend-img {
  width: 60px;
  height: 60px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.recommend-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.recommend-brand {
  font-size: 0.7rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  font-weight: 700;
}

.recommend-name {
  font-size: 0.8rem;
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 600;
}

.recommend-price {
  color: var(--primary-blue);
  font-weight: 800;
  font-size: 0.85rem;
}

/* ========== TABS ========== */

.tabs {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.tab-btn {
  padding: 1rem;
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  font-size: 0.95rem;
  font-family: var(--font-display);
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tab-btn:hover {
  color: var(--primary-blue);
}

.tab-btn.active {
  color: var(--primary-navy);
  border-bottom-color: var(--accent-cyan);
}

.tab-content {
  display: none;
  padding: 2rem 0;
}

.tab-content.active {
  display: block;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.recent-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.recent-item:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.1), var(--shadow-md);
  transform: translateY(-2px);
}

.recent-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--bg-light);
}

.recent-info {
  padding: 0.8rem;
}

.recent-name {
  font-size: 0.8rem;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.recent-price {
  color: var(--primary-blue);
  font-weight: 800;
  font-size: 0.85rem;
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .header-container {
    padding: 1rem;
  }

  nav {
    display: none;
  }

  nav.active {
    display: flex;
    position: absolute;
    top: 60px;
    right: 0;
    flex-direction: column;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
    padding: 1rem;
    width: 100%;
    gap: 0;
    box-shadow: var(--shadow-md);
  }

  nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav a {
    display: block;
    padding: 0.8rem;
    border-bottom: 1px solid var(--border-color);
  }

  .hamburger {
    display: flex;
  }

  .search-container {
    flex-direction: column;
  }

  .banner-section {
    margin-bottom: 1rem;
  }

  .banner-grid {
    margin-bottom: 1rem;
    grid-template-columns: 1fr;
  }

  .banner-grid-right {
    grid-template-columns: 1fr;
    height: auto;
  }

  .products-section {
    margin: 1.2rem auto;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
  }

  .product-image {
    height: 180px;
  }

  .product-info {
    padding: 1rem;
  }

  .product-card .btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }

  .detail-container {
    grid-template-columns: 1fr;
  }

  .detail-right {
    order: -1;
  }

  .detail-image {
    height: 300px;
  }

  .specs {
    grid-template-columns: 1fr;
  }

  .filter-section {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  /* 리스트 페이지: 모바일에서 위아래 배치 */
  .list-container {
    flex-direction: column !important;
  }

  .list-sidebar {
    flex: 0 0 auto !important;
    margin-bottom: 1.5rem;
  }

  .list-content {
    flex: 1 !important;
  }

  .filter-section {
    position: relative !important;
    top: 0 !important;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .header-container {
    padding: 0.8rem;
  }

  .search-section {
    padding: 1rem;
  }

  .banner-section {
    padding: 0 1rem;
    margin: 0.8rem auto;
  }

  .products-section {
    padding: 0 1rem;
    margin: 1rem auto;
  }

  .section-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .product-info {
    padding: 0.8rem;
  }

  .product-card .btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
  }

  .detail-container {
    padding: 0 1rem;
    margin: 1rem auto;
  }

  .detail-info {
    padding: 1rem;
  }

  .specs {
    gap: 0.8rem;
  }

  .filter-section {
    padding: 1rem;
    gap: 1rem;
  }
}