:root {
  --color-bg: #0b0b12;
  --color-dark: #0d0d1a;
  --color-accent: #A855F7;
  --color-gold: #00FF9C;
  --color-white: #FFFFFF;
  --color-muted: #6B7280;
  --color-surface: rgba(255, 255, 255, 0.03);
  --color-border: rgba(255, 255, 255, 0.08);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-card: 16px;
  --radius-btn: 8px;
  --shadow-card: 0 4px 24px rgba(6, 182, 212, 0.08);
  --shadow-hover: 0 8px 40px rgba(6, 182, 212, 0.2);
  --shadow-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.3);
  --shadow-glow-purple: 0 0 20px rgba(168, 85, 247, 0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === BASE === */
body {
  background-color: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-body);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(168, 85, 247, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 60%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
}

a {
  color: var(--color-gold);
}

a:hover {
  color: #22d3ee;
}

/* === TOP BAR === */
.top-bar {
  background: rgba(8, 8, 14, 0.9) !important;
  color: #fff;
  font-size: 0.72rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  padding: 8px 0;
  border-bottom: 2px solid var(--color-gold) !important;
  box-shadow: 0 1px 15px rgba(0, 255, 156, 0.15);
  backdrop-filter: blur(12px);
  text-transform: uppercase;
}

.cyber-badge-loc {
  background: rgba(0, 255, 156, 0.04);
  border: 1px solid rgba(0, 255, 156, 0.25);
  padding: 3px 10px;
  border-radius: 4px;
  color: #00ff9c !important;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(0, 255, 156, 0.4);
}

.cyber-promo-text {
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.12em;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.cyber-promo-text i {
  color: var(--color-accent);
  margin-right: 6px;
  display: inline-block;
  animation: pulse-animation 2s infinite;
}

.cyber-wa-btn {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff !important;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 4px;
  border: 1px solid rgba(37, 211, 102, 0.4);
  box-shadow: 0 0 8px rgba(37, 211, 102, 0.2);
  transition: all var(--transition);
  text-decoration: none;
  font-size: 0.68rem;
}

.cyber-wa-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
  color: #fff !important;
  border-color: #25D366;
}

/* === MAIN NAVBAR === */
.main-navbar {
  background: rgba(11, 11, 18, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.main-navbar .navbar-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--color-gold) !important;
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
  letter-spacing: 0.08em;
}

.main-navbar .nav-link {
  color: var(--color-white) !important;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition);
  letter-spacing: 0.02em;
}

