/* ============================
   DENIMDOTSHOP — Global Styles
   ============================ */

:root {
  --bg: #080c18;
  --card-bg: #0f1623;
  --border: #1e2a40;
  --primary: #c9a84c;
  --primary-hover: #b8942e;
  --text: #f0f0f0;
  --muted: #7a8ba0;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Navbar ---- */
#mainNav {
  transition: all 0.3s ease;
  padding: 1rem 0;
}
#mainNav.nav-transparent { background: transparent; border-bottom: 1px solid transparent; }
#mainNav.nav-solid, #mainNav.scrolled {
  background: rgba(8,12,24,0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
}
.brand-logo { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 800; color: var(--primary) !important; text-decoration: none; letter-spacing: -1px; }
.brand-logo span { color: var(--text); }
.navbar-nav .nav-link { color: rgba(255,255,255,0.7) !important; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.4rem 1rem !important; transition: color 0.2s; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--primary) !important; }
.nav-icon { font-size: 1.1rem; text-decoration: none; transition: color 0.2s; }
.nav-icon:hover { color: var(--primary) !important; }
.cart-badge { position: absolute; top: -8px; right: -8px; background: var(--primary); color: #000; font-size: 0.65rem; font-weight: 800; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ---- Hero ---- */
.hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: absolute;
  overflow: hidden;
  background: linear-gradient(135deg, #080c18 0%, #0d1830 50%, #080c18 100%);
}
.hero-slide {
	<div class="hero-slide <?php echo $i===0 ? 'active' : ''; ?>"
     style="background-image:url('assets/images/banner1.jpg');background-size:cover;background-position:center;">
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-slide {
    background-size: contain !important;
    background-repeat: no-repeat;
    background-position: center;
}
.hero-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.35em; text-transform: uppercase; color: var(--primary); }
.hero-title { font-family: var(--font-serif); font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; line-height: 1.05; }
.hero-subtitle { color: var(--muted); font-size: 1.1rem; max-width: 480px; }

/* ---- Section Headers ---- */
.section-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.35em; text-transform: uppercase; color: var(--primary); }
.section-title { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }

/* ---- Product Card ---- */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.product-card:hover { border-color: rgba(201,168,76,0.4); transform: translateY(-4px); }
.product-img-wrap { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #111927; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 10px;
}
.badge-new { background: var(--primary); color: #000; }
.badge-trending { background: var(--text); color: #000; }
.product-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); }
.product-name { font-weight: 600; font-size: 0.95rem; color: var(--text); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
.product-name:hover { color: var(--primary); }
.product-price { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--text); }
.product-rating { font-size: 0.78rem; color: var(--primary); }

