/* ===== Almajiwa design tokens ===== */
:root {
	--aj-navy: #13233d;
	--aj-maroon: #6d1228;
	--aj-gold: #b8864b;
	--aj-cream: #fcfaf6;
	--aj-sand: #f2e9da;
	--aj-line: #ebe3d6;
	--aj-text: #2c2c2c;
	--aj-muted: #6f6a62;
	--aj-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--aj-sans: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
	--aj-wrapw: 1200px;
}

body { background: var(--aj-cream); color: var(--aj-text); font-family: var(--aj-sans); }

/* Sembunyikan header & footer bawaan Blocksy (diganti milik Almajiwa) */
#header, .ct-header, #footer, .ct-footer { display: none !important; }

.aj-wrap { max-width: var(--aj-wrapw); margin: 0 auto; padding: 0 24px; }
.aj-icon { width: 20px; height: 20px; flex: none; }

/* ===== Header ===== */
.aj-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--aj-line); }
.admin-bar .aj-header { top: 32px; }
.aj-header__inner { max-width: var(--aj-wrapw); margin: 0 auto; padding: 0 24px; height: 76px; display: flex; align-items: center; gap: 32px; }

.aj-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--aj-navy); }
.aj-logo__mark { width: 38px; height: 38px; color: var(--aj-gold); }
.aj-logo__text { font-family: var(--aj-serif); font-weight: 700; font-size: 30px; letter-spacing: .08em; line-height: 1; }
.aj-logo--light .aj-logo__text { color: var(--aj-gold); font-size: 28px; }
.aj-logo--custom img { max-height: 44px; width: auto; }

.aj-nav { flex: 1; display: flex; justify-content: center; }
.aj-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(20px, 4vw, 56px); }
.aj-nav__list a { font-family: var(--aj-serif); font-size: 18px; font-weight: 600; color: var(--aj-navy); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.aj-nav__list a:hover,
.aj-nav__list .current-menu-item > a { border-color: var(--aj-maroon); color: var(--aj-maroon); }

.aj-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.aj-actions a, .aj-actions summary { color: var(--aj-navy); display: inline-flex; position: relative; cursor: pointer; list-style: none; }
.aj-actions summary::-webkit-details-marker { display: none; }
.aj-actions a:hover, .aj-actions summary:hover { color: var(--aj-maroon); }
.aj-cart-badge { position: absolute; top: -7px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--aj-maroon); color: #fff; font-size: 10px; line-height: 16px; text-align: center; font-weight: 700; }

.aj-search { position: relative; }
.aj-search__form { position: absolute; right: 0; top: 40px; background: #fff; border: 1px solid var(--aj-line); padding: 10px; box-shadow: 0 12px 30px rgba(19,35,61,.12); }
.aj-search__form input { width: 240px; border: 1px solid var(--aj-line); padding: 10px 12px; font: inherit; }

.aj-burger { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.aj-burger span { display: block; width: 22px; height: 2px; background: var(--aj-navy); margin: 5px 0; }

/* ===== Hero ===== */
.aj-hero { background: var(--aj-navy); display: flex; justify-content: center; }
.aj-hero__img { display: block; width: 100%; max-width: 1100px; height: clamp(260px, 42vw, 520px); object-fit: cover; object-position: center top; }

.aj-slider { position: relative; width: 100%; max-width: 1100px; height: clamp(260px, 42vw, 520px); overflow: hidden; }
.aj-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.aj-slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.aj-slide a { display: block; height: 100%; }
.aj-slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.aj-slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); color: var(--aj-navy); font-size: 22px; line-height: 1; cursor: pointer; }
.aj-slider__arrow--prev { left: 14px; }
.aj-slider__arrow--next { right: 14px; }
.aj-slider__dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 5; display: flex; justify-content: center; gap: 8px; }
.aj-slider__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.65); cursor: pointer; transition: all .3s; }
.aj-slider__dots button[aria-current="true"] { width: 26px; border-radius: 5px; background: var(--aj-gold); }
@media (prefers-reduced-motion: reduce) { .aj-slide { transition: none; } }
@media (max-width: 600px) { .aj-slider__arrow { width: 34px; height: 34px; } }

/* ===== Section umum ===== */
.aj-section { padding: 64px 0 8px; }
.aj-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.aj-head__title { display: flex; align-items: center; gap: 22px; }
.aj-head h2 { margin: 0; font-family: var(--aj-serif); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); color: var(--aj-navy); line-height: 1.1; }
.aj-rule { width: 56px; height: 1px; background: var(--aj-gold); }
.aj-eyebrow { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: .16em; color: var(--aj-gold); font-weight: 700; }
.aj-eyebrow--gold { text-align: center; font-family: var(--aj-serif); font-size: 18px; letter-spacing: .14em; }
.aj-more { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--aj-navy); text-decoration: none; white-space: nowrap; }
.aj-more .aj-icon { width: 14px; height: 14px; }
.aj-more:hover { color: var(--aj-maroon); }

.aj-grid { display: grid; gap: 24px; }
.aj-grid--3 { grid-template-columns: repeat(3, 1fr); }
.aj-grid--4 { grid-template-columns: repeat(4, 1fr); }

.aj-card { background: #fff; border: 1px solid var(--aj-line); position: relative; display: block; text-decoration: none; color: inherit; transition: box-shadow .25s, transform .25s; }
.aj-card:hover { box-shadow: 0 14px 34px rgba(19,35,61,.10); transform: translateY(-2px); }
.aj-card__media { display: block; overflow: hidden; background: var(--aj-sand); }
.aj-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.aj-card:hover .aj-card__media img { transform: scale(1.03); }

/* ===== Kategori ===== */
.aj-cat .aj-card__media { aspect-ratio: 16 / 10; }
.aj-cat__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 16px; }
.aj-cat__name { font-weight: 700; font-size: 15px; color: var(--aj-navy); }
.aj-circle { width: 28px; height: 28px; border: 1px solid var(--aj-muted); border-radius: 50%; display: grid; place-items: center; color: var(--aj-navy); }
.aj-circle .aj-icon { width: 13px; height: 13px; }

