/* ============================================
   FILE: public/assets/frontend_new/section_wise.css
   Description: All frontend_new component styles and design system tokens.
   ============================================ */

/* --- DESIGN TOKENS --- */
:root {
    /* Colors */
    --primary-container: #1a0f4e;
    --secondary-container: #fd9421;
    --on-secondary-container: #653500;
    --background: #fcf8fe;
    --surface: #fcf8fe;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f7f2f8;
    --surface-container-high: #ebe7ed;
    --surface-container-highest: #e5e1e7;
    --on-surface: #1c1b1f;
    --on-surface-variant: #484550;
    --outline-variant: #c9c4d1;
    --secondary: #8f4e00;
    --secondary-fixed: #ffdcc1;
}

/* --- TYPOGRAPHY --- */
body {
    font-family: 'Work Sans', sans-serif;
    color: var(--on-surface);
    background-color: var(--background);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

.font-headline {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.font-body {
    font-family: 'Work Sans', sans-serif;
}

/* Font size override for lg:text-8xl to match user request (3.75rem / 60px) */
@media (min-width: 1024px) {
    .lg\:text-8xl {
        font-size: 3.75rem !important;
        line-height: 1 !important;
    }
}

/* --- GLOBAL UTILITIES --- */
a, a:hover {
    text-decoration: none !important;
}

::selection {
    background-color: var(--secondary-container);
    color: var(--on-secondary-container);
}

::-moz-selection {
    background-color: var(--secondary-container);
    color: var(--on-secondary-container);
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

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

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* --- NAVBAR --- */
.nav-dropdown-panel {
    transform-origin: top left;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-dropdown-panel.hidden-state {
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
}

.nav-dropdown-panel.visible-state {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- COMPONENTS --- */

/* Glass Navigation */
.glass-nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-opacity: 0.8;
}

/* Hero Slider */
.hero-slide {
    transition: opacity 0.7s ease-in-out;
}

/* Cards & Containers */
.card-shadow {
    box-shadow: 0 20px 40px rgba(28, 27, 31, 0.04);
}

.rounded-section {
    border-radius: 3rem;
}

/* --- BUTTONS --- */
.btn-primary {
    background-color: var(--secondary-container);
    color: var(--on-secondary-container);
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(253, 148, 33, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

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

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

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

/* --- PRODUCT GALLERY --- */
#lightbox {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#lightbox-img {
    transition: opacity 0.2s ease;
}

/* WhatsApp Pulse */
.wp-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    box-shadow: 0 0 0 0 rgba(253, 148, 33, 0.4);
    animation: wp-pulse 2.5s ease-out infinite;
}

@keyframes wp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(253, 148, 33, 0.4);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(253, 148, 33, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(253, 148, 33, 0);
    }
}

/* ============================================
   NAVBAR DROPDOWN — Style only
   ============================================ */
.navbar-dropdown-panel {
    background: #1a0f4e;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.40);
    padding: 0.5rem 0;
    min-width: 220px;
}

.navbar-dropdown-panel-deep {
    background: #120547;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.50);
    padding: 0.5rem 0;
    min-width: 220px;
}

.navbar-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.80);
    font-family: 'Work Sans', sans-serif;
    font-size: 0.875rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.navbar-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.navbar-dropdown-viewall {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: #fd9421;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    margin-top: 0.25rem;
    transition: color 0.15s ease;
}

.navbar-dropdown-viewall:hover {
    color: #ffffff;
}

.navbar-dropdown-leaf {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.70);
    font-family: 'Work Sans', sans-serif;
    font-size: 0.875rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.navbar-dropdown-leaf::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(253, 148, 33, 0.60);
    flex-shrink: 0;
}

.navbar-dropdown-leaf:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.navbar-dropdown-chevron {
    color: rgba(255, 255, 255, 0.40);
    font-size: 1rem;
}

#back-to-top {
    transition: opacity 0.3s ease, transform 0.2s ease;
}

/* --- SCROLL SNAP --- */
.scroll-snap-x {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.scroll-snap-start {
    scroll-snap-align: start;
}

/* --- ERROR PAGES --- */
.error-code {
    font-size: clamp(100px, 20vw, 220px);
    letter-spacing: -0.05em;
    line-height: 1;
}

/* --- CTA GLOW ORBS --- */
.cta-orb-1 {
    position: absolute;
    top: 0;
    right: 0;
    width: 24rem;
    height: 24rem;
    background: #fd9421;
    opacity: 0.1;
    border-radius: 9999px;
    filter: blur(100px);
    pointer-events: none;
    transform: translate(50%, -50%);
}

.cta-orb-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 16rem;
    height: 16rem;
    background: #fd9421;
    opacity: 0.1;
    border-radius: 9999px;
    filter: blur(80px);
    pointer-events: none;
    transform: translate(-50%, 50%);
}

/* --- COMMUNITY FEED GRID --- */
.feed-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .feed-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Legacy Section - CKEditor Content Spacing */
.legacy-description p {
    margin-bottom: 1.5rem;
}

.legacy-description p:last-child {
    margin-bottom: 0;
}

/* ══ NAVBAR MOBILE OVERLAP FIX ══ */
@media (max-width: 640px) {
  main { padding-top: 68px; }
}
@media (min-width: 641px) and (max-width: 768px) {
  main { padding-top: 72px; }
}

/* ══ HERO OVERLAY — reduce opacity to match Stitch ══ */
.hero-overlay-gradient {
  background: linear-gradient(
    to right,
    rgba(26,15,78,0.90) 0%,
    rgba(26,15,78,0.60) 50%,
    transparent 100%
  );
}

/* ══ FAB STACK — mobile repositioning ══ */
@media (max-width: 640px) {
  #fab-stack {
    bottom: 14px;
    right: 10px;
    gap: 8px;
  }
  #fab-stack button {
    width: 46px;
    height: 46px;
  }
  #back-to-top { display: none !important; }
}

/* ══ PRODUCT DETAIL — mobile image aspect ratio ══ */
@media (max-width: 640px) {
  #main-img-wrap { aspect-ratio: 1 / 1 !important; }
}

/* ══ PRODUCTS SIDEBAR — mobile collapse ══ */
@media (max-width: 1024px) {
  .products-sidebar { display: none; }
  .products-sidebar.open { display: block; }
}

/* ══ PRODUCT CARD — unified line-clamp utility ══ */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ══ PRODUCT DETAIL — Main image fixed sizes ══ */
#main-img-wrap {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Mobile: max-width small screen */
@media (max-width: 640px) {
  #main-img-wrap {
    max-width: 100%;
    height: auto;
  }
}

/* Tablet: medium fixed size */
@media (min-width: 641px) and (max-width: 1024px) {
  #main-img-wrap {
    width: 100%;
    max-width: 700px;
    height: 567px;
    margin: 0 auto;
  }
}

/* Desktop: large fixed size */
@media (min-width: 1025px) {
  #main-img-wrap {
    width: 700px;
    height: 600px;
    max-width: 100%;
  }
}

