/*
Theme Name: Dragon Bag Co.
Theme URI: https://dragonbagco.com
Author: Dragon Bag Co.
Author URI: https://dragonbagco.com
Description: A premium Chinese-inspired e-commerce theme for Dragon Bag Co. Dark luxury aesthetic with gold accents, designed for WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dragon-bag-co
Tags: e-commerce, woocommerce, dark, luxury, chinese, responsive, custom-logo, custom-menu, featured-images, threaded-comments
*/

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --black: #0a0a0a;
  --black-light: #111;
  --gray-dark: #1a1a1a;
  --gray: #2a2a2a;
  --gray-mid: #555;
  --gray-light: #888;
  --gray-lighter: #ccc;
  --white: #ffffff;
  --white-muted: rgba(255,255,255,0.85);
  --gold: #c9a227;
  --gold-light: #e8c95a;
  --gold-dark: #a0831a;
  --border: rgba(255,255,255,0.08);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; }

/* ============================================
   TOP ANNOUNCEMENT BAR
   ============================================ */
.top-bar {
  background: var(--black);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-light);
  overflow: hidden;
  white-space: nowrap;
}
.top-bar span {
  display: inline-block;
  animation: scrollText 20s linear infinite;
  padding-left: 100%;
}
@keyframes scrollText {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--white);
}
.site-logo span { color: var(--gold); }
.site-logo img { max-height: 48px; width: auto; }

.main-navigation { display: flex; gap: 40px; }
.main-navigation a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-lighter);
  transition: color 0.3s;
  position: relative;
}
.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--white);
}
.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 24px; }
.nav-actions a,
.nav-actions button {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}
.nav-actions svg {
  width: 20px; height: 20px;
  stroke: var(--gray-lighter);
  fill: none;
  stroke-width: 1.5;
  transition: stroke 0.3s;
}
.nav-actions a:hover svg,
.nav-actions button:hover svg { stroke: var(--gold); }

.cart-icon { position: relative; }
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  width: 16px; height: 16px;
  background: var(--gold);
  color: var(--black);
  font-size: 10px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--gray-lighter);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: brightness(0.35) saturate(0.7);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.3) 0%,
    rgba(10,10,10,0.6) 60%,
    var(--black) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  padding: 0 24px;
}
.hero-subtitle {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
  font-weight: 500;
}
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--white);
}
.hero-desc {
  font-size: 16px;
  color: var(--white-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  font-weight: 300;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-family: inherit;
}
.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================
   FEATURES STRIP
   ============================================ */
.features-strip {
  background: var(--gray-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
}
.features-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.feature-item { text-align: center; }
.feature-item svg {
  width: 32px; height: 32px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  margin: 0 auto 12px;
}
.feature-item h4 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.feature-item p { font-size: 13px; color: var(--gray-light); font-weight: 300; }

/* ============================================
   SECTION LAYOUT
   ============================================ */
.section {
  padding: 100px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 500;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-desc {
  color: var(--gray-light);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto;
  font-weight: 300;
}

/* ============================================
   PRODUCT GRID (WooCommerce compatible)
   ============================================ */
.woocommerce .products,
.products-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 32px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce li.product,
.product-card {
  background: var(--black-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  cursor: pointer;
  margin: 0 !important;
}
.woocommerce li.product:hover,
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,162,39,0.3);
}

.woocommerce li.product a img,
.product-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1.15;
  background: linear-gradient(135deg, #161616 0%, #0e0e0e 100%);
  overflow: hidden;
}
.product-img-wrap img,
.woocommerce li.product a img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.5s !important;
}
.product-card:hover .product-img-wrap img,
.woocommerce li.product:hover a img {
  transform: scale(1.05) !important;
}

.product-tag,
.woocommerce span.onsale {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  z-index: 1;
}
.tag-bestseller,
.woocommerce span.onsale { background: var(--gold); color: var(--black); }
.tag-new { background: var(--white); color: var(--black); }
.tag-hot { background: #c0392b; color: var(--white); }
.tag-limited { background: var(--gray-mid); color: var(--white); border: 1px solid var(--gray-light); }

.product-info,
.woocommerce li.product .woocommerce-loop-product__title,
.woocommerce li.product .price { padding: 20px; }

.product-series {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
  font-weight: 500;
}
.product-name,
.woocommerce li.product .woocommerce-loop-product__title {
  font-size: 15px !important;
  font-weight: 500 !important;
  margin-bottom: 8px !important;
  color: var(--white) !important;
  padding: 0 !important;
}
.product-meta { display: flex; justify-content: space-between; align-items: center; }
.product-price,
.woocommerce li.product .price {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--white) !important;
  padding: 0 !important;
}
.product-price .old,
.woocommerce li.product .price del {
  font-size: 13px;
  color: var(--gray-mid);
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: 400;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--gray-light);
}
.product-rating svg { width: 14px; height: 14px; fill: var(--gold); stroke: none; }

