/* ==========================================================================
   Scroll-Driven Video Sequence Stylesheet
   Theme: Scandi Child 2
   Primary Brand Accent: #2c8779 (Livewidh Teal/Emerald)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Vollkorn:ital,wght@0,400;0,500;0,700;1,400;1,600&family=Ubuntu:wght@300;400;500;700&display=swap');

:root {
    --sq-bg-color: #0b0d0e;
    --sq-card-bg: rgba(10, 18, 18, 0.72);
    --sq-card-border: rgba(44, 135, 121, 0.3);
    --sq-primary: #2c8779;
    --sq-primary-light: #3aa896;
    --sq-primary-dark: #1f6459;
    --sq-primary-glow: rgba(44, 135, 121, 0.35);
    --sq-primary-gradient: linear-gradient(135deg, #2c8779 0%, #1f6459 100%);
    --sq-text-primary: #f2f4f3;
    --sq-text-secondary: #8a9a96;
    --sq-text-muted: #556260;
    --sq-font-serif: 'Vollkorn', Georgia, serif;
    --sq-font-sans: 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif;
    --sq-radius: 16px;
}

/* Force parent theme containers to zero padding & 100% width on this page */
.page-template-template-quran-scroll #middle,
.page-template-template-quran-scroll .content_wrap,
.page-template-template-quran-scroll .middle_inner,
.page-template-template-quran-scroll .content,
.page-template-template-quran-scroll .entry-content,
.page-template-template-quran-scroll main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ── Header: transparent, floating, full-width ── */
.page-template-template-quran-scroll #header {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
    z-index: 9999;
}

/* Hide the top info bar (phone/email strip) completely */
.page-template-template-quran-scroll .header_top,
.page-template-template-quran-scroll .header_top_outer {
    display: none !important;
}

