:root {
  --primary-dark: #5a2d1f;
  --primary-medium: #602f21;
  --primary-light: #a1633a;
  --nav-dark: #2b2624;
  --text-dark: #1f2937;
  --border: #e9ecef;
  --success: #25D366;
}

/* === GLOBAL === */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  color: var(--text-dark);
}

.bg-body { background: #fff !important; }
.bg-cream { background: #F8F5F2 !important; }

/* === NAVBAR === */
.nav-dark {
  background: var(--nav-dark) !important;
}

.navbar-brand {
  font-weight: 600;
  color: #fff !important;
}

.brand-logo {
  height: 46px;
  width: auto;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  transition: color 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #fff !important;
}

/* === HERO SECTIONS === */
.hero {
  background: var(--primary-dark);
  color: #fff;
  padding: 2.5rem 0;
}

.hero h1, .hero .hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.hero p {
  font-size: 1rem;
  opacity: 0.95;
}

@media (min-width: 768px) {
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1, .hero .hero-title {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
}

/* === USP CARDS (Home Page) === */
.usp-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.usp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.usp-card i {
  font-size: 2rem;
  color: var(--primary-light);
  flex-shrink: 0;
}

.usp-card h6 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.usp-card .small {
  font-size: 0.875rem;
  color: #6b7280;
}

/* === PRODUCT CARDS === */
.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-img-top {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #f8f9fa;
}

/* Fix grid untuk preview home */
.product-col {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-col .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-col .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-col .card-img-top {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.obj-4x3 {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .product-col .card-img-top {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .product-col .card-img-top {
    height: 160px;
  }
}

.obj-portrait {
  aspect-ratio: 3/4;
}

.card-body {
  padding: 1rem;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.btn-detail {
  background: var(--primary-dark);
  border: none;
  color: #fff;
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  transition: background 0.2s ease;
  cursor: pointer;
}

.btn-detail:hover {
  background: var(--primary-medium);
  color: #fff;
}

/* === SLIDER === */
.track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}

.track::-webkit-scrollbar {
  height: 8px;
}

.track::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.track::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}

.product-card {
  min-width: 220px;
  max-width: 240px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.product-card .card-img-top {
  height: 160px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .product-card {
    min-width: 240px;
    max-width: 260px;
  }
  
  .product-card .card-img-top {
    height: 180px;
  }
}

/* === BUTTONS === */
.btn-primary {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-primary:hover {
  background: var(--primary-medium);
  border-color: var(--primary-medium);
}

.btn-success {
  background: var(--success);
  border-color: var(--success);
}

.btn-success:hover {
  background: #1da851;
  border-color: #1da851;
}

.btn-outline-secondary {
  border-color: #6c757d;
  color: #6c757d;
}

.btn-outline-secondary:hover {
  background: #6c757d;
  border-color: #6c757d;
  color: #fff;
}

/* === FOOTER === */
.footer {
  background: var(--primary-medium);
  color: #fff;
  padding: 3rem 0 1rem;
}

.footer .fw-semibold {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.f-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.f-link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer i {
  font-size: 1.25rem;
}

/* === FAB WhatsApp Button === */
.fab-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--success);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 1040;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fab-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  color: #fff;
}

.fab-wa i {
  font-size: 1.8rem;
}

/* === PAGINATION === */
.pagination .page-link {
  color: var(--primary-dark);
  border-color: var(--border);
}

.pagination .page-item.active .page-link {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.pagination .page-link:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: #fff;
}

/* === ABOUT PAGE SPECIFIC === */
.about-wrap {
  max-width: 1320px;
}

.about-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem !important;
  min-height: 180px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-light);
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.about-card i {
  font-size: 2.5rem;
  color: var(--primary-light);
}

.about-card h6 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.about-card p {
  font-size: 0.95rem;
  color: #6b7280;
}

/* CTA Section */
.cta-section {
  background: var(--primary-dark);
  color: #fff;
  border-radius: 20px;
  padding: 3rem 2rem;
  box-shadow: 0 8px 24px rgba(90, 45, 31, 0.3);
}

.cta-section h3 {
  color: #fff;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
}

/* Button gradient override */
.btn-gradient {
  background: var(--primary-dark);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(90, 45, 31, 0.4);
  background: var(--primary-medium);
  color: #fff;
}

/* Review cards */
.review-card {
  background: #fff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-left: 4px solid var(--primary-light);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  height: 500px;
}

.photo-grid-item {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-grid-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-grid-item:first-child {
  grid-row: 1 / 3;
}

/* === UTILITY CLASSES === */
.d-none-important {
  display: none !important;
}

.d-none-page {
  display: none !important;
}

.loading-search {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
}

.text-muted {
  color: #6b7280 !important;
}

.text-primary {
  color: var(--primary-dark) !important;
}

.fw-semibold {
  font-weight: 600;
}

.fw-bold {
  font-weight: 700;
}

.small {
  font-size: 0.875rem;
}

.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.rounded {
  border-radius: 8px !important;
}

.rounded-3 {
  border-radius: 12px !important;
}

/* === MODAL === */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-body img {
  max-height: 400px;
  object-fit: contain;
}

.modal-header {
  border-bottom: 1px solid var(--border);
}

.modal-footer {
  border-top: 1px solid var(--border);
}

/* === RESPONSIVE === */
@media (max-width: 991.98px) {
  .about-card {
    min-height: auto;
    padding: 1.5rem !important;
  }
  
  .photo-grid {
    height: 400px;
  }
}

@media (max-width: 767.98px) {
  .photo-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .photo-grid-item {
    height: 250px;
  }
  
  .photo-grid-item:first-child {
    grid-row: auto;
    height: 350px;
  }
  
  .hero h1, .hero .hero-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero h1, .hero .hero-title {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  .product-card {
    min-width: 180px;
    max-width: 200px;
  }
  
  .product-card .card-img-top {
    height: 140px;
  }
  
  .product-col .card-img-top {
    height: 160px;
  }
  
  .obj-4x3 {
    max-height: 150px;
  }
  
  .usp-card {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  .usp-card i {
    font-size: 1.5rem;
  }
  
  .modal-body img {
    max-height: 250px;
  }
  
  .card-body {
    padding: 0.75rem;
  }
  
  .card-title {
    font-size: 0.85rem;
  }
  
  .btn-detail {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
  
  .fab-wa {
    width: 50px;
    height: 50px;
    right: 15px;
    bottom: 15px;
  }
  
  .fab-wa i {
    font-size: 1.5rem;
  }
  
  .about-card {
    padding: 1.25rem !important;
  }
  
  .cta-section {
    padding: 2rem 1.5rem;
  }
}

@media (min-width: 992px) {
  .brand-logo {
    height: 48px;
  }
  
  .hero {
    padding: 4rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-card,
  .photo-grid-item,
  .review-card,
  .card {
    transition: none !important;
    transform: none !important;
  }
}