/* ============================================
   CAXMAN EYEWEAR - Dark Fashion Style
   Premium eyewear brand - Black Edition
   ============================================ */

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

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

:root {
  --black: #000000;
  --dark: #0a0a0a;
  --dark2: #111111;
  --dark3: #1a1a1a;
  --white: #ffffff;
  --off-white: #f5f5f5;
  --cream: #e8e8e8;
  --gold: #c9a96e;
  --gold-light: #e8d5b0;
  --gray-100: #2a2a2a;
  --gray-200: #3a3a3a;
  --gray-400: #888888;
  --gray-600: #666666;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--dark);
  color: var(--off-white);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--sans); }

/* ── Typography ── */
.serif { font-family: var(--serif); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

/* ── Layout ── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* ── Header / Nav ── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: border-color var(--transition), background var(--transition);
}

#site-header.scrolled {
  border-bottom-color: rgba(255,255,255,0.1);
  background: rgba(0, 0, 0, 0.98);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Currency Selector */
.currency-selector {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  padding: 4px;
  border-radius: 4px;
}

.currency-btn {
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 500;
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: none;
  border-radius: 3px;
  transition: all var(--transition);
  cursor: pointer;
}

.currency-btn.active {
  background: var(--gold);
  color: var(--black);
}

.currency-btn:hover:not(.active) {
  color: var(--white);
}

.btn-nav {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--white);
  transition: all var(--transition);
}

.btn-nav:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1483683804023-6ccdb62f86ef?w=1800&q=85');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.4;
  transform: scale(1.05);
  animation: heroZoom 12s ease-out forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); opacity: 0.35; }
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 680px;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s ease forwards;
}

.hero-title {
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 300;
  line-height: 1.0;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s ease forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
  max-width: 420px;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s ease forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: var(--white);
  color: var(--black);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  transition: all var(--transition);
  opacity: 0;
  animation: fadeUp 0.8s 0.9s ease forwards;
}

.hero-cta:hover { 
  background: var(--gold);
  transform: translateY(-2px);
}

.hero-cta svg { width: 16px; height: 16px; }

.hero-scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll::before {
  content: '';
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Section ── */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--black);
}

.section-sm { padding: 60px 0; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  color: var(--white);
}

.section-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 20px auto 0;
}

/* ── Product Grid ── */
.product-filter {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  border-color: var(--white);
  color: var(--black);
  background: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2px;
}

.product-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--dark2);
}

.product-card-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--dark3);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card-img img {
  transform: scale(1.06);
}

.product-card-body {
  padding: 20px 24px;
  background: var(--dark2);
}

.product-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.product-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--white);
  transition: color var(--transition);
}

.product-card:hover .product-name { color: var(--gold); }

.product-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}

.product-price {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
}

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover .product-card-overlay { opacity: 1; }

.btn-view {
  padding: 14px 36px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  transition: all var(--transition);
}

.btn-view:hover {
  background: var(--white);
  color: var(--black);
}

/* ── Brand Story ── */
.brand-story {
  background: var(--black);
  color: var(--white);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.story-img {
  aspect-ratio: 3/4;
  overflow: hidden;
}

.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}

.story-content .section-eyebrow { color: var(--gold); }
.story-content .section-title { color: var(--white); text-align: left; }
.story-content .section-divider { margin: 20px 0 0; }

.story-text {
  margin-top: 28px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.9;
}

.story-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
}

.stat-num {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
}

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-img { max-height: 400px; }
}

/* ── Craftsmanship ── */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.craft-item {
  text-align: center;
}

.craft-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.craft-title {
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--white);
}

.craft-text {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .craft-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Newsletter Banner ── */
.newsletter {
  background: var(--dark2);
  text-align: center;
}

.newsletter-title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 300;
  margin-bottom: 12px;
  color: var(--white);
}

.newsletter-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 36px;
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.2);
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  font-family: var(--sans);
  font-size: 13px;
  border: none;
  background: var(--dark);
  color: var(--white);
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.3);
}

.newsletter-form button {
  padding: 14px 28px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--black);
  border: none;
  transition: all var(--transition);
}

.newsletter-form button:hover { 
  background: var(--gold);
  color: var(--black);
}

/* ── Footer ── */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.4);
  padding: 72px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand span { color: var(--gold); }

.footer-tagline {
  font-size: 13px;
  line-height: 1.8;
  max-width: 260px;
}

.footer-heading {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  background: var(--white);
  color: var(--black);
  padding: 14px 24px;
  font-size: 13px;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Utility ── */
.text-gold { color: var(--gold); }
.mt-40 { margin-top: 40px; }
.hidden { display: none !important; }

/* ── Mobile Nav ── */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  margin-bottom: 5px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; flex-direction: column; gap: 0; }
  .nav-mobile-toggle span { margin-bottom: 5px; }
  .btn-nav { display: none; }
  .currency-selector { display: none; }
}

/* ── Product Detail Page ── */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.product-detail-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--dark2);
}

.product-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info {
  padding: 40px 0;
}

.breadcrumb {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 32px;
  letter-spacing: .04em;
}

.breadcrumb a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.product-category {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.product-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--white);
}

.product-price-display {
  font-family: var(--serif);
  font-size: 32px;
  margin-bottom: 28px;
  color: var(--white);
}

.product-description {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.9;
  margin-bottom: 36px;
}

.product-specs {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  margin-bottom: 32px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
}

.spec-label { color: rgba(255,255,255,0.4); }
.spec-value { color: var(--white); }

/* Buy Button */
.btn-buy {
  display: block;
  width: 100%;
  padding: 18px;
  background: var(--white);
  color: var(--black);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all var(--transition);
  font-weight: 500;
}

.btn-buy:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

.btn-browse {
  display: block;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all var(--transition);
  box-sizing: border-box;
}

.btn-browse:hover {
  border-color: var(--white);
  color: var(--white);
}

@media (max-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* Related Products Section */
.related-section {
  background: var(--black);
  padding: 60px 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* Collection Page Search */
.search-input {
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-right: none;
  font-size: 13px;
  outline: none;
  background: var(--dark);
  color: var(--white);
  min-width: 200px;
}

.search-input::placeholder {
  color: rgba(255,255,255,0.3);
}

.search-btn {
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  background: var(--white);
  color: var(--black);
  font-size: 12px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: all var(--transition);
}

.search-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.clear-search {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: var(--dark);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all var(--transition);
}

.clear-search:hover {
  background: var(--dark2);
  color: var(--white);
}

/* Pagination */
.pagination a {
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  text-decoration: none;
  transition: all var(--transition);
}

.pagination a:hover {
  border-color: var(--white);
  color: var(--white);
}

.pagination a.active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: rgba(255,255,255,0.4);
}

.empty-state svg {
  margin: 0 auto 20px;
  display: block;
  opacity: 0.3;
}

.empty-state-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 300;
}

.empty-state-link {
  color: var(--gold);
}

/* Result count */
.result-count {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 32px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