/* Transparent mid/bot header bars */
.page-template-template-quran-scroll .header_mid,
.page-template-template-quran-scroll .header_bot,
.page-template-template-quran-scroll .header_mid_inner,
.page-template-template-quran-scroll .header_mid_outer,
.page-template-template-quran-scroll .header_bot_inner,
.page-template-template-quran-scroll .header_bot_outer {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Dark scrim behind nav for readability, fades down */
.page-template-template-quran-scroll .header_mid_outer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(5, 8, 8, 0.72) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Nav links — white with teal hover */
.page-template-template-quran-scroll .header_mid .nav>li>a,
.page-template-template-quran-scroll .header_mid .header_nav>li>a,
.page-template-template-quran-scroll .header_mid a {
    color: rgba(255, 255, 255, 0.9) !important;
    /* text-shadow: 0 1px 4px rgba(0,0,0,0.5); */
    font-weight: 500;
}

.page-template-template-quran-scroll .header_mid a:hover {
    color: var(--sq-primary-light) !important;
}

/* Cart/wishlist/search icons & text: force white */
.page-template-template-quran-scroll .header_mid .cmsmasters_dynamic_cart_wrap a,
.page-template-template-quran-scroll .header_mid .cmsmasters_dynamic_cart_wrap span,
.page-template-template-quran-scroll .header_mid .cmsmasters_dynamic_cart_wrap:before,
.page-template-template-quran-scroll .header_mid .mid_search_but_wrap a,
.page-template-template-quran-scroll .header_mid .mid_search_but_wrap span,
.page-template-template-quran-scroll .header_mid .mid_search_but_wrap:before,
.page-template-template-quran-scroll .header_mid .wishlist_wrap a,
.page-template-template-quran-scroll .header_mid .wishlist_wrap span,
.page-template-template-quran-scroll .header_mid .wishlist_wrap:before,
.page-template-template-quran-scroll .header_mid .cmsmasters_header_search_toggle {
    color: #ffffff !important;
}

/* Logo: show original colors (no filter) */
.page-template-template-quran-scroll .logo_wrap img {
    filter: none !important;
    opacity: 1 !important;
    height: 60px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
}

/* Remove default #middle top spacing so page bleeds to top */
.page-template-template-quran-scroll #middle {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ==========================================================================
   PREMIUM SEARCH OVERLAY — Light Theme
   ========================================================================== */
.page-template-template-quran-scroll .cmsmasters_header_search_form {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease !important;
}

.page-template-template-quran-scroll .cmsmasters_header_search_form.cmsmasters_show {
    visibility: visible !important;
    opacity: 1 !important;
}

/* ── Search field container ── */
.page-template-template-quran-scroll .cmsmasters_header_search_form .cmsmasters_header_search_form_field,
.page-template-template-quran-scroll .cmsmasters_header_search_form .wp-block-yith-search-block {
    position: relative !important;
    max-width: 720px !important;
    width: 90% !important;
    height: auto !important;
    margin: 0 !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
}

/* ── Strip YITH white-pill defaults ── */
.page-template-template-quran-scroll .cmsmasters_header_search_form .wp-block-yith-input-block,
.page-template-template-quran-scroll .cmsmasters_header_search_form .wp-block-yith-input-block form,
.page-template-template-quran-scroll .cmsmasters_header_search_form .wp-block-yith-input-block form>div,
.page-template-template-quran-scroll .cmsmasters_header_search_form .wp-block-yith-input-block .ywcas-input-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

/* ── Input field ── */
.page-template-template-quran-scroll .cmsmasters_header_search_form input,
.page-template-template-quran-scroll .cmsmasters_header_search_form input[type="text"],
.page-template-template-quran-scroll .cmsmasters_header_search_form input[type="search"],
.page-template-template-quran-scroll .cmsmasters_header_search_form .wp-block-yith-search-block input,
.page-template-template-quran-scroll .cmsmasters_header_search_form .wp-block-yith-search-block input[type="search"] {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #e0e0e0 !important;
    border-radius: 0 !important;
    color: #111114 !important;
    font-family: var(--sq-font-serif) !important;
    font-size: clamp(28px, 4vw, 42px) !important;
    font-weight: 400 !important;
    padding: 16px 50px 16px 0 !important;
    text-align: left !important;
    width: 100% !important;
    height: auto !important;
    box-shadow: none !important;
    transition: border-color 0.3s ease !important;
    line-height: 1.3 !important;
}

.page-template-template-quran-scroll .cmsmasters_header_search_form input:focus,
.page-template-template-quran-scroll .cmsmasters_header_search_form .wp-block-yith-search-block input[type="search"]:focus {
    outline: none !important;
    box-shadow: none !important;
    border-bottom-color: #2c8779 !important;
}

.page-template-template-quran-scroll .cmsmasters_header_search_form input::placeholder,
.page-template-template-quran-scroll .cmsmasters_header_search_form .wp-block-yith-search-block input::placeholder,
.page-template-template-quran-scroll .cmsmasters_header_search_form .wp-block-yith-search-block input[type="search"]::placeholder {
    color: #999 !important;
    font-weight: 300 !important;
}

/* ── YITH search button / icon ── */
.page-template-template-quran-scroll .cmsmasters_header_search_form .wp-block-yith-search-block button,
.page-template-template-quran-scroll .cmsmasters_header_search_form button {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.page-template-template-quran-scroll .cmsmasters_header_search_form .wp-block-yith-search-block button svg,
.page-template-template-quran-scroll .cmsmasters_header_search_form button svg {
    fill: #555 !important;
    width: 24px !important;
    height: 24px !important;
    transition: fill 0.3s ease !important;
}

.page-template-template-quran-scroll .cmsmasters_header_search_form button:hover svg {
    fill: #2c8779 !important;
}

/* ── YITH dropdown results ── */
.page-template-template-quran-scroll .cmsmasters_header_search_form .wp-block-yith-filled-block {
    background: #ffffff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08) !important;
    margin-top: 4px !important;
}

.page-template-template-quran-scroll .cmsmasters_header_search_form .wp-block-yith-product-results-block * {
    color: #111114 !important;
}

/* ── Close button ── */
.page-template-template-quran-scroll .cmsmasters_header_search_form .cmsmasters_header_search_form_close {
    top: 40px !important;
    right: 40px !important;
    width: 48px !important;
    height: 48px !important;
    background: #f0f0f0 !important;
    border-radius: 50% !important;
    transition: background 0.3s ease, transform 0.4s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.page-template-template-quran-scroll .cmsmasters_header_search_form .cmsmasters_header_search_form_close:hover {
    background: #e0e0e0 !important;
    transform: rotate(135deg) !important;
}

.page-template-template-quran-scroll .cmsmasters_header_search_form .cmsmasters_header_search_form_close:before,
.page-template-template-quran-scroll .cmsmasters_header_search_form .cmsmasters_header_search_form_close:after {
    background-color: #333 !important;
    position: absolute !important;
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
}

.page-template-template-quran-scroll .cmsmasters_header_search_form .cmsmasters_header_search_form_close:before {
    width: 18px !important;
    height: 2px !important;
}

.page-template-template-quran-scroll .cmsmasters_header_search_form .cmsmasters_header_search_form_close:after {
    width: 2px !important;
    height: 18px !important;
}


/* Page Container - Full Width Bleed */
.sq-page-wrapper {
    background-color: var(--sq-bg-color);
    color: var(--sq-text-primary);
    font-family: var(--sq-font-sans);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* ----------------------------------------------------------------
   PRELOADER — Light Theme
   ---------------------------------------------------------------- */
.sq-loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.sq-loader-container.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none !important;
}

.sq-loader-spinner {
    width: 52px;
    height: 52px;
    border: 2px solid rgba(44, 135, 121, 0.12);
    border-top: 2px solid var(--sq-primary);
    border-right: 2px solid var(--sq-primary-light);
    border-radius: 50%;
    animation: sqSpin 0.9s linear infinite;
    margin-bottom: 20px;
}

@keyframes sqSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.sq-loader-text {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #111114;
    margin-bottom: 16px;
    font-weight: 500;
    font-family: var(--sq-font-sans);
}

.sq-loader-bar-bg {
    width: 180px;
    height: 2px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 1px;
    overflow: hidden;
}

.sq-loader-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--sq-primary-gradient);
    transition: width 0.1s ease-out;
    border-radius: 1px;
}

.sq-loader-percent {
    font-size: 11px;
    color: #999;
    margin-top: 10px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

/* ----------------------------------------------------------------
   SCROLL SEQUENCE CONTAINER
   ---------------------------------------------------------------- */
.sq-sequence-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--sq-bg-color);
}