/* Add to cart button */
.product-actions {
  position: absolute;
  bottom: 16px; right: 16px;
  display: flex; gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s;
}
.product-card:hover .product-actions,
.woocommerce li.product:hover .product-actions {
  opacity: 1;
  transform: translateY(0);
}
.product-actions button,
.woocommerce li.product .button {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  font-size: 0;
}
.product-actions button:hover,
.woocommerce li.product .button:hover { background: var(--gold); }
.product-actions svg { width: 16px; height: 16px; stroke: var(--black); fill: none; stroke-width: 2; }

/* Category filter buttons */
.categories { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.cat-btn {
  padding: 10px 24px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--gray-lighter);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 2px;
  font-family: inherit;
}
.cat-btn:hover, .cat-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,162,39,0.05);
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
  background: linear-gradient(to bottom, var(--black-light), var(--black));
  border-top: 1px solid var(--border);
  padding: 100px 24px;
  text-align: center;
}
.newsletter-inner { max-width: 560px; margin: 0 auto; }
.newsletter h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 600;
  margin-bottom: 12px;
}
.newsletter p { color: var(--gray-light); margin-bottom: 32px; font-size: 15px; font-weight: 300; }
.newsletter-form { display: flex; gap: 12px; max-width: 440px; margin: 0 auto; }
.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  background: var(--black);
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 14px;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.3s;
  font-family: inherit;
}
.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form input::placeholder { color: var(--gray-mid); }
.newsletter-form .btn { padding: 14px 28px; }
.newsletter-note { font-size: 12px; color: var(--gray-mid); margin-top: 16px; }

/* ============================================
   REVIEWS
   ============================================ */
.reviews-bg { background: var(--black-light); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
  transition: border-color 0.3s;
}
.review-card:hover { border-color: rgba(201,162,39,0.2); }
.review-stars { display: flex; gap: 2px; margin-bottom: 16px; }
.review-stars svg { width: 16px; height: 16px; fill: var(--gold); stroke: none; }
.review-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--white-muted);
  margin-bottom: 20px;
  font-weight: 300;
}
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gray), var(--gray-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-lighter);
  flex-shrink: 0;
}
.review-name { font-size: 14px; font-weight: 500; }
.review-verified {
  font-size: 12px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 4px;
}
.review-verified svg { width: 14px; height: 14px; fill: var(--gold); }
.review-location { font-size: 12px; color: var(--gray-mid); }

/* ============================================
   LOGISTICS BAR
   ============================================ */
.logistics-bar {
  background: var(--gray-dark);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}
.logistics-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.logistics-item h4 {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.logistics-item p {
  font-size: 13px;
  color: var(--gray-light);
  line-height: 1.7;
  font-weight: 300;
}
.logistics-badge {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 11px;
  color: var(--gray-lighter);
  margin-top: 8px;
  letter-spacing: 0.05em;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 64px 24px 32px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--white);
  font-weight: 500;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 13px;
  color: var(--gray-light);
  margin-bottom: 10px;
  transition: color 0.3s;
  font-weight: 300;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 12px; color: var(--gray-mid); }
.footer-socials { display: flex; gap: 16px; }
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s;
}
.footer-socials a:hover { border-color: var(--gold); }
.footer-socials svg {
  width: 16px; height: 16px;
  stroke: var(--gray-light);
  fill: none;
  stroke-width: 1.5;
}
.footer-socials a:hover svg { stroke: var(--gold); }

/* ============================================
   WOOCOMMERCE OVERRIDES
   ============================================ */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--gold) !important;
  color: var(--black) !important;
  border-radius: 2px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 12px 28px !important;
  transition: background 0.3s !important;
  border: none !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--gold-light) !important;
}
.woocommerce .woocommerce-notices-wrapper .woocommerce-message {
  background: var(--gray-dark);
  color: var(--white);
  border-top-color: var(--gold);
}
.woocommerce-cart table.cart,
.woocommerce-checkout #order_review {
  background: var(--black-light);
  color: var(--white);
}
.woocommerce table.shop_table {
  border-color: var(--border) !important;
  color: var(--white) !important;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: var(--border) !important;
  color: var(--white) !important;
}
.woocommerce-input-wrapper input,
.woocommerce form .input-text {
  background: var(--black) !important;
  border: 1px solid var(--border) !important;
  color: var(--white) !important;
  border-radius: 2px !important;
}
.woocommerce form .input-text:focus {
  border-color: var(--gold) !important;
  outline: none !important;
}
.woocommerce .star-rating span::before { color: var(--gold); }
.woocommerce .star-rating::before { color: var(--gray); }

/* ============================================
   SCROLL HINT
   ============================================ */
.scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-light);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
.scroll-hint svg { width: 24px; height: 24px; stroke: var(--gray-light); fill: none; stroke-width: 1.5; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .main-navigation { display: none; }
  .menu-toggle { display: flex; }
  .hero-title { font-size: 36px; }
  .section { padding: 64px 24px; }
  .woocommerce .products,
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .reviews-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .footer-top { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 480px) {
  .woocommerce .products,
  .products-grid {
    grid-template-columns: 1fr !important;
  }
  .footer-top { grid-template-columns: 1fr; }
}
