/*
Theme Name: DarkFashion Romalux
Theme URI: https://romaluxjewelry.com
Template: darkfashion
Author: Romalux
Description: Custom child theme for Romalux Jewelry - DarkFashion base with custom hero, animations, and branding.
Version: 1.0.0
*/

/* ============================================================
   ROMALUX BRAND TOKENS
   ============================================================ */
:root {
  --rlx-black:      #000000;
  --rlx-dark:       #0a0a0a;
  --rlx-card:       #111111;
  --rlx-border:     #1e1e1e;
  --rlx-white:      #ffffff;
  --rlx-gray:       #888888;
  --rlx-red:        #E31B23;
  --rlx-red-dark:   #b8141b;
  --rlx-font-sans:  'Rajdhani', 'Arial Narrow', sans-serif;
  --rlx-font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --rlx-transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================
   GLOBAL RESET OVERRIDES
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: var(--rlx-black);
  color: var(--rlx-white);
  font-family: var(--rlx-font-sans);
  margin: 0;
  overflow-x: hidden;
}

/* Override DarkFashion parent theme wrappers */
#page, #content, .site-content, .content-area,
.entry-content, .post-content, .page-content,
#primary, .site-main, main.site-main {
  background: var(--rlx-black) !important;
  color: var(--rlx-white) !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

a { color: var(--rlx-white); text-decoration: none; }
a:hover { color: var(--rlx-red); }
img { max-width: 100%; display: block; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.rlx-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: var(--rlx-black);
}

.rlx-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(227,27,35,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.02) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.rlx-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 2rem;
}

.rlx-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  gap: 0;
}

.rlx-brand-roma,
.rlx-brand-lux {
  font-family: var(--rlx-font-sans);
  font-size: clamp(5rem, 14vw, 16rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rlx-white);
  line-height: 1;
}

.rlx-brand-lux { color: var(--rlx-red); }

.rlx-brand-jewelry {
  font-family: var(--rlx-font-sans);
  font-size: clamp(3rem, 8vw, 9rem);
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rlx-white);
  line-height: 1;
  margin-top: -0.1em;
}

.rlx-diamond-wrap {
  width: clamp(80px, 12vw, 180px);
  height: clamp(80px, 12vw, 180px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#rlx-diamond-canvas {
  width: 100%;
  height: 100%;
}

.rlx-hero-taglines {
  position: absolute;
  bottom: 3rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 3rem;
  z-index: 2;
  font-family: var(--rlx-font-serif);
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  font-style: italic;
}

.rlx-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}

.rlx-scroll-hint span { width: 1px; height: 40px; background: rgba(255,255,255,0.2); animation: rlx-scrollpulse 2s ease-in-out infinite; }
@keyframes rlx-scrollpulse { 0%,100%{opacity:0.2} 50%{opacity:0.8} }

/* ============================================================
   MARQUEE STRIP
   ============================================================ */
.rlx-marquee {
  width: 100%;
  background: var(--rlx-red);
  overflow: hidden;
  padding: 0.6rem 0;
  position: relative;
}

.rlx-marquee-inner {
  display: flex;
  width: max-content;
  animation: rlx-marquee 30s linear infinite;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--rlx-white);
}

.rlx-marquee-inner span { padding: 0 3rem; }
@keyframes rlx-marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ============================================================
   EDITORIAL SECTION
   ============================================================ */
.rlx-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  min-height: 80vh;
  align-items: center;
  background: var(--rlx-black);
  width: 100%;
}

.rlx-editorial-left,
.rlx-editorial-right {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--rlx-black);
}

.rlx-editorial-left { text-align: left; }
.rlx-editorial-right { text-align: right; }

.rlx-editorial-heading {
  font-family: var(--rlx-font-serif);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
  color: var(--rlx-white);
  margin: 0;
}

.rlx-editorial-sub {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rlx-gray);
  margin-top: 1.5rem;
}

.rlx-editorial-img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
}

/* ============================================================
   CATEGORY GRID SECTIONS
   ============================================================ */
.rlx-category {
  position: relative;
  padding: 0;
  border-top: 1px solid var(--rlx-border);
  background: var(--rlx-black);
  width: 100%;
}

.rlx-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  border-bottom: 1px solid var(--rlx-border);
}

.rlx-category-title {
  font-family: var(--rlx-font-sans);
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rlx-white);
  margin: 0;
}

.rlx-see-all {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rlx-white);
  border-bottom: 1px solid var(--rlx-white);
  padding-bottom: 2px;
  transition: color var(--rlx-transition), border-color var(--rlx-transition);
}
.rlx-see-all:hover { color: var(--rlx-red); border-color: var(--rlx-red); }

.rlx-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 70vh;
}

.rlx-category-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.rlx-category-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.rlx-product-card {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--rlx-border);
  cursor: pointer;
  background: var(--rlx-card);
}
.rlx-product-card:last-child { border-right: none; }

.rlx-product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.rlx-product-card:hover img { transform: scale(1.04); }

.rlx-product-card .rlx-card-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--rlx-transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}
.rlx-product-card:hover .rlx-card-hover { opacity: 1; }

.rlx-card-name {
  font-family: var(--rlx-font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--rlx-white);
  margin: 0 0 0.3rem;
}

.rlx-card-price {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   NAVIGATION OVERRIDE
   ============================================================ */
.darkfashion-header .site-logo img { max-height: 50px; width: auto; }

/* ============================================================
   WOOCOMMERCE PRODUCT HOVER
   ============================================================ */
.woocommerce ul.products li.product .rlx-thumb-wrap { position: relative; overflow: hidden; }
.woocommerce ul.products li.product .rlx-thumb-secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.woocommerce ul.products li.product:hover .rlx-thumb-secondary { opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .rlx-editorial { grid-template-columns: 1fr 1fr; }
  .rlx-editorial-right { display: none; }
  .rlx-category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .rlx-brand-roma, .rlx-brand-lux { font-size: clamp(3rem, 18vw, 6rem); }
  .rlx-brand-jewelry { font-size: clamp(1.5rem, 10vw, 3rem); }
  .rlx-diamond-wrap { width: 60px; height: 60px; }
  .rlx-editorial { grid-template-columns: 1fr; }
  .rlx-editorial-img { height: 50vh; }
  .rlx-category-grid { grid-template-columns: 1fr 1fr; }
  .rlx-category-header { padding: 1.5rem 1.5rem; }
  .rlx-hero-taglines { display: none; }
}

/* ============================================================
   FORCE DARK — override DarkFashion customizer inline styles
   ============================================================ */
body,
body.custom-background {
  background-color: #000000 !important;
  background-image: none !important;
}

.rlx-editorial,
.rlx-editorial-left,
.rlx-editorial-right {
  background: #000000 !important;
  color: #ffffff !important;
}

.rlx-category,
.rlx-category-header {
  background: #000000 !important;
  color: #ffffff !important;
}
