/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/* ============================================================
   PREMIUM UPGRADE — Dark Luxury Edition
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Montserrat:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── ROOT VARIABLES ─────────────────────────────────────── */
:root {
  --gold:        #c9a84c;
  --gold-light:  #e8c96a;
  --gold-dark:   #8a6828;
  --dark:        #0d0d0d;
  --dark-2:      #141414;
  --dark-3:      #1c1c1c;
  --dark-4:      #242424;
  --mid:         #2e2e2e;
  --border:      rgba(201,168,76,0.18);
  --text-light:  #f0ece2;
  --text-muted:  #888;
  --white:       #ffffff;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --transition:  0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── GLOBAL BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--dark) !important;
  color: var(--text-light) !important;
  font-family: 'Inter', 'Montserrat', sans-serif !important;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 600;
  color: var(--text-light) !important;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

h1, .h1 { font-size: clamp(2.4rem, 5vw, 4rem) !important; }
h2, .h2 { font-size: clamp(1.8rem, 3.5vw, 3rem) !important; }
h3, .h3 { font-size: clamp(1.3rem, 2.5vw, 2rem) !important; }

p, li, span, td, label {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.95rem;
  color: rgba(240,236,226,0.85) !important;
  line-height: 1.8;
}

a {
  color: var(--gold) !important;
  text-decoration: none !important;
  transition: color var(--transition);
}
a:hover { color: var(--gold-light) !important; }

/* Gold highlight on section headings */
.section-title, .title-h2, .large-text,
h2.entry-title, .shop-page-title {
  position: relative;
  display: inline-block;
}
.section-title::after, .title-h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-top: 12px;
}

/* ── HEADER / NAVIGATION ────────────────────────────────── */
#header,
.header-wrapper,
.header-main,
header.header {
  background: rgba(13,13,13,0.97) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 2px 40px rgba(0,0,0,0.6) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  transition: background var(--transition), box-shadow var(--transition) !important;
}

/* Nav links */
#main-menu > li > a,
.nav-item > a,
.header-nav a {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: rgba(240,236,226,0.8) !important;
  padding: 8px 16px !important;
  transition: color var(--transition) !important;
}
#main-menu > li > a:hover,
.nav-item > a:hover {
  color: var(--gold) !important;
}
#main-menu > li.active > a,
#main-menu > li.current-menu-item > a {
  color: var(--gold) !important;
}

/* Logo area */
.header-logo, .logo-text {
  filter: brightness(1.1);
}

/* Top bar (if present) */
.top-bar, .header-top {
  background: var(--dark-2) !important;
  border-bottom: 1px solid var(--border) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
}

/* Cart icon */
.header-cart .icon-cart,
.cart-icon { color: var(--gold) !important; }
.cart-count {
  background: var(--gold) !important;
  color: var(--dark) !important;
  font-weight: 700 !important;
}

/* ── DROPDOWN MENUS ─────────────────────────────────────── */
.nav-dropdown,
.sub-menu,
.dropdown-menu {
  background: var(--dark-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8) !important;
  padding: 8px 0 !important;
}
.nav-dropdown a,
.sub-menu a,
.dropdown-menu a {
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  padding: 10px 20px !important;
  color: rgba(240,236,226,0.75) !important;
  border-bottom: 1px solid rgba(201,168,76,0.06) !important;
  transition: background var(--transition), color var(--transition) !important;
}
.nav-dropdown a:hover,
.sub-menu a:hover {
  background: var(--dark-3) !important;
  color: var(--gold) !important;
}

/* ── HERO / BANNER ──────────────────────────────────────── */
.banner-inner,
.slider-wrapper,
.ux-banner,
.banner-bg {
  position: relative !important;
}
.banner-inner::after,
.slider-wrapper::after,
.ux-banner::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.7) 0%,
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.6) 100%
  ) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}
.banner-inner > *, .slider-wrapper > *, .ux-banner > * {
  position: relative !important;
  z-index: 2 !important;
}

