/* ============================================================
   DNY Skincare — Brand Override (Fase 2)
   Diselaraskan dengan dnyskincare.com
   Primer: #900000 | Sekunder: #f34f3f | Emas: #c29958
   ============================================================ */

:root {
  --bs-primary: #900000;
  --bs-primary-rgb: 144, 0, 0;
  --bs-secondary: #f34f3f;
  --bs-secondary-rgb: 243, 79, 63;
  --bs-link-color: #900000;
  --bs-link-color-rgb: 144, 0, 0;
  --bs-link-hover-color: #6d0000;
  --bs-link-hover-color-rgb: 109, 0, 0;
  --bs-border-radius: .5rem;
  --bs-border-radius-sm: .375rem;
  --bs-border-radius-lg: .75rem;
  --bs-border-radius-xl: 1rem;
  --bs-btn-border-radius: .5rem;
  --bs-btn-border-radius-sm: .375rem;
  --bs-btn-border-radius-lg: .75rem;
}

/* ---------- Font ---------- */
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #303030;
}
h1, h2, h3, h4, h5, h6, .navbar-brand, .card-title, .product-title {
  font-family: 'Montserrat', sans-serif;
  color: #1f1f25;
}

/* ---------- Link ---------- */
a { color: #900000; }
a:hover { color: #6d0000; }

/* ---------- Tombol ---------- */
.btn-primary {
  --bs-btn-bg: #900000;
  --bs-btn-border-color: #900000;
  --bs-btn-hover-bg: #750000;
  --bs-btn-hover-border-color: #750000;
  --bs-btn-active-bg: #5e0000;
  --bs-btn-active-border-color: #5e0000;
  --bs-btn-disabled-bg: #900000;
  --bs-btn-disabled-border-color: #900000;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
}
.btn-secondary {
  --bs-btn-bg: #f34f3f;
  --bs-btn-border-color: #f34f3f;
  --bs-btn-hover-bg: #d83c2d;
  --bs-btn-hover-border-color: #d83c2d;
  --bs-btn-active-bg: #b52e20;
  --bs-btn-active-border-color: #b52e20;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
}
.btn-outline-primary {
  --bs-btn-color: #900000;
  --bs-btn-border-color: #900000;
  --bs-btn-hover-bg: #900000;
  --bs-btn-hover-border-color: #900000;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #750000;
  --bs-btn-active-border-color: #750000;
  --bs-btn-active-color: #fff;
}

/* ---------- Top bar ---------- */
#top { background-color: #6d0000; color: #fff; }
#top a { color: #fff; }
#top a:hover { color: #ffd9d9; }
header { border-bottom: 3px solid #900000; }

/* ---------- Menu navbar ---------- */
#menu {
  background-color: #900000 !important;
  background-image: none !important;
  background-repeat: no-repeat !important;
  border: 1px solid #900000 !important;
  border-color: #900000 !important;
  border-radius: .4rem !important;
  min-height: 40px;
  padding: 0 1rem;
  margin-bottom: 20px;
}
#menu .nav-link { color: #fff; }
#menu .nav-link:hover, #menu .nav-link.active { background-color: #6d0000; color: #fff; }
#menu .navbar-toggler { color: #fff; border-color: rgba(255,255,255,.4); }

/* ---------- Kartu produk ---------- */
.product-thumb, .card {
  border-radius: .75rem;
  overflow: hidden;
  transition: box-shadow .25s ease;
}
.product-thumb:hover, .card:hover {
  box-shadow: 0 10px 28px rgba(144, 0, 0, .14);
}
.price .price-new, .price b { color: #d3122a; }

/* ---------- Formulir ---------- */
.form-control:focus, .form-select:focus {
  border-color: #900000;
  box-shadow: 0 0 0 .25rem rgba(144, 0, 0, .15);
}

/* ---------- Util & komponen lain ---------- */
.text-primary { color: #900000 !important; }
.bg-primary { background-color: #900000 !important; }
.dropdown-menu .dropdown-item:hover {
  background-color: #900000;
  color: #fff;
}
.page-link { color: #900000; }
.page-item.active .page-link {
  background-color: #900000;
  border-color: #900000;
}
.nav-pills .nav-link.active {
  background-color: #900000;
  border-color: #900000;
}
.alert { border-radius: .5rem; }


/* ============================================================
   LAYOUT DNY (Fase 4) — Home, kategori, about, footer
   ============================================================ */

/* Hero slider */
.dny-hero { background: #1f1f25; }
.dny-hero .carousel-item img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
}

/* Section */
.dny-cats, .dny-modules, .dny-about { padding: 44px 0; }
.dny-cats { background: #fff; }
.dny-modules { background: #f8f8f8; }
.dny-modules #content { padding-top: 0; }

.dny-section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #1f1f25;
  text-align: center;
  margin-bottom: 28px;
  font-size: 1.6rem;
}
.dny-section-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  background: #900000;
  margin: 12px auto 0;
  border-radius: 2px;
}
.dny-section-title.text-start { text-align: left; }
.dny-section-title.text-start::after { margin-left: 0; }

/* Kartu kategori */
.dny-cat-card {
  display: block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  text-decoration: none;
  transition: box-shadow .25s ease, transform .25s ease;
  height: 100%;
}
.dny-cat-card:hover {
  box-shadow: 0 10px 24px rgba(144, 0, 0, .16);
  transform: translateY(-4px);
  text-decoration: none;
}
.dny-cat-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}
.dny-cat-card span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #1f1f25;
}

/* About */
.dny-about { background: #fcf7eb; }
.dny-about p { color: #5a5a5a; line-height: 1.9; }
.dny-about-img { box-shadow: 0 14px 30px rgba(0,0,0,.12); }

/* Footer */
.dny-footer { background: #1f1f25; color: #b9bdc7; padding-top: 44px; }
.dny-footer h5 {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 14px;
}
.dny-footer a { color: #b9bdc7; text-decoration: none; }
.dny-footer a:hover { color: #f69679; }
.dny-footer .list-unstyled li { margin-bottom: 6px; font-size: .9rem; }
.dny-footer-logo {
  max-height: 52px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.dny-footer p { font-size: .9rem; line-height: 1.7; }
.dny-powered { font-size: .85rem; }


/* ===== FASE 6 — Perbaikan responsif ===== */
html, body { overflow-x: hidden; }
.dny-hero .carousel, .dny-modules .carousel, #content .carousel { max-width: 100%; }
.dny-hero { overflow: hidden; }
.carousel-control-prev, .carousel-control-next { width: 40px !important; }

/* Posisi kontrol carousel hero tetap di dalam layar */
.dny-hero .carousel-control-prev { left: 10px !important; }
.dny-hero .carousel-control-next { right: 10px !important; }


/* ===== Perbaikan warna aktif Bootstrap (biru -> marun DNY) ===== */
.list-group-item.active {
  background-color: #900000 !important;
  border-color: #900000 !important;
  color: #fff !important;
}
.list-group-item.active:hover {
  background-color: #750000 !important;
  border-color: #750000 !important;
  color: #fff !important;
}
.dropdown-item.active, .dropdown-item:active {
  background-color: #900000 !important;
  color: #fff !important;
}
.dropdown-menu .dropdown-item:hover {
  background-color: #f34f3f !important;
  color: #fff !important;
}
.badge.bg-primary, .badge.text-bg-primary {
  background-color: #900000 !important;
}
.nav-tabs .nav-link.active {
  color: #900000 !important;
  border-color: #900000 !important;
}
.text-bg-primary {
  background-color: #900000 !important;
}
.btn-link { color: #900000 !important; }


/* ===== Dropdown merah (top bar & menu) ===== */
#top .dropdown-menu {
  background-color: #6d0000 !important;
  border: 1px solid #900000 !important;
  border-radius: .5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
#top .dropdown-menu .dropdown-item {
  color: #fff !important;
}
#top .dropdown-menu .dropdown-item:hover,
#top .dropdown-menu .dropdown-item:focus {
  background-color: #900000 !important;
  color: #fff !important;
}
#top .dropdown-menu .dropdown-divider {
  border-color: rgba(255,255,255,.25) !important;
}
#menu .dropdown-menu {
  background-color: #900000 !important;
  border: 1px solid #750000 !important;
  border-radius: .5rem;
}
#menu .dropdown-menu .dropdown-item {
  color: #fff !important;
}
#menu .dropdown-menu .dropdown-item:hover,
#menu .dropdown-menu .dropdown-item:focus {
  background-color: #6d0000 !important;
  color: #fff !important;
}
#menu .dropdown-menu .dropdown-divider {
  border-color: rgba(255,255,255,.2) !important;
}


/* ===== Link menu (dropdown-item) — putih & hover marun ===== */
#menu .dropdown-item,
#navbar-menu .dropdown-item {
  color: #fff !important;
}
#menu .dropdown-item:hover,
#menu .dropdown-item:focus,
#menu .dropdown-item.active,
#navbar-menu .dropdown-item:hover,
#navbar-menu .dropdown-item.active {
  background-color: #6d0000 !important;
  color: #fff !important;
  border-radius: .35rem;
}


/* ===== Fix CLS: reserve space agar elemen tidak bergeser ===== */
.product-thumb .image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.dny-hero .carousel-inner,
.dny-hero .carousel-item {
    height: 430px;
}
.dny-hero .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.dny-about-img {
    aspect-ratio: 4 / 1;
    object-fit: cover;
}


/* ===== Hero responsive mobile: gambar penuh, tanpa potong ===== */
@media (max-width: 767.98px) {
    .dny-hero .carousel-inner,
    .dny-hero .carousel-item {
        height: auto;
    }
    .dny-hero .carousel-item img {
        height: auto !important;
        max-height: none !important;
        object-fit: contain;
    }
}