/* Canvas Element - Full Bleed Cover */
#sq-video-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Layered gradient vignette — deep left for text, top scrim for nav, bottom fade */
.sq-vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(6, 9, 9, 0.92) 0%,
            rgba(6, 9, 9, 0.70) 35%,
            rgba(6, 9, 9, 0.25) 60%,
            rgba(6, 9, 9, 0.05) 100%),
        linear-gradient(180deg,
            rgba(6, 9, 9, 0.55) 0%,
            transparent 20%,
            transparent 72%,
            rgba(6, 9, 9, 0.65) 100%);
    z-index: 2;
    pointer-events: none;
}

/* ----------------------------------------------------------------
   PREMIUM EDITORIAL HERO PANEL
   ---------------------------------------------------------------- */
.sq-hero-panel {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(720px, 68vw);
    z-index: 10;
    display: flex;
    align-items: center;
    padding: 0 0 0 6vw;

    /* Fade/slide entrance animation */
    opacity: 0;
    transform: translateX(-24px);
    transition:
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    visibility: hidden;
    /* Push content below the floating header (~80px nav height) */
    padding-top: 80px;
}

.sq-hero-panel.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
}

/* Thin vertical accent line */
.sq-hero-line {
    position: absolute;
    left: 6vw;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    transform-origin: top center;
    width: 2px;
    height: 180px;
    background: linear-gradient(180deg, transparent, var(--sq-primary), transparent);
    border-radius: 2px;
    margin-left: -24px;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.sq-hero-panel.active .sq-hero-line {
    transform: translateY(-50%) scaleY(1);
}

/* Content wrapper */
.sq-hero-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Eyebrow label */
.sq-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--sq-primary-light);
    margin: 0 0 20px 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.sq-hero-panel.active .sq-hero-eyebrow {
    opacity: 1;
    transform: translateY(0);
}

.sq-hero-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--sq-primary);
    border-radius: 50%;
    flex-shrink: 0;
    animation: sqPulse 2s ease-in-out infinite;
}

