/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: poppins;
    line-height: 1.6;
    color: #333;
}

.merchandise-landing {
    width: 100%;
    overflow-x: hidden; 
}
 
/* Hero Section - By the Water */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Desktop Hero Container */
.hero-desktop-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 1;
}

.hero-image-half {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.hero-image-half:hover {
    transform: scale(1.01);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Mobile Hero Container */
.hero-mobile-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1;
}

.hero-mobile-image {
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.hero-mobile-image:hover {
    transform: scale(1.01);
}

/* Add overlay to hero images for better text readability */
.hero-image-half::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.13);
    z-index: 2;
    pointer-events: none;
}

/* Hero Text Overlay */
.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-title {
    font-size: 60px;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 2.5rem;
    line-height: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: space-around;
    align-items: center;
}

.hero-btn {
    padding: 10px 25px;
    background: transparent;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-btn:hover {
    background: white;
    color: #333;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Split Section - Logo Tops & Casual Shorts */
.split-section {
    width: 100%;
    min-height: 100vh;
    display: block;
    visibility: visible;
}

.split-container {
    display: flex;
    width: 100%;
    height: 100vh;
    min-height: 600px;
}

.split-item {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.split-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.split-image-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: transform 0.3s ease;
}

.split-image-link:hover {
    transform: scale(1.02);
}

.split-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.summer-dresses .split-image {
    object-position: center;
}

.split-text-overlay {
    position: absolute;
    bottom: 80px;
    left: 60px;
    z-index: 2;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.split-title {
    font-size: 48px;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: poppins;
}

.split-subtitle {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 400px;
}

.split-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.split-btn {
    padding: 14px 32px;
    background: transparent;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.split-btn:hover {
    background: white;
    color: #333;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.category-item .category-link {
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Hide desktop, show mobile */
    .hero-desktop-container {
        display: block;
    }

    .hero-image-right {
        display: none;
    }


    /* Make hero text overlay position like split sections */
    .hero-text-overlay {
        position: absolute;
        top: auto;
        left: 40px;
        right: 20px;
        bottom: 60px;
        transform: none;
        text-align: left;
        z-index: 3;
        color: white;
        text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    }

    .hero-title {
        font-size: 48px;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 25px;
        margin-bottom: 2rem;
        padding: 0;
        max-width: 400px;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-buttons {
        display: flex;
        gap: 1.5rem;
        align-items: center;
        justify-content: flex-start;
    }

    .hero-btn {
        padding: 12px 30px;
        font-size: 16px;
    }

    /* Ensure split sections are visible on mobile/tablet */
    .split-section {
        display: block !important;
        width: 100% !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    /* Split section mobile styles */
    .split-container {
        display: flex !important;
        flex-direction: column;
        height: auto;
        width: 100%;
    }

    .split-item {
        display: block !important;
        width: 100%;
        min-height: 300px;
        position: relative;
        margin-bottom: 0;
    }

    .split-content {
        display: block !important;
        height: 100%;
        aspect-ratio: 780/1170;
        position: relative;
    }

    .split-image-link,
    .split-image {
        display: block !important;
        height: 100%;
        min-height: 250px;
        width: 100%;
        object-fit: cover;
    }

    .split-title {
        font-size: 40px;
    }

    .split-text-overlay {
        bottom: 60px;
        left: 40px;
        right: 20px;
    }

    /* Category grid mobile visibility */
    .category-grid-section {
        display: block !important;
        width: 100% !important;
        padding: 40px 0 20px 0;
    }
}

@media (min-width: 1025px) {
    /* Show desktop, hide mobile */
    .hero-desktop-container {
        display: flex;
    }

    .hero-mobile-container {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Ensure all sections are visible on mobile */
    .split-section,
    .category-grid-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .hero-section {
        height: 80vh;
        min-height: 500px;
    }

    /* Keep hero text positioning consistent with split sections */
    .hero-text-overlay {
        bottom: 40px;
        left: 30px;
        right: 20px;
    }

    .category-item .category-link {
        display: block;
    }

    .hero-title {
        font-size: 36px;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 25px;
        margin-bottom: 2rem;
        padding: 0;
        max-width: 350px;
        margin-left: 0;
        margin-right: 0;
        line-height: normal;
    }

    .hero-buttons {
        gap: 1rem;
        justify-content: flex-start;
    }

    .hero-btn {
        padding: 10px 25px;
        font-size: 14px;
    }

    .split-container {
        flex-direction: column;
        height: auto;
    }

    .split-item {
        height: 70vh;
        min-height: 400px;
    }

    .split-title {
        font-size: 32px;
    }

    .split-subtitle {
        font-size: 14px;
    }

    .split-text-overlay {
        bottom: 40px;
        left: 30px;
    }

    .split-buttons {
        gap: 1rem;
    }

    .split-btn {
        padding: 10px 24px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    /* Keep hero text positioning consistent with split sections */
    .hero-text-overlay {
        bottom: 30px;
        left: 20px;
        right: 15px;
    }

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

    .hero-subtitle {
        font-size: 20px;
        max-width: 300px;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 0.8rem;
    }

    .hero-btn {
        padding: 8px 20px;
        font-size: 13px;
    }

    .split-title {
        font-size: 24px;
    }

    .split-subtitle {
        font-size: 13px;
    }

    .split-text-overlay {
        bottom: 30px;
        left: 20px;
    }
}

/* Enhance image quality and loading */
.hero-image,
.split-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Ensure proper text rendering */
.hero-title,
.split-title {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loading animations */
.hero-image-half,
.split-image-link {
    animation: fadeIn 1s ease-in-out;
}

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

/* High contrast mode accessibility */
@media (prefers-contrast: high) {
    .hero-btn,
    .split-btn {
        border-width: 3px;
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Overlay for split images */
.split-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.13);
    z-index: 2;
    pointer-events: none;
}

.category-grid-section {
    width: 100%;
    padding: 60px 0 40px 0;
    background: #fff;
    display: block;
    visibility: visible;
}
.category-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}
.category-item {
    flex: 1 1 0;
    min-width: 180px;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
    text-align: center;
}
.category-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    background: #f3f3f3;
}
.category-title {
    font-family: poppins;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.01em;
    color: #111;
}
.category-links {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-bottom: 8px;
}
.category-link {
    font-family: poppins;
    font-size: 18px;
    color: #444;
    text-decoration: none;
    padding-bottom: 2px;
    margin: 0 2px;
    transition: border-color 0.2s, color 0.2s;
}
.category-grid-section .category-link:hover {
    color: #000;
    border-bottom: none;
    transform: none;
    padding-left: 0;
}
.category-separator {
    width: 1px;
    background: #e0e0e0;
    height: 80px;
    align-self: center;
    margin: 0 8px;
}
@media (max-width: 900px) {
    .category-title { font-size: 24px; }
    .category-img { width: 60px; height: 60px; }
    .category-link { font-size: 16px; }
}
@media (max-width: 700px) {
    .category-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .category-item {
        max-width: 100%;
        min-width: 0;
        padding: 24px 0;
        border-bottom: 1px solid #eee;
    }
    .category-separator {
        display: none;
    }
    .category-title { font-size: 20px; }
    .category-link { font-size: 14px; }
}