/* ===== SHOP PAGE STYLES ===== */
.shop-page {
  background: #f4ece4;
  min-height: 100vh;
  padding-bottom: 60px;
  font-family: 'Noto Sans TC', sans-serif;
  color: #333;
  overflow-y: auto;
}

/* NCKU Emblem Watermarks */
.shop-page::before,
.shop-page::after {
  content: "";
  position: fixed;
  top: 50%;
  width: 600px;
  height: 600px;
  background-image: url('assets/images/ncku_emblem.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

.shop-page::before {
  left: -200px;
  transform: translateY(-50%) rotate(-15deg);
}

.shop-page::after {
  right: -200px;
  transform: translateY(-50%) rotate(15deg);
}

/* Shop Header Area */
.shop-header-area {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 40px 20px 40px;
  zoom: 1.3333;
}

.shop-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #6e1414;
  background: rgba(110,20,20,0.08);
  padding: 8px 16px;
  border-radius: 30px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.2s;
  border: 1px solid rgba(110,20,20,0.1);
}
.shop-back-btn:hover {
  background: rgba(110,20,20,0.15);
  transform: translateX(-4px);
}
.shop-title-area h1 {
  font-size: 32px;
  font-weight: 900;
  color: #6e1414;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.shop-title-area h1 span {
  font-size: 20px;
  font-weight: 700;
  color: #555;
  margin-top: 6px;
}

.shop-top-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.shop-search-bar {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 8px;
  padding: 8px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  width: 300px;
}
.shop-search-bar input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
  color: #333;
  font-family: inherit;
}
.shop-search-bar svg {
  color: #888;
  cursor: pointer;
}

.shop-top-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}
.shop-sort-select {
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  outline: none;
}
.shop-cart-btn {
  background: #6e1414;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(110,20,20,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.shop-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(110,20,20,0.4);
}
.shop-cart-badge {
  background: rgba(255,255,255,0.2);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 13px;
}

/* Banner */
.shop-banner-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 30px auto;
  padding: 0 40px;
}
.shop-banner {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  background: #2b1212;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-banner img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.shop-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fde68a;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.shop-banner-content h2 {
  font-size: 42px;
  font-weight: 900;
  margin: 0 0 10px 0;
  letter-spacing: 2px;
}
.shop-banner-content p {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px 0;
  background: rgba(110,20,20,0.8);
  padding: 6px 20px;
  border-radius: 20px;
  display: inline-block;
  border: 1px solid rgba(253, 230, 138, 0.3);
}
.shop-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #8b0000;
  color: white;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid #fde68a;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transition: transform 0.2s;
}
.shop-banner-btn:hover {
  transform: scale(1.05);
}

/* Layout */
.shop-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 24px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  zoom: 1.3333;
}

