/* =============================================
   Sabrina Bakery - 主樣式表
   風格：深色背景 / 金色點綴 / 優雅字型
   ============================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
  --gold: #C9A84C;
  --gold-light: #DFC478;
  --gold-dark: #A88A32;
  --bg-dark: #1C1410;
  --bg-medium: #2C2018;
  --bg-card: #36281E;
  --bg-widget: #3E2A1C;
  --text-white: #FDF8F0;
  --text-muted: #B8A89A;
  --text-dark: #1C1410;
  --font-script: 'Dancing Script', 'Brush Script MT', cursive;
  --font-serif: 'Noto Serif TC', 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-width: 1120px;
  --gap: 1.5rem;
  --radius: 12px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-white);
  background: var(--bg-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection {
  background: var(--gold);
  color: var(--text-dark);
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* =============================================
   SECTION HEADER
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header-left {
  text-align: left;
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
}

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(28, 20, 16, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  padding: 0.65rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  flex-shrink: 0;
}

.logo-brand {
  font-family: var(--font-script);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.02em;
}

.logo-divider {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.05rem 0;
}

.flourish {
  color: var(--gold);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
}

.cupcake-icon {
  color: var(--gold);
  width: 12px;
  height: 12px;
}

.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

/* Navigation */
.primary-nav ul {
  display: flex;
  gap: 2rem;
}

.primary-nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.25s;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--text-white);
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Order Button (Header) */
.btn-order {
  background: var(--gold);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-order:hover {
  background: var(--gold-light);
}

/* Line Button (Header) */
.btn-line {
  background: #06C755;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-line:hover {
  background: #05a348;
}

.btn-line-footer {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  width: auto;
}

.btn-line-footer::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M19.365 9.863c.349 0 .63.28.63.628 0 .348-.281.628-.63.628H16.65v2.748h2.715c.349 0 .63.28.63.628 0 .348-.281.628-.63.628h-3.344c-.348 0-.63-.28-.63-.628V9.863c0-.348.282-.628.63-.628h3.344zm-5.413 0c.348 0 .63.28.63.628v5.752c0 .348-.282.628-.63.628h-1.47c-.348 0-.63-.28-.63-.628v-2.12H9.38v2.12c0 .348-.28.628-.628.628H7.28c-.348 0-.63-.28-.63-.628V10.49c0-.348.282-.628.63-.628h1.47c.349 0 .63.28.63.628v2.12h2.087v-2.12c0-.348.282-.628.63-.628h1.47zM4.5 9.863c.348 0 .63.28.63.628v5.752c0 .348-.282.628-.63.628H3.155c-.348 0-.63-.28-.63-.628V10.49c0-.348.282-.628.63-.628H4.5z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  flex-shrink: 0;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  border-radius: 2px;
  transition: all 0.25s;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gold);
  color: var(--text-dark);
}

.btn-primary:hover {
  background: var(--gold-light);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 1.5px solid rgba(253, 248, 240, 0.3);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-link {
  background: none;
  color: var(--gold);
  padding: 0;
  font-size: 0.9rem;
}

.btn-link:hover {
  color: var(--gold-light);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, rgba(28,20,16,0.85) 0%, rgba(36,24,20,0.7) 50%, rgba(26,16,8,0.8) 100%),
              url('../images/hero-bg.jpg') center/cover no-repeat;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
}

.hero-text {
  padding: 8rem 3rem 5rem 0;
}

.hero-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-white);
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Image */
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

/* =============================================
   FEATURES (Why Choose Us)
   ============================================= */
.features {
  padding: 5rem 0;
  background: var(--bg-medium);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.08);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.25);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   PRODUCTS
   ============================================= */
.products {
  padding: 5rem 0;
  background: var(--bg-dark);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.products-footer {
  text-align: center;
}

/* Product Card (fallback / CMS) */
.product-card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  border-color: rgba(201, 168, 76, 0.18);
}

.product-image-link {
  display: block;
}

