/**
 * Lovely Knot - Luxury Invitations & Fine Stationery
 * Custom Tailored Modern Design System
 */

:root {
  --color-primary: #8b156b;
  --color-primary-dark: #6e0e54;
  --color-primary-light: #ab2587;
  --color-secondary: #d3c3c0;
  --color-accent: #8b806c;
  --color-accent-light: #d3ccbf;
  --color-gold: #c5a059;
  --color-gold-light: #e6c88b;
  --color-bg: #fdfbf7;
  --color-surface: #ffffff;
  --color-text: #2c2523;
  --color-muted: #6b7280;
  --color-border: #ede7df;

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.09);
  --shadow-xl: 0 20px 40px rgba(139,21,107,0.12);
  --radius: 8px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--color-bg);
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-py {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Top Announcement Bar */
.top-bar {
  background-color: #2c2523;
  color: #d3c3c0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.top-bar a:hover {
  color: #ffffff;
}

/* Header & Navigation */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}
.brand-logo {
  display: flex;
  align-items: center;
}
.brand-logo img {
  height: 62px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3f291b;
  position: relative;
  padding: 8px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}
.nav-link:hover {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  color: #3f291b;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.icon-btn:hover {
  background-color: rgba(139, 21, 107, 0.08);
  color: var(--color-primary);
}
.badge-count {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Primary Luxury Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}
.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 8px 20px rgba(139, 21, 107, 0.25);
}
.btn-secondary {
  background-color: #2c2523;
  color: #ffffff;
}
.btn-secondary:hover {
  background-color: #111;
}
.btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}
.btn-outline:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}
.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  border: none;
}
.btn-whatsapp:hover {
  background-color: #1ebc59;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #2c2523 0%, #3f291b 100%);
  color: #ffffff;
  padding: 100px 0 120px;
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.12;
  background-image: radial-gradient(#d3c3c0 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-subtitle {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 16px;
  display: block;
}
.hero-title {
  font-size: 56px;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: var(--color-gold-light);
}
.hero-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  font-weight: 300;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Category Cards */
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: #3f291b;
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
  transition: var(--transition);
}
.category-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.75;
}
.category-card:hover .category-card-bg {
  transform: scale(1.08);
  opacity: 0.6;
}
.category-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.category-card-content {
  position: relative;
  z-index: 2;
}
.category-card-title {
  font-size: 26px;
  margin-bottom: 6px;
  color: #ffffff;
}
.category-card-count {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-light);
}

/* Product Vitrin Card */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 30px;
}
.product-card {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(139, 21, 107, 0.2);
}
.product-thumb {
  position: relative;
  aspect-ratio: 1/1;
  background-color: #f7f5f2;
  overflow: hidden;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-thumb img {
  transform: scale(1.05);
}
.product-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  color: #6b7280;
  transition: var(--transition);
  z-index: 5;
}
.product-wishlist-btn:hover, .product-wishlist-btn.active {
  background-color: var(--color-primary);
  color: #ffffff;
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  z-index: 5;
}
.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-sku {
  font-size: 11px;
  color: var(--color-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.product-title {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #1f2937;
}
.product-card:hover .product-title {
  color: var(--color-primary);
}
.product-cats {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 16px;
}
.product-footer {
  margin-top: auto;
  display: flex;
  gap: 10px;
}
.product-footer .btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 11px;
}

/* Heritage Story Section */
.heritage-section {
  background-color: #2c2523;
  color: #ffffff;
  padding: 90px 0;
  position: relative;
}
.heritage-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 54px;
  font-weight: 600;
  color: var(--color-gold-light);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

/* Slide-in Wishlist Drawer */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}
.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #ffffff;
  z-index: 1001;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.drawer-overlay.open .drawer-panel {
  transform: translateX(0);
}
.drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-title {
  font-size: 24px;
}
.drawer-body {
  padding: 24px;
  flex-grow: 1;
  overflow-y: auto;
}
.drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--color-border);
  background: #fdfbf7;
}

/* Modal Search */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 60px 24px;
  overflow-y: auto;
}
.search-modal.open {
  opacity: 1;
  visibility: visible;
}
.search-modal-container {
  max-width: 720px;
  margin: 0 auto;
}
.search-input-wrap {
  position: relative;
  margin-bottom: 30px;
}
.search-input {
  width: 100%;
  padding: 18px 24px 18px 50px;
  font-size: 22px;
  font-family: var(--font-serif);
  border: none;
  border-bottom: 2px solid var(--color-primary);
  background: transparent;
  outline: none;
}

/* Footer */
.site-footer {
  background-color: #2c2523;
  color: #d3c3c0;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 60px;
}
.footer-title {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #8b806c;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title { font-size: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .heritage-stats { grid-template-columns: 1fr; gap: 24px; }
  .nav-menu { display: none; }
}
@media (max-width: 640px) {
  .hero-title { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .top-bar-left { display: none; }
}
