* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: #f8fafc;
  color: #0f172a;
  padding-bottom: 50px;
}

/* Announcement Banner */
.banner {
  background: #fef3c7;
  color: #92400e;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  border-bottom: 1px solid #fde68a;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

header .max-w-6xl {
  width: 100%;
}

header .mr-auto {
  margin-right: auto;
}

.cart-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

/* Main Container & Product Card */
.container {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 20px;
}

.product-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.subtitle {
  color: #64748b;
  margin: 8px 0 20px 0;
}

/* Scrollable Preview Box */
.preview-box {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 15px;
  background: #f1f5f9;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 25px;
}

.preview-page {
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 6px;
  background: white;
}

.preview-page.blur {
  filter: blur(4px);
  user-select: none;
  opacity: 0.6;
}

.pricing {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 24px;
  font-weight: bold;
  color: #16a34a;
}

.btn-primary {
  background: #059669;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 15px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.cart-drawer.hidden {
  transform: translateX(100%);
}

.cart-header {
  padding: 20px;
  background: #0f172a;
  color: white;
  display: flex;
  justify-content: space-between;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.cart-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
  gap: 12px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.remove-cart-btn {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #b91c1c;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.remove-cart-btn:hover {
  background: #ffe4e6;
  transform: translateY(-1px);
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.btn-checkout {
  width: 100%;
  padding: 12px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 10px;
  cursor: pointer;
}

.product-slider {
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  min-height: 170px;
}

.product-slide-track {
  position: relative;
  width: 100%;
  height: 170px;
}

.product-slide {
  position: absolute;
  inset: 0;
  padding: 18px 18px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248,250,252,0.9));
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.product-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.product-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.18), rgba(15,23,42,0.15));
  z-index: 0;
}

.product-slide.has-image::before {
  background: linear-gradient(135deg, rgba(15,23,42,0.32), rgba(15,23,42,0.2));
}

.product-slide > * {
  position: relative;
  z-index: 1;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 10px;
}

.slide-title {
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
  max-width: 80%;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: white;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.slider-dot {
  appearance: none;
  border: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.25);
  cursor: pointer;
  padding: 0;
}

.slider-dot.active {
  width: 24px;
  background: #f59e0b;
}

.product-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.product-preview-modal.hidden {
  display: none;
}

.product-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
}

.product-preview-card {
  position: relative;
  z-index: 1;
  width: min(760px, 92vw);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.3);
  padding: 20px;
}

.product-preview-nav-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.product-preview-nav {
  flex: 1;
  border: none;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  padding: 12px 14px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.product-preview-nav:hover {
  opacity: 0.9;
}

.product-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.preview-product-name {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.product-preview-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-size: 1.2rem;
  cursor: pointer;
}

.product-preview-slide {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(226, 232, 240, 0.9));
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.product-preview-slide.has-image {
  min-height: 0;
  background: #f8fafc;
}

.preview-slide-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 62vh;
  object-fit: contain;
  background: #0f172a;
  margin: auto;
}

.preview-slide-caption {
  padding: 24px;
  margin-top: auto;
}

.has-image .preview-slide-caption {
  width: 100%;
  padding: 16px 20px;
}

.preview-slide-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 8px 12px;
  margin-bottom: 14px;
}

.preview-slide-title {
  color: #0f172a;
  font-size: clamp(1.2rem, 2vw, 2rem);
  line-height: 1.3;
  font-weight: 800;
  max-width: 70%;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* Modal Window */
.modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.75);
  display: flex; justify-content: center; align-items: center;
  z-index: 1000;
}

.modal.hidden { display: none; }

.modal-content {
  background: white;
  width: 90%; max-width: 500px;
  padding: 25px; border-radius: 12px;
  max-height: 90vh; overflow-y: auto;
}

.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 15px; border-bottom: 1px solid #e2e8f0; padding-bottom: 10px;
}

.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 6px; box-sizing: border-box;
}

.bank-info-box {
  background: #f1f5f9; padding: 15px; border-radius: 8px; margin: 15px 0; font-size: 14px;
}

.highlight-text { color: #dc2626; font-size: 16px; margin-top: 5px; }

/* Custom Slide & Modal Transitions */
.cart-drawer {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.hidden {
  transform: translateX(100%);
}

.modal.hidden {
  display: none;
}