/**
 * Sacozy Luxury Bedding & Textiles Theme Styles
 * Exact 1:1 Sapphire Heritage System & Fail-Safe Fallbacks
 */

/* Core Typography & Base Styling */
html, body {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #FAF8F5;
  color: #102542;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-prata {
  font-family: 'Prata', Georgia, serif;
}

.font-cormorant {
  font-family: 'Cormorant Garamond', Garamond, serif;
}

.font-sans-ui {
  font-family: 'Public Sans', sans-serif;
}

/* ========================================================
   EXACT PALETTE CLASSES (Without blocking hover states)
   ======================================================== */
.bg-ivory { background-color: #FAF8F5; }
.bg-midnight { background-color: #102542; }
.bg-sapphire { background-color: #1E3A5F; }
.bg-champagne { background-color: #D8C3A5; }
.bg-champagne-light { background-color: #F3ECE2; }
.bg-brass { background-color: #C79C5A; }
.bg-surface { background-color: #FBF9F6; }
.bg-surface-low { background-color: #F5F3F0; }
.bg-surface-dim { background-color: #DBDADA; }

/* Text Colors */
.text-midnight { color: #102542; }
.text-ivory { color: #FAF8F5; }
.text-brass { color: #C79C5A; }
.text-champagne { color: #D8C3A5; }
.text-champagne-light { color: #F3ECE2; }
.text-sapphire { color: #1E3A5F; }

/* Borders */
.border-brass { border-color: #C79C5A; }
.border-champagne { border-color: #D8C3A5; }
.border-brass-subtle { border-color: rgba(199, 156, 90, 0.35); }
.border-champagne-subtle { border-color: rgba(216, 195, 165, 0.4); }

/* Hover States Explicitly Defined */
.hover\:text-midnight:hover,
a.hover\:text-midnight:hover {
  color: #102542 !important;
}

.hover\:bg-champagne:hover,
a.hover\:bg-champagne:hover {
  background-color: #D8C3A5 !important;
}

.hover\:bg-brass-hover:hover,
a.hover\:bg-brass-hover:hover {
  background-color: #B08647 !important;
}

.hover\:text-brass:hover,
a.hover\:text-brass:hover {
  color: #C79C5A !important;
}

.hover\:text-champagne:hover,
a.hover\:text-champagne:hover {
  color: #D8C3A5 !important;
}

.hover\:text-white:hover,
a.hover\:text-white:hover {
  color: #FFFFFF !important;
}

/* Letter Spacing */
.tracking-widest2 { letter-spacing: 0.2em; }
.tracking-heritage { letter-spacing: 0.15em; }

/* Background Noise and Scrollbars */
.bg-noise-overlay {
  background-image: radial-gradient(rgba(16, 37, 66, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
}

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ========================================================
   HEADER STICKY & OPACITY GUARANTEE
   ======================================================== */
header.bg-ivory,
header.sticky {
  background-color: #FAF8F5 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  opacity: 1 !important;
}

/* ========================================================
   HERO OVERLAYS & RESPONSIVE HIGH-SPECIFICITY IMAGE FIX
   ======================================================== */
.sacozy-hero-section {
  position: relative !important;
  min-height: 580px !important;
}

@media (min-width: 1024px) {
  .sacozy-hero-section {
    min-height: 660px !important;
  }
}

.sacozy-hero-section .absolute.inset-0.z-0 img,
.sacozy-hero-section .sacozy-hero-img,
.elementor .sacozy-hero-section .absolute.inset-0.z-0 img,
.elementor-widget-sacozy_hero_section img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* Exact 1:1 Horizontal Gradient Overlay from code.html across ALL screen sizes (to right: 90% -> 60% -> 0%) */
.sacozy-hero-overlay,
.sacozy-hero-section .sacozy-hero-overlay,
.elementor-widget-sacozy_hero_section .sacozy-hero-overlay,
.elementor-widget-sacozy_hero_section .absolute.inset-0.bg-gradient-to-r,
.hero-blue-overlay,
.bg-gradient-to-r.from-midnight\/90,
[data-purpose="editorial-hero"] .bg-gradient-to-r {
  background: linear-gradient(to right, rgba(16, 37, 66, 0.90) 0%, rgba(16, 37, 66, 0.60) 50%, rgba(16, 37, 66, 0) 100%) !important;
}

/* Elementor Full Width Resets for Sacozy Widgets */
.elementor-page .entry-content,
.elementor-page .sacozy-main-content,
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 100% !important;
}

.elementor-widget-sacozy_hero_section,
.elementor-widget-sacozy_hero_section .elementor-widget-container,
.elementor-widget-sacozy_secondary_promo,
.elementor-widget-sacozy_secondary_promo .elementor-widget-container,
.elementor-widget-sacozy_category_grid,
.elementor-widget-sacozy_category_grid .elementor-widget-container,
.elementor-widget-sacozy_seasonal_story_banner,
.elementor-widget-sacozy_seasonal_story_banner .elementor-widget-container,
.elementor-widget-sacozy_comforter_guide,
.elementor-widget-sacozy_comforter_guide .elementor-widget-container,
.elementor-widget-sacozy_best_sellers,
.elementor-widget-sacozy_best_sellers .elementor-widget-container,
.elementor-widget-sacozy_customer_testimonials,
.elementor-widget-sacozy_customer_testimonials .elementor-widget-container,
.elementor-widget-sacozy_brand_story,
.elementor-widget-sacozy_brand_story .elementor-widget-container,
.elementor-widget-sacozy_social_gallery,
.elementor-widget-sacozy_social_gallery .elementor-widget-container,
.elementor-widget-sacozy_concierge_rewards,
.elementor-widget-sacozy_concierge_rewards .elementor-widget-container,
.elementor-widget-sacozy_trust_pillars,
.elementor-widget-sacozy_trust_pillars .elementor-widget-container {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hero Description Typography (Exact 1:1 inheritance) */
.sacozy-hero-desc,
.sacozy-hero-desc p {
  color: rgba(250, 248, 245, 0.8) !important;
  font-weight: 300 !important;
  line-height: 1.625 !important;
}
.sacozy-hero-desc p {
  margin-bottom: 0 !important;
  font-size: inherit !important;
}

/* ========================================================
   CATEGORY GRID 1:1 CODE.HTML ZERO-TOLERANCE RULES
   ======================================================== */
.sacozy-category-grid-section .aspect-\[4\/5\] {
  aspect-ratio: 4 / 5 !important;
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  display: block !important;
}

/* Force 100% fill and object-cover over Elementor's .elementor img { height: auto } */
.sacozy-category-grid-section .aspect-\[4\/5\] img,
.elementor .sacozy-category-grid-section .aspect-\[4\/5\] img,
.elementor-widget-sacozy_category_grid .aspect-\[4\/5\] img,
.elementor-widget-sacozy_category_grid img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* Hover Zoom Effect 1:1 to code.html */
.sacozy-category-grid-section .group:hover img,
.elementor .sacozy-category-grid-section .group:hover img {
  transform: scale(1.05) !important;
}

/* ========================================================
   SEASONAL STORY BANNER 1:1 CODE.HTML ZERO-TOLERANCE RULES
   ======================================================== */
.sacozy-seasonal-banner-section {
  min-height: 500px;
}

.sacozy-seasonal-banner-section .absolute.inset-0.z-0 img,
.elementor .sacozy-seasonal-banner-section .absolute.inset-0.z-0 img,
.elementor-widget-sacozy_seasonal_story_banner img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  filter: brightness(0.50) contrast(1.10) !important;
}

.sacozy-seasonal-overlay,
.sacozy-seasonal-banner-section .bg-midnight\/40 {
  background-color: rgba(16, 37, 66, 0.40) !important;
  mix-blend-mode: multiply !important;
}

.hover\:bg-brass:hover,
a.hover\:bg-brass:hover {
  background-color: #C79C5A !important;
}

/* ========================================================
   COMFORTER GUIDE & BEST SELLERS ASPECT-SQUARE FAIL-SAFES
   ======================================================== */
.sacozy-comforter-guide .aspect-square,
.sacozy-best-sellers .aspect-square {
  aspect-ratio: 1 / 1 !important;
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  display: block !important;
}

.sacozy-comforter-guide .aspect-square img,
.elementor .sacozy-comforter-guide .aspect-square img,
.elementor-widget-sacozy_comforter_guide .aspect-square img,
.sacozy-best-sellers .aspect-square img,
.elementor .sacozy-best-sellers .aspect-square img,
.elementor-widget-sacozy_best_sellers .aspect-square img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* Best Sellers Grid Hover Transitions */
.sacozy-best-sellers article.group:hover img {
  transform: scale(1.05) !important;
}

/* ========================================================
   CUSTOMER TESTIMONIALS ASPECT-[3/4] FAIL-SAFES
   ======================================================== */
.sacozy-customer-testimonials .aspect-\[3\/4\] {
  aspect-ratio: 3 / 4 !important;
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  display: block !important;
}

.sacozy-customer-testimonials .aspect-\[3\/4\] img,
.elementor .sacozy-customer-testimonials .aspect-\[3\/4\] img,
.elementor-widget-sacozy_customer_testimonials .aspect-\[3\/4\] img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* ========================================================
   DYNAMIC COLOR SWATCH BUTTONS
   ======================================================== */
.sacozy-swatch-btn {
  padding: 0;
  border: none;
  display: inline-block;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
}

.sacozy-swatch-btn.active-swatch {
  border: 1px solid rgba(16, 37, 66, 0.4) !important;
  box-shadow: 0 0 0 1px #FAF8F5, 0 0 0 2px #C79C5A !important;
}

/* ========================================================
   BRAND STORY (OUR PROVENANCE) 1:1 ZERO-TOLERANCE RULES
   ======================================================== */
.sacozy-brand-story .absolute.inset-0.z-0 img,
.elementor .sacozy-brand-story .absolute.inset-0.z-0 img,
.elementor-widget-sacozy_brand_story img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.sacozy-brand-story .bg-midnight\/50 {
  background-color: rgba(16, 37, 66, 0.50) !important;
  mix-blend-mode: multiply !important;
}

.sacozy-brand-btn:hover {
  background-color: #D8C3A5 !important;
  color: #102542 !important;
}

/* ========================================================
   SOCIAL GALLERY (SHOP, SHARE & INSPIRE) 1:1 ZERO-TOLERANCE RULES
   ======================================================== */
.sacozy-social-gallery .aspect-\[3\/4\] {
  aspect-ratio: 3 / 4 !important;
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  display: block !important;
}

.sacozy-social-gallery .aspect-\[3\/4\] img,
.elementor .sacozy-social-gallery .aspect-\[3\/4\] img,
.elementor-widget-sacozy_social_gallery .aspect-\[3\/4\] img,
.elementor-widget-sacozy_social_gallery img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.sacozy-social-gallery .group:hover img,
.elementor .sacozy-social-gallery .group:hover img {
  transform: scale(1.05) !important;
}

/* ========================================================
   TRUST PILLARS (HERALDIC BADGES) 1:1 ZERO-TOLERANCE RULES
   ======================================================== */
.sacozy-trust-pillars .divide-champagne\/30 > :not([hidden]) ~ :not([hidden]),
.elementor .sacozy-trust-pillars .divide-champagne\/30 > :not([hidden]) ~ :not([hidden]) {
  border-color: rgba(216, 195, 165, 0.30) !important;
}

/* ========================================================
   LUXURY DESIGN POLISH: BORDER RADIUS & IMAGE FRAMING
   ======================================================== */
.sacozy-category-grid-section .aspect-\[4\/5\],
.elementor-widget-sacozy_category_grid .aspect-\[4\/5\] {
  border-radius: 6px !important;
  box-shadow: 0 4px 16px rgba(16, 37, 66, 0.04) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sacozy-category-grid-section .group:hover .aspect-\[4\/5\],
.elementor-widget-sacozy_category_grid .group:hover .aspect-\[4\/5\] {
  box-shadow: 0 12px 32px rgba(16, 37, 66, 0.12) !important;
  transform: translateY(-3px);
}

/* Category Grid Tile Arrow Micro-animation */
.sacozy-category-grid-section .sacozy-tile-arrow {
  display: inline-block !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.sacozy-category-grid-section .group:hover .sacozy-tile-arrow {
  transform: translateX(4px) !important;
}

/* Luxury Border Radii & Soft Ambient Shadows */
.sacozy-category-grid-section .aspect-\[4\/5\],
.elementor-widget-sacozy_category_grid .aspect-\[4\/5\] {
  border-radius: 8px !important;
}

.sacozy-best-sellers .aspect-square,
.elementor-widget-sacozy_best_sellers .aspect-square {
  border-radius: 8px !important;
  box-shadow: 0 4px 18px rgba(16, 37, 66, 0.05) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sacozy-best-sellers article:hover .aspect-square,
.elementor-widget-sacozy_best_sellers article:hover .aspect-square {
  box-shadow: 0 12px 32px rgba(16, 37, 66, 0.11) !important;
  transform: translateY(-3px);
}

.sacozy-comforter-guide .aspect-square,
.elementor-widget-sacozy_comforter_guide .aspect-square {
  border-radius: 8px !important;
}

.sacozy-comforter-guide .sacozy-card-box,
.elementor-widget-sacozy_comforter_guide .sacozy-card-box {
  border-radius: 12px !important;
  box-shadow: 0 4px 18px rgba(16, 37, 66, 0.05) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sacozy-comforter-guide .sacozy-card-box:hover,
.elementor-widget-sacozy_comforter_guide .sacozy-card-box:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 40px rgba(16, 37, 66, 0.10) !important;
}

.sacozy-customer-testimonials .aspect-\[3\/4\],
.elementor-widget-sacozy_customer_testimonials .aspect-\[3\/4\] {
  border-radius: 12px !important;
  box-shadow: 0 8px 26px rgba(16, 37, 66, 0.12) !important;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sacozy-customer-testimonials .aspect-\[3\/4\]:hover,
.elementor-widget-sacozy_customer_testimonials .aspect-\[3\/4\]:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 44px rgba(16, 37, 66, 0.18) !important;
}

.sacozy-social-gallery .aspect-\[3\/4\],
.elementor-widget-sacozy_social_gallery .aspect-\[3\/4\] {
  border-radius: 8px !important;
  box-shadow: 0 4px 18px rgba(16, 37, 66, 0.07) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sacozy-social-gallery .aspect-\[3\/4\]:hover,
.elementor-widget-sacozy_social_gallery .aspect-\[3\/4\]:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 34px rgba(16, 37, 66, 0.15) !important;
}

/* Ensure all child images inside rounded containers inherit curvature and clip cleanly on all browsers */
.sacozy-category-grid-section .aspect-\[4\/5\],
.elementor-widget-sacozy_category_grid .aspect-\[4\/5\],
.sacozy-best-sellers .aspect-square,
.elementor-widget-sacozy_best_sellers .aspect-square,
.sacozy-comforter-guide .aspect-square,
.elementor-widget-sacozy_comforter_guide .aspect-square,
.sacozy-customer-testimonials .aspect-\[3\/4\],
.elementor-widget-sacozy_customer_testimonials .aspect-\[3\/4\],
.sacozy-social-gallery .aspect-\[3\/4\],
.elementor-widget-sacozy_social_gallery .aspect-\[3\/4\] {
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  overflow: hidden !important;
}

.sacozy-category-grid-section .aspect-\[4\/5\] img,
.elementor-widget-sacozy_category_grid .aspect-\[4\/5\] img,
.sacozy-best-sellers .aspect-square img,
.elementor-widget-sacozy_best_sellers .aspect-square img,
.sacozy-comforter-guide .aspect-square img,
.elementor-widget-sacozy_comforter_guide .aspect-square img,
.sacozy-customer-testimonials .aspect-\[3\/4\] img,
.elementor-widget-sacozy_customer_testimonials .aspect-\[3\/4\] img,
.sacozy-social-gallery .aspect-\[3\/4\] img,
.elementor-widget-sacozy_social_gallery .aspect-\[3\/4\] img {
  border-radius: inherit !important;
}

.sacozy-gallery-badge {
  border-radius: 4px !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

/* ========================================================
   LUXURY MICRO-ANIMATIONS & INTERACTIVITY
   ======================================================== */
@keyframes sacoFadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.sacozy-anim-fade-up {
  animation: sacoFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.saco-delay-1 { animation-delay: 0.12s; }
.saco-delay-2 { animation-delay: 0.24s; }
.saco-delay-3 { animation-delay: 0.36s; }
.saco-delay-4 { animation-delay: 0.48s; }

/* Scroll-triggered reveal */
.sacozy-reveal-init {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.sacozy-reveal-init.sacozy-is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Luxury button interactive lift & shadows */
.sacozy-primary-btn,
.sacozy-secondary-btn,
.sacozy-brand-btn,
.sacozy-seasonal-btn,
.sacozy-promo-btn {
  border-radius: 3px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
}

.sacozy-primary-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(199, 156, 90, 0.35) !important;
}

.sacozy-secondary-btn:hover,
.sacozy-brand-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(216, 195, 165, 0.28) !important;
}

/* Trust Pillar Icon Hover Lift */
.sacozy-pillar-icon-box {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.sacozy-trust-pillars .group:hover .sacozy-pillar-icon-box,
.sacozy-trust-pillars > div > div > div:hover .sacozy-pillar-icon-box {
  transform: translateY(-3px) scale(1.08) !important;
}

/* Header Scrolled Elevation */
header.sacozy-scrolled {
  box-shadow: 0 4px 20px rgba(16, 37, 66, 0.06) !important;
  background-color: rgba(250, 248, 245, 0.98) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}











