/* =======================
   1. ROOT VARIABLES & GLOBAL STYLES
   ======================= */
:root {
  /* Earthy Luxe Palette */
  --primary-color: #6D1E2A;      /* Maroon */
  --secondary-color: #B56576;   /* Muted Rose */
  --accent-color: #E8B48E;      /* Sandy Taupe */
  --text-dark: #3B2F2F;        /* Deep Brown */
  --background-light: #F9F5F2; /* Alabaster White */
  --border-color: #EAE0DA;

  /* Fonts */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  /* Shadows */
  --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  background: var(--background-light);
  color: var(--text-dark);
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.3;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}


/* Replace the entire HEADER & NAVIGATION section in your style.css with this */

/* =======================
   2. HEADER & NAVIGATION
   ======================= */
.header {
  background: white;
  padding: 15px 0;
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 3px solid var(--primary-color);
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-dark);
}
.logo-icon { font-size: 2.2rem; color: var(--primary-color); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text span { font-size: 1.1rem; }
.logo-text strong { font-size: 1.3rem; color: var(--primary-color); font-family: var(--font-heading); letter-spacing: 1px; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--primary-color); }
.nav-links a:hover::after { width: 100%; }

/* Header Actions - Login & Cart */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-actions .login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-color);
  color: var(--text-dark);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
}

.header-actions .login-btn:hover {
  background: #d6a176;
  color: var(--primary-color);
  transform: translateY(-2px);
}

.header-actions .cart-link {
  font-size: 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  position: relative;
  padding: 8px;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.header-actions .cart-link:hover {
  color: var(--primary-color);
}

.cart-count {
  position: absolute;
  top: 0;
  right: -5px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

/* User Info Inline (when logged in) */
.user-info-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  background: white;
  border-radius: 25px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
}

.user-info-inline .user-avatar {
  background: var(--primary-color);
  color: white;
  font-weight: bold;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
}

.user-info-inline .user-name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.logout-btn-inline {
  background: rgba(109, 30, 42, 0.1);
  border: none;
  color: var(--primary-color);
  padding: 6px 10px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logout-btn-inline:hover {
  background: var(--primary-color);
  color: white;
}

/* Responsive Header */
@media (max-width: 992px) {
  .nav-links {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .nav-links { 
    display: none; 
  }
  
  .header-actions {
    gap: 10px;
  }
  
  .header-actions .login-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  
  .user-info-inline {
    padding: 6px 10px;
    gap: 8px;
  }
  
  .user-info-inline .user-avatar {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
  
  .user-info-inline .user-name {
    font-size: 0.85rem;
  }
  
  .logout-btn-inline {
    padding: 4px 8px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .main-nav {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .logo-text span {
    font-size: 0.9rem;
  }
  
  .logo-text strong {
    font-size: 1.1rem;
  }
  
  .logo-icon {
    font-size: 1.8rem;
  }
  
  .header-actions .login-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  
  .user-info-inline .user-name {
    display: none; /* Hide username on very small screens */
  }
  
  .header-actions .cart-link {
    font-size: 1.3rem;
  }
}


/* =======================
   3. HERO SLIDER
   ======================= */
.hero-slider {
  margin: 30px 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}
.slider-container {
  position: relative;
  height: 60vh;
  overflow: hidden;
  background: var(--text-dark);
}
.slider-wrapper {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}
.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}
.slide img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.slide::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(59, 47, 47, 0.5); /* Overlay lebih gelap untuk keterbacaan teks */
  z-index: 1;
}
.slide-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 20px;
}
.slide-title {
  font-size: 4rem;
  color: white;
  margin-bottom: 15px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}
.slide-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}
.slide-cta {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* Navigasi & Dots Slider */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
  z-index: 3;
}
.slider-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}
.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.slider-dot.active, .slider-dot:hover {
  background: white;
  transform: scale(1.2);
}


/* =======================
   4. SHOP LAYOUT & FILTERS
   ======================= */
.shop-section {
  padding: 50px 0;
}
.shop-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
}
.filters-sidebar {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  align-self: start;
}
.filters-sidebar h4 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}
.filter-group { margin-bottom: 20px; }
.filter-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.filter-group input, .filter-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--background-light);
  transition: all 0.3s ease;
}
.filter-group input:focus, .filter-group select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(109, 30, 42, 0.1);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}


