/* 
    LUNA STORE - Lusion Style Premium E-commerce
    Aesthetic: Clean, Editorial, Minimalist, High-Contrast
*/

:root {
    /* Theme Colors from Lusion */
    --luna-primary: var(--primaryColor, #1a1a1a);
    --luna-secondary: var(--secondaryColor, #1a1a1a);
    --luna-bg: #ffffff;
    --luna-bg-soft: #f6f6f6;
    --luna-text: #1a1a1a;
    --luna-text-muted: #666666;
    --luna-border: #f0f0f0;
    --luna-border-dark: #e5e5e5;

    /* Typography */
    --font-main: 'Jost', sans-serif;

    /* Layout */
    --container-max: 1280px;
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    background-color: var(--luna-bg);
    color: var(--luna-text);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container-luna {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.header-container {
    max-width: 1600px;
    /* Wider for header */
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }
}


/* --- TOP BAR --- */
.luna-top-bar {
    padding: 10px 0;
    background: #fcfcfc;
    border-bottom: 1px solid var(--luna-border);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-announcement {
    color: var(--luna-text-muted);
}

.top-bar-tools {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-tool-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--luna-text-muted);
}

.top-tool-link span {
    font-size: 16px;
}

.top-tool-divider {
    width: 1px;
    height: 12px;
    background: var(--luna-border-dark);
}

/* --- HEADER --- */
.luna-header {
    width: 100%;
    height: var(--header-height);
    background: #ffffff;
    border-bottom: 1px solid var(--luna-border);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s, box-shadow 0.4s;
}

.luna-header.scrolled {
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 20px;
}

.header-left,
.header-actions {
    flex: 1;
    /* Allow left and right side to take equal space */
    display: flex;
    align-items: center;
}

.header-actions {
    justify-content: flex-end;
}

.header-mobile-center {
    display: none;
    /* Only for mobile center layout usually */
}


.logo img {
    height: 32px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


@media (max-width: 991px) {
    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 10px;
    }

    .header-left {
        justify-content: flex-start;
    }

    .header-mobile-center {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .header-actions {
        justify-content: flex-end;
    }

    .luna-header {
        height: 60px;
    }
}

.main-nav {
    flex: 0 0 auto;
    /* Keep the nav from expanding, it will be centered by the spacing of side flex items */
    display: flex;
    justify-content: center;
    z-index: 5;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
    margin: 0;
}

.nav-item {
    position: relative;
    padding: 25px 0;
}

.nav-link {
    font-size: 12px;
    /* Slightly smaller for premium look */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--luna-text);
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
}


.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--luna-text);
    transition: var(--transition);
}

@media (hover: hover) {
    .nav-link:hover::after {
        width: 100%;
    }
}

/* Submenu Styles */
@media (hover: hover) {
    .has-dropdown:hover .luna-submenu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

.luna-submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    min-width: 220px;
    padding: 15px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid var(--luna-border);
    z-index: 100;
}

.luna-submenu li a {
    display: block;
    padding: 8px 25px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--luna-text-muted);
}

@media (hover: hover) {
    .luna-submenu li a:hover {
        color: var(--luna-text);
        background: #fcfcfc;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-div {
    width: 1px;
    height: 20px;
    background: var(--luna-border-dark);
    margin: 0 5px;
}

.luna-widgets-wrapper {
    display: flex;
    align-items: center;
}

.luna-action-widgets {
    display: flex;
    gap: 15px;
    align-items: center;
}

.luna-action-widgets .material-symbols-outlined,
.luna-action-widgets i {
    font-size: 22px !important;
    color: var(--luna-text);
    transition: var(--transition);
}

@media (hover: hover) {

    .luna-action-widgets a:hover i,
    .luna-action-widgets a:hover .material-symbols-outlined {
        opacity: 0.6;
    }
}

.action-btn {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--luna-text);
    transition: var(--transition);
}