/* ---- Buttons ---- */
.btn-primary-custom {
  background: var(--primary); color: #000; border: none;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.65rem 1.5rem; transition: background 0.2s, transform 0.2s; text-decoration: none; display: inline-block;
}
.btn-primary-custom:hover { background: var(--primary-hover); color: #000; transform: translateY(-1px); }
.btn-outline-custom {
  background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.65rem 1.5rem; transition: all 0.2s; text-decoration: none; display: inline-block;
}
.btn-outline-custom:hover { border-color: var(--primary); color: var(--primary); }
.btn-whatsapp {
  background: #25D366; color: #fff; border: none;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.65rem 1.5rem; transition: background 0.2s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn-whatsapp:hover { background: #1db954; color: #fff; }
.btn-order {
  background: transparent; color: var(--primary); border: 1px solid var(--primary);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4rem 1rem; transition: all 0.2s; text-decoration: none; display: inline-block;
}
.btn-order:hover { background: var(--primary); color: #000; }

/* ---- Forms ---- */
.form-control-dark {
  background: #0a1020; border: 1px solid var(--border); color: var(--text);
  padding: 0.75rem 1rem; font-size: 0.9rem; transition: border-color 0.2s; border-radius: 0;
}
.form-control-dark:focus { background: #0a1020; border-color: var(--primary); color: var(--text); box-shadow: none; outline: none; }
.form-control-dark::placeholder { color: var(--muted); }
.form-label-dark { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

/* ---- Category cards ---- */
.cat-card {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #0a0e1a, #1a2540);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: 1.25rem; position: relative; overflow: hidden; text-decoration: none;
  transition: border-color 0.3s, transform 0.3s;
}
.cat-card::before { content: attr(data-letter); position: absolute; top: 10px; right: 12px; font-family: var(--font-serif); font-size: 4rem; font-weight: 900; color: rgba(255,255,255,0.06); pointer-events: none; transition: color 0.3s; line-height: 1; }
.cat-card:hover { border-color: rgba(201,168,76,0.5); transform: translateY(-3px); }
.cat-card:hover::before { color: rgba(255,255,255,0.12); }
.cat-card-name { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.cat-card-count { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

/* ---- Review card ---- */
.review-card { background: var(--card-bg); border: 1px solid var(--border); padding: 2rem; }
.review-stars { color: var(--primary); font-size: 1rem; letter-spacing: 2px; }
.review-text { color: var(--muted); font-style: italic; font-size: 0.9rem; line-height: 1.7; }

/* ---- Stats ---- */
.stat-number { font-family: var(--font-serif); font-size: 3rem; font-weight: 900; color: var(--primary); }

/* ---- Features ---- */
.feature-icon { width: 56px; height: 56px; border: 1px solid rgba(201,168,76,0.3); background: rgba(201,168,76,0.08); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--primary); margin: 0 auto 1rem; }

/* ---- Footer ---- */
.site-footer { background: var(--card-bg); border-top: 1px solid var(--border); }
.footer-heading { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text); margin-bottom: 1rem; }
.footer-links { margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.social-link { font-size: 1.1rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.social-link:hover { color: var(--primary); }

/* ---- Floating WhatsApp ---- */
.whatsapp-float {
  position: fixed; bottom: 24px; left: 24px; z-index: 999;
  background: #25D366; color: #fff; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4); text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: var(--card-bg); color: var(--text); border: 1px solid var(--border);
  width: 44px; height: 44px; display: none; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.back-to-top:hover { background: var(--primary); color: #000; border-color: var(--primary); }
.back-to-top.show { display: flex; }

/* ---- Cart ---- */
.cart-item { background: var(--card-bg); border: 1px solid var(--border); padding: 1rem; display: flex; gap: 1rem; align-items: center; }
.cart-item-img { width: 80px; height: 96px; object-fit: cover; background: #111927; flex-shrink: 0; }
.cart-summary { background: var(--card-bg); border: 1px solid var(--border); padding: 1.5rem; position: sticky; top: 90px; }
.qty-btn { width: 32px; height: 32px; border: 1px solid var(--border); background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color 0.2s; font-size: 0.9rem; }
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ---- Product Detail ---- */
.size-btn { min-width: 44px; height: 40px; padding: 0 12px; border: 1px solid var(--border); background: transparent; color: var(--text); font-size: 0.85rem; cursor: pointer; transition: all 0.2s; }
.size-btn:hover, .size-btn.active { background: var(--primary); color: #000; border-color: var(--primary); }
.product-gallery-main { aspect-ratio: 3/4; overflow: hidden; background: #111927; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumb { width: 80px; height: 80px; overflow: hidden; border: 2px solid var(--border); cursor: pointer; transition: border-color 0.2s; flex-shrink: 0; }
.product-gallery-thumb.active, .product-gallery-thumb:hover { border-color: var(--primary); }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Admin ---- */
.admin-sidebar { width: 220px; background: var(--card-bg); border-right: 1px solid var(--border); min-height: 100vh; position: fixed; top: 0; left: 0; z-index: 100; display: flex; flex-direction: column; }
.admin-main { margin-left: 220px; min-height: 100vh; padding: 2rem; }
.admin-nav-link { display: flex; align-items: center; gap: 10px; padding: 0.7rem 1.2rem; color: var(--muted); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: all 0.2s; }
.admin-nav-link:hover, .admin-nav-link.active { background: rgba(201,168,76,0.08); color: var(--primary); }
.admin-nav-link i { font-size: 1rem; }
.stat-card { background: var(--card-bg); border: 1px solid var(--border); padding: 1.5rem; }
.stat-card .stat-val { font-family: var(--font-serif); font-size: 2rem; font-weight: 800; color: var(--text); }
.admin-table { background: var(--card-bg); border: 1px solid var(--border); border-collapse: collapse; width: 100%; }
.admin-table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); padding: 0.9rem 1rem; border-bottom: 1px solid var(--border); font-weight: 600; }
.admin-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.badge-featured { font-size: 0.65rem; background: rgba(201,168,76,0.15); color: var(--primary); padding: 2px 8px; border-radius: 2px; }
.badge-trending { font-size: 0.65rem; background: rgba(255,200,0,0.15); color: #ffc800; padding: 2px 8px; border-radius: 2px; }
.badge-new { font-size: 0.65rem; background: rgba(56,161,105,0.15); color: #48bb78; padding: 2px 8px; border-radius: 2px; }
.modal-dark .modal-content { background: var(--card-bg); border: 1px solid var(--border); color: var(--text); border-radius: 0; }
.modal-dark .modal-header { border-bottom: 1px solid var(--border); }
.modal-dark .modal-footer { border-top: 1px solid var(--border); }
.btn-icon { background: none; border: none; color: var(--muted); cursor: pointer; transition: color 0.2s; padding: 4px 8px; }
.btn-icon:hover.edit { color: var(--primary); }
.btn-icon:hover.del { color: #e53e3e; }

/* ---- Hero Slider Dots ---- */
.hero-dots { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dot { width: 24px; height: 3px; background: rgba(255,255,255,0.3); cursor: pointer; transition: all 0.3s; }
.hero-dot.active { background: var(--primary); width: 40px; }

/* ---- Alerts ---- */
.alert-dark-success { background: rgba(56,161,105,0.1); border: 1px solid rgba(56,161,105,0.3); color: #48bb78; padding: 0.75rem 1.25rem; border-radius: 0; }
.alert-dark-danger { background: rgba(229,62,62,0.1); border: 1px solid rgba(229,62,62,0.3); color: #fc8181; padding: 0.75rem 1.25rem; border-radius: 0; }

/* ---- Page Hero ---- */
.page-hero { padding: 7rem 0 3rem; background: linear-gradient(135deg, #080c18, #0d1830); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.08) 0%, transparent 60%); }

/* ---- Misc ---- */
.border-dark-custom { border-color: var(--border) !important; }
.text-primary-custom { color: var(--primary) !important; }
.bg-card { background: var(--card-bg) !important; }
.divider { border-color: var(--border); }
select.form-control-dark option { background: #0a1020; }

@media (max-width: 991px) {
  .admin-sidebar { position: relative; width: 100%; min-height: auto; }
  .admin-main { margin-left: 0; }
  .navbar-collapse { background: rgba(8,12,24,0.97); padding: 1rem; border-top: 1px solid var(--border); }
}