/* Hero text */
.banner-inner h1, .banner-inner h2,
.slider-wrapper h1, .slider-wrapper h2,
.ux-banner h1, .ux-banner h2 {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: clamp(2.5rem, 6vw, 5rem) !important;
  font-weight: 600 !important;
  color: var(--white) !important;
  text-shadow: 0 4px 30px rgba(0,0,0,0.8) !important;
  letter-spacing: 0.04em !important;
  line-height: 1.1 !important;
}
.banner-inner p, .slider-wrapper p, .ux-banner p {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: var(--gold-light) !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6) !important;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.button,
.btn,
.wp-element-button,
button[type="submit"],
input[type="submit"],
.single_add_to_cart_button,
.add_to_cart_button,
.checkout-button,
a.button {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  padding: 14px 32px !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--gold) !important;
  background: transparent !important;
  color: var(--gold) !important;
  cursor: pointer !important;
  transition: all var(--transition) !important;
  position: relative !important;
  overflow: hidden !important;
}
.button::before, .btn::before,
.add_to_cart_button::before,
.single_add_to_cart_button::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: var(--gold) !important;
  transform: translateX(-101%) !important;
  transition: transform var(--transition) !important;
  z-index: 0 !important;
}
.button:hover::before, .btn:hover::before,
.add_to_cart_button:hover::before,
.single_add_to_cart_button:hover::before {
  transform: translateX(0) !important;
}
.button:hover, .btn:hover,
.add_to_cart_button:hover,
.single_add_to_cart_button:hover {
  color: var(--dark) !important;
  background: transparent !important;
}
.button span, .btn span,
.add_to_cart_button span,
.single_add_to_cart_button span {
  position: relative !important;
  z-index: 1 !important;
  color: inherit !important;
}

/* Primary filled button variant */
.button.primary, .btn.primary,
.button.alt, .checkout-button {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
  color: var(--dark) !important;
  border-color: transparent !important;
  font-weight: 800 !important;
}
.button.primary:hover, .checkout-button:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold)) !important;
  box-shadow: 0 8px 30px rgba(201,168,76,0.4) !important;
  transform: translateY(-1px) !important;
}

/* ── PRODUCT CARDS ──────────────────────────────────────── */
.product-small,
.woocommerce ul.products li.product,
.product-grid-item {
  background: var(--dark-3) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition) !important;
  position: relative !important;
}
.product-small:hover,
.woocommerce ul.products li.product:hover,
.product-grid-item:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,168,76,0.3) !important;
  border-color: rgba(201,168,76,0.5) !important;
}

/* Product image wrapper */
.product-small .box-image,
.woocommerce ul.products li.product .woocommerce-LoopProduct-link img,
.product-grid-item .product-image {
  overflow: hidden !important;
  background: var(--dark-4) !important;
}
.product-small .box-image img,
.woocommerce ul.products li.product img,
.product-grid-item .product-image img {
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1) !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.product-small:hover .box-image img,
.woocommerce ul.products li.product:hover img,
.product-grid-item:hover .product-image img {
  transform: scale(1.06) !important;
}

/* Product text area */
.product-small .box-text,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.product-grid-item .product-info {
  padding: 16px 18px !important;
  background: var(--dark-3) !important;
}

/* Product title */
.product-small .title,
.woocommerce-loop-product__title,
.product-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--text-light) !important;
  margin-bottom: 6px !important;
}

/* Price */
.price, .woocommerce-Price-amount,
ins .woocommerce-Price-amount {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--gold) !important;
}
del .woocommerce-Price-amount {
  color: var(--text-muted) !important;
  font-size: 0.8rem !important;
}

/* Sale badge */
.badge.onsale, .onsale {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
  color: var(--dark) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  padding: 5px 10px !important;
  border-radius: var(--radius-sm) !important;
}

/* Star ratings */
.woocommerce-product-rating .star-rating,
.star-rating span::before,
.star-rating::before {
  color: var(--gold) !important;
}

/* ── SECTIONS & BLOCKS ──────────────────────────────────── */
.section, .container-inner, .col-inner,
.wp-block-group, .ux-html, .row {
  background: transparent !important;
}

