/* DigitAccess – Main Stylesheet */
/* Palette: Green dominant + Gold + Dark */

:root {
  --green: #1a9c56;
  --green-light: #22c46c;
  --green-dark: #137a40;
  --green-pale: #e8f8ef;
  --gold: #f5a623;
  --gold-light: #ffd07a;
  --dark: #0f1a14;
  --dark-2: #1b2e22;
  --text: #1a2e1f;
  --text-muted: #5a7a62;
  --bg: #f8fffe;
  --white: #ffffff;
  --border: #d4ead9;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(26,156,86,0.10);
  --shadow-hover: 0 12px 40px rgba(26,156,86,0.22);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* TOPBAR */
.topbar {
  background: var(--dark);
  color: #a8dbb8;
  text-align: center;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* HEADER */
.header {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
}
.logo strong { color: var(--green); }
.logo-icon {
  background: var(--green);
  color: white;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}
.nav-links a:hover { background: var(--green-pale); color: var(--green-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-form {
  display: flex;
  align-items: center;
  background: var(--green-pale);
  border: 1.5px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  padding: 4px 4px 4px 14px;
}
.search-form input {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  width: 160px;
  color: var(--text);
}
.search-form button {
  background: var(--green);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}

.btn-admin {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--dark);
  color: white;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-admin:hover { background: var(--green-dark); }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 60%, #1a3d26 100%);
  color: white;
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,156,86,0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 60px;
}

.hero-badge {
  display: inline-block;
  background: rgba(26,156,86,0.25);
  border: 1px solid rgba(26,156,86,0.4);
  color: #7adfa5;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-content h1 .highlight {
  color: var(--green-light);
}
.hero-content p {
  font-size: 1.1rem;
  color: #a8c8b4;
  max-width: 600px;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-light);
}
.stat span { font-size: 13px; color: #7a9e85; }

.hero-wave {
  line-height: 0;
}
.hero-wave svg { display: block; }

/* STORE DESCRIPTION */
.store-description {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: -20px auto 40px;
  position: relative;
  z-index: 2;
}

.desc-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.desc-card:hover { transform: translateY(-2px); }
.desc-icon { font-size: 1.8rem; flex-shrink: 0; }
.desc-card div { font-size: 14px; line-height: 1.4; }
.desc-card strong { color: var(--green-dark); }

/* MAIN CONTENT */
.main { padding: 40px 20px 60px; }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 10px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
}
.product-count {
  font-size: 14px;
  color: var(--text-muted);
  background: var(--green-pale);
  padding: 4px 12px;
  border-radius: 20px;
}

/* PRODUCTS GRID */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .products-grid { grid-template-columns: 1fr; } }

/* PRODUCT CARD */
.product-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--green);
}

.badge-featured {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: #3a2000;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
  letter-spacing: 0.3px;
}

.card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--green-pale);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .card-image img { transform: scale(1.05); }

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,26,20,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  opacity: 0;
  transition: opacity 0.3s;
}
.product-card:hover .card-overlay { opacity: 1; }
.card-overlay span {
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  font-family: var(--font-display);
}

.btn-details {
  display: block;
  text-align: center;
  background: var(--green-pale);
  color: var(--green-dark);
  border: 1.5px solid var(--green);
  padding: 9px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  margin-top: auto;
}
.btn-details:hover {
  background: var(--green);
  color: white;
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--green-dark); }

/* FOOTER */
.footer {
  background: var(--dark);
  color: #8aaa94;
  margin-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 50px 20px 40px;
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand .logo { color: white; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.6; }

.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4, .footer-contact h4 {
  font-family: var(--font-display);
  color: white;
  font-size: 15px;
  margin-bottom: 4px;
}
.footer-links a { font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--green-light); }
.footer-contact p { font-size: 14px; }

.footer-bottom {
  border-top: 1px solid #1e3027;
  text-align: center;
  padding: 16px 20px;
  font-size: 13px;
  color: #4a6a54;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  padding: 30px 20px 60px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { color: var(--border); }

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
  align-items: start;
}
@media (max-width: 768px) { .detail-hero { grid-template-columns: 1fr; } }

.main-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border);
  aspect-ratio: 4/3;
  background: var(--green-pale);
}
.main-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.main-image-wrap:hover img { transform: scale(1.03); }

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.thumb {
  width: 70px; height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
}
.thumb.active, .thumb:hover { border-color: var(--green); }

.detail-category {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--green);
  margin-bottom: 10px;
}
.detail-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 12px;
}
.detail-short-desc {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.detail-price-block {
  background: var(--green-pale);
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.detail-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--green-dark);
}
.price-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.detail-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.detail-badges span {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.snap-container {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.snap-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 14px;
}
.snap-placeholder p { color: #8aaa94; font-size: 14px; }

.how-it-works {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 20px;
}
.how-it-works h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--green-dark);
}
.how-it-works ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.how-it-works li { font-size: 14px; color: var(--text-muted); }
.how-it-works strong { color: var(--green-dark); }

.detail-description-section {
  margin-bottom: 60px;
}
.detail-description-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.rich-description {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}
.rich-description img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 20px 0;
  border: 1.5px solid var(--border);
}
.rich-description h1, .rich-description h2, .rich-description h3 {
  font-family: var(--font-display);
  margin: 24px 0 12px;
  color: var(--dark);
}
.rich-description ul, .rich-description ol {
  margin: 12px 0 12px 24px;
}
.rich-description li { margin-bottom: 6px; }
.rich-description strong { color: var(--green-dark); }
.rich-description p { margin-bottom: 14px; }

.related-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .header-inner { padding: 10px 16px; }
  .nav-links { display: none; }
  .search-form input { width: 110px; }
  .hero-stats { gap: 24px; }
  .store-description { grid-template-columns: 1fr 1fr; margin: 16px auto 30px; }
  .detail-title { font-size: 1.5rem; }
  .detail-price { font-size: 1.7rem; }
}
