/* =============================================
   LXRYIT - Comforter.ge Style Layout
   Sidebar + Hero + Carousels + Sections
   ============================================= */

/* ===== LAYOUT WRAPPER ===== */
.site-layout {
    display: flex;
    min-height: 100vh;
}

/* ===== LEFT SIDEBAR (Desktop) ===== */
.left-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: var(--white);
    border-right: 1px solid var(--border-color);
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.left-sidebar::-webkit-scrollbar { width: 3px; }
.left-sidebar::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }

/* Top padding to align with header height */
.sidebar-top-padding {
    height: 64px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

/* Sidebar Category Nav */
.sidebar-nav {
    padding: 8px 0;
    flex: 1;
}

.sidebar-nav-title {
    font-family: 'BPG Nino Mtavruli', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 16px 20px 8px;
    font-weight: normal;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 12px 20px;
    color: var(--text-gray);
    text-decoration: none;
    font-family: 'BPG Nino Mtavruli', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.sidebar-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--black);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.sidebar-nav-item:hover {
    background: var(--gray-bg);
    color: var(--black);
}

.sidebar-nav-item:hover::before,
.sidebar-nav-item.active::before {
    transform: scaleY(1);
}

.sidebar-nav-item.active {
    background: var(--gray-bg);
    color: var(--black);
    font-weight: 500;
}

/* Sidebar Social Links */
.sidebar-social {
    padding: 16px 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 16px;
}

.sidebar-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.sidebar-social a:hover {
    color: var(--black);
}

.sidebar-social a svg {
    width: 20px;
    height: 20px;
}

/* ===== MAIN CONTENT AREA ===== */
.main-content-area {
    flex: 1;
    margin-left: 260px;
    min-width: 0;
    transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== STICKY HEADER (inside main area) ===== */
.main-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 90 !important;
    background: var(--white) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 0 24px !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

/* Header icons - logo is LAST inside, so it shows rightmost */
.header-icons {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

/* Logo is inside .header-icons, shown on the right */
.header-logo {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.header-logo img {
    height: 28px;
    width: auto;
    transition: opacity 0.3s ease;
}

.header-logo:hover img {
    opacity: 0.7;
}

/* Gender buttons - left area */
.header-gender-buttons {
    display: flex;
    gap: 0;
    margin-right: 12px;
}

/* Remove old rotating banner */
.rotating-banner {
    display: none !important;
}

/* ===== HERO SECTION - Comforter Style ===== */
.hero-banner-slider {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: #1a1a2e;
}

.hero-slides {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero overlay text */
.hero-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 48px 48px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    z-index: 2;
}

.hero-text-overlay h1 {
    font-family: 'BPG Nino Mtavruli', sans-serif;
    font-size: 36px;
    color: white;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-text-overlay p {
    font-family: 'TBC Contractica', sans-serif;
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero-cta-btn {
    display: inline-block;
    padding: 12px 32px;
    border: 1.5px solid white;
    color: white;
    font-family: 'BPG Nino Mtavruli', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-cta-btn:hover {
    background: white;
    color: #111;
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    font-size: 24px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
    border-radius: 50%;
}

.hero-nav:hover {
    background: rgba(255,255,255,0.3);
}

.hero-nav.prev { left: 16px; }
.hero-nav.next { right: 16px; }

/* Hero Dots */
.hero-dots {
    position: absolute;
    bottom: 16px;
    right: 48px;
    display: flex;
    gap: 6px;
    z-index: 3;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* ===== SECTION HEADERS - Comforter Style ===== */
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 32px 20px;
}

.section-header-row h2 {
    font-family: 'BPG Nino Mtavruli', sans-serif;
    font-size: 20px;
    letter-spacing: 3px;
    color: #111;
    text-transform: uppercase;
    font-weight: normal;
}

.section-view-all {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    background: none;
    transition: color 0.2s;
}

.section-view-all:hover {
    color: #111;
}

.section-nav-arrows {
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-nav-arrows span {
    margin-right: 8px;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 1px;
    cursor: pointer;
}

.section-nav-arrows span:hover {
    color: #111;
}

.carousel-arrow {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--text-gray);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 0;
}

.carousel-arrow:hover {
    background: #111;
    color: white;
    border-color: #111;
}

.carousel-arrow-divider {
    width: 1px;
    height: 20px;
    background: var(--border-color);
    margin: 0 2px;
}

/* ===== FEATURED/SALES SECTION ===== */
.featured-sales-section {
    padding: 0 32px 40px;
}

.featured-sales-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}

.featured-main {
    grid-row: 1 / 3;
    grid-column: 1;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
    cursor: pointer;
    min-height: 440px;
}

.featured-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-main:hover img {
    transform: scale(1.03);
}

.featured-main-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
}

.featured-main-info h3 {
    font-family: 'BPG Nino Mtavruli', sans-serif;
    font-size: 24px;
    color: white;
    letter-spacing: 2px;
}

.featured-main-info .featured-price {
    color: #e8a849;
    font-size: 18px;
    margin-top: 4px;
}

.featured-main-info .featured-cta {
    display: inline-block;
    margin-top: 10px;
    color: white;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.featured-small-grid {
    grid-column: 2;
    grid-row: 1 / 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.featured-small-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
    cursor: pointer;
}

.featured-small-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1;
    transition: transform 0.4s ease;
}

.featured-small-item:hover img {
    transform: scale(1.05);
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e8a849;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
    letter-spacing: 0.5px;
}

.featured-small-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.featured-small-info .featured-name {
    font-size: 12px;
    color: white;
    letter-spacing: 1px;
}

.featured-small-info .featured-price {
    color: #e8a849;
    font-size: 14px;
    font-weight: bold;
}

.featured-small-info .featured-old-price {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    text-decoration: line-through;
    margin-left: 6px;
}

/* ===== PRODUCT CAROUSEL - Horizontal scroll ===== */
.product-carousel-section {
    padding: 0 0 40px 0;
}

.product-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.product-carousel-track {
    display: flex;
    gap: 20px;
    padding: 0 32px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.product-carousel-track::-webkit-scrollbar { display: none; }

.product-carousel-card {
    flex: 0 0 calc(25% - 15px);
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-carousel-card:hover {
    transform: translateY(-4px);
}

.product-carousel-card-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
}

.product-carousel-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-carousel-card:hover .product-carousel-card-img img {
    transform: scale(1.06);
}

.product-carousel-card-info {
    padding: 12px 4px 0;
}

.product-carousel-card-info h4 {
    font-size: 13px;
    font-weight: normal;
    color: #111;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-carousel-card-info .card-category {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-carousel-card-info .card-price {
    color: #e8a849;
    font-size: 14px;
    font-weight: bold;
}

.product-carousel-card-info .card-old-price {
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: line-through;
    margin-left: 6px;
}

/* ===== COLLECTIONS SECTION - Dark BG ===== */
.collections-section {
    background: #1a1a2e;
    padding: 48px 32px;
    margin: 0;
}

.collections-section .section-header-row {
    padding: 0 0 24px 0;
}

.collections-section .section-header-row h2 {
    color: white;
}

.collections-section .section-nav-arrows span {
    color: rgba(255,255,255,0.5);
}

.collections-section .carousel-arrow {
    border-color: rgba(255,255,255,0.2);
    background: transparent;
    color: white;
}

.collections-section .carousel-arrow:hover {
    background: white;
    color: #111;
}

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

.collection-card {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 3/4;
    cursor: pointer;
}

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-card:hover img {
    transform: scale(1.06);
}

.collection-card-name {
    position: absolute;
    bottom: 16px;
    left: 16px;
    font-family: 'BPG Nino Mtavruli', sans-serif;
    font-size: 14px;
    color: white;
    letter-spacing: 2px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top-btn {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e8a849;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(232, 168, 73, 0.3);
}

.scroll-to-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(232, 168, 73, 0.4);
}

.scroll-to-top-btn svg {
    width: 22px;
    height: 22px;
}

/* ===== SCROLL ANIMATIONS - Comforter.ge Style ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger children - Comforter.ge style with more steps */
.scroll-reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.19s; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.26s; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.33s; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.revealed > *:nth-child(7) { transition-delay: 0.47s; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.revealed > *:nth-child(8) { transition-delay: 0.54s; opacity: 1; transform: translateY(0); }

/* Product grid items stagger animation */
.product-grid.scroll-reveal-stagger > .product-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-grid.scroll-reveal-stagger.revealed > .product-item { opacity: 1; transform: translateY(0); }
.product-grid.scroll-reveal-stagger.revealed > .product-item:nth-child(1) { transition-delay: 0.0s; }
.product-grid.scroll-reveal-stagger.revealed > .product-item:nth-child(2) { transition-delay: 0.07s; }
.product-grid.scroll-reveal-stagger.revealed > .product-item:nth-child(3) { transition-delay: 0.14s; }
.product-grid.scroll-reveal-stagger.revealed > .product-item:nth-child(4) { transition-delay: 0.21s; }
.product-grid.scroll-reveal-stagger.revealed > .product-item:nth-child(5) { transition-delay: 0.28s; }
.product-grid.scroll-reveal-stagger.revealed > .product-item:nth-child(6) { transition-delay: 0.35s; }
.product-grid.scroll-reveal-stagger.revealed > .product-item:nth-child(7) { transition-delay: 0.42s; }
.product-grid.scroll-reveal-stagger.revealed > .product-item:nth-child(8) { transition-delay: 0.49s; }

/* ===== FOOTER - Centered style ===== */
.main-footer {
    margin-left: 260px !important;
    text-align: center !important;
}

.footer-columns {
    justify-items: center;
}

.footer-column {
    align-items: center;
    text-align: center;
}

.footer-links-plain,
.footer-legal-links {
    align-items: center !important;
    justify-content: center !important;
}

.footer-legal {
    text-align: center !important;
}

.social-icons {
    justify-content: center !important;
}

.footer-accordion-toggle {
    justify-content: center;
}

.app-download {
    justify-content: center !important;
}

/* ===== PRODUCT GRID - override for main shop grid ===== */
.product-grid-section {
    padding: 0 32px 40px !important;
}

.grid-header-controls {
    padding: 0 0 16px !important;
}

/* ===== CATEGORY FILTERS override ===== */
.category-filters {
    padding: 0 32px !important;
    margin: 0 !important;
}

/* ===== SKI SEASON / TRENDS CAROUSEL override ===== */
.ski-season-section {
    padding: 0 0 20px !important;
}

.ski-season-header {
    padding: 40px 32px 16px !important;
}

/* ===== NEWYEAR/VIDEO BANNER override ===== */
.newyear-banner {
    margin: 0 !important;
}

/* ===== LOGO MARQUEE override ===== */
.logo-marquee {
    margin: 0 !important;
    padding: 32px 0 !important;
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 1024px) {
    .left-sidebar {
        transform: translateX(-100%);
        z-index: 200;
        width: 280px;
    }

    .left-sidebar.sidebar-open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 199;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content-area {
        margin-left: 0 !important;
    }

    .main-footer {
        margin-left: 0 !important;
        text-align: center !important;
    }

    .hero-banner-slider {
        height: 380px;
    }

    .hero-text-overlay h1 {
        font-size: 24px;
        letter-spacing: 3px;
    }

    .hero-text-overlay p {
        font-size: 13px;
    }

    .section-header-row {
        padding: 32px 20px 16px;
    }

    .featured-sales-section {
        padding: 0 16px 32px;
    }

    .featured-sales-grid {
        grid-template-columns: 1fr;
    }

    .featured-main {
        grid-row: auto;
        min-height: 300px;
    }

    .featured-small-grid {
        grid-column: 1;
        grid-row: auto;
    }

    .product-carousel-track {
        padding: 0 16px;
        gap: 12px;
    }

    .product-carousel-card {
        flex: 0 0 calc(50% - 6px);
    }

    .collections-section {
        padding: 32px 16px;
    }

    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-grid-section {
        padding: 0 16px 32px !important;
    }

    .category-filters {
        padding: 0 16px !important;
    }

    .ski-season-header {
        padding: 32px 16px 12px !important;
    }
    
    /* Mobile header: hamburger left, rest right */
    .header-gender-buttons {
        display: none !important;
    }
    
    .header-search-bar {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .hero-banner-slider {
        height: 280px;
    }

    .hero-text-overlay {
        padding: 32px 20px 24px;
    }

    .hero-text-overlay h1 {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .hero-text-overlay p {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .hero-cta-btn {
        padding: 10px 24px;
        font-size: 11px;
    }

    .featured-small-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-carousel-card {
        flex: 0 0 calc(50% - 6px);
    }

    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header-row h2 {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .scroll-to-top-btn {
        bottom: 80px;
        right: 16px;
        width: 42px;
        height: 42px;
    }
}

/* ===== SIDEBAR MOBILE HAMBURGER INTEGRATION ===== */
/* Override old mobile-menu with sidebar */
@media (max-width: 1024px) {
    .mobile-menu-panel,
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Hide desktop-only sidebar on mobile initially */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: flex !important;
    }
}

@media (min-width: 1025px) {
    .mobile-menu-btn {
        display: none !important;
    }
}
