/*
Theme Name: Rubelune
Theme URI: https://rubelune.com
Author: Rubelune
Author URI: https://rubelune.com
Description: A custom dark-luxury theme for Rubelune Jewelry, built for WooCommerce. Inspired by the harmony of gemstones and moonlight.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: rubelune
Tags: e-commerce, dark, luxury, woocommerce
WC requires at least: 7.0
*/

:root {
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --bg-elevated: #242424;
  --gold: #c9a227;
  --gold-light: #e3c567;
  --text-primary: #f0ece2;
  --text-secondary: #b8b2a7;
  --text-muted: #7a756d;
  --border: rgba(201, 162, 39, 0.15);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button, input, textarea, select { font-family: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,15,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; letter-spacing: 0.04em; color: var(--text-primary); }
.site-logo .logo-img { height: 40px; width: auto; }
.site-logo em { color: var(--gold); font-style: italic; }
.main-nav { display: flex; gap: 32px; list-style: none; }
.main-nav a { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); font-weight: 500; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.cart-link { position: relative; font-size: 1.1rem; }
.cart-count {
  position: absolute; top: -8px; right: -10px;
  background: var(--gold); color: #0f0f0f;
  font-size: 0.65rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
}

/* Footer */
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 64px 0 32px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--text-primary); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); text-align: center; color: var(--text-muted); font-size: 0.8rem; }

/* Hero */
.hero { position: relative; min-height: 72vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(201,162,39,0.08) 0%, transparent 70%); pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: 0 24px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 400; line-height: 1.15; margin-bottom: 20px; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 36px; font-weight: 300; }

/* Buttons */
.btn, .button, button, input[type="submit"], .woocommerce a.button, .woocommerce button.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 30px; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--gold); color: var(--gold);
  background: transparent; cursor: pointer;
  transition: all var(--transition); border-radius: 0;
}
.btn:hover, .button:hover, button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--gold); color: #0f0f0f; }
.btn-primary, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
  background: var(--gold); color: #0f0f0f; border-color: var(--gold);
}
.btn-primary:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--gold-light); border-color: var(--gold-light); color: #0f0f0f; }

/* Section titles */
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3vw, 2.4rem); text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 0.95rem; margin-bottom: 48px; }

/* Content */
.entry-content h1, .entry-content h2, .entry-content h3 { font-family: 'Playfair Display', serif; margin: 32px 0 12px; }
.entry-content h2 { color: var(--gold); }
.entry-content p { color: var(--text-secondary); margin-bottom: 16px; }
.entry-content ul { color: var(--text-secondary); padding-left: 20px; margin-bottom: 16px; }
.entry-content li { margin-bottom: 8px; }

/* Responsive */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