.product-image {
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.product-info {
  padding: 1.25rem 1.5rem 1.5rem;
}

.product-card a {
  color: inherit;
}

.product-card a h3:hover {
  color: var(--gold);
}

.product-info h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.product-info .price {
  color: var(--gold);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.product-info .desc {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(28,20,16,0.85) 0%, rgba(44,32,24,0.75) 100%),
              url('../images/cta-banner.jpg') center/cover no-repeat;
}

.cta-card {
  background: linear-gradient(135deg, var(--bg-widget), #2C1E14);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 16px;
  padding: 3.5rem 3rem;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}

.cta-card h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.cta-card p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* =============================================
   FAQ
   ============================================= */
.faq {
  padding: 5rem 0;
  background: var(--bg-dark);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(253, 248, 240, 0.06);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--gold);
}

.faq-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  color: var(--gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  padding: 5rem 0;
  background: var(--bg-medium);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info .section-header {
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-item span, .contact-item a {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text-muted);
}

.contact-item a:hover {
  color: var(--gold);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  width: 100%;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid rgba(253, 248, 240, 0.08);
  border-radius: 6px;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--gold);
}

.form-control::placeholder {
  color: rgba(184, 168, 154, 0.5);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #100A08;
  padding: 3rem 0 0;
  border-top: 1px solid rgba(201, 168, 76, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 1rem;
}

.footer-logo {
  font-family: var(--font-script);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-white);
}

.footer-sub {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.footer-desc {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-links-col h4,
.footer-contact-col h4,
.footer-social-col h4 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.footer-links-col ul,
.footer-contact-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links-col a,
.footer-contact-col li {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links-col a:hover {
  color: var(--gold);
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(253, 248, 240, 0.05);
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--text-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(253, 248, 240, 0.04);
  padding: 1.25rem 0;
}

.footer-bottom p {
  font-size: 0.73rem;
  color: rgba(184, 168, 154, 0.4);
  text-align: center;
}

/* =============================================
   PAGE BANNER (Product listing, etc.)
   ============================================= */
.page-banner {
  padding: 8rem 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(28,20,16,0.9) 0%, var(--bg-dark) 100%),
              url('../images/hero-bg.jpg') center/cover no-repeat;
}

.page-banner h1 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0.5rem 0 0.75rem;
}

.page-banner-desc {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
}

/* Products listing page */
.products-section {
  padding: 3rem 0 5rem;
  background: var(--bg-dark);
}

.product-grid-full {
  grid-template-columns: repeat(3, 1fr);
}

/* =============================================
   PRODUCT DETAIL PAGE
   ============================================= */
.product-detail {
  padding: 7rem 0 4rem;
  background: var(--bg-dark);
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

/* Gallery */
.product-gallery {
  position: sticky;
  top: 6rem;
  align-self: start;
}

.main-image-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: var(--bg-card);
}

.main-image-wrapper img {
  width: 100%;
  display: block;
}

.thumbnail-list {
  display: flex;
  gap: 0.5rem;
}

.thumb-btn {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--bg-card);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s;
}

.thumb-btn.active,
.thumb-btn:hover {
  border-color: var(--gold);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info */
.product-info-detail h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-price-detail {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.product-prep {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
  background: rgba(201, 168, 76, 0.08);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.product-desc-detail {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.product-ingredients {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(201, 168, 76, 0.06);
}

.product-ingredients h4 {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.product-ingredients p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Reviews */
.product-reviews {
  border-top: 1px solid rgba(253, 248, 240, 0.06);
  padding-top: 3rem;
}

.product-reviews h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

.review-card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.06);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.5rem;
}

.star {
  color: rgba(253, 248, 240, 0.1);
}

.star-filled {
  color: var(--gold);
}

.review-text {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.review-author {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.not-found {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  padding: 4rem 0;
}

/* =============================================
   Contentful 預留標記（不影響樣式）
   ============================================= */
[data-contentful] {}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.6rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hide-mobile { display: none; }

  .site-header .container {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
    order: 2;
  }

  .primary-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    padding: 1rem;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  }

  .primary-nav ul.open {
    display: flex;
  }

  .primary-nav a { padding: 0.5rem 0; }

  .btn-line { order: 3; }
  .btn-order { order: 4; }

  .hero { min-height: auto; }
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .hero-text { padding: 6rem 0 2rem; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero h1 { font-size: 2rem; }
  .hero-image { min-height: auto; }
  .hero-img { max-height: 50vh; }

  .features-grid,
  .product-grid,
  .product-grid-full {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .cta-card { padding: 2.5rem 1.5rem; }

  .section-header h2 { font-size: 1.6rem; }

  .product-detail-layout { grid-template-columns: 1fr; gap: 2rem; }
  .product-gallery { position: static; }
  .product-info-detail h1 { font-size: 1.6rem; }
  .product-price-detail { font-size: 1.2rem; }
  .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* =============================================
   Checkout / Cart
   ============================================= */

.checkout {
  padding: 6rem 0 4rem;
}

.checkout h1.section-title { text-align: center; margin-bottom: 3rem; }

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.checkout-items h2,
.checkout-form h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--bg-card);
}

.cart-item-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info h4 {
  font-size: 0.95rem;
  font-family: var(--font-serif);
  color: var(--text-white);
  margin-bottom: 0.25rem;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--gold);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.qty-btn:hover {
  background: var(--gold);
  color: var(--bg-dark);
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-size: 1rem;
  color: var(--text-white);
}

.cart-item-subtotal {
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}

.cart-item-remove:hover {
  color: #e74c3c;
}

.cart-total {
  padding: 1.5rem 0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-white);
}

.cart-total-amount {
  color: var(--gold);
  font-size: 1.4rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 0;
}

.cart-empty p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.checkout-form .form-group {
  margin-bottom: 1.2rem;
}

.checkout-form label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--bg-card);
  border-radius: var(--radius);
  background: var(--bg-medium);
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.checkout-form input::placeholder,
.checkout-form textarea::placeholder {
  color: var(--text-muted);
}

.checkout-payment {
  margin: 2rem 0 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
}

.checkout-payment h3 {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.payment-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.payment-info p strong {
  color: var(--text-white);
}

.payment-note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 500;
}

.checkout-success {
  text-align: center;
  padding: 4rem 0;
}

.checkout-success h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.checkout-success p {
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 2rem;
}

.checkout-success .btn {
  margin: 0 0.5rem;
}

@media (max-width: 768px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .cart-item {
    grid-template-columns: 50px 1fr auto;
    gap: 0.75rem;
  }
  .cart-item-subtotal {
    grid-column: 2 / -1;
    text-align: right;
  }
  .checkout { padding: 5rem 0 3rem; }
}

/* =============================================
   Payment
   ============================================= */

.payment {
  padding: 6rem 0 4rem;
}

.payment h1.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.payment-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.payment-info-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
}

.payment-info-card h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.bank-details {
  margin-bottom: 1.5rem;
}

.bank-details p {
  font-size: 0.95rem;
  color: var(--text-white);
  margin-bottom: 0.4rem;
}

.bank-details p strong {
  color: var(--gold);
  display: inline-block;
  min-width: 3.5rem;
}

.payment-instruction {
  padding: 1.2rem;
  background: var(--bg-medium);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
}

.payment-instruction p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.payment-instruction p:last-child {
  margin-bottom: 0;
}

.payment-form h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.payment-form .form-group {
  margin-bottom: 1.2rem;
}

.payment-form label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.payment-form input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--bg-card);
  border-radius: var(--radius);
  background: var(--bg-medium);
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  color-scheme: dark;
}