.main-navbar .nav-link:hover {
  color: var(--color-gold) !important;
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.main-navbar .nav-link.active {
  color: var(--color-gold) !important;
}

.nav-category {
  background: rgba(11, 11, 18, 0.7);
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
  backdrop-filter: blur(12px);
}

.nav-category .nav-link {
  color: var(--color-white) !important;
  font-size: 0.85rem;
  font-family: var(--font-display);
  font-weight: 500;
  padding: 0.7rem 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.nav-category .nav-link:hover,
.nav-category .nav-link.active {
  color: var(--color-gold) !important;
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}

.search-form .form-control {
  border-radius: var(--radius-btn);
  border: 1px solid var(--color-border);
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  backdrop-filter: blur(8px);
}

.search-form .form-control::placeholder {
  color: #6B7280;
}

.search-form .form-control:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 0.2rem rgba(6, 182, 212, 0.15);
  background-color: rgba(255, 255, 255, 0.08);
}

.search-form .btn-search {
  background: linear-gradient(135deg, var(--color-gold), #0891B2);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  transition: transform var(--transition), box-shadow var(--transition);
}

.search-form .btn-search:hover,
.search-form .btn-search:active,
.search-form .btn-search:focus,
.search-form .btn-search:focus-visible {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-cyan);
  color: #fff;
  background: linear-gradient(135deg, var(--color-gold), #0891B2);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  font-size: 0.65rem;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-gold), var(--color-accent));
  color: #fff;
  border-radius: 50%;
  line-height: 1;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

/* === BUTTONS === */
.btn-primary-gold {
  background: linear-gradient(135deg, var(--color-gold), #0891B2);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-family: var(--font-display);
  font-size: 0.85rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn.btn-primary-gold:hover,
.btn.btn-primary-gold:active,
.btn.btn-primary-gold:focus,
.btn.btn-primary-gold:focus-visible {
  transform: scale(1.03);
  box-shadow: var(--shadow-glow-cyan);
  color: #fff;
  background: linear-gradient(135deg, var(--color-gold), #0891B2);
}

.btn-secondary-accent {
  background: linear-gradient(135deg, var(--color-accent), #7C3AED);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn.btn-secondary-accent:hover,
.btn.btn-secondary-accent:active,
.btn.btn-secondary-accent:focus,
.btn.btn-secondary-accent:focus-visible {
  transform: scale(1.03);
  box-shadow: var(--shadow-glow-purple);
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent), #7C3AED);
}

.btn-outline-gold {
  border: 1px solid rgba(6, 182, 212, 0.5);
  color: var(--color-gold);
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  transition: all var(--transition);
  background: transparent;
}

.btn.btn-outline-gold:hover,
.btn.btn-outline-gold:active,
.btn.btn-outline-gold:focus,
.btn.btn-outline-gold:focus-visible {
  transform: scale(1.03);
  box-shadow: var(--shadow-glow-cyan);
  background: rgba(6, 182, 212, 0.1);
  color: var(--color-gold);
  border-color: var(--color-gold);
}

/* === CARD PRODUCT === */
.card-product {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.card-product:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.3);
}

.card-product .card-img-top {
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-product:hover .card-img-top {
  transform: scale(1.05);
}

.card-product .card-body {
  color: var(--color-white);
}

.card-product .card-title a {
  color: var(--color-white) !important;
  text-decoration: none;
}

.card-product .card-title a:hover {
  color: var(--color-gold) !important;
}

.card-product .text-muted,
.card-product p.text-muted {
  color: #6B7280 !important;
}

.card-product .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.4em 0.8em;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  border-radius: 6px;
}

.badge-new {
  background: linear-gradient(135deg, var(--color-gold), #0891B2);
  color: #fff;
}
.badge-sale {
  background: linear-gradient(135deg, var(--color-accent), #7C3AED);
  color: #fff;
}
.badge-hot,
.badge-best {
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-gold);
  border: 1px solid rgba(6, 182, 212, 0.3);
}
.badge-rare {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #000;
}

/* === HERO === */
.hero-section {
  background: linear-gradient(135deg, #0b0b12 0%, #1e1b4b 50%, #083344 100%);
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: pulse 6s ease-in-out infinite;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 15%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: pulse 6s ease-in-out 3s infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3rem;
  color: var(--color-white);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
}

.hero-subtitle {
  font-size: 1rem;
  color: #9CA3AF;
  line-height: 1.7;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-accent));
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.hero-img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-glow-cyan);
}

/* === FLASH SALE === */
.flash-sale {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
  border-top: 1px solid rgba(168, 85, 247, 0.2);
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.flash-sale .section-heading {
  color: #fff !important;
}

.timer-block {
  background: linear-gradient(135deg, var(--color-gold), #0891B2);
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  min-width: 60px;
  text-align: center;
  box-shadow: var(--shadow-glow-cyan);
}

.timer-block span {
  font-size: 1.5rem;
  font-weight: 900;
  font-family: var(--font-display);
}

.timer-block small {
  font-size: 0.55rem;
  display: block;
  opacity: 0.85;
  letter-spacing: 0.1em;
  font-family: var(--font-display);
}

/* === SECTION HEADING === */
.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--color-white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-heading::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-accent));
  margin-top: 8px;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.section-heading.text-center::after {
  margin-left: auto;
  margin-right: auto;
}

/* === CATEGORY CARD === */
.card-category {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.card-category:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: var(--shadow-glow-cyan);
}

.card-category img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-category:hover img {
  transform: scale(1.08);
}

.card-category .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(11, 11, 18, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
  opacity: 0;
  transition: opacity var(--transition);
}

.card-category:hover .overlay {
  opacity: 1;
}

.card-category .overlay span {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.card-category + p {
  color: #9CA3AF !important;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* === BANNER PROMO === */
.banner-promo {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
}

.banner-promo h2 {
  color: #fff;
  font-family: var(--font-display);
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

/* === PRICE === */
.price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-gold);
  font-size: 1.3rem;
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.2);
}

.price-old {
  color: #6B7280;
  text-decoration: line-through;
  font-size: 0.9rem;
}

/* === FOOTER === */
.footer {
  background: linear-gradient(180deg, rgba(11, 11, 18, 0.9) 0%, #0b0b12 100%);
  color: #9CA3AF;
  border-top: 1px solid var(--color-border);
}

.footer a {
  color: #6B7280;
  text-decoration: none;
  transition: color var(--transition);
}

.footer .btn {
  color: #fff;
}

.footer a:hover {
  color: var(--color-gold);
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}

.footer .btn:hover {
  color: #fff;
}

.footer .brand-text {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--color-gold);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.footer h6 {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.btn-wa {
  background-color: #25D366;
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-weight: 500;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn.btn-wa:hover,
.btn.btn-wa:active,
.btn.btn-wa:focus,
.btn.btn-wa:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
  color: #fff;
  background-color: #25D366;
}

/* === PRODUCT DETAIL === */
.product-gallery img {
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
}

.thumb-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid var(--color-border);
  transition: border-color var(--transition);
}

.thumb-img:hover,
.thumb-img.active {
  border-color: var(--color-gold);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.size-toggle {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-btn);
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  color: #9CA3AF;
  transition: all var(--transition);
}

.size-toggle:hover,
.size-toggle.active {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(6, 182, 212, 0.1);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.color-swatch {
  width: auto;
  min-width: 32px;
  height: 32px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  gap: 6px;
}

.color-swatch .color-label {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.color-swatch:hover {
  border-color: var(--color-gold);
}

.color-swatch.active {
  border-color: var(--color-gold);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.color-swatch.active::after {
  content: '✓';
  margin-left: -2px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
}

/* === QUANTITY === */
.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #9CA3AF;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.qty-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* === TABS === */
.nav-tabs {
  border-color: var(--color-border);
}

.nav-tabs .nav-link {
  color: #9CA3AF;
  font-weight: 500;
  border: none;
}

.nav-tabs .nav-link.active {
  color: var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
  background: transparent;
}

/* === FORMS === */
.form-control {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: #fff;
}

.form-control:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 0.2rem rgba(6, 182, 212, 0.15);
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.form-select {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: #fff;
}

.form-select:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 0.2rem rgba(6, 182, 212, 0.15);
  color: #fff;
}

.form-label {
  color: #d1d5db;
  font-weight: 500;
}

.form-text {
  color: rgba(255, 255, 255, 0.7) !important;
}

.form-text code {
  color: var(--color-gold) !important;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.form-check-input:checked {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
}

/* === CARDS & PANELS (GENERAL) === */
.card, .list-group-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-white);
  backdrop-filter: blur(12px);
}

.card-header {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--color-border);
  color: var(--color-white);
}

.table {
  color: var(--color-white) !important;
  --bs-table-color: var(--color-white) !important;
  --bs-table-bg: transparent;
}

.table th {
  color: var(--color-gold) !important;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-color: var(--color-border);
}

.table td {
  color: var(--color-white) !important;
  border-color: var(--color-border);
}

.table a:not(.btn):not(.badge) {
  color: var(--color-gold) !important;
}

.table a:not(.btn):not(.badge):hover {
  color: var(--color-white) !important;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-bg-type: rgba(255, 255, 255, 0.02);
  color: var(--color-white) !important;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-card {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

/* === PAGINATION === */
.pagination .page-link {
  color: #9CA3AF;
  border: 1px solid var(--color-border);
  background: transparent;
  padding: 0.5rem 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}

.pagination .page-link:hover {
  color: #fff;
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.3);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--color-gold), #0891B2);
  border-color: var(--color-gold);
  color: #fff;
  box-shadow: var(--shadow-glow-cyan);
}

.pagination .page-item.disabled .page-link {
  color: #4B5563;
  background: transparent;
}

/* === ADMIN === */
.admin-sidebar {
  background: linear-gradient(180deg, #0d0d1a 0%, #0b0b12 100%);
  min-height: 100vh;
  color: #9CA3AF;
  position: sticky;
  top: 0;
  border-right: 1px solid var(--color-border);
}

.admin-sidebar .nav-link {
  color: #b3b9c9;
  padding: 0.75rem 1.25rem;
  transition: all var(--transition);
  font-size: 0.9rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  color: var(--color-gold);
  background-color: rgba(6, 182, 212, 0.08);
}

/* === CART === */
.cart-item-img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

/* === FILTER SIDEBAR === */
.filter-sidebar {
  border-radius: var(--radius-card);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  position: sticky;
  top: 100px;
  backdrop-filter: blur(12px);
  color: var(--color-white);
}

/* === SKELETON LOADING === */
.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: shimmer 1.5s infinite;
  background-size: 200% 100%;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-img {
  aspect-ratio: 4/5;
  width: 100%;
  display: block;
}

.skeleton-text {
  height: 14px;
  width: 60%;
  margin-bottom: 8px;
}

.skeleton-text-sm {
  height: 10px;
  width: 40%;
  margin-bottom: 12px;
}

.skeleton-btn {
  height: 36px;
  width: 100%;
  border-radius: var(--radius-btn);
}

.card-img-wrapper {
  position: relative;
}

.card-img-wrapper img {
  opacity: 1;
}

.card-img-wrapper .skeleton-img {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-img-wrapper.loaded .skeleton-img {
  display: none;
}

/* === CHECKOUT === */
.checkout-page { padding-bottom: 80px; }
@media (min-width: 576px) {
  .checkout-page { padding-bottom: 0; }
}

.checkout-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 11, 18, 0.95);
  border-top: 1px solid var(--color-border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 1050;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.checkout-mobile-bar .bar-info {
  line-height: 1.3;
}

.checkout-mobile-bar .bar-info .bar-total {
  font-size: 1.1rem;
  color: var(--color-gold);
}

.checkout-mobile-bar .bar-info .bar-count {
  font-size: 0.8rem;
  color: #6B7280;
}

/* === FLOATING WHATSAPP === */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1070;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
  color: #fff;
}

/* === MODAL === */
.modal-content {
  background: rgba(13, 13, 26, 0.95);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(20px);
  color: var(--color-white);
}

.modal-header {
  border-color: var(--color-border);
}

.modal-footer {
  border-color: var(--color-border);
}

.btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* === ALERTS === */
.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ADE80;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #FCD34D;
}

.alert-info {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--color-gold);
}

/* === TEXT UTILITIES === */
.text-dark {
  color: var(--color-white) !important;
}

.text-muted {
  color: #6B7280 !important;
}

.bg-white {
  background: var(--color-surface) !important;
}

.bg-light {
  background: rgba(255, 255, 255, 0.03) !important;
}

.border {
  border-color: var(--color-border) !important;
}

/* Star Rating */
.star-rating .bi-star-fill {
  color: var(--color-gold);
}

.star-rating .bi-star {
  color: #4B5563;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .section-heading { font-size: 1.2rem; }
  .hero-section { min-height: 50vh; padding-top: 1rem; padding-bottom: 1rem; }
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 0.85rem; }
  .hero-section .btn-lg { padding: 0.4rem 1rem; font-size: 0.8rem; }
  .section-heading::after { margin-top: 4px; }
  .price { font-size: 1rem !important; }
  .price-old { font-size: 0.8rem; }
  .card-product .card-body { padding: 0.75rem !important; }
  .card-product .card-title { font-size: 0.8rem !important; }
  section.py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .banner-promo { padding: 2rem 1rem !important; }
  .banner-promo h2 { font-size: 1.3rem !important; }
  .footer .brand-text { font-size: 1.1rem; }
  .footer .pt-5 { padding-top: 2rem !important; }
  .top-bar { font-size: 0.7rem; padding: 10px 0; }
  .top-bar .container { flex-wrap: wrap; row-gap: 6px; column-gap: 12px; justify-content: center !important; }
  .flash-timer .timer-block { padding: 0.3rem 0.6rem; min-width: 45px; }
  .flash-timer .timer-block span { font-size: 1.1rem; }
  .filter-sidebar { padding: 1rem !important; }
}

@media (max-width: 575.98px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}

/* === DARK THEME CONTRAST & VISIBILITY FIXES === */
.form-select option {
  background-color: #0d0d1a !important;
  color: #ffffff !important;
}

.form-control::placeholder,
.form-select::placeholder,
input::placeholder,
textarea::placeholder {
  color: #7c8ba1 !important;
  opacity: 0.8 !important;
}

.form-check-input {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--color-border) !important;
}

.btn-outline-secondary {
  color: #d1d5db !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  background-color: transparent !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:active,
.btn-outline-secondary:focus {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Trix Editor Dark Theme Fixes */
trix-editor,
.trix-content {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  border: 1px solid var(--color-border) !important;
}

trix-toolbar {
  border-bottom: 1px solid var(--color-border) !important;
  background-color: rgba(255, 255, 255, 0.02) !important;
}

trix-toolbar .trix-button {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--color-border) !important;
  color: #ffffff !important;
}

trix-toolbar .trix-button:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

trix-toolbar .trix-button--active {
  background-color: var(--color-gold) !important;
  color: #0b0b12 !important;
}

trix-toolbar .trix-button-group {
  border: 1px solid var(--color-border) !important;
  background-color: transparent !important;
}

/* Fix text-dark inside admin content area to prevent black-on-black text */
.admin-content .text-dark:not(.badge),
.admin-content a.text-dark:not(.badge) {
  color: var(--color-white) !important;
}

.admin-content a.text-dark:not(.badge):hover {
  color: var(--color-gold) !important;
}

/* Fix table header backgrounds in admin panel to stay dark */
.admin-content .table-light,
.admin-content thead.table-light,
.admin-content thead.table-light th {
  --bs-table-bg: rgba(255, 255, 255, 0.03) !important;
  background-color: rgba(255, 255, 255, 0.03) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--color-gold) !important;
}