/* Dark section rows */
.bg-dark, .dark-bg,
.section.dark, [class*="dark-section"] {
  background: var(--dark-2) !important;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Feature/icon boxes */
.feature-box, .icon-box,
.box.circle-border, .ux_icon_box {
  background: var(--dark-3) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  padding: 32px 28px !important;
  transition: transform var(--transition), box-shadow var(--transition) !important;
}
.feature-box:hover, .icon-box:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5) !important;
}
.feature-box .icon, .icon-box .icon,
.ux_icon_box .icon {
  color: var(--gold) !important;
  font-size: 2rem !important;
}

/* ── TESTIMONIALS ───────────────────────────────────────── */
.testimonial, .review, .woocommerce-review,
.testimonial-text, blockquote {
  background: var(--dark-3) !important;
  border: 1px solid var(--border) !important;
  border-left: 3px solid var(--gold) !important;
  border-radius: var(--radius-md) !important;
  padding: 28px 32px !important;
  position: relative !important;
}
.testimonial::before, blockquote::before {
  content: '\201C' !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 5rem !important;
  color: var(--gold) !important;
  opacity: 0.3 !important;
  position: absolute !important;
  top: -10px !important;
  left: 20px !important;
  line-height: 1 !important;
}
.testimonial .name, .review-author,
.testimonial cite {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
}

/* ── SHOP / ARCHIVE PAGE ────────────────────────────────── */
.woocommerce-products-header,
.shop-description {
  background: linear-gradient(135deg, var(--dark-2), var(--dark-3)) !important;
  padding: 60px 40px !important;
  border-bottom: 1px solid var(--border) !important;
  margin-bottom: 40px !important;
}

/* Filter/sort bar */
.woocommerce-ordering select,
.woocommerce-result-count {
  background: var(--dark-3) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-light) !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 12px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.75rem !important;
}

/* Breadcrumbs */
.breadcrumbs, .woocommerce-breadcrumb {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.1em !important;
  color: var(--text-muted) !important;
  padding: 12px 0 !important;
}
.breadcrumbs a, .woocommerce-breadcrumb a {
  color: var(--gold) !important;
}

/* ── SINGLE PRODUCT PAGE ────────────────────────────────── */
.product.single,
.woocommerce div.product {
  background: transparent !important;
}
.woocommerce div.product .product_title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: clamp(1.8rem, 3vw, 3rem) !important;
  font-weight: 600 !important;
  color: var(--text-light) !important;
  letter-spacing: 0.02em !important;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-size: 1.8rem !important;
  color: var(--gold) !important;
  font-weight: 700 !important;
  font-family: 'Montserrat', sans-serif !important;
}

/* Product tabs */
.woocommerce .woocommerce-tabs ul.tabs {
  border-bottom: 1px solid var(--border) !important;
  padding: 0 !important;
}
.woocommerce .woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  margin: 0 4px !important;
}
.woocommerce .woocommerce-tabs ul.tabs li.active {
  border-bottom-color: var(--gold) !important;
}
.woocommerce .woocommerce-tabs ul.tabs li a {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--text-muted) !important;
  padding: 12px 16px !important;
}
.woocommerce .woocommerce-tabs ul.tabs li.active a {
  color: var(--gold) !important;
}
.woocommerce .woocommerce-tabs .panel {
  background: var(--dark-3) !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md) !important;
  padding: 32px !important;
}

/* Quantity input */
.quantity input.qty,
.woocommerce .quantity input {
  background: var(--dark-4) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-light) !important;
  border-radius: var(--radius-sm) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  text-align: center !important;
  width: 60px !important;
  height: 48px !important;
}

