/* ============================================
   FLORIST WEBSITE - PUBLIC THEME (Dark Brown + White)
   Variables di /theme.css (dynamic dari admin)
   ============================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body, 'Inter', sans-serif);
  color: var(--text, #2B1B14);
  background: var(--bg, #fff);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading, 'Playfair Display', serif); font-weight: 700; }
a { color: var(--primary, #3E2723); text-decoration: none; }
a:hover { color: var(--primary-600, #5D4037); }
img { max-width: 100%; height: auto; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #fff;
}
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== TOPBAR ===== */
.site-header { border-bottom: 1px solid var(--border); }
.topbar {
  background: var(--primary);
  color: #fff;
  padding: 6px 0;
  font-size: .85rem;
}
.topbar a { color: #fff; opacity: .9; }
.topbar a:hover { opacity: 1; color: #fff; }
.social-top a { font-size: 1rem; }

/* ===== NAVBAR ===== */
.main-nav { background: #fff; padding: 12px 0; }
.brand-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: 700;
}
.main-nav .nav-link {
  color: var(--text);
  font-weight: 500;
  padding: .5rem 1rem;
  position: relative;
}
.main-nav .nav-link.active,
.main-nav .nav-link:hover { color: var(--primary); }
.main-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--primary);
}
.dropdown-menu { border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.06); border: 1px solid var(--border); }

/* ===== BREADCRUMB ===== */
.breadcrumb-bar { background: var(--surface); padding: 12px 0; border-bottom: 1px solid var(--border); }
.breadcrumb-bar .breadcrumb { font-size: .85rem; }
.breadcrumb-item.active { color: var(--muted); }

/* ===== HERO ===== */
.hero-section { position: relative; }
.hero-swiper { height: 70vh; min-height: 460px; max-height: 720px; }
.hero-slide {
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  color: #fff;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(43,27,20,.55), rgba(43,27,20,.2));
}
.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 0 16px; }
.hero-title { font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: .5rem; }
.hero-subtitle { font-size: 1.15rem; opacity: .9; }
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next { color: #fff; }
.hero-swiper .swiper-pagination-bullet-active { background: #fff; }

/* ===== SECTIONS ===== */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.section-head p { color: var(--muted); }
.page-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 24px;
  color: var(--primary);
}

/* ===== FEATURES STRIP ===== */
.features-strip {
  background: var(--surface);
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.feature-item {
  display: flex;
  gap: 12px;
  align-items: center;
}
.feature-item i {
  font-size: 1.8rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(62,39,35,.08); }
.product-img-wrap { display: block; aspect-ratio: 1; overflow: hidden; position: relative; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.04); }
.badge-best, .badge-sale {
  position: absolute;
  top: 10px;
  font-size: .7rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .03em;
}
.badge-best { left: 10px; background: var(--primary); color: #fff; }
.badge-sale { right: 10px; background: #d97706; color: #fff; }
.product-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.product-name { font-family: var(--font-heading); font-size: 1rem; margin-bottom: 8px; }
.product-name a { color: var(--text); }
.product-name a:hover { color: var(--primary); }
.product-price { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: auto; }
.price-now { color: var(--primary); font-weight: 700; }
.price-old { color: var(--muted); font-size: .85rem; }
.price-now-lg { color: var(--primary); font-weight: 700; font-size: 1.6rem; }
.price-old-lg { color: var(--muted); font-size: 1rem; margin-left: 8px; }

/* ===== OCCASION CARD ===== */
.occasion-card { display: block; }
.occasion-bg {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
  transition: transform .3s ease;
}
.occasion-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(43,27,20,.65));
}
.occasion-bg:hover { transform: scale(1.02); }
.occasion-name {
  position: relative;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  z-index: 2;
}

/* ===== TESTIMONIAL ===== */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  height: 100%;
}
.testimonial-card i { font-size: 2rem; color: var(--accent); }
.testimonial-card p { font-style: italic; margin: 12px 0 18px; }

/* ===== BLOG CARD ===== */
.blog-card { display: block; height: 100%; }
.blog-cover {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  transition: transform .3s ease;
}
.blog-card:hover .blog-cover { transform: scale(1.02); }
.blog-card h5, .blog-card h6 { color: var(--text); }
.blog-card a { color: inherit; }

/* ===== PRODUCT DETAIL ===== */
.product-gallery, .product-thumbs { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.product-gallery img, .product-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-thumbs .swiper-slide { opacity: .6; cursor: pointer; }
.product-thumbs .swiper-slide-thumb-active { opacity: 1; }
.product-title { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--primary); margin-bottom: 8px; }
.product-detail-price { padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.product-long-desc { font-size: 1rem; line-height: 1.8; }

/* ===== FILTER ===== */
.filter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.filter-card h6 { color: var(--primary); font-weight: 700; margin-top: 8px; }

/* ===== CONTACT ===== */
.contact-form .form-control, .contact-form .form-select { border-color: var(--border); }
.contact-info {
  background: var(--surface);
  border-radius: 12px;
  padding: 24px;
}
.map-embed iframe { width: 100%; min-height: 280px; border: 0; }

/* ===== CMS / BLOG / PAGE ===== */
.cms-content, .blog-content { font-size: 1.05rem; line-height: 1.85; }
.cms-content img, .blog-content img { border-radius: 8px; margin: 16px 0; }
.share-buttons a { font-size: 1rem; }

/* ===== CLASS ===== */
.class-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: block;
  height: 100%;
}
.class-card a { color: inherit; }
.class-cover {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary);
  color: #fff;
  padding: 60px 0 24px;
  margin-top: 80px;
}
.site-footer h5, .site-footer h6 { color: #fff; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }
.footer-brand { font-family: var(--font-heading); margin-bottom: 12px; }
.text-light-50 { color: rgba(255,255,255,.7); }
.footer-social a {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
}
.footer-social a:hover { background: rgba(255,255,255,.1); }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 20px rgba(37,211,102,.4);
  z-index: 999;
  transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.1); color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .section { padding: 40px 0; }
  .hero-swiper { height: 52vh; min-height: 360px; }
  .site-footer { padding-top: 40px; margin-top: 40px; }
}
