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

/* Basic styling */
html, body {
    font-family: 'Share Tech Mono', monospace;
}

body {
    background-color: black;
    color: #3C0177;
}

/* Light mode overrides */
body.light-mode {
    background-color: white;
    color: #bd0000;
}

body.light-mode .fixed-background {
    background-color: white;
}

body.light-mode .cart-header,
body.light-mode .cart-content,
body.light-mode .cart-message,
body.light-mode .footer,
body.light-mode .copyright,
body.light-mode .terms {
    color: #bd0000;
}

body.light-mode .title-image {
    content: url('../assets/wholelottared.png');
}

/* Fixed background layer */
.fixed-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: -1;
}

/* Critical mobile settings */
body.cart-view {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: black;
    min-height: 100%;
}

/* Desktop and tablet styles */
@media screen and (min-width: 601px) {
    html, body {
        height: auto;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .content-wrapper {
        position: static;
        min-height: 100vh;
    }
}

/* Mobile styles - let body scroll normally */
@media screen and (max-width: 600px) {
    body.cart-view {
        -webkit-overflow-scrolling: touch !important;
        overflow-y: auto;
    }
    
    .content-wrapper {
        position: static;
        min-height: 100vh;
    }
}

/* Header */
.title-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    text-align: center;
    z-index: 25;
    pointer-events: none;
}

.title-image {
    max-width: 28.125rem;
    width: calc(48vw + 150px);
    height: auto;
    -webkit-filter: url(#titleWaveEffect);
    filter: url(#titleWaveEffect);
    transform: translate3d(0,0,0);
    will-change: transform;
    pointer-events: auto;
}

/* Main content */
.cart-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 180px;
    min-height: calc(100vh - 100px);
}

.cart-header {
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3C0177;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.cart-content {
    min-height: 30vh;
    color: #3C0177;
    margin-top: 30px;
}

.cart-message {
    margin-bottom: 30px;
    font-size: 1.4rem;
    font-weight: bold;
    color: #3C0177;
    letter-spacing: 1px;
    transition: transform 0.5s ease, text-shadow 0.5s ease;
}

.cart-items-container {
    margin-top: 30px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cart-empty {
    padding: 40px 20px;
    text-align: center;
    font-size: 1.2rem;
    color: #3C0177;
    border: 1px solid rgba(60, 1, 119, 0.3);
    border-radius: 4px;
}

/* Footer */
.footer {
    width: 100%;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
    color: #3C0177;
}

.copyright {
    font-size: 12px;
    margin-bottom: 6px;
}

.terms {
    font-size: 12px;
    cursor: pointer;
}

.terms:hover {
    color: #9333EA;
}

/* Media queries */
@media screen and (min-width: 601px) {
    .cart-container {
        padding-top: 240px;
    }
    
    .title-image {
        max-width: 450px;
    }
    
    .title-container {
        margin-top: 15px;
    }
    
    .cart-content {
        min-height: 60vh;
    }
}

@media screen and (max-width: 600px) {
    .cart-container {
        padding: 0 40px;
        padding-top: 180px;
    }
    
    .footer {
        margin-top: 100px;
        margin-bottom: 100px;
        padding-bottom: 2.5rem;
    }
}