@keyframes sqPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(44, 135, 121, 0.6);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(44, 135, 121, 0);
    }
}

/* Main Title */
.sq-hero-title {
    font-family: var(--sq-font-serif);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.55s ease 0.3s, transform 0.55s ease 0.3s;
}

.sq-hero-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--sq-primary-light);
}

.sq-hero-panel.active .sq-hero-title {
    opacity: 1;
    transform: translateY(0);
}

/* Tagline */
.sq-hero-tagline {
    font-size: 14px;
    line-height: 1.65;
    color: var(--sq-text-secondary);
    margin: 0 0 24px 0;
    font-weight: 300;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
}

.sq-hero-panel.active .sq-hero-tagline {
    opacity: 1;
    transform: translateY(0);
}

/* Divider rule */
.sq-hero-rule {
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, var(--sq-primary), transparent);
    margin-bottom: 20px;
    opacity: 0;
    transition: opacity 0.5s ease 0.45s;
}

.sq-hero-panel.active .sq-hero-rule {
    opacity: 1;
}

/* Stats Row */
.sq-hero-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease 0.5s, transform 0.5s ease 0.5s;
}

.sq-hero-panel.active .sq-hero-stats {
    opacity: 1;
    transform: translateY(0);
}

.sq-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sq-hero-stat-num {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
}

.sq-hero-stat-lbl {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--sq-text-muted);
    font-weight: 500;
}

/* CTA Button */
.sq-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: transparent;
    border: 1px solid rgba(44, 135, 121, 0.6);
    color: var(--sq-primary-light);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.28s ease;
    width: fit-content;
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease 0.55s, transform 0.5s ease 0.55s, background 0.28s ease, border-color 0.28s ease, color 0.28s ease;
}

.xoo-wsc-sc-bki {
    color: #ffffff;
}

.xoo-wsc-sc-cont {
    color: #fff;
}

.sq-hero-panel.active .sq-hero-cta {
    opacity: 1;
    transform: translateY(0);
}

.sq-hero-cta:hover {
    background: var(--sq-primary);
    border-color: var(--sq-primary);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--sq-primary-glow);
}

.sq-hero-cta svg {
    transition: transform 0.25s ease;
}

.sq-hero-cta:hover svg {
    transform: translateX(4px);
}

/* ----------------------------------------------------------------
   SCROLL HINT
   ---------------------------------------------------------------- */
.sq-scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.sq-scroll-mouse {
    width: 22px;
    height: 36px;
    border: 1.5px solid rgba(44, 135, 121, 0.6);
    border-radius: 11px;
    position: relative;
}

.sq-scroll-wheel {
    width: 3px;
    height: 7px;
    background: var(--sq-primary);
    border-radius: 2px;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    animation: sqScrollWheel 1.6s ease-in-out infinite;
}

@keyframes sqScrollWheel {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 12px);
    }
}

.sq-scroll-text {
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--sq-text-muted);
    font-weight: 400;
}

/* ----------------------------------------------------------------
   POST-SEQUENCE SECTION
   ---------------------------------------------------------------- */
.sq-post-section {
    padding: 100px 24px;
    background: var(--sq-bg-color);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sq-post-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.sq-post-title {
    font-family: var(--sq-font-serif);
    font-size: 42px;
    color: var(--sq-text-primary);
    margin-bottom: 20px;
}

.sq-post-lead {
    font-size: 18px;
    color: var(--sq-text-secondary);
    max-width: 700px;
    margin: 0 auto 48px auto;
    line-height: 1.6;
}

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
    .sq-hero-panel {
        width: 90vw !important;
        padding: 0 0 0 7vw;
        top: auto;
        bottom: auto;
        align-items: flex-start;
        padding-top: 140px;
        padding-bottom: 96px;
    }

    /* Hide 'Sacred Collection' eyebrow on mobile */
    .sq-hero-eyebrow {
        display: none !important;
    }

    .sq-hero-title {
        font-size: 30px;
    }

    .sq-hero-stats {
        gap: 16px;
    }

    .sq-hero-stat-num {
        font-size: 18px;
    }

    .sq-hero-line {
        height: 120px;
    }
}

