/**
 * May & Company Art Deco Stylesheet
 * Inspired by the Golden Age of 1920s Luxury
 */

/* ===== ROOT VARIABLES ===== */
:root {
  /* Color Palette - Luxurious Deep Reds and Whites */
  --primary-burgundy: #1C0000;
  --rich-burgundy: #2D0000;
  --accent-burgundy: #4A0000;
  --light-burgundy: #5C0000;
  --white-primary: #FFFFFF;
  --white-light: #FFFFFF;
  --white-soft: #F8F8F8;
  --cream: #F5F5DC;
  --ivory: #FFFFF0;
  --charcoal: #2F2F2F;
  --silver: #C0C0C0;
  
  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Crimson Text', serif;
  --font-accent: 'Cinzel', serif;
  --font-nav: Georgia, serif;
  
  /* Spacing & Proportions (Golden Ratio) */
  --ratio: 1.618;
  --space-xs: 8px;
  --space-sm: 13px;
  --space-md: 21px;
  --space-lg: 34px;
  --space-xl: 55px;
  --space-xxl: 89px;
  
  /* Animation Timing */
  --transition-elegant: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-quick: 0.3s ease-out;
  --transition-luxurious: 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

/* ===== BASE STYLES ===== */
* {
  box-sizing: border-box;
}

body {
  background: #FFFFFF;
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ===== CLEAN BACKGROUND ===== */
.art-deco-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: #FFFFFF;
}

/* ===== HEADER IMAGE SECTION ===== */
.header-image-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  height: 500px;
  overflow: hidden;
  background: #FFFFFF;
}

.header-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.header-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Hero content overlaid on header image */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.hero-overlay .hero-title {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 100;
  text-align: center;
  color: white;
  margin-bottom: 34px;
  position: relative;
}

.hero-overlay .title-line-1 {
  display: block;
  font-size: clamp(1.5rem, 6vw, 3.5rem);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.hero-overlay .title-tagline {
  display: block;
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
  margin: 13px 0;
  letter-spacing: 0.2em;
}

.hero-overlay .hero-buttons {
  margin-top: 34px;
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding: var(--space-lg) 0 var(--space-xxl);
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.hero-title {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 100;
  text-align: center;
  color: var(--charcoal);
  margin-bottom: var(--space-lg);
  position: relative;
}

.title-line-1 {
  display: block;
  font-size: clamp(1rem, 8vw, 3rem);
  letter-spacing: 0.1em;
}

.title-tagline {
  display: block;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--charcoal);
  margin: var(--space-md) 0;
  letter-spacing: 0.2em;
}

.title-line-2 {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.15em;
}



.hero-ornament {
  width: 300px;
  height: 60px;
  margin: 0 auto var(--space-md);
  position: relative;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) saturate(100%) invert(0%);
}

.hero-ornament.top {
  background-image: url('../assets/page-divider.png');
}

.hero-ornament.bottom {
  background-image: url('../assets/page-divider-bottom.png');
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--cream);
  margin-bottom: var(--space-xl);
  font-style: italic;
  letter-spacing: 0.05em;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

