/* ============================================================
   Djily Creations — Custom CSS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Syncopate:wght@400;700&display=swap');

/* Custom Tailwind-like variables */
:root {
  --grey-divider: #E5E5E5;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #000000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* Selection */
::selection {
  background-color: #000;
  color: #fff;
}

/* Font Display */
.font-display {
  font-family: 'Syncopate', sans-serif;
}

/* Video overlay gradient */
.video-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 100%);
}

/* Utility: line through text */
.line-through {
  text-decoration: line-through;
}

/* Letter Spacing Extended */
.tracking-widest-editorial { letter-spacing: 0.3em; }

/* Hero slide transition */
.hero-slide {
  position: absolute;
  inset: 0;
  transition: opacity 1.5s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide.inactive { opacity: 0; }

/* Mega menu */
.mega-dropdown {
  position: fixed;
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--grey-divider);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
}
.mega-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Search Modal */
#search-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 110;
  align-items: flex-start;
  justify-content: center;
  padding-top: 1rem;
}
#search-modal.open {
  display: flex !important;
}

/* Cart Drawer */
#cart-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 120;
}
#cart-backdrop.open { display: block !important; }

#cart-drawer {
  position: fixed;
  right: 0; top: 0;
  height: 100%;
  width: 100%; max-width: 28rem;
  background: #fff;
  z-index: 130;
  box-shadow: -20px 0 60px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#cart-drawer.open { transform: translateX(0) !important; }

/* Mobile Menu */
#mobile-menu {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
}
#mobile-menu.open { transform: translateX(0) !important; }

/* Contact Form 7 Form Styling */
.newsletter-form-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .newsletter-form-wrapper {
    flex-direction: row;
    gap: 0;
  }
}
.newsletter-field-group {
  position: relative;
  flex-grow: 1;
}
.newsletter-field-group input[type="email"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-family: 'Syncopate', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  color: #000;
  outline: none;
  transition: border-color 0.3s;
}
.newsletter-field-group input[type="email"]::placeholder {
  color: rgba(0, 0, 0, 0.3);
}
.newsletter-field-group input[type="email"]:focus {
  border-bottom-color: #000;
}
.newsletter-submit-btn {
  background-color: #000;
  color: #fff;
  padding: 1rem 3rem;
  font-family: 'Syncopate', sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  transition: all 0.3s;
  margin-top: 1rem;
  cursor: pointer;
  border: none;
}
@media (min-width: 768px) {
  .newsletter-submit-btn {
    margin-top: 0;
    margin-left: 2rem;
  }
}
.newsletter-submit-btn:hover {
  background-color: rgba(0, 0, 0, 0.85);
}

/* Zoom Modal */
#zoom-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
#zoom-modal.open { display: flex; }

/* Product hotspots */
.hotspot-tooltip {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.hotspot:hover .hotspot-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Hover scale on images */
.group:hover .group-hover-scale { transform: scale(1.05); }
.group:hover .group-hover-scale-110 { transform: scale(1.1); }

/* Slider progress indicator */
.slide-indicator.active {
  background-color: white;
}
.slide-indicator {
  background-color: rgba(255,255,255,0.2);
}

/* Responsive utilities shorthand */
@media (min-width: 768px) {
  .md\:hidden { display: none; }
}

/* ============================================================
   Navigation Active States
   ============================================================ */
#desktop-nav a.active-link,
#desktop-nav button.active-group {
  color: #000000 !important;
  opacity: 1 !important;
}

.active-nav-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #000000;
  transition: all 0.3s ease;
}

#mobile-menu a.active-link {
  color: #000000 !important;
  font-weight: 700 !important;
  border-left: 2px solid #000000;
  padding-left: 0.5rem;
}