@media (hover: hover) {
    .action-btn:hover {
        opacity: 0.6;
    }
}

/* --- MOBILE NAV --- */
.luna-offcanvas {
    width: 300px !important;
    border-right: none;
}

.luna-offcanvas .offcanvas-header {
    padding: 30px;
    border-bottom: 1px solid var(--luna-border);
}

.luna-offcanvas .offcanvas-title {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mobile-nav-links {
    list-style: none;
    padding: 20px 0;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--luna-border);
}

.mobile-nav-link-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.mobile-nav-link {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.submenu-toggle {
    transition: transform 0.3s;
}

.submenu-toggle:not(.collapsed) {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    padding: 0 0 15px 45px;
    background: #fbfbfb;
}

.mobile-submenu li a {
    display: block;
    padding: 8px 0;
    font-size: 13px;
    color: var(--luna-text-muted);
}

.mobile-info-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 30px;
    font-size: 13px;
    color: var(--luna-text-muted);
}

/* --- SEARCH OVERLAY --- */
.luna-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.luna-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-close {
    position: absolute;
    top: 40px;
    right: 40px;
    cursor: pointer;
    font-size: 32px;
    transition: var(--transition);
}

@media (hover: hover) {
    .search-overlay-close:hover {
        transform: rotate(90deg);
    }
}