/* ==========================================================================
   CATEGORIES / EDITIONS SECTION (Arch Cards Swiper Slider)
   ========================================================================== */

.sq-categories {
    padding-top: 100px;
    padding-bottom: 70px;
    background: #fafaf9;
    position: relative;
    z-index: 10;
}

.sq-categories-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Section Header ── */
.sq-categories-header {
    text-align: center;
    margin-bottom: 60px;
}

.sq-section-tag {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sq-primary);
    margin-bottom: 16px;
}

.sq-categories-title {
    font-family: var(--sq-font-serif);
    font-size: clamp(36px, 5vw, 56px);
    color: #111114;
    line-height: 1.1;
    margin: 0 0 20px 0;
}

.sq-categories-subtitle {
    font-size: 18px;
    color: #4a5553;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* ── Swiper Slider Wrapper & Layout ── */
.sq-categories-slider-wrap {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 76px;
    box-sizing: border-box;
}

.sq-categories-swiper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 16px 4px 20px;
}

.sq-categories-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.sq-categories-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.sq-categories-swiper .swiper-slide .sq-arch-card {
    width: 100%;
    max-width: 285px;
}

/* ── Arch Shaped Card ── */
.sq-arch-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    cursor: pointer;
}

.sq-arch-card:hover {
    transform: translateY(-8px);
}

/* Media Container (The Arch shape) */
.sq-arch-media {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 999px 999px 0 0;
    overflow: hidden;
    background: #eaeaea;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: none;
}

/* Video layer — Always visible and playing directly without hover */
.sq-arch-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    display: block;
    opacity: 1;
    transform: scale(1);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Base image (Static fallback beneath video before video streams) */
.sq-arch-static {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

/* Subtle Opacity Overlay */
.sq-arch-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 8, 8, 0) 50%, rgba(5, 8, 8, 0.12) 100%);
    z-index: 3;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.sq-arch-card:hover .sq-arch-video {
    transform: scale(1.04);
}

.sq-arch-card:hover .sq-arch-overlay {
    opacity: 0.35;
}

/* ── Content (Outside the arch) ── */
.sq-arch-content {
    text-align: center;
    padding: 0 16px;
}

.sq-arch-title {
    font-family: var(--sq-font-serif);
    font-size: 22px;
    color: #111114;
    margin: 0;
    transition: color 0.3s ease;
}

.sq-arch-card:hover .sq-arch-title {
    color: var(--sq-primary-light, #2c8779);
}

/* ── Navigation Arrows — Positioned in outer gutters clear of cards ── */
.sq-swiper-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    color: #1a1a1a;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    outline: none;
    padding: 0;
}

.sq-swiper-btn svg {
    transition: transform 0.25s ease;
}

.sq-swiper-prev {
    left: 12px;
}

.sq-swiper-next {
    right: 12px;
}

