/* ==========================================================================
   Toko Pena Bisa - Theme: Futuristic Glassmorphism Gold & Orange
   ========================================================================== */

:root {
  --bg-dark: #0a0b0e;
  --bg-surface: #12141c;
  --glass-bg: rgba(20, 24, 35, 0.65);
  --glass-card: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 184, 0, 0.2);
  --glass-border-hover: rgba(255, 184, 0, 0.6);
  
  --gold-primary: #ffb703;
  --orange-accent: #fb8500;
  --gold-glow: rgba(255, 183, 3, 0.25);
  
  --text-main: #f8f9fa;
  --text-muted: #a0a5b5;
  --text-gold: #ffe169;
  
  --success-green: #2ec4b6;
  --danger-red: #e63946;
  --shopee-orange: #ee4d2d;
  --tokopedia-green: #03ac0e;
  --mayar-blue: #0077ff;
  
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 183, 3, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(251, 133, 0, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* NAVBAR GLASS */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5%;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-primary), var(--orange-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
}

.nav-menu a {
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--gold-primary);
  background: rgba(255, 183, 3, 0.1);
  border: 1px solid var(--glass-border);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-box input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
}

.btn-cart-nav {
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.2), rgba(251, 133, 0, 0.2));
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-cart-nav:hover {
  background: linear-gradient(135deg, var(--gold-primary), var(--orange-accent));
  color: #000;
  box-shadow: 0 0 15px var(--gold-glow);
}

.badge {
  background: var(--orange-accent);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
}

.btn-shortcut {
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
}

/* HERO BANNER */
.hero-banner {
  margin: 2rem 5%;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.1), rgba(0, 0, 0, 0.8)), var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  text-align: center;
}

.hero-banner h1 {
  font-size: 2.5rem;
  color: var(--text-gold);
  margin-bottom: 1rem;
}

.hero-banner p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* BUTTONS */
.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary), var(--orange-accent));
  color: #000;
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  display: inline-block;
  transition: var(--transition);
}

.btn-primary:hover {
  box-shadow: 0 0 20px var(--gold-glow);
  transform: translateY(-2px);
}

/* INFO SECTION */
.info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 5%;
}

.info-card {
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.info-card h3 {
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

/* CATALOG & BUNDLING GRID LAYOUT */
.catalog-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding: 2rem 5%;
}

.sidebar-filter {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  height: fit-content;
  backdrop-filter: blur(10px);
}

.filter-group {
  margin: 1.5rem 0;
}

.filter-group h4 {
  color: var(--gold-primary);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.filter-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* PRODUCT CARD GLASS */
.product-card {
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 183, 3, 0.15);
}

.product-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.product-card h4 {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-card .price {
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.product-card button {
  width: 100%;
  background: rgba(255, 183, 3, 0.1);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.product-card button:hover {
  background: var(--gold-primary);
  color: #000;
}

/* MODAL IG POP-UP */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden { display: none !important; }

.modal-ig-container {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 900px;
  height: 80vh;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(255, 183, 3, 0.2);
}

.close-modal {
  position: absolute;
  top: 15px; right: 20px;
  background: none; border: none;
  color: var(--text-main); font-size: 1.8rem;
  cursor: pointer; z-index: 10;
}

.ig-left-carousel {
  flex: 1.2;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.ig-left-carousel img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  scroll-snap-align: center;
}

.ig-right-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--glass-border);
}

.ig-copywriting {
  color: var(--text-muted);
  white-space: pre-line;
  overflow-y: auto;
  max-height: 300px;
}

.ig-actions-dummy {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--glass-border);
  color: var(--gold-primary);
  font-size: 0.9rem;
}

/* DETAIL PAGES & BUTTONS */
.detail-container {
  padding: 3rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.detail-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.main-image-box img {
  width: 100%;
  max-height: 450px;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.thumbnail-list {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.thumbnail-list img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
}

.thumbnail-list img.active {
  border-color: var(--gold-primary);
}

.metadata-card {
  background: var(--glass-card);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}

.action-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-mayar {
  background: linear-gradient(135deg, var(--mayar-blue), #00d2ff);
  color: #fff; padding: 0.8rem; text-align: center; font-weight: 700; border-radius: var(--radius-md);
}

.btn-shopee { background: var(--shopee-orange); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius-sm); }
.btn-tokopedia { background: var(--tokopedia-green); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius-sm); }
.btn-wa { background: #25D366; color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius-sm); text-align: center; }

.btn-cart-add {
  background: linear-gradient(135deg, var(--gold-primary), var(--orange-accent));
  color: #000; font-weight: 700; border: none; padding: 0.9rem; border-radius: var(--radius-md); cursor: pointer;
}

.detail-extra {
  margin-top: 3rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

/* CART PAGE */
.cart-page-container {
  padding: 3rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.cart-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  margin-top: 2rem;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.cart-table th, .cart-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.cart-summary-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  height: fit-content;
}

.btn-wa-block {
  width: 100%; background: #25D366; color: #fff; border: none;
  padding: 0.9rem; font-weight: 700; border-radius: var(--radius-sm); cursor: pointer; margin-top: 1rem;
}

.btn-danger-outline {
  width: 100%; background: transparent; color: var(--danger-red);
  border: 1px solid var(--danger-red); padding: 0.6rem; border-radius: var(--radius-sm); cursor: pointer; margin-top: 0.5rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .catalog-container, .detail-wrapper, .cart-grid { grid-template-columns: 1fr; }
  .modal-ig-container { flex-direction: column; height: 90vh; }
  .ig-left-carousel { height: 40%; }
}
