﻿/* ============================================================
   ANAYA SILKS — GLOBAL STYLES
   ============================================================ */

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

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --primary-red: #C0392B;
  --deep-crimson: #8B0000;
  --gold: #D4A017;
  --warm-gold: #C9A84C;
  --cream: #FDF6EC;
  --off-white: #FAF5EE;
  --warm-beige: #F5E6CC;
  --dark-text: #1A1A1A;
  --medium-text: #4A4A4A;
  --light-text: #888888;
  --border-light: #E8D5B7;
  --section-bg: #FAFAFA;
  --overlay-dark: rgba(0, 0, 0, 0.45);

  --font-display: 'Playfair Display', serif;
  --font-body-serif: 'Cormorant Garamond', serif;
  --font-body: 'Lato', sans-serif;

  --section-padding: 80px 0;
  --container-max: 1280px;
  --container-padding: 0 5%;
  --card-radius: 2px;
  --button-radius: 2px;
  --image-radius: 0px;
  --transition: 0.3s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--dark-text);
  background: #fff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--image-radius);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

section {
  padding: var(--section-padding);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 5%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  flex-shrink: 0;
}

.nav-logo .brand-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--deep-crimson);
  letter-spacing: 0.02em;
}

.nav-logo .brand-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--light-text);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-text);
  position: relative;
  padding-bottom: 2px;
}

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

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

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

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

.nav-icon {
  position: relative;
  cursor: pointer;
  color: var(--dark-text);
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.nav-icon:hover {
  color: var(--primary-red);
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  transition: fill var(--transition), stroke var(--transition);
}

.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--primary-red);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
}

.nav-login {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--medium-text);
  border-left: 1px solid var(--border-light);
  padding-left: 20px;
}

.nav-login:hover {
  color: var(--primary-red);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--dark-text);
  transition: all 0.3s ease;
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  padding: 80px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 40px rgba(0, 0, 0, 0.12);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--medium-text);
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--dark-text);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}

.mobile-nav a:hover {
  color: var(--primary-red);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #fff;
  border-top: 1px solid var(--border-light);
  padding: 60px 0 0;
}

.footer-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dark-text);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--medium-text);
}

.footer-col ul li a:hover {
  color: var(--primary-red);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 100%;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--light-text);
  font-family: var(--font-body);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.78rem;
  color: var(--light-text);
  font-family: var(--font-body);
}

.footer-bottom-links a:hover {
  color: var(--primary-red);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--primary-red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--button-radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-primary:hover {
  background: var(--deep-crimson);
  color: #fff;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--dark-text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: var(--button-radius);
  border: 1.5px solid var(--dark-text);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.btn-outline:hover {
  background: var(--dark-text);
  color: #fff;
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.product-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary-red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  z-index: 2;
  letter-spacing: 0.05em;
}

.product-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
  transition: background var(--transition);
}

.product-wishlist:hover {
  background: var(--primary-red);
}

.product-wishlist:hover svg {
  stroke: #fff;
}

.product-wishlist svg {
  width: 15px;
  height: 15px;
  stroke: var(--medium-text);
  fill: none;
  stroke-width: 1.5;
  transition: fill var(--transition), stroke var(--transition);
}

.product-wishlist.active-wishlist svg {
  fill: var(--primary-red);
  stroke: var(--primary-red);
}

.product-add-overlay {
  position: absolute;
  bottom: -48px;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.88);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 14px;
  transition: bottom 0.3s ease;
  cursor: pointer;
}

.product-card:hover .product-add-overlay {
  bottom: 0;
}

.product-card-info {
  padding: 14px 0 0;
}

.product-name {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--dark-text);
  letter-spacing: 0.03em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  margin-bottom: 8px;
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.product-price-old {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--light-text);
  text-decoration: line-through;
}

.product-price-new {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-red);
}

.product-swatches {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.swatch:hover,
.swatch.active {
  transform: scale(1.25);
  border-color: var(--dark-text);
}

.product-tags {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--light-text);
  letter-spacing: 0.04em;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--dark-text);
  text-align: center;
  margin-bottom: 48px;
}

.section-heading.left {
  text-align: left;
}

.section-sub {
  text-align: center;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--medium-text);
  margin-top: -36px;
  margin-bottom: 48px;
  line-height: 1.8;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 110px;
  right: 30px;
  background: var(--dark-text);
  color: white;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 9999;
  border-radius: var(--button-radius);
}

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

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.search-close {
  position: absolute;
  top: 40px;
  right: 5%;
  font-size: 2rem;
  color: var(--medium-text);
  cursor: pointer;
  transition: color var(--transition);
}

.search-close:hover {
  color: var(--primary-red);
}

.search-container {
  width: 100%;
  max-width: 720px;
  padding: 0 5%;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--dark-text);
}

.search-input {
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--dark-text);
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 50px 10px 0;
}

.search-input::placeholder {
  color: var(--light-text);
  font-weight: 300;
  font-style: italic;
}

.search-btn {
  position: absolute;
  right: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark-text);
}

.search-btn svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  transition: stroke var(--transition);
}

.search-btn:hover svg {
  stroke: var(--primary-red);
}

/* ============================================================
   ACCORDION
   ============================================================ */
.accordion-item {
  border-bottom: 1px solid var(--border-light);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dark-text);
  transition: color var(--transition);
}

.accordion-header:hover {
  color: var(--primary-red);
}

.accordion-header .acc-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--medium-text);
}

.accordion-item.open .acc-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-content-inner {
  padding: 0 0 20px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--medium-text);
  line-height: 1.9;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--light-text);
  padding: 16px 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.breadcrumb a {
  color: var(--light-text);
}

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

.breadcrumb span {
  color: var(--border-light);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  height: 320px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero-content h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  letter-spacing: 0.02em;
}

.page-hero-content p {
  font-family: var(--font-body);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-top: 8px;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.field-group {
  margin-bottom: 28px;
}

.field-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--medium-text);
  margin-bottom: 8px;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border-light);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--dark-text);
  padding: 10px 0;
  outline: none;
  transition: border-color var(--transition);
  border-radius: 0;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-bottom-color: var(--primary-red);
}

.field-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================================
   RATING STARS
   ============================================================ */
.stars {
  display: flex;
  gap: 3px;
  align-items: center;
}

.stars svg {
  width: 14px;
  height: 14px;
  fill: var(--gold);
}

.stars-text {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--light-text);
  margin-left: 6px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav-links {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 56px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-login {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

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

  .footer-bottom-links {
    flex-direction: column;
    gap: 8px;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   FLOATING SOCIALS
   ============================================================ */
.floating-socials {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.float-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.float-icon:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.float-icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.float-icon.whatsapp {
  background: #25D366;
}

.float-icon.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}