@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --brand-primary: #d81b60;
  --brand-secondary: #fbcfe8;
  --text-main: #1e1e1e;
  --text-light: #6b7280;
  --border-light: #e5e7eb;
  --bg-color: #faf8f6;
  --font-nav: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-logo: 'Playfair Display', Georgia, serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-nav);
  color: var(--text-main);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Announcement Bar */
.announcement-bar {
  background-color: #1e1e1e;
  color: #ffffff;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Header */
.header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 30px 40px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 30px;
}

.logo {
  text-align: center;
}

.logo a {
  font-family: var(--font-logo);
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--brand-primary);
  letter-spacing: 1px;
}

.header-actions {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-main);
}

.header-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--text-main);
  font-family: var(--font-nav);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
}

.header-action-btn:hover {
  color: var(--brand-primary);
}

.cart-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: var(--brand-primary);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(216, 27, 96, 0.3);
}

/* Navigation */
.header-bottom {
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 30px;
  justify-content: center;
  max-width: 100vw;
  overflow-x: auto;
  padding-bottom: 5px;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links li a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--brand-primary);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-links li a:hover {
  color: var(--brand-primary);
}

/* Collection Toolbar */
.collection-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-light);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.toolbar-left {
  display: flex;
  gap: 15px;
  align-items: center;
}

.view-icon {
  width: 20px;
  height: 20px;
  fill: var(--text-light);
  cursor: pointer;
}
.view-icon.active {
  fill: var(--brand-primary);
}

.toolbar-center {
  flex: 1;
  text-align: center;
}

.toolbar-right {
  display: flex;
  align-items: center;
  height: 100%;
}

.sort-by {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding-right: 20px;
}

.filter-btn {
  padding-left: 20px;
  border-left: 1px solid var(--border-light);
  cursor: pointer;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Product Grid */
.section {
  padding: 60px 40px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1600px;
  margin: 0 auto;
}

.product-card {
  position: relative;
  text-align: center;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: var(--text-main);
  padding: 5px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 10;
}

.product-image-wrapper {
  position: relative;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 10px;
  background-color: #f3f4f6;
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  border-radius: 10px;
}

.product-card:hover .product-image {
  transform: scale(1.04);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.product-info {
  margin-top: 12px;
}

.product-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-primary);
}

/* Rest of standard UI */
.btn {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--brand-primary);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--brand-primary);
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: #fff;
  color: var(--brand-primary);
}

/* Footer (Simplified matching style) */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 80px 40px 40px;
  margin-top: 60px;
}

/* ... Cart Drawer/Modal (keeping from previous version) ... */
.cart-drawer-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.3); z-index: 999; opacity: 0; visibility: hidden; transition: var(--transition);
}
.cart-drawer-overlay.active { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: -400px; width: 400px; height: 100vh;
  background: #fff; z-index: 1000; transition: transform 0.4s ease; display: flex; flex-direction: column;
}
.cart-drawer.active { transform: translateX(-400px); }

.filter-drawer { left: -400px; right: auto; }
.filter-drawer.active { transform: translateX(400px); }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid var(--border-light); }
.close-btn { background: none; border: none; cursor: pointer; color: var(--brand-primary); }
.cart-items { flex: 1; overflow-y: auto; padding: 24px; }
.cart-item { display: flex; gap: 16px; margin-bottom: 24px; }
.cart-item img { width: 80px; height: 80px; object-fit: cover; }
.cart-item-details { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.cart-item-title { font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; }
.cart-item-price { font-size: 0.8rem; color: var(--text-light); margin-bottom: 8px; }
.cart-item-actions { display: flex; align-items: center; gap: 12px; }
.cart-item-actions button { background: none; border: none; cursor: pointer; font-size: 1.2rem; }
.cart-footer { padding: 24px; border-top: 1px solid var(--border-light); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 16px; font-weight: 600; }
.btn-full { width: 100%; }

.search-modal {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); z-index: 1001;
  opacity: 0; visibility: hidden; transition: var(--transition); display: flex; align-items: center; justify-content: center;
}
.search-modal.active { opacity: 1; visibility: visible; }
.search-modal-content { text-align: center; width: 100%; max-width: 600px; padding: 20px; }
.close-search-btn { position: absolute; top: 40px; right: 40px; background: none; border: none; cursor: pointer; color: var(--brand-primary); }
.search-input-wrapper { display: flex; align-items: center; border-bottom: 2px solid var(--brand-primary); padding-bottom: 12px; }
.search-input-wrapper input { flex: 1; border: none; background: none; outline: none; font-size: 1.5rem; font-family: var(--font-nav); padding-left: 16px; }

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}
.section-title {
  font-family: var(--font-logo);
  font-size: 2rem;
  font-weight: 500;
  color: var(--brand-primary);
}
.section-link {
  font-size: 0.75rem;
  text-decoration: underline;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
}

/* Quick Add Button */
.quick-add-btn {
  position: absolute;
  bottom: 15px;
  left: 10%;
  width: 80%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 20px;
  font-family: var(--font-nav);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--brand-primary);
  cursor: pointer;
  transform: translateY(150%);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.product-image-wrapper:hover .quick-add-btn {
  transform: translateY(0);
}
.quick-add-btn:hover {
  background: var(--brand-primary);
  color: #fff;
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}
.hero-subtitle {
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 30px;
  text-transform: uppercase;
  font-family: var(--font-logo);
  text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
}
.btn-white {
  background-color: #fff;
  color: var(--brand-primary);
  border-color: #fff;
}
.btn-white:hover {
  background-color: transparent;
  color: #fff;
}