/* =======================
   5. PRODUCT CARD
   ======================= */
.product-card {
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  transition: all 0.4s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}
.product-image {
  height: 220px;
  position: relative;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.product-name {
  color: var(--text-dark);
  margin-bottom: 10px;
  font-size: 1.4rem;
  font-family: var(--font-heading);
}
.product-price {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}
.product-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}
.product-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}


/* =======================
   6. BUTTONS
   ======================= */
.btn {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
.btn-primary {
  background: var(--primary-color);
  color: white;
}
.btn-primary:hover { background: #52161F; transform: translateY(-2px); }
.btn-accent {
  background: var(--accent-color);
  color: var(--text-dark);
}
.btn-accent:hover { background: #d6a176; transform: translateY(-2px); }
.btn-secondary {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
}
.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}


/* =======================
   7. SLIDE-IN CART
   ======================= */
.slide-in-cart {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: white;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}
.slide-in-cart.show { transform: translateX(0); }

.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h3 { font-size: 1.5rem; color: var(--primary-color); }
.close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-dark); }

.cart-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}
.cart-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}
.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-details { flex-grow: 1; }
.cart-item-details h4 { font-size: 1.1rem; margin-bottom: 5px; font-family: var(--font-body); font-weight: 600;}
.cart-item-price { color: var(--primary-color); font-weight: bold; }
.cart-item-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.qty-input { width: 45px; text-align: center; border: 1px solid var(--border-color); border-radius: 5px; padding: 5px; }
.remove-btn { color: #cc0000; background: none; border: none; cursor: pointer; font-size: 1rem; }

.empty-cart-message { text-align: center; padding: 40px 0; color: #888; }
.empty-cart-message i { font-size: 3rem; margin-bottom: 15px; }

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background: var(--background-light);
}
.cart-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: bold; margin-bottom: 20px; }
.checkout-btn { width: 100%; }

.cart-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.cart-overlay.show { opacity: 1; visibility: visible; }


/* =======================
   8. CHECKOUT PAGE
   ======================= */
.checkout-container {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow-medium);
  max-width: 700px;
  margin: 40px auto;
}
.checkout-container h2 { text-align: center; margin-bottom: 30px; font-size: 2.2rem; }

.form-group { margin-bottom: 20px; }
.form-group label { display:block; margin-bottom:8px; font-weight:600; }
.form-group input, .form-group textarea {
  width:100%; padding:15px; border:1px solid var(--border-color); border-radius:8px; font-size:16px; transition:all .3s ease; background:var(--background-light);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary-color); outline:none; box-shadow: 0 0 0 3px rgba(109, 30, 42, 0.1); }
.form-group textarea { height:120px; resize:vertical; }

.order-summary-box {
  background: var(--background-light);
  padding: 20px;
  border-radius: 10px;
  margin: 30px 0;
  border: 1px solid var(--border-color);
}
.order-summary-box h3 { margin-bottom: 15px; }
.order-item { display:flex; justify-content:space-between; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.order-item:last-child { border: none; }
.summary-total { font-size: 1.2rem; font-weight: bold; text-align: right; margin-top: 15px; color: var(--primary-color); }

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}


/* =======================
   9. MISC & HELPERS
   ======================= */
.hidden { display: none !important; }

