/* Mobile-first fashion theme for screens ≤ 600px */

:root {
    --mobile-gap: 12px;
    --mobile-pad: 14px;
    --category-height: 56px;
}

/* Hide scrollbars globally across all versions */
::-webkit-scrollbar {
    display: none;
}

/* Firefox scrollbar hide */
* {
    scrollbar-width: none;
}

/* Hide scrollbars for specific scrollable containers */
.category-links,
.products-container,
.shop-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ===== FASHION HERO SECTION - DESKTOP & ALL SCREEN STYLES ===== */

.hero-outer {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero {
    position: relative;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Changed from center to flex-start */
}

/* Carousel Styling - Full Width Background */
.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 90%;
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-item.active .carousel-image {
    animation: kenBurns 8s ease-out forwards;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* Gradient Overlay - Transparent to allow background to show */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(59, 43, 34, 0.5) 0%,
        rgba(59, 43, 34, 0.3) 40%,
        rgba(0, 0, 0, 0.15) 100%
    );
    z-index: 1;
}

/* Modern Carousel Controls */
.modern-control {
    width: 60px;
    height: 60px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    opacity: 0;
}

.hero:hover .modern-control {
    opacity: 1;
}

.modern-control:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.modern-control .control-icon {
    color: #fff;
    font-size: 20px;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

/* Slide Dots */
.slide-dots-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 10px;
    align-items: center;
}

.slide-dots-indicator .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.slide-dots-indicator .dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.slide-dots-indicator .dot.active {
    background: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    width: 32px;
    border-radius: 5px;
}

/* Hero Copy Container - Positioned on the Left */
.hero-copy-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: flex-start; /* Align to the left */
}