/* Responsive Grid */
@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .header-actions { position: relative; transform: none; justify-content: center; margin-top: 20px; }
  .header-top { flex-direction: column; }
  .product-detail-section { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* Product Detail Page */
.product-detail-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 40px;
  align-items: center;
}

.product-detail-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.product-detail-info h1 {
  font-family: var(--font-logo);
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-main);
}

.product-detail-info .price {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 24px;
}

.product-detail-info p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 30px;
}

.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 6px 16px;
  margin-bottom: 30px;
  gap: 20px;
  background-color: #ffffff;
}

.qty-selector button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-main);
  font-weight: 600;
  padding: 0 5px;
}

.qty-selector span {
  font-size: 1rem;
  font-weight: 600;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--brand-primary);
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  transform: translateX(-120%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  opacity: 0;
  max-width: 380px;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.toast-sub {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* Payment Method Cards */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
  margin-bottom: 20px;
}

.payment-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  background: #ffffff;
}

.payment-card:hover {
  border-color: var(--brand-primary);
}

.payment-card.active {
  border-color: var(--brand-primary);
  background-color: var(--bg-color);
}

.payment-card input[type="radio"] {
  accent-color: var(--brand-primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.payment-icon-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  background: #f3f4f6;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.payment-card-info {
  flex: 1;
}

.payment-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.payment-card-sub {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Payment Modals (QRIS / Bank) */
.payment-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.payment-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.payment-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  position: relative;
}

.payment-modal-overlay.active .payment-modal {
  transform: scale(1);
}

.qris-box {
  background: #f9fafb;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 20px;
  display: inline-block;
  margin: 20px 0;
}

.qris-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.bank-acc-box {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0;
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.copy-btn {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: var(--font-nav);
  transition: var(--transition);
}

.copy-btn:hover {
  opacity: 0.9;
}

/* Payment Proof Upload Styling */
.upload-zone {
  border: 2px dashed var(--border-light);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  background: #fafafa;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 12px;
  margin-bottom: 16px;
}

.upload-zone:hover {
  border-color: var(--brand-primary);
  background: #fff0f5;
}

.upload-icon {
  width: 28px;
  height: 28px;
  color: var(--brand-primary);
  margin-bottom: 6px;
}

.upload-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.upload-subtext {
  font-size: 0.72rem;
  color: var(--text-light);
}

.upload-preview-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 12px;
  margin-bottom: 16px;
}

.upload-preview-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}

.upload-preview-info {
  flex: 1;
  text-align: left;
}

.upload-preview-filename {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-all;
}

.upload-preview-status {
  font-size: 0.72rem;
  color: #16a34a;
  font-weight: 500;
}

.remove-upload-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}




/* PHP/MySQL deployment compatibility — visual language remains the uploaded UI */
:root { --secondary-color: #fdf1f5; --teal-dark: var(--text-main); }
.page-header { padding: 72px 40px 36px; text-align: center; }
.page-header h1 { font-family: var(--font-logo); font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 500; color: var(--brand-primary); }
.quick-add-btn:disabled, .btn:disabled { opacity: .55; cursor: not-allowed; }
.svs-alert { padding: 13px 16px; border-radius: 8px; font-size: .86rem; line-height: 1.5; border: 1px solid transparent; }
.svs-alert-error { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
.svs-alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.svs-alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.checkout-input { width: 100%; padding: 15px; margin-bottom: 15px; border: 1px solid var(--border-light); font-family: var(--font-nav); border-radius: 8px; background: #fff; color: var(--text-main); outline: none; }
.checkout-input:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(216,27,96,.08); }
.checkout-two { display: flex; gap: 15px; }
.checkout-summary-line { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--border-light); padding: 14px 0; font-size: .82rem; font-weight: 600; }
.checkout-summary-total { font-size: 1rem; color: var(--brand-primary); }
.upload-label { font-size: .8rem; font-weight: 600; color: var(--text-main); }
.modal-cancel { flex: 1; background: #e5e7eb; color: var(--text-main); border-color: #e5e7eb; }
.bank-info-box { text-align: left; margin: 20px 0; background: #f3f4f6; padding: 16px 18px; border-radius: 8px; line-height: 1.7; font-size: .88rem; }
.detail-badge { box-shadow: none; }

@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr !important; }
  .checkout-summary { order: -1; }
  .curated-grid { grid-template-columns: 1fr !important; }
  .story-row { grid-template-columns: 1fr !important; direction: ltr !important; }
  .story-row > div { direction: ltr !important; }
}
@media (max-width: 600px) {
  .header { padding: 22px 18px 14px; }
  .logo a { font-size: 2.2rem; }
  .header-top { margin-bottom: 18px; }
  .header-actions { margin-top: 14px; gap: 16px; }
  .nav-links { justify-content: flex-start; gap: 22px; }
  .section { padding: 42px 18px; }
  .collection-toolbar { padding: 14px 18px; }
  .toolbar-left { display: none; }
  .toolbar-center { text-align: left; }
  .sort-by { padding-right: 12px; }
  .filter-btn { padding-left: 12px; }
  .cart-drawer { width: min(100vw, 400px); }
  .product-detail-section { padding: 0 18px; margin: 34px auto; }
  .checkout-two { flex-direction: column; gap: 0; }
  .payment-modal { padding: 26px 20px; max-height: 92vh; overflow-y: auto; }
  #toast-container { left: 14px; right: 14px; bottom: 14px; }
  .toast { max-width: none; }
}
