/*
Theme Name: DĀCZĀR Advanced Production WooCommerce Theme
Theme URI: https://daczar.com/
Author: DĀCZĀR Studios
Author URI: https://daczar.com/
Description: Complete, production-ready, ultra-premium Beyoung-style e-commerce theme for DĀCZĀR® designed for WooCommerce and Hostinger VPS. Includes native overrides for Single Product, Cart, Checkout, AJAX cart fragments, and mobile bottom nav bar.
Version: 2.5.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: daczar
Tags: e-commerce, woocommerce, beyoung-style, combo-builder, dark-mode, mobile-bottom-nav
*/

/* ==========================================================================
   DĀCZĀR® Production CSS System
   ========================================================================== */

:root {
  --bg-primary: #0A0A0C;
  --bg-surface: #121216;
  --bg-card: #18181E;
  --bg-glass: rgba(18, 18, 22, 0.88);
  --bg-modal: rgba(10, 10, 12, 0.94);

  --accent-yellow: #FFC700;
  --accent-yellow-hover: #FFD633;
  --accent-yellow-glow: rgba(255, 199, 0, 0.28);
  --accent-gold-gradient: linear-gradient(135deg, #FFE066 0%, #FFC700 50%, #D4A000 100%);

  --text-primary: #F9F8F6;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;

  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-yellow: rgba(255, 199, 0, 0.4);

  --badge-discount: #EF4444;
  --badge-new: #10B981;
  --badge-combo: #8B5CF6;

  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-yellow: 0 8px 24px rgba(255, 199, 0, 0.25);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --backdrop-blur: blur(16px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-normal: 0.35s var(--ease-out);
  
  --header-height: 80px;
  --container-max: 1360px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  padding-bottom: 60px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.gradient-text {
  background: var(--accent-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.yellow-underline {
  width: 60px;
  height: 4px;
  background: var(--accent-gold-gradient);
  margin-top: 0.5rem;
  border-radius: var(--radius-full);
}

.yellow-text { color: var(--accent-yellow); }
.yellow-icon { color: var(--accent-yellow); }

.badge-yellow {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 199, 0, 0.15);
  border: 1px solid var(--border-yellow);
  color: var(--accent-yellow);
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.btn-lg { padding: 1.1rem 2.25rem; font-size: 0.95rem; }
.btn-block { width: 100%; }

.btn-yellow {
  background: var(--accent-gold-gradient);
  color: #0A0A0C;
  box-shadow: var(--shadow-yellow);
}

.btn-yellow:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 12px 28px rgba(255, 199, 0, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
  background: rgba(255, 255, 255, 0.03);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.15rem;
  transition: var(--transition-fast);
}

.icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--accent-yellow); }
.action-badge-btn { position: relative; }

.badge-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--accent-yellow);
  color: #0A0A0C;
  font-size: 0.7rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Announcement Ticker */
.announcement-bar {
  background: #000000;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.45rem 0;
  font-size: 0.775rem;
  font-weight: 600;
}

.announcement-content { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.ticker-badge {
  background: var(--accent-gold-gradient);
  color: #0A0A0C;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ticker-text { color: var(--text-secondary); letter-spacing: 0.03em; }

.ticker-code {
  color: var(--accent-yellow);
  background: rgba(255, 199, 0, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px dashed var(--accent-yellow);
  cursor: pointer;
}

/* Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand-logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-crown { color: var(--accent-yellow); font-size: 1.35rem; }
.logo-text { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; letter-spacing: 0.15em; color: var(--text-primary); }
.logo-sub { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; color: var(--text-muted); align-self: flex-end; margin-bottom: 4px; }

.desktop-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 2.25rem; }
.nav-item { position: relative; }
.nav-link { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text-secondary); padding: 1.5rem 0; display: inline-flex; align-items: center; gap: 0.35rem; }
.nav-link:hover, .nav-link.active { color: var(--accent-yellow); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.search-bar-btn {
  display: flex; align-items: center; gap: 0.75rem; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-subtle); padding: 0.55rem 1rem; border-radius: var(--radius-full); color: var(--text-muted); font-size: 0.85rem;
}
.search-bar-btn:hover { border-color: var(--accent-yellow); color: var(--text-secondary); background: rgba(255, 255, 255, 0.08); }

/* Category Roundels Bar */
.category-roundels-bar { background: var(--bg-surface); border-bottom: 1px solid var(--border-subtle); padding: 1.25rem 0; overflow-x: auto; scrollbar-width: none; }
.category-roundels-bar::-webkit-scrollbar { display: none; }
.roundels-flex { display: inline-flex; gap: 1.75rem; padding: 0 1rem; }
.roundel-item { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; cursor: pointer; text-align: center; width: 90px; }
.roundel-img-box { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; border: 2px solid var(--accent-yellow); box-shadow: var(--shadow-yellow); transition: transform 0.3s var(--ease-out); }
.roundel-item:hover .roundel-img-box { transform: scale(1.1); }
.roundel-img-box img { width: 100%; height: 100%; object-fit: cover; }
.roundel-title { font-size: 0.725rem; font-weight: 800; letter-spacing: 0.03em; color: var(--text-primary); text-transform: uppercase; }

/* Hero Section */
.hero-section { position: relative; min-height: calc(100vh - var(--header-height)); display: flex; align-items: center; padding: 4rem 0; overflow: hidden; }
.hero-bg-wrapper { position: absolute; inset: 0; z-index: 1; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 11, 0.95) 0%, rgba(10, 10, 11, 0.75) 45%, rgba(10, 10, 11, 0.4) 100%); }
.hero-container { position: relative; z-index: 2; }
.hero-content { max-width: 680px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.9rem; background: rgba(255, 199, 0, 0.12); border: 1px solid var(--border-yellow); border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; color: var(--accent-yellow); margin-bottom: 1.5rem; }
.gold-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-yellow); box-shadow: 0 0 10px var(--accent-yellow); }
.hero-headline { font-size: 3.8rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 1.25rem; }
.hero-subline { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2.25rem; font-weight: 400; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 3rem; }

/* Combo Builder Section */
.combo-section { padding: 5rem 0; background: linear-gradient(180deg, var(--bg-primary) 0%, #15151C 100%); border-bottom: 1px solid var(--border-subtle); }
.combo-banner-box { background: linear-gradient(135deg, #1C1C24 0%, #121218 100%); border: 2px solid var(--accent-yellow); border-radius: var(--radius-lg); padding: 3rem 2rem; box-shadow: var(--shadow-lg); }
.combo-header { text-align: center; margin-bottom: 2.5rem; }
.combo-title { font-size: 2.4rem; font-weight: 800; color: var(--text-primary); }
.combo-subtitle { font-size: 1rem; color: var(--text-secondary); margin-top: 0.3rem; }
.combo-savings-badge { background: var(--badge-discount); color: #FFFFFF; font-weight: 800; font-size: 0.75rem; padding: 0.25rem 0.75rem; border-radius: var(--radius-full); margin-left: 0.5rem; }
.combo-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.combo-step-card { background: var(--bg-card); border: var(--glass-border); border-radius: var(--radius-md); padding: 1.25rem; text-align: center; position: relative; transition: var(--transition-fast); }
.combo-step-card.selected { border-color: var(--accent-yellow); box-shadow: var(--shadow-yellow); }
.step-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent-yellow); color: #0A0A0C; font-weight: 800; font-size: 0.675rem; padding: 0.15rem 0.6rem; border-radius: var(--radius-full); }
.step-img-box { aspect-ratio: 3 / 4; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 0.85rem; }
.step-img-box img { width: 100%; height: 100%; object-fit: cover; }
.combo-cta-bar { display: flex; align-items: center; justify-content: space-between; background: rgba(255, 199, 0, 0.1); border: 1px dashed var(--accent-yellow); padding: 1.25rem 2rem; border-radius: var(--radius-md); }
.combo-total-price { font-size: 1.8rem; font-weight: 800; color: var(--accent-yellow); }

/* Product Cards & Grid */
.catalog-section { padding: 6rem 0; }
.catalog-top-flex { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3rem; flex-wrap: wrap; gap: 1.5rem; }
.filter-tabs { display: flex; align-items: center; gap: 0.5rem; background: var(--bg-surface); padding: 0.35rem; border-radius: var(--radius-full); border: var(--glass-border); }
.filter-tab { padding: 0.55rem 1.25rem; border-radius: var(--radius-full); font-size: 0.775rem; font-weight: 800; letter-spacing: 0.05em; color: var(--text-secondary); transition: var(--transition-fast); }
.filter-tab.active { background: var(--accent-gold-gradient); color: #0A0A0B; font-weight: 800; box-shadow: var(--shadow-sm); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
.product-card { position: relative; background: var(--bg-card); border-radius: var(--radius-md); overflow: hidden; border: var(--glass-border); transition: var(--transition-normal); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); border-color: rgba(255, 199, 0, 0.4); box-shadow: var(--shadow-lg); }
.product-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #101014; }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.product-card:hover .product-img { transform: scale(1.06); }
.product-badge-group { position: absolute; top: 0.75rem; left: 0.75rem; display: flex; flex-direction: column; gap: 0.35rem; z-index: 2; }
.badge-tag { padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.badge-tag.tag-new { background: var(--badge-new); color: #FFFFFF; }
.badge-tag.tag-bestseller { background: var(--accent-yellow); color: #0A0A0C; }
.badge-tag.tag-discount { background: var(--badge-discount); color: #FFFFFF; }
.badge-tag.tag-combo { background: var(--badge-combo); color: #FFFFFF; }

.wishlist-btn-floating { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgba(10, 10, 11, 0.65); backdrop-filter: blur(8px); color: var(--text-primary); display: flex; align-items: center; justify-content: center; transition: var(--transition-fast); }
.wishlist-btn-floating:hover, .wishlist-btn-floating.active { background: #FFFFFF; color: #EF4444; }

.product-quick-bar { position: absolute; bottom: 0; left: 0; right: 0; padding: 0.75rem; background: rgba(10, 10, 11, 0.88); backdrop-filter: blur(10px); display: flex; gap: 0.5rem; transform: translateY(100%); transition: transform 0.3s var(--ease-out); z-index: 3; }
.product-card:hover .product-quick-bar { transform: translateY(0); }
.btn-quickview, .btn-quickadd { flex: 1; padding: 0.55rem; font-size: 0.725rem; font-weight: 800; border-radius: var(--radius-sm); }
.btn-quickview { background: rgba(255, 255, 255, 0.1); color: var(--text-primary); }
.btn-quickadd { background: var(--accent-gold-gradient); color: #0A0A0C; }

.product-info { padding: 1.25rem; display: flex; flex-direction: column; flex-grow: 1; }
.product-fabric { font-size: 0.675rem; font-weight: 800; letter-spacing: 0.1em; color: var(--accent-yellow); text-transform: uppercase; margin-bottom: 0.25rem; }
.product-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.color-swatches { display: flex; gap: 0.35rem; margin-bottom: 0.6rem; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); }
.product-price-row { display: flex; align-items: center; gap: 0.6rem; margin-top: auto; }
.price-current { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 800; color: var(--text-primary); }
.price-original { font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through; }
.price-off { font-size: 0.725rem; font-weight: 800; color: var(--badge-new); }

/* Native WooCommerce Elements Override */
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  outline: none;
}
.woocommerce form .form-row input.input-text:focus {
  border-color: var(--accent-yellow);
}
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: var(--accent-gold-gradient);
  color: #0A0A0C;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.75rem;
  border: none;
}
.woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
  filter: brightness(1.1);
  background: var(--accent-gold-gradient);
  color: #0A0A0C;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 900; background: var(--bg-glass); backdrop-filter: var(--backdrop-blur); border-top: 1px solid var(--border-subtle); display: none; justify-content: space-around; padding: 0.5rem 0; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; font-size: 0.675rem; font-weight: 700; color: var(--text-muted); }
.bottom-nav-item i { font-size: 1.15rem; }
.bottom-nav-item.active { color: var(--accent-yellow); }

/* Drawers & Modals */
.cart-drawer { position: fixed; inset: 0; z-index: 1000; background: var(--bg-modal); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: var(--transition-normal); }
.cart-drawer.open { opacity: 1; visibility: visible; }
.cart-drawer-content { position: absolute; top: 0; right: 0; bottom: 0; width: 100%; max-width: 440px; background: var(--bg-surface); border-left: var(--glass-border); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.4s var(--ease-out); }
.cart-drawer.open .cart-drawer-content { transform: translateX(0); }
.cart-header { padding: 1.5rem; border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: space-between; }
.free-shipping-bar { background: rgba(255, 199, 0, 0.08); padding: 0.85rem 1.5rem; border-bottom: 1px solid var(--border-subtle); font-size: 0.775rem; color: var(--text-secondary); }
.progress-track { width: 100%; height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: var(--radius-full); margin-top: 0.4rem; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: var(--accent-gold-gradient); transition: width 0.4s var(--ease-out); }
.cart-body { flex: 1; overflow-y: auto; padding: 1.5rem; }
.cart-footer { padding: 1.5rem; border-top: 1px solid var(--border-subtle); background: var(--bg-card); }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.total-row { font-size: 1.1rem; font-weight: 800; color: var(--text-primary); padding-top: 0.5rem; border-top: 1px dashed var(--border-subtle); margin-bottom: 1.25rem; }

.modal-overlay { position: fixed; inset: 0; z-index: 1000; background: var(--bg-modal); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; visibility: hidden; transition: var(--transition-fast); }
.modal-overlay.open { opacity: 1; visibility: visible; }
.search-modal-container { width: 100%; max-width: 720px; background: var(--bg-surface); border: var(--glass-border); border-radius: var(--radius-lg); overflow: hidden; }
.search-header { display: flex; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-subtle); }
.search-header input { flex: 1; background: transparent; border: none; color: var(--text-primary); font-size: 1.1rem; outline: none; }
.search-results-container { padding: 1.5rem; max-height: 480px; overflow-y: auto; }
.quickview-modal-container { position: relative; width: 100%; max-width: 880px; background: var(--bg-surface); border: var(--glass-border); border-radius: var(--radius-lg); overflow: hidden; }
.close-modal-btn { position: absolute; top: 1rem; right: 1rem; z-index: 10; background: rgba(0, 0, 0, 0.5); }
.quickview-grid { display: grid; grid-template-columns: 1fr 1.1fr; }
.qv-img-col img { width: 100%; height: 100%; object-fit: cover; }
.qv-info-col { padding: 2.5rem 2rem; display: flex; flex-direction: column; }

.toast-container { position: fixed; bottom: 5rem; right: 2rem; z-index: 2000; display: flex; flex-direction: column; gap: 0.75rem; }
.toast { background: var(--bg-card); border: 1px solid var(--accent-yellow); color: var(--text-primary); padding: 0.85rem 1.35rem; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; font-weight: 600; }

.mobile-only { display: none; }
@media (max-width: 1024px) {
  .desktop-nav { display: none; }
  .mobile-only { display: inline-flex; }
  .mobile-bottom-nav { display: flex; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .combo-steps-grid { grid-template-columns: 1fr; }
  .single-product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
  .combo-cta-bar { flex-direction: column; gap: 1rem; text-align: center; }
}