.hero-copy {
    max-width: 650px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    background: rgba(0, 0, 0, 0.55); /* Darker semi-transparent overlay */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 50px 45px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Typography */
.hero-subtitle {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 16px;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 24px;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-title .highlight {
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    display: none;
}

.hero-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 32px;
    font-weight: 400;
}

/* CTA Buttons */
.cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-fashion,
.btn-fashion-outline {
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border: 2px solid transparent;
    letter-spacing: 0.3px;
}

.btn-fashion {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-fashion:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.btn-fashion-outline {
    background: #fff;
    backdrop-filter: blur(10px);
    color: #000000;
    border-color: #000000;
    font-weight: 600;
}

.btn-fashion-outline:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #fff;
    transform: translateY(-2px);
    color: #000000;
}

/* Hero Features */
.hero-features {
    display: flex;
    align-items: center;
    gap: 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.feature-item i {
    font-size: 1.125rem;
    opacity: 0.9;
}

.feature-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
}

/* Decorative Elements */
.hero-decoration-left,
.hero-decoration-right {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: 2;
    pointer-events: none;
}

.hero-decoration-left {
    top: -200px;
    left: -200px;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.hero-decoration-right {
    bottom: -200px;
    right: -200px;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
}

@media (max-width: 600px) {
    /* ===== GLOBAL MOBILE STYLES ===== */
    body {
        font-size: 14px;
        line-height: 1.4;
        -webkit-text-size-adjust: 100%;
        padding-top: 0 !important;
        padding-bottom: 90px; /* space for fixed bottom nav */
    }

    /* ===== TOPBAR NAVIGATION (MOBILE NAV) ===== */
    .mobile-navbar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 68px;
        display: flex !important;
        align-items: center;
        justify-content: space-around;
        z-index: 1100;
        padding: 0 var(--mobile-pad);
        background: var(--fashion-dark-brown, #3b2b22);
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
    }

    .mobile-navbar .nav-link {
        color: #fff !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        font-size: 11px;
        text-decoration: none;
        transition: opacity 200ms ease;
    }

    .mobile-navbar .nav-link:active {
        opacity: 0.7;
    }

    .mobile-navbar .nav-link i {
        font-size: 22px;
    }

    .mobile-navbar img {
        width: 40px;
        height: auto;
    }

    /* ===== CATEGORY/SEARCH BAR ===== */
    .category-search-container {
        /* Sticky positioning so the bar moves with scroll on mobile */
        position: sticky !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        z-index: 950;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        padding: var(--mobile-pad) 0;
    }

    .category-tabs {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem;
    }

    .category-links {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding: 0 var(--mobile-pad);
        margin: 0;
    }

    .category-tab {
        flex-shrink: 0;
        padding: 8px 16px;
        background: #f5f5f5;
        border-radius: 20px;
        font-size: 13px;
        white-space: nowrap;
        transition: background 150ms ease;
    }

    .category-tab.active {
        background: var(--primary, #000000);
        color: #fff;
    }

    .category-tab:active {
        opacity: 0.8;
    }

    /* ===== HERO SECTION MOBILE ADJUSTMENTS ===== */
    .hero {
        min-height: 400px;
        align-items: center;
        justify-content: center; /* Center on mobile */
        position: relative;
    }

    .carousel-image-wrapper {
        height: 400px;
        width: 100vw;
        position: absolute;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        top: 0;
        z-index: 1;
    }

    .hero-copy-container {
        padding: 0 16px;
        justify-content: center; /* Center on mobile */
    }

    .hero-copy {
        max-width: 100%;
    }

    .hero-content {
        padding: 32px 24px;
        border-radius: 16px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.8) 100%);
        backdrop-filter: blur(15px);
        position: relative;
        z-index: 20;
        width: 100%;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 2px;
        padding: 6px 16px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 16px;
        letter-spacing: -0.5px;
    }

    .hero-title .highlight::after {
        height: 2px;
        bottom: 4px;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 24px;
    }

    .cta-row {
        flex-direction: column;
        gap: 12px;
    }

    .btn-fashion,
    .btn-fashion-outline {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .modern-control {
        width: 44px;
        height: 44px;
        opacity: 1;
    }

    .carousel-control-prev {
        left: 16px;
    }

    .carousel-control-next {
        right: 16px;
    }

    .modern-control .control-icon {
        font-size: 16px;
    }

    .slide-dots-indicator {
        bottom: 16px;
        gap: 8px;
    }

    .slide-dots-indicator .dot {
        width: 8px;
        height: 8px;
    }

    .slide-dots-indicator .dot.active {
        width: 24px;
    }

    /* ===== PRODUCT GRID & CARDS ===== */
    .product-grid,
    .shop-grid,
    .products-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
        margin: 0;
    }

    .product,
    .product-card,
    .shop-item {
        background: #fff;
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
        overflow: hidden;
        transition: box-shadow 200ms ease;
    }

    .product:active,
    .product-card:active,
    .shop-item:active {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }

    .product img,
    .product-card img,
    .shop-item img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 8px;
        display: block;
    }

    .product h3,
    .product-card .product-title,
    .shop-item h5 {
        font-size: 0.95rem;
        font-weight: 600;
        margin: 10px 0 6px;
        line-height: 1.3;
        color: #333;
    }

    .product .price,
    .product-card .product-price,
    .shop-item .price {
        font-weight: 700;
        color: var(--primary, #000000);
        font-size: 1rem;
        margin: 6px 0;
    }

    .product-card .product-description,
    .shop-item .description {
        font-size: 0.8rem;
        color: #666;
        margin: 6px 0;
        line-height: 1.3;
    }

    /* ===== FOOTER ===== */
    .footer,
    footer {
        padding: 20px 12px;
        background: #2d2d2d;
        color: #e8e8e8;
        margin-top: 20px;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .footer-section {
        font-size: 0.85rem;
    }

    .footer-section h5 {
        font-size: 0.9rem;
        color: #fff;
        margin-bottom: 8px;
        font-weight: 600;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .footer-links a {
        color: #d8d8d8;
        text-decoration: none;
        font-size: 0.8rem;
    }

    .footer-links a:active {
        color: #fff;
    }

    /* ===== FORMS & BUTTONS ===== */
    input.form-control,
    .search-input,
    select {
        padding: 12px 14px;
        font-size: 1rem;
        border-radius: 8px;
        border: 2px solid #e0e0e0;
        width: 100%;
    }

    input.form-control:focus,
    .search-input:focus {
        border-color: var(--primary, #000000);
        outline: none;
    }

    .btn-primary {
        padding: 12px 18px;
        border-radius: 8px;
        font-size: 0.95rem;
        font-weight: 600;
        width: auto;
        border: none;
    }

    .button-container .btn {
        width: 100%;
    }

    /* ===== ACCOUNT DROPDOWN ===== */
    .account-dropdown {
        position: fixed !important;
        bottom: 75px;
        right: 8px;
        left: 8px;
        border-radius: 12px;
        overflow: hidden;
        max-height: 50vh;
        overflow-y: auto;
        display: none;
        z-index: 1150;
        background: #fff;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }

    .account-dropdown.show {
        display: block;
    }

    .account-dropdown .dropdown-item {
        padding: 12px 16px;
        border-bottom: 1px solid #f0f0f0;
        color: #333;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.95rem;
    }

    .account-dropdown .dropdown-item:active {
        background: #f5f5f5;
    }

    .account-dropdown .logout-item {
        color: #d32f2f;
    }

    /* ===== LOOKBOOK / PROMOS ===== */
    .lookbook {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .lookbook .card {
        border: none;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    }

    .lookbook .card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

    .lookbook .card-body {
        padding: 12px;
    }

    .lookbook .card-title {
        font-size: 0.95rem;
        font-weight: 600;
        margin: 0 0 6px;
    }

    .lookbook .card-text {
        font-size: 0.8rem;
        color: #666;
        margin: 0;
    }

    /* ===== MISC MOBILE ADJUSTMENTS ===== */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .row {
        margin-left: -12px;
        margin-right: -12px;
    }

    .row > [class*="col-"] {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Ensure modals and overlays work correctly */
    .modal {
        z-index: 2000;
    }

    .modal-backdrop {
        z-index: 1999;
    }

    /* Disable desktop elements on mobile */
    .desktop-navbar {
        display: none !important;
    }

    .d-none {
        display: none !important;
    }

    .d-md-block,
    .d-lg-block {
        display: none !important;
    }
}

/* Small tweaks for 380px–600px phones */
@media (min-width: 380px) and (max-width: 600px) {
    .mobile-navbar {
        height: 72px;
    }

    .mobile-navbar .nav-link i {
        font-size: 24px;
    }

    .product-grid,
    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
}

/* Tablet */
@media (min-width: 601px) and (max-width: 991px) {
    .hero {
        min-height: 550px;
    }

    .carousel-image-wrapper {
        height: 550px;
    }

    .hero-copy-container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-content {
        padding: 40px 35px;
    }

    .mobile-navbar {
        display: none !important;
    }

    body {
        padding-bottom: 0 !important;
    }

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

/* Large Desktop */
@media (min-width: 1400px) {
    .hero {
        min-height: 700px;
    }

    .carousel-image-wrapper {
        height: 700px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-description {
        font-size: 1.25rem;
    }
}
