:root {
  --primary-red: #8b0000;
  --dark-red: #5c0000;
  --accent-red: #b22222;
  --gold: #d4af37;
  --dark-gold: #a67c00;
  --light-gold: #f4d675;
  --cream: #fff8e7;
  --white: #ffffff;
  --text-dark: #2b2118;
  --muted: #74685d;
  --line: #ead9ad;
  --shadow: 0 12px 30px rgba(92, 0, 0, .09);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Trebuchet MS', Arial, sans-serif; background: var(--cream); color: var(--text-dark); line-height: 1.6; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .035; background-image: linear-gradient(45deg, var(--dark-gold) 25%, transparent 25%, transparent 75%, var(--dark-gold) 75%), linear-gradient(45deg, var(--dark-gold) 25%, transparent 25%, transparent 75%, var(--dark-gold) 75%); background-size: 28px 28px; background-position: 0 0, 14px 14px; z-index: -1; }
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: var(--primary-red); transition: color .2s ease; }
a:hover { color: var(--dark-gold); }
img { max-width: 100%; display: block; }

.site-header { position: relative; background: var(--dark-red); color: var(--white); padding: 17px 0 19px; box-shadow: 0 4px 18px rgba(92,0,0,.18); }
.site-header::after, .site-footer::before, .admin-sidebar::after { content: ''; position: absolute; left: 0; right: 0; height: 7px; opacity: .45; background: repeating-linear-gradient(45deg, transparent 0 8px, var(--gold) 8px 10px, transparent 10px 18px); }
.site-header::after { bottom: 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-family: Georgia, serif; font-size: 23px; font-weight: bold; letter-spacing: .4px; }
.logo img { width: 58px; height: 58px; object-fit: contain; flex: 0 0 auto; }
.logo span { display: block; color: var(--light-gold); font-family: 'Trebuchet MS', sans-serif; font-size: 10px; font-weight: normal; letter-spacing: 2px; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 19px; }
.main-nav a { color: var(--white); font-size: 13px; }
.main-nav a:hover { color: var(--light-gold); }
.store-strip { background: #fffdf8; border-bottom: 1px solid var(--line); }
.store-strip-inner { display: flex; align-items: center; gap: 12px; min-height: 70px; }
.store-strip img { width: 54px; height: 54px; object-fit: cover; border-radius: 3px; }
.store-strip strong, .store-strip span { display: block; }
.store-strip strong { color: var(--primary-red); }
.store-strip span, .store-account { color: var(--muted); font-size: 12px; }
.store-account { margin-left: auto; text-align: right; }

.main-content { padding: 34px 24px 48px; min-height: 64vh; animation: page-in .5s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.page-title, .section-title { color: var(--primary-red); margin-bottom: 10px; }
.page-title { font-size: 29px; }
.section-title { position: relative; display: inline-block; font-size: 27px; }
.section-title::after { content: '+'; color: var(--gold); font-size: 16px; position: absolute; right: -22px; top: 50%; transform: translateY(-50%); }
.page-subtitle { color: var(--muted); margin-bottom: 22px; }
.hero-panel { position: relative; width: 100vw; min-height: clamp(330px, 42vw, 560px); display: flex; align-items: center; overflow: hidden; margin: -34px calc(50% - 50vw) 34px; padding: 42px max(24px, calc((100vw - 1120px) / 2 + 24px)); color: var(--white); background: linear-gradient(90deg, rgba(92,0,0,.55), rgba(92,0,0,.25), rgba(92,0,0,.08)), url('../Images/banner.jpeg'); background-position: center; background-size: cover; background-repeat: no-repeat; }
.hero-panel::before { content: ''; position: absolute; width: 220px; height: 220px; right: 9%; top: 50%; border: 1px solid rgba(244,214,117,.55); transform: translateY(-50%) rotate(45deg); box-shadow: 0 0 0 12px rgba(212,175,55,.08), 0 0 0 24px rgba(212,175,55,.05); }
.hero-copy { position: relative; max-width: 560px; }
.eyebrow { color: var(--light-gold); font-size: 12px; letter-spacing: 4px; margin-bottom: 8px; }
.hero-copy h1 { color: var(--white); font-size: clamp(34px, 6vw, 60px); line-height: 1.05; margin-bottom: 13px; }
.hero-copy p:not(.eyebrow) { color: #fff8e7; max-width: 470px; margin-bottom: 24px; }
.catalog-section { scroll-margin-top: 25px; }
.featured-section { margin: 0 0 38px; padding: 28px 0 4px; border-top: 1px solid var(--line); }
.featured-heading { margin-bottom: 18px; }
.featured-eyebrow { color: var(--dark-gold); letter-spacing: 3px; }
.featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.featured-card { display: grid; grid-template-columns: 43% 57%; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); }
.featured-image-link { min-height: 245px; overflow: hidden; background: var(--dark-red); }
.featured-image-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.featured-card:hover .featured-image-link img { transform: scale(1.05); }
.featured-info { display: flex; flex-direction: column; padding: 20px; }
.featured-motif { color: var(--dark-gold); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.featured-info h3 { color: var(--primary-red); font-size: 19px; line-height: 1.25; margin: 7px 0 9px; }
.featured-info p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.featured-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; }
.featured-footer strong { color: var(--primary-red); font-size: 16px; white-space: nowrap; }
.motif-gallery { margin: 0 0 40px; padding: 28px 0 4px; border-top: 1px solid var(--line); }
.gallery-heading { margin-bottom: 18px; }
.gallery-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; }
.gallery-card { overflow: hidden; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 7px 18px rgba(92,0,0,.07); }
.gallery-image-wrap { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 8px; background: #fdf7e9; }
.gallery-image-wrap img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.gallery-card:hover .gallery-image-wrap img { transform: scale(1.04); }
.gallery-card figcaption { padding: 8px 10px 10px; color: var(--dark-gold); font-size: 11px; font-weight: bold; text-align: center; }
.search-form { display: flex; gap: 9px; margin-bottom: 20px; max-width: 540px; }
.search-form input { flex: 1; padding: 11px 13px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); font: inherit; }
.search-form input:focus, input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.18); }
.filter-bar { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-bar a { padding: 7px 14px; border: 1px solid var(--gold); border-radius: 3px; font-size: 12px; color: var(--dark-gold); background: rgba(255,255,255,.7); }
.filter-bar a.active, .filter-bar a:hover { background: var(--gold); color: var(--dark-red); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.product-card { position: relative; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.product-card::before { content: ''; display: block; height: 6px; background: repeating-linear-gradient(135deg, var(--gold) 0 7px, var(--dark-red) 7px 10px, var(--gold) 10px 17px); }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(92,0,0,.16); }
.product-card img { height: 190px; object-fit: cover; width: 100%; background: #eee4d2; transition: transform .35s ease; }
.product-card:hover img { transform: scale(1.035); }
.product-info { padding: 16px; }
.product-info h3 { font-size: 16px; margin-bottom: 5px; }
.product-info .motif { font-size: 12px; color: var(--dark-gold); margin-bottom: 7px; }
.product-info .harga, .harga-besar { font-weight: bold; color: var(--primary-red); }
.product-info .harga { margin-bottom: 12px; }

.btn { display: inline-block; background: var(--primary-red); color: var(--white); padding: 9px 17px; border: 1px solid var(--primary-red); border-radius: 3px; cursor: pointer; font: inherit; font-size: 13px; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--dark-red); transform: translateY(-1px); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--dark-red); font-weight: bold; }
.btn-gold:hover { background: var(--light-gold); border-color: var(--light-gold); }
.btn-outline { background: transparent; border-color: var(--gold); color: var(--primary-red); }
.btn-block { width: 100%; text-align: center; }
.btn-danger { background: var(--accent-red); border-color: var(--accent-red); }
button:disabled, .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.form-box, .detail-produk, .admin-form-panel, .account-panel { background: var(--white); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); }
.form-box { max-width: 440px; margin: 0 auto; padding: 31px; }
.form-box h2, .admin-form-panel h2 { margin-bottom: 18px; color: var(--primary-red); }
.login-panel { border-top: 5px solid var(--gold); }
.login-panel .eyebrow { color: var(--dark-gold); }
.login-intro { color: var(--muted); margin: -8px 0 19px; font-size: 13px; }
.form-group { margin-bottom: 15px; }
.password-field { position: relative; }
.password-field input { padding-right: 92px; }
.password-toggle { position: absolute; right: 7px; bottom: 7px; border: 0; background: transparent; color: var(--primary-red); cursor: pointer; font-size: 12px; }
.form-group label { display: block; font-size: 13px; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select, .inline-form input { width: 100%; padding: 10px 11px; border: 1px solid #d8c99b; border-radius: 3px; background: #fffdf8; font: inherit; font-size: 13px; }
.alert { padding: 11px 14px; border-radius: 3px; margin-bottom: 17px; font-size: 13px; }
.alert-error { background: #fff0ed; color: var(--accent-red); border: 1px solid #e8aaa0; }
.alert-success { background: #fff8e7; color: var(--dark-red); border: 1px solid var(--gold); }
.detail-produk { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 25px; }
.detail-produk img { border-radius: 3px; border: 1px solid var(--line); }
.detail-produk h1 { color: var(--primary-red); margin-bottom: 7px; }
.detail-produk .harga-besar { font-size: 25px; margin: 11px 0; }
.detail-produk .stok { font-size: 13px; color: var(--muted); margin-bottom: 17px; }
.payment-info { background: #fff8e7; border: 1px solid var(--gold); padding: 13px 15px; margin: 15px 0; font-size: 13px; }
.payment-upload { max-width: none; margin: 21px 0; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--white); box-shadow: var(--shadow); }
table th, table td { padding: 12px 11px; border-bottom: 1px solid #f0e6cc; text-align: left; font-size: 13px; }
table th { background: var(--primary-red); color: var(--white); border-bottom: 3px solid var(--gold); }
table tbody tr:hover { background: #fffaf0; }
.qty-input { width: 60px; padding: 6px; border: 1px solid var(--line); }
.total-box { text-align: right; margin-top: 17px; font-size: 16px; }
.total-box strong { color: var(--primary-red); font-size: 21px; }
.account-panel { max-width: 720px; margin-bottom: 19px; }
.account-row { display: flex; justify-content: space-between; gap: 20px; padding: 15px 19px; border-bottom: 1px solid #f0e6cc; }
.account-row:last-child { border-bottom: 0; }
.account-row span { color: var(--muted); }
.account-row strong { text-align: right; overflow-wrap: anywhere; }

.site-footer { position: relative; overflow: hidden; background: var(--dark-red); color: #fff8e7; text-align: center; padding: 25px 0; font-size: 12px; }
.site-footer::before { top: 0; opacity: .35; }
.site-footer p + p { color: var(--light-gold); margin-top: 3px; }

.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar { position: relative; overflow: hidden; flex: 0 0 235px; background: var(--dark-red); color: var(--white); padding: 23px 0; }
.admin-sidebar::after { top: auto; bottom: 25px; opacity: .18; }
.admin-sidebar h2 { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; padding: 0 22px 23px; color: var(--light-gold); font-size: 19px; }
.admin-logo { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; }
.admin-sidebar a { position: relative; z-index: 1; display: block; padding: 12px 22px; color: #fff8e7; font-size: 13px; border-left: 3px solid transparent; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--gold); color: var(--dark-red); border-left-color: var(--light-gold); }
.admin-content { flex: 1; padding: 34px; background: var(--cream); min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 21px; }
.admin-form-panel { padding: 21px; margin-bottom: 25px; }
.status-badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 11px; color: var(--white); }
.status-menunggu_pembayaran { background: var(--dark-gold); }
.status-pembayaran_dikonfirmasi { background: #6d5b13; }
.status-pembayaran_ditolak, .status-dibatalkan { background: var(--accent-red); }
.status-diproses { background: var(--primary-red); }
.status-dikirim { background: var(--dark-gold); }
.status-selesai { background: var(--dark-red); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 22px; }
.stats-grid > div { background: var(--white); padding: 17px; border-top: 4px solid var(--gold); box-shadow: var(--shadow); }
.stats-grid strong, .stats-grid span { display: block; }
.stats-grid strong { color: var(--primary-red); font-size: 21px; }
.stats-grid span { color: var(--muted); font-size: 12px; }
.report-filter, .inline-form { display: flex; flex-wrap: wrap; gap: 9px; align-items: end; }
.report-filter { margin-bottom: 19px; }
.report-filter label { font-size: 13px; }
.report-filter input { display: block; margin-top: 4px; padding: 9px; border: 1px solid var(--line); border-radius: 3px; font: inherit; }
.inline-form input { width: 110px; }

@media (max-width: 760px) {
  .container { padding: 0 15px; }
  .site-header { padding-bottom: 22px; }
  .header-inner { align-items: flex-start; }
  .logo { font-size: 18px; }
  .logo img { width: 48px; height: 48px; }
  .main-nav { gap: 7px 13px; }
  .main-nav a { font-size: 12px; }
  .main-content { padding: 25px 15px 38px; }
  .store-strip-inner { align-items: flex-start; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .store-account { width: 100%; margin-left: 66px; text-align: left; }
  .hero-panel { width: 100vw; min-height: 330px; margin: -25px -15px 28px; padding: 35px 25px; background-position: 62% center; }
  .hero-panel::before { right: -70px; opacity: .6; }
  .detail-produk { grid-template-columns: 1fr; padding: 18px; }
  .featured-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-wrapper { display: block; }
  .admin-sidebar { padding: 17px 0 12px; }
  .admin-sidebar h2 { padding: 0 15px 12px; }
  .admin-sidebar a { display: inline-block; padding: 9px 12px; }
  .admin-content { padding: 22px 15px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .form-box { padding: 23px 18px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .product-card img { height: 145px; }
  .product-info { padding: 12px; }
  .product-info h3 { font-size: 14px; }
  .btn { min-height: 40px; }
  .account-row { display: block; }
  .account-row strong { display: block; text-align: left; margin-top: 4px; }
}
@media (max-width: 420px) { .product-grid, .stats-grid { grid-template-columns: 1fr; } .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .search-form { display: block; } .search-form .btn { width: 100%; margin-top: 8px; } }
@media print { body::before, .site-header, .site-footer, .admin-sidebar, .btn, .payment-upload { display: none !important; } .admin-content, .main-content { padding: 0; } table, .detail-produk { box-shadow: none; } }