/* ====== Adijaya — penyesuaian di atas template Bucker ====== */

/* island Astro tidak ganggu layout flex */
astro-island { display: contents; }

/* logo gambar Adijaya — buang "ribbon" navy bawaan template Bucker */
.header_logo { margin-bottom: 0; }
.header_logo a.brand_logo {
  background: transparent !important; padding: 0 !important; border-radius: 0 !important;
  display: inline-block; line-height: 0; width: auto !important;
}
.header_logo a.brand_logo img { height: 92px !important; width: auto !important; }
@media (max-width: 991px) { .header_logo a.brand_logo img { height: 64px !important; } }

/* badge stok habis di kartu produk */
.product_thumb { position: relative; }
.stock_badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: #4a2417; color: #fff; font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
}

/* breadcrumb sederhana untuk halaman dalam */
.page_head { background: #fdf1ef; padding: 48px 0; text-align: center; margin-bottom: 60px; }
.page_head h1 { font-family: "Playfair Display", serif; font-size: 34px; margin: 0 0 6px; color: #282828; }
.page_head .crumb { color: #999; font-size: 14px; }
.page_head .crumb a { color: #d76a4b; }

/* ===== filter belanja ===== */
.shop_bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.cat_chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat_chips a {
  display: inline-block; padding: 7px 16px; border-radius: 30px; font-size: 14px;
  border: 1px solid #eee; color: #555; text-decoration: none; transition: .2s;
}
.cat_chips a:hover, .cat_chips a.active { background: #d76a4b; border-color: #d76a4b; color: #fff; }
.shop_search { display: flex; border: 1px solid #eee; border-radius: 30px; overflow: hidden; }
.shop_search input { border: 0; padding: 8px 16px; outline: none; min-width: 180px; }
.shop_search button { border: 0; background: #d76a4b; color: #fff; padding: 0 16px; cursor: pointer; }
.load_more_wrap { text-align: center; margin-top: 40px; }
.muted_note { text-align: center; color: #999; margin-top: 30px; }

/* ===== qty adder (halaman produk) ===== */
.qty-adder { margin-top: 24px; }
.qty-adder__row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pro-qty-2 { display: inline-flex; align-items: center; border: 1px solid #e2e2e2; border-radius: 6px; overflow: hidden; }
.pro-qty-2 button { width: 40px; height: 46px; border: 0; background: #f6f6f6; font-size: 20px; cursor: pointer; }
.pro-qty-2 input { width: 50px; height: 46px; text-align: center; border: 0; border-left: 1px solid #e2e2e2; border-right: 1px solid #e2e2e2; font-size: 16px; }
.btn-cart {
  height: 46px; padding: 0 26px; border: 0; border-radius: 6px; cursor: pointer;
  background: #d76a4b; color: #fff; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px;
}
.btn-cart:disabled { background: #ccc; cursor: not-allowed; }
.btn-wa {
  border: 0; border-radius: 6px; cursor: pointer; padding: 12px 18px; font-weight: 600; font-size: 15px;
  background: #25d366; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-wa.wide { width: 100%; margin-top: 12px; }
.btn-ghost { display: inline-block; text-align: center; padding: 11px 18px; border: 1px solid #e2e2e2; border-radius: 6px; color: #555; text-decoration: none; }
.btn-ghost.sm { padding: 7px 14px; font-size: 13px; margin-top: 10px; cursor: pointer; background: #fff; }

/* ===== cart drawer ===== */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: .3s; z-index: 1100; }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 380px; max-width: 90vw; background: #fff; z-index: 1101;
  transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; box-shadow: -6px 0 30px rgba(0,0,0,.12);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #eee; }
.cart-drawer__head h3 { margin: 0; font-family: "Playfair Display", serif; font-size: 20px; }
.cart-drawer__head span { color: #d76a4b; }
.cart-drawer__close { border: 0; background: none; font-size: 22px; cursor: pointer; color: #555; line-height: 1; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart-drawer__foot { padding: 18px 20px; border-top: 1px solid #eee; }
.cart-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f3f3f3; }
.cart-line img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #f6f6f6; }
.cart-line__info { flex: 1; min-width: 0; }
.cart-line__info a { color: #282828; font-weight: 600; font-size: 14px; text-decoration: none; display: block; }
.cart-line__price { color: #999; font-size: 13px; margin: 2px 0 6px; }
.cart-line__sub { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-line__sub strong { color: #d76a4b; font-size: 14px; }
.cart-line__rm { border: 0; background: none; color: #bbb; cursor: pointer; font-size: 18px; line-height: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid #eee; border-radius: 6px; }
.qty button { width: 28px; height: 28px; border: 0; background: #f6f6f6; cursor: pointer; font-size: 16px; }
.qty span { min-width: 30px; text-align: center; font-size: 14px; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cart-total strong { color: #d76a4b; font-size: 20px; }
.cart-total.big strong { font-size: 24px; }
.cart-empty { text-align: center; padding: 50px 0; color: #999; }
.cart-empty span { font-size: 54px; color: #ddd; display: block; margin-bottom: 12px; }
.cart-empty.big { padding: 90px 0; }
.cart-empty.big h3 { font-family: "Playfair Display", serif; color: #282828; }

/* ===== cart page ===== */
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.cart-summary { border: 1px solid #eee; border-radius: 12px; padding: 24px; background: #fff; }
.cart-summary h3 { font-family: "Playfair Display", serif; font-size: 22px; margin: 0 0 16px; }
.cart-summary label { display: block; font-size: 13px; color: #555; margin-top: 14px; }
.cart-summary input, .cart-summary textarea { width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid #e2e2e2; border-radius: 6px; font-family: inherit; }
.cart-hint { font-size: 12px; color: #999; margin-top: 12px; }

/* ===== product detail ===== */
.pd_wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.pd_img { border: 1px solid #f0f0f0; border-radius: 12px; overflow: hidden; background: #faf7f6; }
.pd_img img { width: 100%; display: block; }
.pd_title { font-family: "Playfair Display", serif; font-size: 32px; margin: 0 0 10px; }
.pd_price { font-size: 26px; color: #d76a4b; font-weight: 700; margin-bottom: 8px; }
.pd_cat { color: #999; font-size: 14px; margin-bottom: 18px; }
.pd_desc { color: #666; line-height: 1.8; }
.pd_stock { display: inline-block; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.pd_stock.ok { color: #3a9d5d; }
.pd_stock.no { color: #d9534f; }

@media (max-width: 991px) {
  .cart-grid { grid-template-columns: 1fr; }
  .pd_wrap { grid-template-columns: 1fr; gap: 28px; }
  .page_head { padding: 32px 0; margin-bottom: 36px; }
  .brand_text { font-size: 24px; }
}

/* ====== Tema hangat Adijaya (krem + terakota + cokelat, ikut logo & price list) ====== */
:root { --aj-coral: #d76a4b; --aj-coral-d: #b95130; --aj-cream: #f6ecd3; --aj-cream-2: #fbf6ea; --aj-brown: #5e2c1b; }

body { background: var(--aj-cream-2); color: #5b463b; }

/* judul/heading → cokelat tua khas price list */
.section_title h2,
.page_head h1,
.pd_title,
.cart-summary h3,
.cart-drawer__head h3,
.cart-empty.big h3,
.product_content h4 a,
.single_blog .blog_content h3 a { color: var(--aj-brown); }

/* breadcrumb header halaman → krem hangat */
.page_head { background: var(--aj-cream); }

/* hero & banner: panel krem lembut biar senada */
.hero_banner_section { background: var(--aj-cream); }
.single_banner .banner_thumb { background: var(--aj-cream); }

/* hover tombol coral → lebih gelap */
.btn-cart:hover, .shop_search button:hover { background: var(--aj-coral-d); }
.cat_chips a:hover, .cat_chips a.active { background: var(--aj-coral); border-color: var(--aj-coral); }

/* kartu produk di atas krem */
.single_product { background: #fff; border-radius: 12px; }

/* ===== Banner dinamis: harga produk ===== */
.banner_price { font-size: 20px; font-weight: 700; color: var(--aj-coral); margin: 6px 0 14px; }

/* ===== Hero: foto kue bulat (pengganti shape template) ===== */
.hero_shape_banner { text-align: center; }
.hero_shape_banner img {
  width: 100%; max-width: 440px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%;
  border: 10px solid #fff; box-shadow: 0 24px 60px rgba(94,44,27,.20);
}

/* ===== Kategori (ServiceBar): foto bulat ===== */
.services_thumb img {
  width: 110px !important; height: 110px; object-fit: cover; border-radius: 50%;
  border: 4px solid #fff; box-shadow: 0 8px 22px rgba(94,44,27,.14); margin: 0 auto;
}
.single_services { transition: transform .25s ease; }
.single_services:hover { transform: translateY(-5px); }

/* ===== Section "Mengapa Adijaya?" (keunggulan) ===== */
.why_grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why_card {
  background: #fff; border: 1px solid #f0e6d6; border-radius: 14px; padding: 32px 22px; text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.why_card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(94,44,27,.10); }
.why_icon {
  width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--aj-cream); color: var(--aj-coral); display: flex; align-items: center; justify-content: center;
}
.why_icon i { font-size: 32px; }
.why_card h3 { font-family: "Playfair Display", serif; font-size: 19px; color: var(--aj-brown); margin: 0 0 10px; }
.why_card p { color: #8a7565; font-size: 14px; line-height: 1.7; margin: 0; }

/* ===== Galeri foto kue ===== */
.gallery_strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr);
  gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory;
}
.gallery_item {
  position: relative; display: block; border-radius: 14px; overflow: hidden; scroll-snap-align: start;
  aspect-ratio: 1 / 1; background: var(--aj-cream);
}
.gallery_item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery_item:hover img { transform: scale(1.06); }
.gallery_cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 12px; color: #fff; font-weight: 600; font-size: 14px;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
}

/* ===== Scroll-to-top (pengganti jquery.scrollUp) ===== */
#scrollUp {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--aj-coral); color: #fff; font-size: 20px; z-index: 1000; box-shadow: 0 6px 18px rgba(94,44,27,.25);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: .25s;
}
#scrollUp.active { opacity: 1; visibility: visible; transform: translateY(0); }
#scrollUp:hover { background: var(--aj-coral-d); }

/* ===== Menu aktif: ganti brush template → teks coral + garis bawah ===== */
.main_menu nav > ul > li > a::before { display: none !important; }
.main_menu nav > ul > li > a { position: relative; transition: color .2s ease; }
.main_menu nav > ul > li > a.active,
.main_menu nav > ul > li > a:hover { color: var(--aj-coral) !important; }
.main_menu nav > ul > li > a.active::after {
  content: ''; position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: 24px; height: 3px; border-radius: 3px; background: var(--aj-coral);
}

/* ===== Halaman Kontak ===== */
.contact_info { margin-bottom: 24px; }
.contact_row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.contact_row span { font-size: 26px; color: var(--aj-coral); line-height: 1.3; flex: none; }
.contact_row p { margin: 0; color: #5b463b; line-height: 1.6; }
.contact_row p small { color: #998877; font-size: 13px; }
.contact_row a { color: #5b463b; }
.contact_row a:hover { color: var(--aj-coral); }
.contact_map { border: 1px solid #f0e6d6; border-radius: 12px; overflow: hidden; min-height: 360px; }
.contact_map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.map_link { display: inline-block; margin-top: 12px; color: var(--aj-coral); font-weight: 600; text-decoration: none; }
.map_link:hover { color: var(--aj-coral-d); }

/* ===== FAQ (native <details>, pengganti accordion Bootstrap) ===== */
.faq_list { display: flex; flex-direction: column; gap: 14px; }
.faq_item {
  background: #fff; border: 1px solid #f0e6d6; border-radius: 12px; overflow: hidden;
  transition: box-shadow .2s ease;
}
.faq_item[open] { box-shadow: 0 10px 26px rgba(94,44,27,.08); }
.faq_q {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--aj-brown);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; user-select: none;
}
.faq_q::-webkit-details-marker { display: none; }
.faq_q:hover { color: var(--aj-coral); }
.faq_icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq_icon::before, .faq_icon::after {
  content: ''; position: absolute; background: var(--aj-coral); border-radius: 2px; transition: transform .25s ease;
}
.faq_icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq_icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq_item[open] .faq_icon::after { transform: rotate(90deg); opacity: 0; }
.faq_a { padding: 0 22px 20px; color: #8a7565; line-height: 1.8; }

@media (max-width: 991px) {
  .why_grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .why_grid { grid-template-columns: 1fr; }
}