/* ===== VICTORIAN BUTTONS ===== */
.btn-victorian {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 60px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  text-decoration: none;
  color: white;
  cursor: pointer;
  background: transparent;
  border: none;
  
  /* Button base shape using PNG */
  background-image: url('../assets/buttonbase.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 200px;
  height: 80px;
}

.btn-victorian:hover {
  color: white;
}


/* ===== BUTTON FLOURISHES ===== */
.btn-flourish {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.btn-flourish.left {
  left: 20px;
  background-image: url('../assets/buttonleft.png');
  clip-path: inset(0 0 0 100%);
  transition: opacity 0.5s ease-in-out, clip-path 0.5s ease-in-out;
}

.btn-flourish.right {
  right: 20px;
  background-image: url('../assets/buttonright.png');
  clip-path: inset(0 100% 0 0);
  transition: opacity 0.5s ease-in-out, clip-path 0.5s ease-in-out;
}

/* Button hover effects */
.btn-victorian:hover .btn-flourish {
  opacity: 1;
}

.btn-victorian:hover .btn-flourish.left {
  clip-path: inset(0 0 0 0%);
}

.btn-victorian:hover .btn-flourish.right {
  clip-path: inset(0 0% 0 0);
}

.btn-text {
  position: relative;
  z-index: 2;
}

/* ===== SECTION STYLES ===== */
section {
  padding: var(--space-xxl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--space-lg);
  position: relative;
  display: inline-block;
}

.section-ornament {
  width: 220px;
  height: 44px;
  margin: 0 auto var(--space-md);
  position: relative;
  background-image: url('../assets/page-divider-bottom.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) saturate(100%) invert(0%);
  animation: ornamentGlow 4s ease-in-out infinite;
}

.section-ornament.small {
  width: 120px;
  height: 30px;
  margin-bottom: var(--space-sm);
}

@keyframes ornamentGlow {
  0%, 100% { 
    filter: brightness(0) saturate(100%) invert(0%);
  }
  50% { 
    filter: brightness(0) saturate(100%) invert(0%) brightness(0.8);
  }
}

/* ===== COLLECTION CARDS ===== */
.collections-section {
  background: transparent;
}

/* ===== LUXURY CRAFTSMANSHIP SECTION ===== */
.luxury-craftsmanship-section {
  background: transparent;
  padding: 89px 0;
}

.craftsmanship-content {
  padding-right: 34px;
}

.craftsmanship-content p {
  font-family: 'Crimson Text', serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 21px;
  text-align: justify;
}

.craftsmanship-image {
  padding-left: 34px;
}

.image-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #f8f8f8, #e8e8e8);
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.image-placeholder p {
  color: #999;
  font-size: 1.1rem;
  font-family: 'Cinzel', Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .craftsmanship-content {
    padding-right: 0;
    margin-bottom: 34px;
  }
  
  .craftsmanship-image {
    padding-left: 0;
  }
  
  .image-placeholder {
    height: 300px;
  }
}

.collection-card {
  height: 400px;
  perspective: 1000px;
  cursor: pointer;
}

.card-frame {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform var(--transition-elegant);
}

.collection-card:hover .card-frame {
  transform: rotateY(5deg) rotateX(5deg);
}

.card-corners {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.corner {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid var(--white-primary);
}

.corner.top-left {
  top: 15px;
  left: 15px;
  border-right: none;
  border-bottom: none;
}

.corner.top-right {
  top: 15px;
  right: 15px;
  border-left: none;
  border-bottom: none;
}

.corner.bottom-left {
  bottom: 15px;
  left: 15px;
  border-right: none;
  border-top: none;
}

.corner.bottom-right {
  bottom: 15px;
  right: 15px;
  border-left: none;
  border-top: none;
}

.card-image {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--dark-burgundy), var(--light-burgundy));
  overflow: hidden;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: var(--space-lg);
  color: var(--ivory);
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-elegant);
}

.collection-card:hover .card-overlay {
  transform: translateY(0);
  opacity: 1;
}

.card-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--white-light);
}

.price-range {
  font-family: var(--font-accent);
  font-weight: 600;
  color: var(--white-primary);
  font-size: 1.1rem;
  margin-top: var(--space-sm);
}

/* ===== PRODUCT CARDS ===== */
.products-section {
  background: linear-gradient(180deg, rgba(74, 0, 0, 0.2) 0%, transparent 50%, rgba(74, 0, 0, 0.2) 100%);
}

.product-card {
  background: linear-gradient(145deg, rgba(74, 0, 0, 0.4), rgba(92, 0, 0, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  overflow: hidden;
  transition: all var(--transition-elegant);
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-elegant);
}

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

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--white-primary);
}

.product-frame {
  padding: var(--space-lg);
}

.product-image {
  position: relative;
  height: 200px;
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--white-primary);
  color: var(--primary-burgundy);
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white-light);
  margin-bottom: var(--space-sm);
}

.product-description {
  color: var(--cream);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
  font-style: italic;
}

.product-price {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white-primary);
  margin-bottom: var(--space-md);
}

.product-btn {
  width: 100%;
  min-width: auto;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9rem;
}

/* ===== PLACEHOLDER IMAGES ===== */
.placeholder-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.placeholder-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.2));
  mix-blend-mode: overlay;
}

/* Collection placeholder patterns */
.silk-collection {
  background: radial-gradient(circle at 30% 30%, var(--gold-dark), var(--accent-burgundy));
  background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(212, 175, 55, 0.1) 10px, rgba(212, 175, 55, 0.1) 20px);
}

