/*
 * William Walker Fragrances — Main Styles v2
 * Clean, white background, purpl.com-inspired layout
 */

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

:root {
  --gold: #C9A84C;
  --gold-light: #E8D48B;
  --gold-dark: #A8893D;
  --black: #0A0A0A;
  --dark: #111111;
  --gray: #888888;
  --gray-lt: #CCCCCC;
  --gray-xlt: #EEEEEE;
  --white: #FFFFFF;
  --off: #FAFAF7;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', 'Segoe UI', sans-serif;
  --rad: 4px;
  --ease: all 0.3s ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 15px; line-height: 1.7; color: #333; background: var(--white); -webkit-font-smoothing: antialiased; }
a { color: var(--gold); text-decoration: none; transition: var(--ease); }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 600; color: var(--black); line-height: 1.2; }
h1 { font-size: 36px; } h2 { font-size: 28px; } h3 { font-size: 20px; }
.ww-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ═══════ TOPBAR ═══════ */
.ww-topbar { background: var(--black); color: var(--gold); text-align: center; padding: 8px 16px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }

/* ═══════ HEADER ═══════ */
.ww-header { background: var(--dark); padding: 0 24px; position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid #222; }
.ww-header-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.ww-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.ww-logo img { height: 45px; width: auto; }
.ww-logo-text { display: flex; flex-direction: column; }
.ww-logo-brand { color: var(--gold); font-size: 14px; font-weight: 600; letter-spacing: 3px; line-height: 1.2; }
.ww-logo-sub { color: var(--gray); font-size: 8px; letter-spacing: 4px; text-transform: uppercase; }
.ww-nav { display: flex; align-items: center; }
.ww-nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.ww-nav ul li { position: relative; }
.ww-nav ul li a { color: var(--gray-lt); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 500; padding: 20px 0; display: block; border-bottom: 2px solid transparent; transition: var(--ease); }
.ww-nav ul li a:hover, .ww-nav ul li.current-menu-item a, .ww-nav ul li.current_page_item a { color: var(--gold); border-bottom-color: var(--gold); }

/* Dropdown submenu */
.ww-nav ul li ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark);
  border: 1px solid #222;
  min-width: 200px;
  padding: 8px 0;
  z-index: 1000;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.ww-nav ul li:hover > ul.sub-menu { display: flex; }

.ww-nav ul li ul.sub-menu li { position: relative; }

.ww-nav ul li ul.sub-menu li a {
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--gray-lt);
  border-bottom: none;
  white-space: nowrap;
  transition: var(--ease);
}

.ww-nav ul li ul.sub-menu li a:hover {
  color: var(--gold);
  background: rgba(201,168,76,0.08);
  border-bottom: none;
}
.ww-header-actions { display: flex; align-items: center; gap: 14px; }
.ww-header-actions a { color: var(--gray-lt); font-size: 18px; transition: var(--ease); }
.ww-header-actions a:hover { color: var(--gold); }
.ww-cart-count { background: var(--gold); color: var(--black); font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; position: relative; top: -8px; left: -6px; }
.ww-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.ww-menu-toggle span { display: block; width: 22px; height: 2px; background: var(--gold); margin: 5px 0; transition: var(--ease); }

/* ═══════ PROMO BANNER ═══════ */
.ww-promo-banner { max-width: 1100px; margin: 24px auto; padding: 0 20px; }
.ww-promo-img { width: 100%; border-radius: var(--rad); display: block; }
.ww-promo-default { display: block; border-radius: var(--rad); overflow: hidden; }
.ww-promo-inner { background: linear-gradient(135deg, #1a0f05 0%, #0a0a0a 50%, #1a1520 100%); padding: 60px 48px; position: relative; overflow: hidden; }
.ww-promo-inner::after { content: ''; position: absolute; right: -60px; top: -60px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%); }
.ww-promo-text { position: relative; z-index: 1; }
.ww-promo-text h2 { color: var(--gold); font-size: 36px; margin-bottom: 8px; }
.ww-promo-text p { color: var(--gray-lt); font-size: 15px; margin-bottom: 4px; }
.ww-promo-price { color: var(--gold); font-size: 20px; font-weight: 700; margin: 12px 0 20px !important; }
.ww-promo-cta { display: inline-block; background: var(--gold); color: var(--black); padding: 14px 36px; font-size: 12px; font-weight: 700; letter-spacing: 3px; }

/* ═══════ PRODUCT SECTIONS ═══════ */
.ww-ps { padding: 32px 0; }

.ww-ps-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.ww-ps-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
}
.ww-ps-head::before, .ww-ps-head::after { content: ''; flex: 1; height: 2px; background: var(--gold); }
.ww-ps-head span { font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: 4px; color: var(--black); white-space: nowrap; }