.page { animation: fadeIn .5s ease; padding: 30px 0; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* Replace or update the Alert section in your style.css */

/* =======================
   ALERT SYSTEM - MUST BE ABOVE MODAL
   ======================= */
.alert-container {
  position: fixed; 
  top: 90px; 
  left: 50%; 
  transform: translateX(-50%); 
  z-index: 1400; /* Higher than modal overlay (1300) */
  width: 90%;
  max-width: 500px;
  pointer-events: none; /* Allow clicks to pass through container */
}

.alert {
  padding: 15px 30px; 
  border-radius: 8px; 
  color: white; 
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); 
  background-color: var(--primary-color);
  margin-bottom: 10px;
  pointer-events: auto; /* But alert itself should catch clicks */
  animation: slideInAlert 0.4s ease-out;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.alert.success { 
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.alert.error { 
  background: linear-gradient(135deg, #F44336 0%, #e53935 100%);
}

.alert i {
  font-size: 1.2rem;
}

@keyframes slideInAlert {
  from { 
    transform: translateY(-30px); 
    opacity: 0; 
  }
  to { 
    transform: translateY(0); 
    opacity: 1; 
  }
}

/* Ensure modal overlay is below alert */
.modal-overlay {
  z-index: 1300;
}

/* Responsive Alert */
@media (max-width: 768px) {
  .alert-container {
    top: 70px;
    width: 95%;
  }
  
  .alert {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

/* Testimonials */
.testimonials-section {
    padding: 60px 0;
    background: white;
    margin: 50px 0;
    border-radius: 15px;
}
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card { text-align: center; padding: 30px; }
.testimonial-card i { color: var(--accent-color); font-size: 2rem; margin-bottom: 15px; }
.testimonial-text { font-style: italic; color: #555; margin-bottom: 20px; }
.testimonial-author { font-weight: bold; color: var(--primary-color); }


/* =======================
   10. FOOTER
   ======================= */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 20px;
  margin-top: 50px;
  border-top: 5px solid var(--primary-color);
}
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-section h4 { color: var(--accent-color); font-size: 1.3rem; margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, 0.8); text-decoration: none; transition: all 0.3s ease; }
.footer-links a:hover { color: white; padding-left: 5px; }
.social-links { display: flex; gap: 15px; }
.social-links a { color: white; font-size: 1.5rem; transition: all 0.3s ease; }
.social-links a:hover { color: var(--accent-color); transform: translateY(-3px); }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.6); }

/* =======================
   11. RESPONSIVE DESIGN
   ======================= */
@media (max-width: 992px) {
    .shop-layout { grid-template-columns: 1fr; }
    .filters-sidebar { margin-bottom: 30px; }
    .slide-title { font-size: 3rem; }
}
@media (max-width: 768px) {
    .nav-links { display: none; } /* Simplified for demo. Would use a hamburger menu in production. */
    .slide-title { font-size: 2.2rem; }
    .section-title { font-size: 2.2rem; }
}

/* =======================
   12. KODE BARU: LOKASI
   ======================= */
#location-section {
    padding: 50px 0;
}
.map-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

/* =======================
   13. LOGIN AREA & MODAL
   ======================= */
#loginArea {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.login-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-color);
  color: var(--text-dark);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.login-link:hover {
  background: #d6a176;
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* User info after login */
.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
}
.user-avatar {
  background: var(--primary-color);
  color: white;
  font-weight: bold;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.user-name {
  font-weight: 600;
}
.logout-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.1rem;
  cursor: pointer;
}
.logout-btn:hover {
  color: #52161F;
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}
.modal-overlay.show {
  display: flex;
}

/* Modal content */
.modal {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  animation: slideDown 0.4s ease;
}
.modal-header {
  text-align: center;
  margin-bottom: 20px;
}
.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.modal-subtitle {
  color: #777;
  font-size: 0.95rem;
  margin-top: 5px;
}

/* Login form */
.login-form .form-group {
  margin-bottom: 20px;
}
.login-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}
.login-form .form-group input {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
}
.login-form .form-group input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(109, 30, 42, 0.1);
}
.login-btn {
  width: 100%;
  background: var(--primary-color);
  color: white;
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(109, 30, 42, 0.3);
}
.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@keyframes slideDown {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
/* Add this to your existing style.css file */

/* User Info Inline (when logged in) */
.user-info-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  background: white;
  border-radius: 25px;
  box-shadow: var(--shadow-light);
}

