/* ============================================
   LensVault — Page-Specific Styles
   ============================================ */

/* ---- HOME PAGE ---- */

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--overlay-light) 0%,
    transparent 30%,
    var(--bg) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 var(--space-xl);
}

.hero-eyebrow {
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.hero-title {
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero-title span { color: var(--accent); font-style: italic; }

.hero-subtitle {
  font-size: var(--fs-h4);
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
  line-height: var(--lh-relaxed);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: var(--fs-caption);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  animation: float 2s ease-in-out infinite;
}

.hero-scroll-indicator svg { width: 20px; height: 20px; }

/* Category showcase */
.category-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.category-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  padding: var(--space-xl);
  text-decoration: none;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, var(--overlay) 0%, transparent 60%);
  z-index: 0;
}

.category-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.category-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.category-card:hover .category-card-bg img {
  transform: scale(1.1);
}

.category-card-content {
  position: relative;
  z-index: 1;
}

.category-card-content h3 {
  font-size: var(--fs-h3);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.category-card-content p {
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.category-card-arrow {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all var(--transition-base);
  z-index: 1;
}

.category-card:hover .category-card-arrow {
  background: var(--accent);
  color: var(--bg);
  transform: rotate(-45deg);
}

/* Featured products */
.featured-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* Brand story */
.brand-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.brand-story-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.brand-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-story-content .eyebrow {
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.brand-story-content h2 {
  font-size: var(--fs-h1);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.brand-story-content p {
  margin-bottom: var(--space-md);
}

/* Stats section */
.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: var(--fw-bold);
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-item .stat-label {
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ---- SHOP PAGE ---- */
.shop-hero {
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-2xl);
  text-align: center;
}

.shop-layout {
  display: flex;
  gap: var(--space-2xl);
  align-items: flex-start;
}

.shop-content {
  flex: 1;
  min-width: 0;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.shop-toolbar-left {
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.shop-toolbar-right {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.shop-sort-select {
  padding: 0.5rem 2rem 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* ---- PRODUCT DETAIL PAGE ---- */
.product-detail {
  padding-top: calc(var(--header-height) + var(--space-2xl));
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.product-gallery {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
}

.product-gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface);
  margin-bottom: var(--space-md);
}

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

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.product-gallery-thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
}

.product-gallery-thumb.active {
  border-color: var(--accent);
}

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

.product-info h1 {
  font-size: var(--fs-h1);
  margin-bottom: var(--space-md);
}

.product-info-rating {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.product-info-price {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

.product-info-price .original {
  font-size: 1.25rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: var(--space-sm);
}

.product-info-description {
  margin-bottom: var(--space-xl);
  line-height: var(--lh-relaxed);
}

.product-variants {
  margin-bottom: var(--space-xl);
}

.variant-group {
  margin-bottom: var(--space-lg);
}

.variant-group-label {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.variant-option {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.variant-option:hover { border-color: var(--accent); }

.variant-option.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

.product-quantity {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.quantity-selector button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-h4);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.quantity-selector button:hover {
  background: var(--accent);
  color: var(--bg);
}

.quantity-selector input {
  width: 50px;
  text-align: center;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: var(--fs-body);
}

.product-actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.product-meta {
  border-top: 1px solid var(--border);
  padding-top: var(--space-lg);
}

.product-meta-row {
  display: flex;
  padding: var(--space-sm) 0;
  font-size: var(--fs-small);
  border-bottom: 1px solid var(--border);
}

.product-meta-label {
  width: 140px;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

.product-meta-value {
  color: var(--text-secondary);
  flex: 1;
}

/* ---- CART PAGE ---- */
.cart-page {
  padding-top: calc(var(--header-height) + var(--space-3xl));
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-2xl);
  align-items: flex-start;
}

.cart-list {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cart-list-header {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr auto;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.cart-list-item {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr auto;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: var(--space-md);
}

.cart-list-product {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.cart-list-product img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.cart-summary-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
}

.coupon-input {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.coupon-input input {
  flex: 1;
  padding: 0.625rem 1rem;
  font-size: var(--fs-small);
  border-radius: var(--radius-full);
}

/* ---- CHECKOUT PAGE ---- */
.checkout-page {
  padding-top: calc(var(--header-height) + var(--space-3xl));
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-2xl);
  align-items: flex-start;
}

.checkout-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.checkout-section h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.checkout-section-number {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.payment-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-md);
  min-width: 0;
  min-height: 108px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.payment-method:hover {
  border-color: var(--border-light);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.payment-method:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.payment-method.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.payment-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 23, 0.12);
  border-radius: var(--radius-sm);
  background: #F7F7F8;
}

.payment-method-label {
  font-size: var(--fs-caption);
  color: var(--text-secondary);
  line-height: 1.2;
}

.order-summary {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
}

.order-summary-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.order-summary-item img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.order-summary-item-info {
  flex: 1;
}

.order-summary-item-name {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
}

.order-summary-item-qty {
  font-size: var(--fs-caption);
  color: var(--text-muted);
}

.order-summary-item-price {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--accent);
}

/* ---- AUTH PAGES ---- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-md);
  padding-top: var(--header-height);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
}

.auth-card h1 {
  font-size: var(--fs-h2);
  text-align: center;
  margin-bottom: var(--space-sm);
}

.auth-card .auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--fs-small);
  margin-bottom: var(--space-2xl);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
  color: var(--text-muted);
  font-size: var(--fs-caption);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.social-auth {
  display: flex;
  gap: var(--space-sm);
}

.social-auth-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--fs-small);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-auth-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.auth-footer {
  text-align: center;
  margin-top: var(--space-xl);
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

/* ---- ABOUT PAGE ---- */
.about-hero {
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
  text-align: center;
}

.about-hero h1 {
  font-size: var(--fs-display);
  margin-bottom: var(--space-lg);
}

.about-hero p {
  max-width: 600px;
  margin: 0 auto;
  font-size: var(--fs-h4);
}

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.timeline {
  position: relative;
  padding-left: var(--space-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-2xl);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  margin-bottom: var(--space-sm);
}

/* ---- CONTACT PAGE ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-info-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-md);
}

.contact-info-card h4 {
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.contact-info-card p {
  font-size: var(--fs-body);
  color: var(--text-primary);
}

/* ---- POLICY PAGES ---- */
.policy-page {
  padding-top: calc(var(--header-height) + var(--space-3xl));
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h1 {
  font-size: var(--fs-h1);
  margin-bottom: var(--space-sm);
}

.policy-content .last-updated {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-bottom: var(--space-3xl);
}

.policy-content h2 {
  font-size: var(--fs-h3);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.policy-content h3 {
  font-size: var(--fs-h4);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.policy-content p {
  margin-bottom: var(--space-md);
}

.policy-content ul {
  list-style: disc;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.policy-content ul li {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

.policy-content strong {
  color: var(--text-primary);
}

.policy-callout {
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
}

.policy-callout strong { color: var(--accent); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .category-showcase { grid-template-columns: 1fr; }
  .featured-products { grid-template-columns: repeat(2, 1fr); }
  .brand-story { grid-template-columns: 1fr; }
  .stats-section { grid-template-columns: repeat(2, 1fr); }
  .product-detail-layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .shop-layout { flex-direction: column; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about-story { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .featured-products { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .stats-section { grid-template-columns: 1fr; }
  .cart-list-header { display: none; }
  .cart-list-item { grid-template-columns: 1fr; gap: var(--space-sm); }
  .payment-methods { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: var(--fs-body); }
}