/* ── FORMS ──────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
textarea, select {
  background: var(--dark-3) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-light) !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 16px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.9rem !important;
  transition: border-color var(--transition), box-shadow var(--transition) !important;
  width: 100% !important;
}
input:focus, textarea:focus, select:focus {
  outline: none !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12) !important;
}
::placeholder { color: var(--text-muted) !important; }
label {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--text-muted) !important;
  margin-bottom: 6px !important;
}

/* ── CART & CHECKOUT ────────────────────────────────────── */
.woocommerce-cart-form table,
.woocommerce table.shop_table {
  background: var(--dark-3) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
}
.woocommerce table.shop_table th {
  background: var(--dark-4) !important;
  color: var(--gold) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 14px 16px !important;
}
.woocommerce table.shop_table td {
  border-bottom: 1px solid var(--border) !important;
  padding: 14px 16px !important;
}
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout #payment {
  background: var(--dark-3) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  padding: 24px !important;
}

/* Order summary box */
.woocommerce-checkout-review-order,
.order-review {
  background: var(--dark-3) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  padding: 24px !important;
}

/* ── FOOTER ─────────────────────────────────────────────── */
#footer, footer, .footer,
.footer-wrapper, .absolute-footer {
  background: var(--dark-2) !important;
  border-top: 1px solid var(--border) !important;
  color: rgba(240,236,226,0.6) !important;
}
.footer-widget .widget-title,
.footer h3, .footer h4 {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
  margin-bottom: 16px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid var(--border) !important;
}
.footer-widget li, .footer-widget p,
.footer p, .footer li {
  font-size: 0.82rem !important;
  color: rgba(240,236,226,0.55) !important;
  line-height: 2 !important;
}
.footer-widget a, .footer a {
  color: rgba(240,236,226,0.55) !important;
  transition: color var(--transition) !important;
}
.footer-widget a:hover, .footer a:hover {
  color: var(--gold) !important;
}
.absolute-footer, .footer-bottom {
  background: var(--dark) !important;
  border-top: 1px solid var(--border) !important;
  font-size: 0.72rem !important;
  color: rgba(240,236,226,0.3) !important;
  letter-spacing: 0.06em !important;
}
.absolute-footer a {
  color: var(--gold) !important;
}

/* ── DIVIDERS / SEPARATORS ──────────────────────────────── */
hr, .divider {
  border-color: var(--border) !important;
}

/* ── ALERTS & NOTICES ───────────────────────────────────── */
.woocommerce-message, .woocommerce-info {
  background: var(--dark-3) !important;
  border-top-color: var(--gold) !important;
  color: var(--text-light) !important;
}
.woocommerce-error {
  background: rgba(180,40,40,0.15) !important;
  border-top-color: #c0392b !important;
  color: var(--text-light) !important;
}

/* ── PAGINATION ─────────────────────────────────────────── */
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span,
.pagination a, .pagination span {
  background: var(--dark-3) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-light) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  transition: all var(--transition) !important;
  border-radius: var(--radius-sm) !important;
}
.woocommerce-pagination ul li a:hover,
.pagination a:hover {
  background: var(--gold) !important;
  color: var(--dark) !important;
  border-color: var(--gold) !important;
}
.woocommerce-pagination ul li span.current,
.pagination .current {
  background: var(--gold) !important;
  color: var(--dark) !important;
  border-color: var(--gold) !important;
}

/* ── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ── UTILITY ────────────────────────────────────────────── */
.text-gold { color: var(--gold) !important; }
.bg-premium { background: var(--dark-3) !important; }
.border-gold { border-color: var(--border) !important; }

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.product-small, .feature-box, .testimonial {
  animation: fadeUp 0.5s ease both;
}

/* ── MOBILE ─────────────────────────────────────────────── */
@media only screen and (max-width: 48em) {
  h1, .h1 { font-size: 2rem !important; }
  h2, .h2 { font-size: 1.5rem !important; }
  .banner-inner h1, .ux-banner h1 { font-size: 2.2rem !important; }
  .button, .btn, a.button {
    padding: 12px 24px !important;
    font-size: 0.68rem !important;
  }
  .product-small {
    border-radius: var(--radius-sm) !important;
  }
  .woocommerce .woocommerce-tabs .panel {
    padding: 20px !important;
  }
}
