/*
Theme Name: ABSPEDIA
Theme URI: https://abspedia.id
Author: Abspedia
Author URI: https://abspedia.id
Description: Tema WordPress khusus affiliate dengan single landing page, cepat, responsif, dan SEO-ready.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: abspedia
*/

:root {
  --abspedia-green: #23a46e;
  --abspedia-black: #0f1115;
  --abspedia-yellow: #ffd33d;
  --abspedia-blue: #1f6feb;
  --abspedia-white: #ffffff;
  --header-control-height: 40px;
  --footer-logo-height: 40px;
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  background: var(--abspedia-black);
  color: var(--abspedia-white);
}

a {
  color: var(--abspedia-blue);
  text-decoration: none
}

a:hover {
  color: var(--abspedia-yellow)
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(15, 17, 21, 0.9);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-branding .custom-logo {
  width: auto;
  height: var(--header-control-height);
  max-width: 200px;
  object-fit: contain;
}

.site-navigation ul {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.site-navigation a {
  color: var(--abspedia-white)
}

.site-navigation a:hover {
  color: var(--abspedia-yellow)
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.searchbar input[type="search"] {
  height: var(--header-control-height);
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--abspedia-white);
}

.searchbar button {
  height: var(--header-control-height);
  padding: 0 14px;
  border: none;
  border-radius: 8px;
  background: var(--abspedia-green);
  color: var(--abspedia-black);
  cursor: pointer;
}

.searchbar button:hover {
  background: var(--abspedia-yellow)
}

.hero-slider {
  position: relative;
  overflow: hidden;
  height: 360px;
  background: #0b0d10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-slider .slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.hero-slider .slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.slider-controls {
  position: absolute;
  inset: auto 16px 16px auto;
  display: flex;
  gap: 10px;
}

.slider-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--abspedia-white);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.slider-button:hover {
  background: rgba(255, 255, 255, 0.2)
}

.section {
  padding: 36px 0;
}

.section-title {
  font-size: 24px;
  margin: 0 0 16px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr))
  }
}

.product-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card .thumb {
  aspect-ratio: 1/1;
  background: #0b0d10;
  background-size: cover;
  background-position: center;
}

.product-card .content {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.product-card .title {
  font-size: 16px;
  font-weight: 600;
  color: var(--abspedia-white);
}

.price-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-normal {
  text-decoration: line-through;
  opacity: 0.8;
}

.price-discount {
  color: var(--abspedia-yellow);
  font-weight: 700;
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn {
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary {
  background: var(--abspedia-green);
  color: var(--abspedia-black);
}

.btn-primary:hover {
  background: var(--abspedia-yellow)
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--abspedia-white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2)
}

.flash-sale {
  background: rgba(31, 111, 235, 0.08);
  border: 1px solid rgba(31, 111, 235, 0.25);
  border-radius: 12px;
  padding: 16px;
}

.countdown {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: var(--abspedia-yellow);
  font-size: 18px;
}

footer.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 17, 21, 0.92);
  padding: 24px 0;
}

.footer-logo {
  width: auto;
  height: var(--footer-logo-height);
  max-width: 200px;
  object-fit: contain;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--abspedia-white);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.18)
}

/* Flash Sale Timer */
.flash-timer-wrapper {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  z-index: 10;
  pointer-events: none;
  border: 1px solid rgba(255, 211, 61, 0.3);
}

.abspedia-timer {
  color: var(--abspedia-yellow);
  font-weight: bold;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  margin-left: 4px;
}

.product-card {
  position: relative;
}

/* Slider Overlay */
.slide {
  position: relative;
}

.slide-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Product Filter removed */

/* Social Proof Popup */
.abspedia-sp-wrap {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9999;
  display: grid;
  gap: 10px;
}

.abspedia-sp {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  padding: 10px 12px;
  max-width: 320px;
  animation: sp-in 300ms ease both;
}

.abspedia-sp.hide {
  animation: sp-out 300ms ease both
}

.abspedia-sp .sp-link {
  color: var(--abspedia-white);
  flex: 1
}

.abspedia-sp .sp-link:hover {
  color: var(--abspedia-yellow)
}

.abspedia-sp .sp-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

@keyframes sp-in {
  from {
    transform: translateY(10px);
    opacity: 0
  }

  to {
    transform: translateY(0);
    opacity: 1
  }
}

@keyframes sp-out {
  from {
    transform: translateY(0);
    opacity: 1
  }

  to {
    transform: translateY(10px);
    opacity: 0
  }
}

/* Coupon System */
.price-old {
  text-decoration: line-through;
  color: #888;
  font-size: 0.9em;
  margin-right: 10px;
  display: inline-block;
}

.price-active {
  color: var(--abspedia-green);
  font-weight: bold;
  display: inline-block;
}

.absp-coupon-wrapper {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#absp-coupon-code {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

#absp-apply-coupon {
  background: var(--abspedia-blue);
  color: #fff;
  border: none;
  border-radius: 4px;
}

#absp-apply-coupon:hover {
  background: var(--abspedia-green);
}

#absp-apply-coupon:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Custom Buyer Styling */
.absp-buyer {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.absp-ref-label {
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
}

/* Invoice ID Link & Label */
.absp-invoice-id-wrap {
  display: flex;
  flex-direction: column;
}

.absp-invoice-label {
  font-size: 9px;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.025em;
  margin-bottom: 2px;
}

.absp-invoice-link {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.absp-invoice-link:hover {
  color: #2563eb;
  text-decoration: underline;
}