/* Sidebar Box styles */
.shop-sidebar-box {
  background: rgba(255,255,255,0.6);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  border: 1px solid rgba(255,255,255,0.8);
}
.shop-sidebar-title {
  font-size: 16px;
  font-weight: 800;
  color: #6e1414;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =========================================================================
   CHECKOUT PAGE
   ========================================================================= */
.shop-checkout-layout {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  padding: 0 40px 60px 40px;
  zoom: 1.3333;
}

.shop-checkout-left,
.shop-checkout-right {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.shop-checkout-left h3,
.shop-checkout-right h3 {
  font-size: 20px;
  font-weight: 800;
  color: #6e1414;
  margin-top: 0;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 15px;
  color: #555;
}

.checkout-total-row {
  font-size: 20px;
  font-weight: 800;
  color: #d32f2f;
  margin-top: 24px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

.checkout-input:focus {
  border-color: #6e1414;
  box-shadow: 0 0 0 3px rgba(110, 20, 20, 0.1);
}

.checkout-submit-btn {
  background: #6e1414;
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s;
}

.checkout-submit-btn:hover {
  background: #8b1919;
  transform: translateY(-2px);
}

/* Left Sidebar - Categories */
.shop-cat-list {
  list-style: none;
  padding: 0; margin: 0;
}
.shop-cat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: #555;
  transition: all 0.2s;
}
.shop-cat-item:hover, .shop-cat-item.active {
  background: white;
  color: #6e1414;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.shop-cat-item svg {
  color: #888;
}
.shop-cat-item.active svg {
  color: #6e1414;
}

/* Price Range */
.shop-price-slider {
  width: 100%;
  margin-bottom: 12px;
}
.shop-price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  font-weight: 600;
  margin-bottom: 16px;
}
.shop-price-actions {
  display: flex;
  gap: 10px;
}
.shop-btn-outline {
  flex: 1;
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 700;
  color: #555;
  cursor: pointer;
}
.shop-btn-primary {
  flex: 1;
  background: #6e1414;
  border: none;
  border-radius: 6px;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 700;
  color: white;
  cursor: pointer;
}

/* Tags */
.shop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.shop-tag {
  background: white;
  border: 1px solid #eee;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
}
.shop-tag:hover {
  border-color: #6e1414;
  color: #6e1414;
}

/* Main Area - Tabs */
.shop-main-bg {
  background: rgba(255,255,255,0.6);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.shop-main-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.shop-main-controls .shop-search-bar {
  flex: 1;
  width: auto;
}
.shop-tabs {
  display: flex;
  gap: 30px;
  border-bottom: 2px solid rgba(0,0,0,0.05);
  margin-bottom: 24px;
  padding-bottom: 10px;
}
.shop-tab {
  font-size: 16px;
  font-weight: 800;
  color: #888;
  cursor: pointer;
  position: relative;
}
.shop-tab.active {
  color: #6e1414;
}
.shop-tab.active::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #6e1414;
  border-radius: 3px 3px 0 0;
}

/* Product Grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.shop-product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.shop-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.shop-product-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #f9f9f9;
}
.shop-product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.shop-badge-recommend, .shop-badge-limited {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  color: white;
  z-index: 2;
}
.shop-badge-recommend { background: #d97706; }
.shop-badge-limited { background: #cc0000; }

.shop-product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.shop-product-title {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 6px 0;
  color: #333;
}
.shop-product-desc {
  font-size: 12px;
  color: #777;
  margin: 0 0 16px 0;
  font-weight: 500;
}
.shop-product-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 4px;
}
.shop-product-price-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.shop-product-price {
  font-size: 18px;
  font-weight: 900;
  color: #6e1414;
  line-height: 1;
}
.shop-product-price span {
  font-size: 12px;
}
.shop-product-price-old {
  font-size: 11px;
  color: #aaa;
  text-decoration: line-through;
  margin-bottom: 2px;
  font-weight: 600;
  line-height: 1;
}
.shop-add-cart {
  background: #6e1414;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  height: 28px;
}
.shop-add-cart:hover { background: #8b0000; }

/* Right Sidebar */
.shop-partner-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shop-partner-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 12px;
  border-radius: 8px;
}
.shop-partner-logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
}
.shop-partner-logo img { width: 24px; height: 24px; object-fit: contain; }
.shop-partner-info h4 { margin: 0; font-size: 14px; font-weight: 800; }
.shop-partner-info p { margin: 2px 0 0 0; font-size: 11px; color: #777; }
.shop-more-partners {
  display: block; width: 100%;
  text-align: center; margin-top: 12px;
  padding: 8px; border: 1px solid #ccc;
  border-radius: 8px; background: transparent;
  font-size: 12px; font-weight: 700; color: #555;
  cursor: pointer;
}

.shop-reminders {
  margin: 0; padding: 0 0 0 16px;
  font-size: 12px; color: #555; font-weight: 500;
  line-height: 1.6;
}
.shop-reminders li { margin-bottom: 8px; }
.shop-contact-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 16px;
  padding: 10px; background: transparent;
  border: 1px solid #ccc; border-radius: 8px;
  font-size: 13px; font-weight: 800; color: #333;
  cursor: pointer;
}
