/* ==========================================================
   Stylesheet for kuatlama.info
   Brand: Sumber Stamina Alami
   Unique Typography, Custom Color Palette & Modular CSS
   ========================================================== */

:root {
  --primary: #0f172a;
  --primary-hover: #1e293b;
  --accent: #b45309;
  --accent-hover: #d97706;
  --bg-surface: #fdfbf7;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --btn-radius: 9999px;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --container-width: 1200px;
}

/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-surface);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

h1 { font-size: 2.35rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Top Announcement Bar */
.announcement-bar {
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.announcement-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Header */
.site-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-logo {
  height: 52px;
  width: auto;
}

.main-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-link {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--btn-radius);
  color: var(--primary);
  font-weight: 600;
  transition: all 0.2s ease;
}

.cart-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.cart-badge {
  background-color: var(--accent);
  color: #ffffff;
  border-radius: 9999px;
  padding: 2px 7px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 60px 0;
  background-color: var(--bg-surface);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid #b45309; background: #ffedd5; color: #9a3412;
}

.hero-title {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--primary);
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.hero-trust-bar {
  display: flex;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.hero-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Trust Bar Section */
.trust-bar-section {
  padding: 40px 0;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-card {
  padding: 20px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: left;
}

.trust-card h4 {
  color: var(--primary);
  margin-bottom: 6px;
}

.trust-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Product Grid */
.section-padding {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.section-title {
  font-size: 2.1rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--accent);
  color: #ffffff;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.product-thumb-link {
  display: block;
  background-color: var(--bg-surface);
  overflow: hidden;
}

.product-thumb {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-thumb {
  transform: scale(1.03);
}

.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-title {
  font-size: 1.15rem;
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-card-title a {
  color: var(--text-main);
}

.product-card-title a:hover {
  color: var(--accent);
}

.product-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 14px;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.price-normal {
  font-size: 0.9rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.product-card-actions {
  display: flex;
  gap: 8px;
}

/* Brand Story Section */
.story-section {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.story-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.star-rating {
  color: #f59e0b;
  margin-bottom: 12px;
  font-size: 1rem;
}

.testimonial-text {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 16px;
}

.testimonial-author strong {
  display: block;
  color: var(--primary);
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.faq-question {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 700;
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Statutory Disclaimer Box */
.statutory-disclaimer-section {
  padding: 30px 0;
}

.disclaimer-box {
  background-color: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 5px solid #d97706;
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}

.disclaimer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #92400e;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.disclaimer-text {
  font-size: 0.88rem;
  color: #78350f;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Footer */
.site-footer {
  background-color: #111827;
  color: #e5e7eb;
  padding: 60px 0 20px 0;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.company-legal-name {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.company-desc {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 16px;
}

.footer-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-item {
  background-color: #1f2937;
  color: #d1d5db;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid #374151;
}

.footer-title {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 16px;
  border-bottom: 1px solid #374151;
  padding-bottom: 8px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.contact-line {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 8px;
}

.contact-line a {
  color: #d1d5db;
}

.contact-line a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: #9ca3af;
}

.logistics-partners, .payment-methods {
  margin-bottom: 6px;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 16px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--primary);
}

.breadcrumbs span {
  color: var(--text-muted);
}

/* Product Detail Page Layout */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.product-gallery {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.detail-main-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
}

.detail-badge {
  align-self: flex-start;
  margin-bottom: 12px;
}

.detail-title {
  font-size: 2.2rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.detail-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.detail-price-box {
  display: flex;
  align-items: baseline;
  gap: 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.detail-price-box .price-current {
  font-size: 1.8rem;
}

.detail-stock-notice {
  color: #059669;
  font-weight: 600;
  font-size: 0.9rem;
}

.detail-cart-action {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.quantity-control {
  display: inline-flex;
  border: 1px solid var(--border-color);
  border-radius: var(--btn-radius);
  background-color: var(--bg-card);
}

.qty-btn {
  width: 38px;
  height: 44px;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-main);
}

.qty-btn:hover {
  background-color: var(--bg-surface);
}

.qty-input {
  width: 50px;
  height: 44px;
  border: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}

.detail-fast-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background-color: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 0.88rem;
  margin-bottom: 28px;
}

/* Tables */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.spec-table th, .spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
}

.spec-table th {
  background-color: var(--bg-surface);
  color: var(--primary);
  font-weight: 600;
}

/* Cart Page */
.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.cart-items-card, .cart-summary-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th, .cart-table td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.free-shipping-progress {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.progress-bar-bg {
  height: 8px;
  background-color: var(--border-color);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar-fill {
  height: 100%;
  background-color: #10b981;
  transition: width 0.3s ease;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.summary-total {
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

/* Checkout Form */
.checkout-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 36px;
  margin-bottom: 40px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 78, 63, 0.15);
}

.courier-selection, .payment-selection {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.radio-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-card:hover, .radio-card.selected {
  border-color: var(--accent);
  background-color: var(--bg-surface);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.blog-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Article Content */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.article-content h3 {
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--primary);
}

.article-content p {
  margin-bottom: 18px;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Modals and Toasts */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-icon-success {
  width: 64px;
  height: 64px;
  background-color: #d1fae5;
  color: #059669;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--primary);
  color: #ffffff;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  display: none;
  align-items: center;
  gap: 12px;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #1f2937;
  color: #f3f4f6;
  padding: 16px 20px;
  z-index: 9998;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
}

.cookie-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-content p {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.cookie-content a {
  color: #60a5fa;
  text-decoration: underline;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .story-grid, .product-detail-grid, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid, .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.1rem; }
  .product-grid { grid-template-columns: 1fr; }
}