.payment-form input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(0.85) sepia(0.4) saturate(0.6) hue-rotate(5deg);
  cursor: pointer;
}

.payment-form input:focus {
  outline: none;
  border-color: var(--gold);
}

.payment-form input::placeholder {
  color: var(--text-muted);
}

.payment-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.payment-actions .btn {
  flex: 1;
}

.payment-success {
  text-align: center;
  padding: 4rem 0;
}

.payment-success h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.payment-success p {
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 0.8rem;
}

.payment-success .btn {
  margin: 1.5rem 0.5rem 0;
}

@media (max-width: 768px) {
  .payment-layout {
    grid-template-columns: 1fr;
  }
  .payment-actions {
    flex-direction: column;
  }
  .payment { padding: 5rem 0 3rem; }
}

/* =============================================
   Step Indicator
   ============================================= */

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.step.current {
  color: var(--gold);
  font-weight: 600;
}

.step.done {
  color: #2ecc71;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--bg-card);
  color: var(--text-muted);
}

.step.current .step-num {
  background: var(--gold);
  color: var(--text-dark);
}

.step.done .step-num {
  background: #2ecc71;
  color: #fff;
}

.step-connector {
  width: 48px;
  height: 2px;
  background: var(--bg-card);
  margin: 0 0.5rem;
  flex-shrink: 0;
}

.step-connector.done {
  background: #2ecc71;
}

/* =============================================
   Payment Confirmation
   ============================================= */

.payment-confirmation {
  padding: 6rem 0 4rem;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.payment-confirmation .container {
  width: 100%;
}

.confirmation-card {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(201, 168, 76, 0.12);
}

.confirmation-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.confirmation-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.confirmation-line-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  border-radius: 4px;
}

.confirmation-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .confirmation-title { font-size: 1.4rem; }
  .confirmation-actions { flex-direction: column; align-items: center; }
  .payment-confirmation { padding: 5rem 0 3rem; }
}