.ww-ps-scroll { position: relative; }

.ww-ps-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 8px;
}
.ww-ps-track::-webkit-scrollbar { display: none; }

.ww-ps-arr {
  position: absolute; top: 35%; z-index: 5;
  background: var(--white); border: 1px solid var(--gray-xlt);
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 24px; color: var(--black);
  transition: var(--ease); box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.ww-ps-arr:hover { background: var(--gold); color: var(--black); }
.ww-ps-prev { left: -4px; }
.ww-ps-next { right: -4px; }

/* ═══════ PRODUCT CARD ═══════ */
.ww-pc {
  flex: 0 0 calc(25% - 12px);
  min-width: calc(25% - 12px);
  scroll-snap-align: start;
  text-align: center;
}

.ww-pc-link { display: block; text-decoration: none; color: inherit; }
.ww-pc-link:hover { color: inherit; }

.ww-pc-img {
  height: 200px; display: flex; align-items: center; justify-content: center;
  background: var(--white); margin-bottom: 10px; position: relative;
}
.ww-pc-img img { max-height: 180px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto; }
.ww-pc-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #f5f0e0; border-radius: var(--rad); }
.ww-pc-ph span { font-size: 48px; color: var(--gold); font-family: serif; }

.ww-pc-badge { position: absolute; top: 4px; left: 4px; background: var(--gold); color: var(--black); font-size: 9px; font-weight: 700; padding: 2px 8px; letter-spacing: 1px; text-transform: uppercase; border-radius: 2px; z-index: 2; }

.ww-pc-info h3 { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--black); margin-bottom: 2px; line-height: 1.3; }
.ww-pc-by { font-size: 11px; color: var(--gray); margin-bottom: 4px; }
.ww-pc-price { font-size: 14px; color: var(--gold); font-weight: 600; }
.ww-pc-price del { color: var(--gray); font-size: 12px; margin-right: 4px; font-weight: 400; }
.ww-pc-price ins { text-decoration: none; color: var(--gold); font-weight: 700; }

/* ═══════ BUTTONS ═══════ */
.ww-btn { display: inline-block; padding: 14px 36px; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-family: var(--sans); border: none; cursor: pointer; transition: var(--ease); text-decoration: none; }
.ww-btn-gold { background: var(--gold); color: var(--black); }
.ww-btn-gold:hover { background: var(--gold-light); color: var(--black); }
.ww-btn-dark { background: var(--black); color: var(--gold); border: 1px solid var(--gold); }
.ww-btn-dark:hover { background: var(--gold); color: var(--black); }
.ww-btn-outline { background: transparent; color: var(--black); border: 1.5px solid var(--black); }
.ww-btn-outline:hover { background: var(--black); color: var(--gold); }

/* ═══════ SECTIONS ═══════ */
.ww-section { padding: 48px 0; }
.ww-section-dark { background: var(--black); color: var(--white); }
.ww-section-light { background: var(--off); }
.ww-section-title { text-align: center; margin-bottom: 12px; font-family: var(--serif); font-size: 28px; }
.ww-section-dark .ww-section-title { color: var(--gold); }
.ww-section-subtitle { text-align: center; color: var(--gray); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 32px; }