.vintage-collection {
  background: linear-gradient(135deg, var(--light-burgundy), var(--gold-dark));
  background-image: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.2) 2px, transparent 2px);
  background-size: 20px 20px;
}

.luxury-collection {
  background: conic-gradient(from 45deg, var(--gold-primary), var(--accent-burgundy), var(--gold-dark), var(--light-burgundy));
}

/* Product placeholder patterns */
.burgundy-paisley {
  background: radial-gradient(ellipse at center, var(--gold-primary), var(--accent-burgundy));
  background-image: repeating-conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(212, 175, 55, 0.3) 60deg, transparent 120deg);
}

.emerald-geometric {
  background: linear-gradient(45deg, #2D5D31, var(--accent-burgundy));
  background-image: linear-gradient(90deg, transparent 40%, rgba(212, 175, 55, 0.3) 50%, transparent 60%),
                    linear-gradient(0deg, transparent 40%, rgba(212, 175, 55, 0.3) 50%, transparent 60%);
  background-size: 40px 40px;
}

.navy-stripes {
  background: linear-gradient(45deg, #1a1a2e, var(--accent-burgundy));
  background-image: repeating-linear-gradient(135deg, transparent, transparent 8px, rgba(192, 192, 192, 0.3) 8px, rgba(192, 192, 192, 0.3) 16px);
}

.golden-damask {
  background: radial-gradient(circle at center, var(--gold-light), var(--gold-dark));
  background-image: radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.5) 20%, transparent 21%),
                    radial-gradient(circle at 75% 75%, rgba(212, 175, 55, 0.5) 20%, transparent 21%);
  background-size: 60px 60px;
}

.craftsman {
  background: linear-gradient(135deg, var(--charcoal), var(--accent-burgundy));
  background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(212, 175, 55, 0.1) 5px, rgba(212, 175, 55, 0.1) 10px);
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background: linear-gradient(90deg, transparent 0%, rgba(74, 0, 0, 0.3) 50%, transparent 100%);
}

.about-content {
  padding-right: var(--space-lg);
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--cream);
  margin-bottom: var(--space-lg);
}

.about-text p {
  margin-bottom: var(--space-md);
}

.about-image {
  position: relative;
}

.image-frame {
  position: relative;
  height: 400px;
  border: 3px solid var(--gold-primary);
  overflow: hidden;
  transform: perspective(800px) rotateY(-5deg);
  transition: transform var(--transition-elegant);
}

.image-frame:hover {
  transform: perspective(800px) rotateY(0deg);
}


/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-deco {
    width: 100%;
    max-width: 280px;
  }
  
  .about-content {
    padding-right: 0;
    margin-bottom: var(--space-lg);
  }
  
  .image-frame {
    transform: none;
    height: 300px;
  }
}

@media (max-width: 576px) {
  section {
    padding: var(--space-xl) 0;
  }
  
  .collection-card {
    height: 350px;
  }
  
  .product-frame {
    padding: var(--space-md);
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .art-deco-bg,
  .geometric-pattern,
  .golden-rays {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* ===============================================
   SHOP PAGE STYLES
   =============================================== */

.shop-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/page-divider.png') repeat-x center;
    opacity: 0.1;
}

.shop-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.shop-hero p {
    font-family: 'Crimson Text', serif;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.product-grid {
    padding: 80px 0;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-placeholder {
    background: linear-gradient(45deg, #e9ecef, #dee2e6);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
}

.product-content {
    padding: 25px;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-description {
    font-family: 'Crimson Text', serif;
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-price {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #c9302c;
    margin-bottom: 20px;
}

.btn-add-to-cart {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    font-family: 'Cinzel', serif;
    font-weight: 500;
    border-radius: 5px;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.btn-add-to-cart:hover {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.btn-add-to-cart:active {
    transform: translateY(0);
}

.filter-section {
    background: #f8f9fa;
    padding: 40px 0;
    border-bottom: 1px solid #dee2e6;
}

.filter-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 8px 15px;
    font-family: 'Crimson Text', serif;
    background: white;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 40px;
}

.loading-spinner .spinner-border {
    color: #c9302c;
}

/* Shop Page Mobile Styles */
@media (max-width: 768px) {
    .shop-hero h1 {
        font-size: 2.5rem;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        justify-content: space-between;
    }
}