/* ===== Produk ===== */
.aj-product .aj-card__media { aspect-ratio: 4 / 5; }
.aj-heart { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; display: grid; place-items: center; color: var(--aj-navy); }
.aj-heart .aj-icon { width: 18px; height: 18px; }
.aj-product__body { padding: 16px 18px 18px; }
.aj-product__body h3 { margin: 0 0 6px; font-family: var(--aj-sans); font-size: 15px; font-weight: 700; }
.aj-product__body h3 a { color: var(--aj-navy); text-decoration: none; }
.aj-price { color: var(--aj-muted); font-size: 14px; margin-bottom: 8px; }
.aj-price del { opacity: .6; margin-right: 6px; }
.aj-price ins { text-decoration: none; color: var(--aj-maroon); font-weight: 700; }
.aj-stars { display: inline-flex; gap: 2px; font-size: 13px; letter-spacing: 0; }
.aj-star { color: #d9d2c5; }
.aj-star.is-on { color: var(--aj-gold); }

/* ===== Cerita ===== */
.aj-story .aj-card__media { aspect-ratio: 16 / 9; }
.aj-story__body { padding: 18px 20px 20px; }
.aj-story__body h3 { margin: 0 0 8px; font-family: var(--aj-sans); font-size: 15px; font-weight: 700; line-height: 1.35; }
.aj-story__body h3 a { color: var(--aj-navy); text-decoration: none; }
.aj-story__body p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; color: var(--aj-muted); }
.aj-readmore { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--aj-maroon); text-decoration: none; }
.aj-readmore span, .aj-readmore { border-bottom: 1px solid transparent; }
.aj-readmore:hover { border-bottom-color: var(--aj-maroon); }
.aj-readmore .aj-icon { width: 13px; height: 13px; }

/* ===== Newsletter ===== */
.aj-newsletter { margin-top: 72px; background: var(--aj-sand); padding: 56px 0 52px; }
.aj-newsletter__inner { max-width: 760px; text-align: center; }
.aj-newsletter h2 { margin: 0 0 24px; font-family: var(--aj-serif); font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; color: var(--aj-navy); }
.aj-newsletter__form { display: flex; max-width: 520px; margin: 0 auto 14px; }
.aj-newsletter__form input { flex: 1; min-width: 0; padding: 14px 16px; border: 1px solid var(--aj-line); background: #fff; font: inherit; font-size: 14px; }
.aj-newsletter__form button { padding: 0 28px; background: var(--aj-maroon); color: #fff; border: 0; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s; }
.aj-newsletter__form button:hover { background: #55091d; }
.aj-newsletter__note, .aj-newsletter__msg { margin: 0; font-size: 13px; color: var(--aj-muted); }
.aj-newsletter__msg { color: #2f6b3a; font-weight: 700; }
.aj-newsletter__msg.is-error { color: var(--aj-maroon); }

/* ===== Footer ===== */
.aj-footer { background: var(--aj-navy); color: #d8dce4; padding: 52px 0 0; }
.aj-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 40px; }
.aj-footer__brand p { margin: 14px 0 18px; font-size: 14px; color: #b9bfcc; max-width: 240px; }
.aj-social { display: flex; gap: 14px; }
.aj-social a { color: #d8dce4; display: inline-flex; }
.aj-social a:hover { color: var(--aj-gold); }
.aj-footer h4 { margin: 0 0 16px; color: #fff; font-family: var(--aj-sans); font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.aj-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.aj-footer a { color: #b9bfcc; text-decoration: none; font-size: 14px; }
.aj-footer a:hover { color: var(--aj-gold); }
.aj-footer__contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #b9bfcc; }
.aj-footer__contact .aj-icon { width: 16px; height: 16px; margin-top: 3px; color: var(--aj-gold); }
.aj-footer__bottom { margin-top: 40px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #98a0b0; }
.aj-footer__legal { display: flex; gap: 28px; }
.aj-footer__legal a { font-size: 13px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
	.aj-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.aj-footer__grid { grid-template-columns: repeat(3, 1fr); }
	.aj-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 782px) { .admin-bar .aj-header { top: 46px; } }
@media (max-width: 820px) {
	.aj-burger { display: block; }
	.aj-nav { position: absolute; left: 0; right: 0; top: 76px; background: #fff; border-bottom: 1px solid var(--aj-line); display: none; padding: 8px 24px 20px; }
	.aj-nav.is-open { display: block; }
	.aj-nav__list { flex-direction: column; gap: 4px; }
	.aj-nav__list a { display: inline-block; padding: 10px 0; }
	.aj-actions { gap: 16px; }
	.aj-grid--3 { grid-template-columns: 1fr; }
	.aj-cat .aj-card__media { aspect-ratio: auto; width: 100%; height: 200px; }
	.aj-head { flex-direction: column; align-items: flex-start; }
	.aj-section { padding-top: 44px; }
}
@media (max-width: 560px) {
	.aj-grid--4 { grid-template-columns: 1fr 1fr; gap: 14px; }
	.aj-footer__grid { grid-template-columns: 1fr 1fr; }
	.aj-newsletter__form { flex-direction: column; gap: 10px; }
	.aj-newsletter__form button { padding: 14px; }
	.aj-footer__bottom { flex-direction: column; }
}