/* ═══════ BUDGET FILTERS ═══════ */
.ww-budget-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ═══════ BRAND STORY ═══════ */
.ww-brand-story { display: flex; min-height: 380px; }
.ww-brand-image { flex: 1; position: relative; overflow: hidden; }
.ww-brand-image img, .ww-brand-image video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ww-brand-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px; background: var(--white); }
.ww-brand-content h2 { font-size: 28px; margin-bottom: 12px; }
.ww-brand-content p { color: #777; font-size: 14px; line-height: 1.8; margin-bottom: 16px; }

/* ═══════ COLLECTIONS ═══════ */
.ww-collections { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--black); }
.ww-collection-card { position: relative; min-height: 280px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.ww-collection-card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.6s ease; }
.ww-collection-card:hover .ww-collection-card-bg { transform: scale(1.08); }
.ww-collection-card::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.55); transition: var(--ease); }
.ww-collection-card:hover::after { background: rgba(0,0,0,0.35); }
.ww-collection-card-content { position: relative; z-index: 2; text-align: center; }
.ww-collection-card-content h3 { color: var(--gold); font-family: var(--serif); font-size: 28px; margin-bottom: 6px; }
.ww-collection-card-content span { color: var(--gray); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; }

/* ═══════ TESTIMONIALS ═══════ */
.ww-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ww-testimonial-card { background: #151515; border: 0.5px solid #222; border-radius: var(--rad); padding: 24px 18px; }
.ww-testimonial-stars { color: var(--gold); font-size: 14px; margin-bottom: 10px; letter-spacing: 2px; }
.ww-testimonial-quote { color: var(--gray-lt); font-size: 13px; line-height: 1.7; margin-bottom: 14px; font-style: italic; }
.ww-testimonial-author { color: var(--gray); font-size: 12px; font-weight: 500; }

/* ═══════ TRUST BADGES ═══════ */
.ww-badges { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.ww-badge { text-align: center; max-width: 130px; }
.ww-badge-icon { margin-bottom: 8px; }
.ww-badge-icon svg { width: 32px; height: 32px; stroke: var(--gold); fill: none; stroke-width: 1.5; margin: 0 auto; display: block; }
.ww-badge-title { font-size: 13px; font-weight: 600; color: #333; margin-bottom: 2px; }
.ww-badge-text { font-size: 11px; color: var(--gray); }

/* ═══════ FOOTER ═══════ */
.ww-footer { background: var(--black); color: var(--gray); padding: 40px 0 0; }
.ww-footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 36px; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.ww-footer-heading { color: var(--gold); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px; font-family: var(--sans); font-weight: 600; }
.ww-footer p, .ww-footer li, .ww-footer a { font-size: 13px; color: var(--gray); line-height: 2; }
.ww-footer a:hover { color: var(--gold); }
.ww-footer ul { list-style: none; padding: 0; }
.ww-social-icons { display: flex; gap: 10px; margin-top: 10px; }
.ww-social-icon { width: 34px; height: 34px; border: 1px solid #333; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: 14px; transition: var(--ease); text-decoration: none; }
.ww-social-icon:hover { border-color: var(--gold); color: var(--gold); }
.ww-footer-bottom { border-top: 0.5px solid #222; margin-top: 32px; padding: 16px 20px; text-align: center; font-size: 11px; color: #555; }

/* ═══════ WHATSAPP ═══════ */
.ww-whatsapp { position: fixed; bottom: 20px; right: 20px; z-index: 9999; width: 52px; height: 52px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,0.4); transition: var(--ease); text-decoration: none; }
.ww-whatsapp:hover { transform: scale(1.1); }
.ww-whatsapp svg { width: 26px; height: 26px; fill: #fff; }

/* ═══════ PAGES ═══════ */
.ww-page-hero { background: var(--black); padding: 48px 0; text-align: center; }
.ww-page-hero h1 { color: var(--gold); font-size: 36px; font-family: var(--serif); }
.ww-page-hero p { color: var(--gray); font-size: 13px; margin-top: 6px; letter-spacing: 2px; text-transform: uppercase; }
.ww-page-content { padding: 40px 0; }
.ww-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ww-product-card { background: var(--white); border: 0.5px solid var(--gray-xlt); border-radius: var(--rad); overflow: hidden; transition: var(--ease); text-align: center; }
.ww-product-card:hover { border-color: var(--gold); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.ww-product-card .ww-product-image { position: relative; height: 200px; background: #f8f6f0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ww-product-card .ww-product-image img { max-height: 180px; width: auto; object-fit: contain; }
.ww-product-badge { position: absolute; top: 8px; left: 8px; background: var(--gold); color: var(--black); font-size: 9px; font-weight: 700; padding: 3px 8px; letter-spacing: 1px; text-transform: uppercase; z-index: 2; }
.ww-product-info { padding: 12px; }
.ww-product-brand { font-size: 9px; color: var(--gray); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 2px; }
.ww-product-name { font-family: var(--sans); font-size: 13px; color: var(--black); margin-bottom: 4px; font-weight: 600; }
.ww-product-price { font-size: 14px; color: var(--gold); font-weight: 600; }
.ww-product-price del { color: var(--gray); font-size: 12px; margin-right: 4px; }
.ww-product-price ins { text-decoration: none; }
.ww-product-cart-btn { display: block; width: 100%; padding: 10px; background: var(--black); color: var(--gold); border: none; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; font-family: var(--sans); font-weight: 600; transition: var(--ease); text-decoration: none; text-align: center; }
.ww-product-cart-btn:hover { background: var(--gold); color: var(--black); }
.ww-placeholder-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #f5f0e0; }
.ww-placeholder-img span { font-size: 40px; color: var(--gold); font-family: serif; }

/* Blog */
.ww-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ww-blog-card { background: var(--white); border: 0.5px solid var(--gray-xlt); border-radius: var(--rad); overflow: hidden; transition: var(--ease); }
.ww-blog-card:hover { border-color: var(--gold); box-shadow: 0 6px 20px rgba(0,0,0,0.06); transform: translateY(-3px); }
.ww-blog-image { display: block; height: 180px; overflow: hidden; }
.ww-blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ww-blog-card:hover .ww-blog-image img { transform: scale(1.05); }
.ww-blog-content { padding: 16px; }
.ww-blog-meta { display: flex; gap: 10px; margin-bottom: 6px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.ww-blog-date { color: var(--gray); }
.ww-blog-cat { color: var(--gold); font-weight: 600; }
.ww-blog-title { font-family: var(--sans); font-size: 15px; font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.ww-blog-title a { color: var(--black); }
.ww-blog-title a:hover { color: var(--gold); }
.ww-blog-excerpt { font-size: 13px; color: #777; line-height: 1.5; margin-bottom: 8px; }
.ww-blog-link { font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--gold); }

/* Gallery/Lightbox */
.ww-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ww-gallery-item { position: relative; padding-top: 100%; overflow: hidden; cursor: pointer; }
.ww-gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ww-gallery-item:hover img { transform: scale(1.05); }
.ww-lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 10000; align-items: center; justify-content: center; cursor: pointer; }
.ww-lightbox.active { display: flex; }
.ww-lightbox img { max-width: 90%; max-height: 90vh; object-fit: contain; }
.ww-lightbox-close { position: absolute; top: 16px; right: 20px; color: var(--gold); font-size: 32px; cursor: pointer; background: none; border: none; }

/* 404 */
.ww-404 { text-align: center; padding: 80px 20px; }
.ww-404 h1 { font-size: 100px; color: var(--gold); font-family: var(--serif); line-height: 1; }
.ww-404 p { color: var(--gray); margin: 12px 0 28px; }

/* WooCommerce */
.woocommerce ul.products li.product { border: 0.5px solid var(--gray-xlt); border-radius: var(--rad); overflow: hidden; }
.woocommerce ul.products li.product:hover { border-color: var(--gold); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--sans); font-size: 14px; padding: 8px 12px 4px; }
.woocommerce ul.products li.product .price { color: var(--gold); font-weight: 600; padding: 0 12px 8px; }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: var(--gold) !important; color: var(--black) !important; border-radius: 0; font-family: var(--sans); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
.woocommerce span.onsale { background: var(--gold); color: var(--black); font-weight: 700; }
.woocommerce div.product .product_title { font-family: var(--serif); font-size: 28px; }
.woocommerce div.product p.price { color: var(--gold); font-size: 22px; font-weight: 600; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.ww-ps { animation: fadeIn 0.5s ease forwards; }
