/* =================================================
   AyamQu Theme - Main Stylesheet
   ================================================= */

:root {
  /* WARNA PALETTE */
  --primary: #ff1a1a;
  --primary-dark: #cc0000;
  --accent: #ff6b6b;
  --bg: #07060a;
  --bg-soft: #0b0a0f;
  --card: #0b0a0f;
  --text: #f7f7f8;
  --muted: #cbd5da;
  --border: rgba(255, 255, 255, 0.06);
  --radius-sm: 10px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.7);
  --shadow-pill: 0 8px 20px rgba(0, 0, 0, 0.6);
  --transition-fast: 0.18s ease;
  --transition-med: 0.28s ease;
  --nav-height: 72px;
  --container-padding: 0.25rem;
  --product-w: 300px;
  --product-h: 310px;
}

/* Reset + Base */
html,
body {
  height: 100%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100%;
  background: radial-gradient(circle at top left, rgba(255, 26, 26, 0.06), transparent 20%),
    linear-gradient(180deg, var(--bg) 0%, #050408 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  overflow-y: auto;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 26, 26, 0.12), rgba(0, 0, 0, 0.25));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: grid;
  place-items: center;
  font-weight: 800;
  color: white;
  box-shadow: var(--shadow-pill);
  font-size: 1.05rem;
}

.logo-text strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.logo-text small {
  font-size: 0.66rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--text);
  opacity: 0.95;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.nav-links a:hover {
  transform: translateY(-2px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0.6rem;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.icon-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.badge {
  position: absolute;
  top: -7px;
  right: -8px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  display: none;
}

.btn {
  padding: 0.48rem 0.9rem;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-size: inherit;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 26, 26, 0.18);
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(204, 0, 0, 0.18);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 0.48rem 0.9rem;
  border-radius: 10px;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.45rem;
  border-radius: 8px;
  cursor: pointer;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  position: relative;
}

.nav-mobile-toggle span::before,
.nav-mobile-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.18s ease, top 0.18s ease, bottom 0.18s ease;
}

.nav-mobile-toggle span::before {
  top: -7px;
}

.nav-mobile-toggle span::after {
  bottom: -7px;
}

.nav-mobile-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-mobile-toggle[aria-expanded="true"] span::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-mobile-toggle[aria-expanded="true"] span::after {
  transform: rotate(-45deg);
  bottom: 0;
}

.mobile-panel {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  display: none;
  padding: 1rem;
  z-index: 55;
  background: linear-gradient(180deg, rgba(12, 6, 6, 0.94), rgba(2, 2, 4, 0.98));
  border-top: 1px solid var(--border);
  animation: slideDown 0.22s ease both;
  box-shadow: var(--shadow-soft);
}

@keyframes slideDown {
  from {
    transform: translateY(-6px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.mobile-panel .links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mobile-panel .links a {
  padding: 0.65rem 0.6rem;
  border-radius: 8px;
  color: var(--text);
}

.mobile-panel .links a:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Main Layout */
main {
  min-height: calc(100vh - var(--nav-height));
  padding-bottom: 5rem;
}

/* HERO */
.hero {
  padding: 2.25rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 2rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.03;
  margin-bottom: 0.6rem;
}

.hero-title .highlight {
  background: linear-gradient(90deg, #fff1f1, var(--primary));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  color: var(--muted);
  max-width: 46rem;
  margin-bottom: 1rem;
}

.hero-card-main {
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(180deg, rgba(255, 26, 26, 0.04), rgba(0, 0, 0, 0.35));
  box-shadow: var(--shadow-soft);
}

.hero-products {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  align-items: start;
}

.hero-product-card {
  background: rgba(255, 255, 255, 0.02);
  padding: 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  min-height: 84px;
  display: flex;
  flex-direction: row;
  gap: 0.6rem;
  align-items: center;
}

.hero-product-card .thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0b0a0f;
  border: 1px solid rgba(255, 255, 255, 0.02);
  display: grid;
  place-items: center;
}

.hero-product-info {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.hero-product-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-product-meta {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.price-drop {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #16a34a;
  font-weight: 700;
}

/* SECTION HEADERS */
section {
  padding: 2rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.35rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 38rem;
}

.section-header.center {
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 26, 26, 0.03), rgba(0, 0, 0, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  display: grid;
  place-items: center;
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

/* PRODUCTS */
.products-wrap {
  padding: 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.02);
  background: linear-gradient(180deg, rgba(255, 26, 26, 0.02), rgba(0, 0, 0, 0.32));
}

.products-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tab-btn {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn.active {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 10px 30px rgba(255, 26, 26, 0.12);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, var(--product-w)));
  gap: 1rem;
  justify-content: start;
  align-items: start;
  grid-auto-flow: dense;
}

.product-card {
  width: 100%;
  max-width: var(--product-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.02);
  gap: 0.45rem;
  cursor: pointer;
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.product-photo-wrapper {
  width: var(--product-w);
  height: var(--product-h);
  border-radius: 10px;
  overflow: hidden;
  background: #0b0a0f;
  border: 1px solid rgba(255, 255, 255, 0.02);
  display: grid;
  place-items: center;
}

.product-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-name {
  font-weight: 600;
  text-align: center;
  font-size: 0.95rem;
}

.product-meta {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.35rem;
  width: 100%;
  gap: 0.45rem;
  flex-wrap: nowrap;
}

.qty-input {
  width: 40px;
  padding: 0.3rem 0.35rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: var(--text);
  text-align: center;
  font-size: 0.8rem;
}

.add-cart-btn,
.pesan-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  border: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: white;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.add-cart-btn span {
  display: none;
}

.pesan-btn {
  padding: 0.28rem 0.7rem;
  font-size: 0.82rem;
}

.add-cart-btn:hover,
.pesan-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 26, 26, 0.2);
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.stock-info {
  display: inline-block;
  margin-left: 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.12rem 0.35rem;
  border-radius: 8px;
}

/* STEPS */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.step-card {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.step-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* TESTIMONIAL + FAQ */
.split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.testimonial-card {
  padding: 1.05rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 26, 26, 0.02), rgba(0, 0, 0, 0.32));
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.testimonial-author {
  color: var(--muted);
  font-size: 0.86rem;
}

.testimonial-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.testimonial-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-list {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.02);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
}

.faq-item + .faq-item {
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.faq-button {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.faq-button:hover {
  background: rgba(255, 255, 255, 0.01);
}

.faq-icon {
  font-size: 1.2rem;
  font-weight: 300;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  color: var(--muted);
  transition: max-height 0.28s ease, padding 0.18s ease;
}

.faq-item.expanded .faq-content {
  max-height: 200px;
  padding-bottom: 0.6rem;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-card {
  padding: 1.2rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.02);
  background: linear-gradient(180deg, rgba(255, 26, 26, 0.02), rgba(0, 0, 0, 0.32));
}

.contact-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-card > p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.form-field {
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-field label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background: transparent;
  color: var(--text);
  outline: none;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  box-shadow: 0 6px 20px rgba(255, 26, 26, 0.06);
  border-color: rgba(255, 26, 26, 0.5);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-map {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.02);
  overflow: hidden;
  min-height: 400px;
  background: #060506;
  position: relative;
}

.contact-map iframe {
  width: 100% !important;
  height: 100% !important;
}

/* CART MODAL */
.cart-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
}

.cart-modal-backdrop.active {
  display: flex;
}

.cart-modal {
  width: min(720px, 95%);
  max-height: 85vh;
  overflow-y: auto;
  background: var(--card);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  animation: slideUp 0.22s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* FOOTER */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 1.25rem 0;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), transparent);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text);
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #1db954, #16a34a);
  color: white;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.whatsapp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
}

.whatsapp-btn .label {
  font-size: 0.9rem;
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* AUTH MODAL */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 130;
}

.auth-modal-backdrop.active {
  display: flex;
}

.auth-modal {
  width: min(420px, 95%);
  background: var(--card);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  animation: slideUp 0.22s ease;
}

.auth-modal h2 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-modal .form-input {
  width: 100%;
}

.auth-modal .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.auth-switch {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-switch a {
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr 360px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 100% !important;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .hero-products {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-cta,
  .nav-actions {
    display: none;
  }
  .nav-mobile-toggle {
    display: block;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
  .hero-products {
    grid-template-columns: 1fr;
  }
  .mobile-panel {
    display: block;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .mobile-panel {
    padding: 0.8rem;
  }
}

@media (max-width: 420px) {
  .logo-text strong {
    font-size: 0.98rem;
  }
  .logo-icon {
    width: 40px;
    height: 40px;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .btn {
    padding: 0.45rem 0.7rem;
    font-size: 0.88rem;
  }
  .hero-card-main {
    padding: 1rem;
  }
  .whatsapp-btn .label {
    display: none;
  }
}