.search-container {
    width: 100%;
    max-width: 800px;
    padding: 0 30px;
    transform: translateY(40px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.luna-search-overlay.active .search-container {
    transform: translateY(0);
}

.search-form {
    position: relative;
    border-bottom: 2px solid var(--luna-text);
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 20px 60px 20px 0;
    font-size: 40px;
    font-weight: 300;
    border: none;
    background: transparent;
    outline: none;
    color: var(--luna-text);
    font-family: var(--font-main);
}

.search-submit {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
}

.search-suggestions {
    font-size: 14px;
    color: var(--luna-text-muted);
}

.suggestion-tags {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.suggestion-tags a {
    color: var(--luna-text);
    font-weight: 500;
}

.suggestion-tags a:hover {
    color: var(--luna-text-muted);
}

/* --- HERO --- */
.luna-hero {
    background-color: var(--luna-bg-soft);
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.hero-slide {
    display: flex !important;
    align-items: center;
    width: 100%;
}

/* --- HERO CINEMATIC ANIMATIONS --- */
.hero-image-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-top: 40px;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.hero-content {
    flex: 1;
    padding: 0 40px;
}

.hero-title {
    font-size: 72px;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title span {
    font-weight: 400;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--luna-text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 40px;
    display: block;
}

.btn-luna {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid var(--luna-primary);
    color: var(--luna-primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-luna:hover {
    background: var(--luna-primary);
    color: white;
}

.hero-title,
.hero-subtitle,
.btn-wrap {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Global Slider Pagination Container */
.pagination-container {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    z-index: 20;
    pointer-events: none;
}

.hero-pagination {
    display: flex;
    gap: 16px;
    pointer-events: auto;
}

.pagination-item {
    width: 48px;
    height: 3px;
    background: var(--luna-border-dark);
    cursor: pointer;
    transition: var(--transition);
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background: var(--luna-primary) !important;
    width: 64px;
}

.swiper-wrapper {
    padding-bottom: 0px !important;
}

.swiper-slide-active .hero-image-wrap {
    opacity: 1;
}

.swiper-slide-active .hero-title {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s;
}

.swiper-slide-active .hero-subtitle {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.5s;
}

.swiper-slide-active .btn-wrap {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.7s;
}



/* Background Zoom Effect Removed - Keeping it simple */
.hero-image-wrap img {
    max-height: 80vh;
    width: auto;
    object-fit: contain;
}

.swiper-slide-active .hero-image-wrap img {
    transform: none;
}



.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    /* Set above everything inside the card */
    content: "";
}

/* --- COLLECTION GRID --- */
.luna-collections {
    padding: 80px 0;
    text-align: center;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 16px;
}

.collection-item {
    position: relative;
    overflow: hidden;
    background: var(--luna-bg-soft);
}

.collection-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    pointer-events: none;
    /* Images shouldn't block clicks */
}

.collection-item.has-hover-img .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
}

.collection-item.has-hover-img .primary-img {
    position: relative;
    z-index: 1;
}

@media (hover: hover) {
    .collection-item:hover img {
        transform: scale(1.1);
    }

    .collection-item.has-hover-img:hover .hover-img {
        opacity: 1;
    }

    .collection-item.has-hover-img:hover .primary-img {
        opacity: 0;
    }
}

.collection-label-box {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 12px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    z-index: 5;
}

.collection-label-box.small {
    padding: 8px 24px;
    bottom: 16px;
}

.collection-label {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.label-small {
    font-size: 12px;
}

.item-main {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 991px) {
    .nav-links {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .luna-top-bar {
        display: none;
    }

    .collection-grid {
        grid-template-columns: 1fr;
    }

    .item-main {
        grid-column: span 1;
        grid-row: span 1;
    }

    .luna-hero {
        flex-direction: column;
        min-height: auto;
    }

    .hero-slide {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-image-wrap {
        padding-top: 20px;
    }

    .hero-image-wrap img {
        max-height: 50vh;
    }

    .hero-content {
        padding: 40px 20px;
        width: 100%;
    }

    .hero-title {
        font-size: 36px;
        margin-bottom: 16px;
        transform: none !important;
        opacity: 1 !important;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
        transform: none !important;
        opacity: 1 !important;
    }

    .btn-wrap {
        transform: none !important;
        opacity: 1 !important;
    }

    .pagination-container {
        bottom: 20px;
    }

    .hero-pagination {
        justify-content: center;
    }
}

/* --- PRODUCTS --- */
.luna-products {
    padding: 80px 0;
    text-align: center;
}

.section-head {
    margin-bottom: 64px;
}

.section-title {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--luna-primary);
}

.luna-products {
    padding: 80px 0;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 32px;
}

/* --- PRODUCT SLIDER --- */
.productSwiper {
    padding: 10px 10px 60px 10px !important;
    /* Added space for shadow and pagination */
}

.product-nav-next,
.product-nav-prev {
    color: var(--luna-text) !important;
    background: #fff;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.product-nav-next:after,
.product-nav-prev:after {
    display: none;
    /* Hide default Swiper icons */
}

.product-nav-next {
    right: -25px !important;
}

.product-nav-prev {
    left: -25px !important;
}

@media (hover: hover) {

    .product-nav-next:hover,
    .product-nav-prev:hover {
        background: var(--luna-primary);
        color: #fff !important;
    }
}

.product-pagination {
    bottom: 0 !important;
}

.product-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--luna-border-dark);
    opacity: 1;
}

.product-pagination .swiper-pagination-bullet-active {
    background: var(--luna-primary) !important;
    width: 30px;
    border-radius: 5px;
}

@media (max-width: 1280px) {

    .product-nav-next,
    .product-nav-prev {
        display: none !important;
        /* Hide arrows on smaller screens to prevent overflow */
    }
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 20px;
    }
}

/* --- PREMIUM PRODUCT CARD --- */
.luna-product-card {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
    transition: var(--transition);
    border-radius: 4px;
    /* Small border radius for a modern touch */
}

@media (hover: hover) {
    .luna-product-card:hover {
        transform: translateY(-8px);
    }
}

.product-image-box {
    position: relative;
    aspect-ratio: 1 / 1;
    /* Ürünler genelde kare veya yakın oranlı olduğu için 1:1 en güvenlisidir */
    overflow: hidden;
    background: #ffffff;
    /* Temiz beyaz fon ürünleri daha net gösterir */
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--luna-border);
    /* Hafif bir çerçeve belirginlik katar */
}

.product-img-link {
    display: block;
    width: 100%;
    height: 100%;
    /* Ürünün kenarlara değmemesi için nefes alma payı */
}

.product-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Görselin tamamını kırpmadan kutuya sığdırır */
    object-position: center;
    /* Odak noktasını her zaman merkezde tutar */
    transition: transform 1.5s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.8s ease;
    display: block;
}


.product-image-box .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
}

/* Dual Image Hover */
@media (hover: hover) {
    .product-image-box.has-hover:hover .primary-img {
        opacity: 0;
    }

    .product-image-box.has-hover:hover .hover-img {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Single Image Hover fallback */
@media (hover: hover) {
    .luna-product-card:hover .product-image-box:not(.has-hover) img {
        transform: scale(1.1);
    }
}

/* Side Overlay Actions (Favorite & View) */
.product-overlay-side {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    opacity: 0;
    transform: perspective(1000px) rotateY(-30deg) translateX(15px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

@media (hover: hover) {
    .luna-product-card:hover .product-overlay-side {
        opacity: 1;
        transform: perspective(1000px) rotateY(0) translateX(0);
        pointer-events: all;
    }
}

.overlay-btn {
    width: 36px;
    height: 36px;
    background: #fff;
    color: var(--luna-text);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .overlay-btn:hover {
        background: var(--luna-primary);
        color: #fff;
    }
}

/* Quick Add Bar (Slide up from bottom) */
.product-action-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 11;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

@media (hover: hover) {
    .luna-product-card:hover .product-action-bar {
        transform: translateY(0);
    }
}

/* Override basket-save component styles inside the bar */
.product-action-bar button,
.product-action-bar .basket-save-btn {
    width: 100%;
    background: #000 !important;
    /* Solid black for more contrast */
    color: #fff !important;
    padding: 14px !important;
    font-size: 10px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .product-action-bar button:hover {
        opacity: 0.9;
    }
}

/* Minimal Info Layout */
.product-info-minimal {
    padding: 0 10px;
}

.product-title-luna {
    font-size: 14px;
    font-weight: 500;
    color: var(--luna-text);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: var(--transition);
}

@media (hover: hover) {
    .product-title-luna:hover {
        color: var(--luna-text-muted);
    }
}

.product-price-luna {
    font-size: 15px;
    font-weight: 600;
    color: var(--luna-text);
}

/* Badges & Discounts */
.product-card-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.luna-badge {
    padding: 5px 14px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: #fff;
    color: #1a1a1a;
}

.product-card-discount {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 5;
}

.luna-discount-badge {
    background: #000;
    color: #fff;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.product-item-line {
    display: flex;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid var(--luna-border);
    align-items: center;
}


.product-line-image {
    width: 200px;
    flex-shrink: 0;
    position: relative;
    background: var(--luna-bg-soft);
    aspect-ratio: 3/4;
}

.product-line-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-line-info {
    flex: 1;
}

.product-line-desc {
    font-size: 14px;
    color: var(--luna-text-muted);
    margin: 15px 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.product-line-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 576px) {
    .product-item-line {
        gap: 15px;
    }

    .product-line-image {
        width: 120px;
    }
}

/* --- NEWSLETTER --- */
.load-more-btn {
    margin-top: 60px;
    padding: 16px 50px;
    border: 1px solid var(--luna-primary);
    color: var(--luna-primary);
    background: transparent;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.2em;
    font-weight: 600;
    transition: var(--transition);
}

.load-more-btn:hover {
    background: var(--luna-primary);
    color: #fff;
}

.luna-newsletter {
    padding: 96px 0;
    border-top: 1px solid var(--luna-border);
    text-align: center;
}

.newsletter-title {
    font-size: 30px;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.newsletter-desc {
    font-size: 14px;
    color: var(--luna-text-muted);
    margin-bottom: 40px;
}

.newsletter-form {
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    border-bottom: 1px solid var(--luna-border-dark);
    margin-bottom: 48px;
}

.newsletter-form input {
    width: 100%;
    padding: 16px 8px;
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 14px;
}

.newsletter-form button {
    position: absolute;
    right: 0;
    bottom: 16px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.1em;
}

.newsletter-form button:hover {
    color: var(--luna-text-muted);
}

@media (max-width: 768px) {
    .luna-newsletter {
        padding: 60px 0;
    }

    .newsletter-form {
        margin-bottom: 30px;
    }

    .newsletter-form button {
        position: static;
        display: block;
        width: 100%;
        margin-top: 20px;
        padding: 12px;
        border: 1px solid var(--luna-primary);
    }

    .section-title {
        font-size: 28px;
    }

    .section-head {
        margin-bottom: 40px;
    }
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.social-link img {
    width: 20px;
    height: 20px;
}

/* --- FOOTER --- */
/* --- FOOTER --- */
.luna-footer {
    padding: 24px 0;
    border-top: 1px solid var(--luna-border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 12px;
    color: var(--luna-text-muted);
}

.payment-icons {
    display: flex;
    gap: 16px;
    filter: grayscale(1);
    opacity: 0.5;
}

.payment-icons img {
    height: 24px;
}

@media (max-width: 768px) {
    .luna-footer {
        padding: 40px 0;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .payment-icons {
        justify-content: center;
    }
}

/* Float Helpers */
/* --- CATEGORY PAGE --- */
.category-hero {
    position: relative;
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    background-color: var(--luna-bg-soft);
    color: #fff;
    margin-bottom: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 64px;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.luna-breadcrumb {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.luna-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.luna-breadcrumb .sep {
    margin: 0 10px;
    opacity: 0.5;
}

.category-desc {
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.6;
}

/* Sidebar */
.category-sidebar {
    position: sticky;
    top: 100px;
}

.widget-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    position: relative;
    padding-bottom: 12px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1px;
    background: var(--luna-primary);
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 15px;
}

.sidebar-list li a {
    color: var(--luna-text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 13px;
    letter-spacing: 0.05em;
}

.sidebar-list li.active a,
.sidebar-list li a:hover {
    color: var(--luna-text);
    padding-left: 8px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    padding: 6px 14px;
    border: 1px solid var(--luna-border);
    color: var(--luna-text-muted);
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

.tag-link:hover {
    border-color: var(--luna-primary);
    color: var(--luna-text);
}

/* Catalog Toolbar */
.catalog-toolbar {
    border-bottom: 1px solid var(--luna-border);
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.result-count {
    font-size: 13px;
    color: var(--luna-text-muted);
    font-weight: 300;
}

.form-select-luna {
    padding: 10px 15px;
    border: 0;
    background: transparent;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    outline: none;
    cursor: pointer;
    font-weight: 500;
}

/* Catalog Grid Adjustments */
.luna-catalog {
    min-height: 400px;
}

@media (max-width: 991px) {
    .page-title {
        font-size: 40px;
    }

    .category-hero {
        padding: 80px 0;
    }
}

.material-symbols-outlined {
    vertical-align: middle;
}

/* --- BEST SELLERS --- */
.luna-best-sellers {
    padding: 80px 0;
    background-color: #f7f7f7;
    /* Very subtle contrast */
    text-align: center;
}

.bestSellerSwiper {
    padding: 10px 10px 60px 10px !important;
}

.best-seller-nav-next,
.best-seller-nav-prev {
    color: var(--luna-text) !important;
    background: #fff;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.best-seller-nav-next:after,
.best-seller-nav-prev:after {
    display: none;
}

.best-seller-nav-next {
    right: -25px !important;
}

.best-seller-nav-prev {
    left: -25px !important;
}

.best-seller-nav-next:hover,
.best-seller-nav-prev:hover {
    background: var(--luna-primary);
    color: #fff !important;
}

.best-seller-pagination {
    bottom: 0 !important;
}

.best-seller-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--luna-border-dark);
    opacity: 1;
}

.best-seller-pagination .swiper-pagination-bullet-active {
    background: var(--luna-primary) !important;
    width: 30px;
    border-radius: 5px;
}

@media (max-width: 1280px) {

    .best-seller-nav-next,
    .best-seller-nav-prev {
        display: none !important;
    }
}

/* --- VUE SEARCH OVERLAY --- */
.luna-search-overlay-vue {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.99);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding-top: 10vh;
}

.search-fade-enter-active,
.search-fade-leave-active {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-fade-enter-from,
.search-fade-leave-to {
    opacity: 0;
    transform: translateY(-20px);
}

.search-overlay-close-vue {
    position: absolute;
    top: 30px;
    right: 30px;
    cursor: pointer;
    font-size: 28px;
    transition: var(--transition);
    z-index: 10;
}

@media (hover: hover) {
    .search-overlay-close-vue:hover {
        transform: rotate(90deg);
    }
}

.search-container-vue {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.search-form-vue {
    position: relative;
    border-bottom: 2px solid var(--luna-text);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.search-input-vue {
    width: 100%;
    padding: 20px 80px 20px 0;
    font-size: 48px;
    font-weight: 300;
    border: none;
    background: transparent;
    outline: none;
    color: var(--luna-text);
    font-family: var(--font-main);
}

.search-clear-vue {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
}

@media (hover: hover) {
    .search-clear-vue:hover {
        opacity: 1;
    }
}

.search-loader-vue .spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--luna-border);
    border-top-color: var(--luna-text);
    border-radius: 50%;
    display: block;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.search-results-vue {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
    text-align: left;
}

/* Custom Scrollbar for results */
.search-results-vue::-webkit-scrollbar {
    width: 4px;
}

.search-results-vue::-webkit-scrollbar-thumb {
    background: var(--luna-border-dark);
    border-radius: 10px;
}

.result-group {
    margin-bottom: 40px;
}

.group-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--luna-text-muted);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--luna-border);
    padding-bottom: 10px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 15px 0;
    transition: var(--transition);
    border-bottom: 1px solid var(--luna-border);
}

@media (hover: hover) {
    .result-item:hover {
        opacity: 0.7;
    }
}

.item-img {
    width: 70px;
    height: 70px;
    background: var(--luna-bg-soft);
    flex-shrink: 0;
    border-radius: 2px;
    overflow: hidden;
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--luna-text);
}

.item-price {
    font-size: 14px;
    font-weight: 600;
}

.search-suggestions-vue {
    text-align: left;
}

.suggestion-tags-vue {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.tag-trigger {
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: var(--luna-bg-soft);
    padding: 8px 16px;
    border-radius: 30px;
    transition: var(--transition);
}

@media (hover: hover) {
    .tag-trigger:hover {
        background: var(--luna-text);
        color: #fff;
    }
}

.no-results-vue {
    padding: 40px 0;
    font-size: 18px;
    color: var(--luna-text-muted);
    font-weight: 300;
    text-align: left;
}

@media (max-width: 768px) {
    .luna-search-overlay-vue {
        padding-top: 60px;
    }

    .search-container-vue {
        padding: 0 25px;
    }

    .search-input-vue {
        font-size: 28px;
        padding: 15px 50px 15px 0;
    }

    .item-img {
        width: 60px;
        height: 60px;
    }

    .item-name {
        font-size: 14px;
    }

    .search-overlay-close-vue {
        top: 20px;
        right: 20px;
    }
}

/* --- LUNA FOOTER --- */
.luna-footer {
    background: #111111;
    color: #ffffff;
    padding: 80px 0 40px;
    font-family: var(--font-main);
}

/* --- LUNA NEWSLETTER SECTION --- */
.luna-newsletter-section {
    padding: 100px 0;
    background: #fcfcfc;
    border-top: 1px solid var(--luna-border);
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    color: var(--luna-text);
}

.newsletter-desc {
    font-size: 14px;
    color: var(--luna-text-muted);
    margin-bottom: 48px;
}

.newsletter-form {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    border-bottom: 1px solid var(--luna-text);
}

.newsletter-input {
    width: 100%;
    padding: 16px 80px 16px 0;
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    color: var(--luna-text);
}

.newsletter-btn {
    position: absolute;
    right: 0;
    bottom: 14px;
    background: transparent;
    color: var(--luna-text);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.2em;
    padding: 0;
    transition: var(--transition);
    cursor: pointer;
}

@media (hover: hover) {
    .newsletter-btn:hover {
        opacity: 0.5;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.brand-col {
    padding-right: 40px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 25px;
}

.footer-logo img {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo .logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fff;
}

.brand-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    margin-bottom: 30px;
}

.footer-col-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 30px;
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

@media (hover: hover) {
    .footer-links li a:hover {
        color: #fff;
        padding-left: 5px;
    }
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.contact-item span {
    font-size: 18px;
    color: #fff;
}

@media (hover: hover) {
    .contact-item:hover {
        color: #fff;
    }
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 40px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.payment-methods {
    display: flex;
    gap: 15px;
}

.payment-methods span {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 991px) {
    .footer-newsletter {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .newsletter-form {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .brand-col {
        grid-column: span 2;
        padding-right: 0;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .brand-col {
        grid-column: span 1;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* --- FOOTER SOCIAL OVERRIDES --- */
.footer-socials .social-media-links {
    gap: 15px !important;
}

.footer-socials .social-media-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff !important;
    transition: var(--transition);
}

.footer-socials .social-media-links a i {
    font-size: 16px !important;
}

@media (hover: hover) {
    .footer-socials .social-media-links a:hover {
        background: #fff;
        color: #000 !important;
        transform: translateY(-3px);
    }
}

/* --- SIDEBAR CATEGORY HIERARCHY --- */
.sidebar-list .sub-sidebar-list {
    list-style: none;
    padding-left: 15px;
    margin-top: 10px;
    border-left: 1px solid var(--luna-border);
    display: none;
    /* Hidden by default */
}

.sidebar-list li.expanded>.sub-sidebar-list {
    display: block;
}

.sidebar-link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    margin: 0 -8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.sidebar-link-row:hover {
    background: var(--luna-bg-soft);
}

.cat-toggle {
    background: none;
    border: none;
    padding: 4px;
    font-size: 20px !important;
    color: var(--luna-text-muted);
    cursor: pointer;
    transition: transform 0.3s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cat-toggle:hover {
    color: var(--luna-primary);
    background: rgba(0, 0, 0, 0.05);
}

.sidebar-list li.expanded>.sidebar-link-row .cat-toggle {
    transform: rotate(180deg);
}

.sidebar-list li {
    margin-bottom: 4px;
    position: relative;
}

.sidebar-list .sub-sidebar-list {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
    margin-bottom: 10px;
    border-left: 1px solid var(--luna-border);
    display: none;
}

.sidebar-list li.expanded>.sub-sidebar-list {
    display: block;
}

.sidebar-list li.active>.sidebar-link-row a {
    color: var(--luna-text);
    font-weight: 700;
}

.sidebar-list li.current>.sidebar-link-row {
    background: var(--luna-bg-soft);
}

.sidebar-list li.current>.sidebar-link-row a {
    color: var(--luna-primary) !important;
}

/* --- MOBILE FILTER BAR --- */
.mobile-filter-bar {
    position: sticky;
    top: 80px;
    z-index: 100;
    padding: 10px 0;
    background: #fff;
    border-bottom: 1px solid var(--luna-border);
}

.btn-luna-outline {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.btn-luna-outline:hover {
    border-color: #000;
    background: #f9f9f9;
}

/* Ensure offcanvas categories look good */
.luna-offcanvas .category-sidebar {
    position: static !important;
}

.luna-offcanvas .sidebar-widget {
    margin-bottom: 30px;
}