.user-info-inline .user-avatar {
  background: var(--primary-color);
  color: white;
  font-weight: bold;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
}

.user-info-inline .user-name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.logout-btn-inline {
  background: rgba(109, 30, 42, 0.1);
  border: none;
  color: var(--primary-color);
  padding: 6px 10px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logout-btn-inline:hover {
  background: var(--primary-color);
  color: white;
}

/* Modal position relative for close button */
.modal {
  position: relative;
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Responsive adjustments for user info */
@media (max-width: 768px) {
  .user-info-inline {
    padding: 6px 10px;
    gap: 8px;
  }
  
  .user-info-inline .user-avatar {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
  
  .user-info-inline .user-name {
    font-size: 0.85rem;
  }
  
  .logout-btn-inline {
    padding: 4px 8px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .user-info-inline .user-name {
    display: none; /* Hide username on very small screens */
  }
}

/* ---------- Shopee-like product detail styles ---------- */
.shopee-like-detail {
  display: flex;
  gap: 28px;
  margin-top: 16px;
  align-items: flex-start;
  flex-wrap: wrap; /* Ini penting agar bisa wrap ke bawah */
}

/* Kolom Gambar (Kiri di Desktop) */
.shopee-like-detail .slideshow-col {
  flex: 1 1 45%; /* Izinkan grow/shrink, basis 45% */
  min-width: 280px; /* Lebar minimum sebelum wrap */
  /* max-width: 560px; */ /* Max-width bisa dihapus atau disesuaikan */
}

.shopee-like-detail .main-image {
  width: 100%;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box; /* Pastikan padding tidak menambah lebar */
}

.shopee-like-detail .main-image img {
  max-width: 100%;
  max-height: 460px; /* Batas tinggi gambar */
  object-fit: contain;
  border-radius: 8px;
}

.shopee-like-detail .thumbs-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap; /* Biarkan thumbnail wrap jika tidak muat */
}

.shopee-like-detail .thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
}

.shopee-like-detail .thumb.active {
  border-color: #ff6b3d; /* Warna border aktif (sesuaikan jika perlu) */
}

/* Kolom Info (Kanan di Desktop) */
.shopee-like-detail .info-col {
  flex: 1 1 45%; /* Izinkan grow/shrink, basis 45% */
  min-width: 280px; /* Lebar minimum sebelum wrap */
 /* max-width: 520px; */ /* Max-width bisa dihapus atau disesuaikan */
}

.shopee-like-detail .shp-name {
  font-family: 'Montserrat', sans-serif; /* Pastikan font ini di-load */
  font-size: 22px;
  margin: 0 0 8px 0;
  line-height: 1.3; /* Sedikit lebih renggang */
  font-weight: 700;
  color: #333; /* Warna teks nama produk */
}

/* ===========================
   RESPONSIVE UNTUK MOBILE
   =========================== */
@media (max-width: 768px) {
  .shopee-like-detail {
    gap: 20px; /* Kurangi jarak antar kolom di mobile */
  }

  /* Buat kedua kolom jadi full width */
  .shopee-like-detail .slideshow-col,
  .shopee-like-detail .info-col {
    flex-basis: 100%; /* Ambil lebar penuh */
    max-width: 100%; /* Hapus batasan max-width */
  }

  .shopee-like-detail .main-image img {
    max-height: 350px; /* Kurangi tinggi maks gambar di mobile */
  }

  .shopee-like-detail .shp-name {
    font-size: 20px; /* Sedikit kecilkan font nama produk */
  }

  .shopee-like-detail .thumbs-row {
     justify-content: center; /* Pusatkan thumbnail jika wrap */
  }
}
.meta-row {
  display:flex;
  gap:16px;
  align-items:center;
  color:#666;
  margin-bottom:12px;
}
.rating { display:flex; gap:8px; align-items:center; font-weight:600; color:#333; }
.rating .rating-value { background:#ffedd8; padding:6px 8px; border-radius:6px; color:#c44a00; font-weight:700; }
.star-text { color:#ffb000; margin-left:4px; font-size:13px; }
.reviews { color:#7a7a7a; font-size:13px; }
.sold { color:#7a7a7a; font-size:13px; margin-left:auto; }

.price-row { margin: 16px 0; }
.price-label { font-size:13px; color:#7b7b7b; margin-bottom:6px; }
.price-value .price-big { font-size:28px; color:#ed4c2d; font-weight:800; }

.shipping-row { margin-bottom: 12px; color:#4a4a4a; font-size:14px; }
.shipping-row .shipping-note { font-size:13px; color:#8a8a8a; margin-top:6px; }

.variant-row { display:flex; gap:20px; align-items:center; margin: 14px 0; }
.qty-control { display:flex; align-items:center; gap:8px; }
.qty-btn {
  width:38px; height:38px; border-radius:6px; border:1px solid #ddd;
  background:#fff; font-size:18px; cursor:pointer;
}
.qty-control input[type="number"] {
  width:64px; height:36px; text-align:center; border-radius:6px; border:1px solid #e6e6e6;
}

.action-row { display:flex; gap:12px; margin-top:14px; }
.btn { padding:12px 18px; border-radius:8px; cursor:pointer; font-weight:700; }
.btn-outline { border:1px solid #ff6b3d; background:transparent; color:#ff6b3d; }
.btn-primary { background:#ff6b3d; color:#fff; border:0; }

.desc-row { margin-top:20px; background:#fafafa; padding:14px; border-radius:8px; color:#333; }

/* Responsive */
@media (max-width: 900px) {
  .shopee-like-detail { flex-direction: column; }
  .shopee-like-detail .slideshow-col, .shopee-like-detail .info-col { flex: 1 1 100%; max-width:100%; }
  .main-image img { max-height: 360px; }
}

/* =======================
   14. STYLING MODAL "ABOUT US"
   ======================= */

/* Buat modal "About Us" sedikit lebih lebar */
@media (min-width: 768px) { /* Terapkan hanya jika lebar layar >= 768px */
  #aboutModal .modal {
    max-width: 600px; 
  }
}

#aboutModal .modal-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
}

#aboutModal .modal-body p {
  margin-bottom: 15px;
}

#aboutModal .modal-body ul {
  margin: 0 0 15px 20px;
  padding-left: 15px;
}

#aboutModal .modal-body li {
  margin-bottom: 5px;
}

/* ▼▼▼ TAMBAHKAN KODE INI ▼▼▼ */

/* Batasi tinggi modal dan buat body bisa scroll */
#aboutModal .modal {
  max-height: 85vh; /* Batasi tinggi modal, misal 85% tinggi layar */
  display: flex; /* Gunakan flexbox untuk layout internal */
  flex-direction: column; /* Susun header, body dari atas ke bawah */
}

#aboutModal .modal-body {
  overflow-y: auto; /* Aktifkan scroll vertikal JIKA konten lebih panjang */
  flex-grow: 1; /* Biarkan body mengisi sisa ruang tinggi */
  padding-right: 15px; /* Beri sedikit ruang untuk scrollbar */
}

/* Sedikit penyesuaian padding di mobile agar lebih lega */
@media (max-width: 480px) {
  .modal {
     padding: 20px; /* Kurangi padding modal utama di layar sangat kecil */
  }
  #aboutModal .modal-body {
     padding-right: 10px; /* Kurangi padding kanan body di layar sangat kecil */
  }
}

#aboutModal .modal-contact {
  text-align: center;
  font-size: 1.1rem;
  background: var(--background-light);
  padding: 10px;
  border-radius: 8px;
}

#aboutModal .modal-contact a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}
#aboutModal .modal-contact a:hover {
  text-decoration: underline;
}

#aboutModal .modal-support-text {
  margin-top: 20px;
  font-size: 0.9rem;
  font-style: italic;
  color: #555;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}