.sq-swiper-btn:hover {
    background: var(--sq-primary, #2c8779);
    color: #ffffff;
    border-color: var(--sq-primary, #2c8779);
    box-shadow: 0 8px 24px rgba(44, 135, 121, 0.35);
    transform: translateY(-50%) scale(1.08);
}

.sq-swiper-prev:hover svg {
    transform: translateX(-2px);
}

.sq-swiper-next:hover svg {
    transform: translateX(2px);
}

.sq-swiper-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.sq-swiper-btn.swiper-button-disabled {
    opacity: 0.35;
    background: #f5f5f4;
    color: #a0a09c;
    border-color: rgba(0, 0, 0, 0.06);
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

/* ── Swiper Pagination (Exactly 6 Edition Dots Centered Below Slider) ── */
.sq-swiper-pagination,
.sq-editions-dots {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    margin: 40px auto 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    z-index: 10;
}

.sq-edition-dot,
.sq-swiper-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #dcdcd8;
    border: none;
    border-radius: 100px;
    padding: 0;
    margin: 0 !important;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    outline: none;
}

.sq-edition-dot:hover,
.sq-swiper-pagination .swiper-pagination-bullet:hover {
    background: #a0a09c;
    transform: scale(1.15);
}

.sq-edition-dot.active,
.sq-swiper-pagination .swiper-pagination-bullet-active {
    width: 32px;
    background: var(--sq-primary, #2c8779);
    border-radius: 100px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .sq-categories-slider-wrap {
        padding: 0 54px;
    }
    .sq-swiper-btn {
        width: 44px;
        height: 44px;
    }
    .sq-swiper-prev {
        left: 6px;
    }
    .sq-swiper-next {
        right: 6px;
    }
}

@media (max-width: 768px) {
    .sq-categories {
        padding-top: 60px;
        padding-bottom: 50px;
    }
    .sq-categories-header {
        margin-bottom: 36px;
    }
    .sq-categories-slider-wrap {
        padding: 0 16px;
    }
    .sq-swiper-btn {
        display: none;
    }
    .sq-categories-swiper {
        padding-bottom: 12px;
    }
    .sq-swiper-pagination {
        margin-top: 24px !important;
    }
}

/* ==========================================================================
   PRODUCTS SECTION — Premium Redesign
   ========================================================================== */

.sq-products-section {
    padding: 120px 24px 140px;
    background: #f8f8f6;
    position: relative;
    z-index: 10;
}

.sq-products-inner {
    max-width: 1280px;
    margin: 0 auto;
}

/* ── Header ── */
.sq-products-header {
    text-align: center;
    margin-bottom: 72px;
}

.sq-products-title {
    font-family: var(--sq-font-serif);
    font-size: clamp(34px, 4.5vw, 52px);
    color: #0f1413;
    line-height: 1.08;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.sq-products-subtitle {
    font-size: 17px;
    color: #5c6b67;
    max-width: 520px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

/* ── Grid ── */
.sq-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

@media (max-width: 1024px) {
    .sq-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .sq-products-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ── Card ── */
.sq-product-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.sq-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ── Image Wrap (Islamic Arch / Mihrab Shape) ── */
.sq-product-img-wrap {
    display: block;
    width: calc(100% - 24px);
    margin: 12px 12px 0 12px;
    aspect-ratio: 4 / 5;
    border-radius: 140px 140px 8px 8px;
    overflow: hidden;
    background: #f4f4f2;
    position: relative;
    flex-shrink: 0;
}

.sq-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sq-product-card:hover .sq-product-img {
    transform: scale(1.08);
}



/* ── Info Block ── */
.sq-product-info {
    display: flex;
    flex-direction: column;
    padding: 20px 22px 24px;
    flex: 1;
}

.sq-product-name {
    margin: 0 0 8px 0;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.sq-product-name a {
    color: #0f1413;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sq-product-name a:hover {
    color: var(--sq-primary);
}

.sq-product-price {
    font-size: 15px;
    color: var(--sq-primary);
    margin-bottom: 18px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Inline row: price + button */
.sq-product-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 12px;
}

.sq-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: 1.5px solid var(--sq-primary);
    color: var(--sq-primary);
    border-radius: 100px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    flex-shrink: 0;
}

.sq-btn-outline:hover {
    background: var(--sq-primary);
    color: #ffffff;
    border-color: var(--sq-primary);
}

/* ── "Shop All" CTA ── */
.sq-products-cta {
    text-align: center;
}

.sq-products-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: #0f1413;
    color: #ffffff;
    border-radius: 100px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.3s ease, transform 0.3s ease;
}

.sq-products-cta-link:hover {
    background: var(--sq-primary);
    transform: translateY(-2px);
}

.sq-products-cta-link svg {
    transition: transform 0.3s ease;
}

.sq-products-cta-link:hover svg {
    transform: translateX(4px);
}

/* Fix mega menu accidental hover trigger */
.navigation>li.menu-item-mega>div.menu-item-mega-container {
    pointer-events: none !important;
}

.navigation>li.menu-item-mega:hover>div.menu-item-mega-container {
    pointer-events: auto !important;
}

/* Fix mobile menu text visibility (white text on white background) */
@media only screen and (max-width: 1024px) {
    #navigation li a,
    #navigation li a span,
    .navigation li a,
    .navigation li a span,
    .mid_nav_wrap li a,
    .mid_nav_wrap li a span {
        color: #111114 !important;
    }
}