body {
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    position: relative;
    border-bottom: none;
}

.logo {
    display: block;
    margin: 0 auto;
    height: 40px;
}

header h1 {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-size: 2em;
    font-weight: normal;
}

.header-spacer {
    display: none;
}

header nav {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: center;
}

header nav li {
    padding: 0;
}

header nav a {
    color: #000;
    text-decoration: none;
    font-size: 1em;
    padding: 6px 0;
    display: block;
    transition: color 0.2s;
}

header nav a:hover {
    text-decoration: underline;
    color: #555;
}

footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
    margin-top: auto;
    width: 100%;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

footer a {
    text-decoration: none;
    color: #333;
}

footer a:hover {
    text-decoration: underline;
}

.about-content {
    padding: 20px;
    text-align: center;
    max-width: 800px;
    margin: 50px auto;
    font-size: 1.2em;
}

.container {
    padding: 20px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.image-gallery img {
    width: 100%;
    height: auto;
    display: block;
}

.news-content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    margin-bottom: 40px;
}

.news-item h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.news-item .date {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
}

.news-item p {
    line-height: 1.6;
}

.news-item a {
    text-decoration: none;
    color: inherit;
}

.news-item a:hover {
    text-decoration: none;
}

.news-item a p {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1em;
    color: #000;
    margin: 0 0 18px 0;
    transition: color 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.news-item a p:hover {
    animation: none;
    color: #555;
    text-decoration: none;
}

html, body {
    height: 100%;
}

main.container {
    flex: 1 0 auto;
}

/* Mobile Navigation Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 5px 0;
    transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 10px 0 10px 0;
        position: relative;
        z-index: 1002;
        min-height: 56px;
        background: #fff;
    }
    .logo {
        height: 38px;
        max-width: 90vw;
        margin-left: 16px;
        margin-right: 0;
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        z-index: 1004;
        display: block;
        padding: 4px 0;
    }
    .mobile-menu-toggle {
        display: block;
        z-index: 1005;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        transition: opacity 0.2s;
    }
    .mobile-menu-toggle.hide {
        opacity: 0;
        pointer-events: none;
    }
    header nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 78vw;
        max-width: 320px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -2px 0 10px rgba(0,0,0,0.08);
        transition: transform 0.3s cubic-bezier(.4,1.6,.6,1);
        z-index: 1002;
        padding-top: 56px;
        transform: translateX(100%);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        pointer-events: none;
    }
    header nav.active {
        transform: translateX(0);
        pointer-events: auto;
    }
    header nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    header nav li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    header nav a {
        padding: 15px 0;
        font-size: 1.1em;
        display: block;
        width: 100%;
    }
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0,0,0,0.18);
        z-index: 1001;
        transition: opacity 0.3s;
        opacity: 0;
        pointer-events: none;
    }
    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
    body.menu-open {
        overflow: hidden;
    }
    main.container, .center-logo {
        margin-top: 0;
        padding-top: 0;
    }
    /* Overlay for mobile menu */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0,0,0,0.18);
        z-index: 1001;
        transition: opacity 0.3s;
        opacity: 0;
        pointer-events: none;
    }
    
    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Main content adjustments */
    .container {
        padding: 15px;
    }
    
    .about-content {
        padding: 15px;
        margin: 30px auto;
        font-size: 1em;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .news-item h2 {
        font-size: 1.5em;
    }
    
    /* Image gallery responsive */
    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 8px;
    }
    
    /* Footer adjustments */
    footer {
        padding: 15px;
    }
    
    footer ul {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Product page specific mobile styles */
    .product-center {
        padding: 20px 15px;
        min-height: 60vh;
    }
    
    .product-center img.main-img {
        max-width: 100%;
        width: 100%;
    }
    
    .product-title {
        font-size: 1.5rem;
        margin-top: 20px;
    }
    
    .product-price {
        font-size: 1.1rem;
        margin-top: 10px;
    }
    
    .img-selector {
        gap: 12px;
        margin: 20px 0 0 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .img-thumb {
        width: 50px;
        height: 50px;
    }
    
    /* Lookbook mobile styles */
    .lookbook-container {
        padding: 20px 0;
        min-height: calc(100vh - 150px);
    }
    
    .row {
        height: 180px;
        margin-bottom: 15px;
    }
    
    .slider {
        height: 180px;
    }
    
    .slider img {
        height: 180px;
        min-width: 200px;
    }
    
    /* Center logo mobile adjustments */
    .center-logo img {
        max-width: 280px;
        width: 80vw;
    }
    
    /* Random plot cloud mobile adjustments */
    .random-plot-sentence {
        font-size: 1em;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    header {
        padding: 8px 10px;
    }
    
    .logo {
        height: 30px;
        left: 10px;
    }
    
    .mobile-menu-toggle {
        right: 10px;
    }
    
    header nav {
        width: 200px;
    }
    
    .container {
        padding: 10px;
    }
    
    .about-content {
        padding: 10px;
        margin: 20px auto;
    }
    
    .news-content {
        padding: 10px;
    }
    
    .product-center {
        padding: 15px 10px;
    }
    
    .product-title {
        font-size: 1.3rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .img-thumb {
        width: 45px;
        height: 45px;
    }
    
    .row {
        height: 150px;
    }
    
    .slider {
        height: 150px;
    }
    
    .slider img {
        height: 150px;
        min-width: 150px;
    }
    
    .center-logo img {
        max-width: 240px;
        width: 85vw;
    }
    
    .random-plot-sentence {
        font-size: 0.9em;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    header nav a {
        padding: 12px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .img-thumb {
        min-height: 44px;
        min-width: 44px;
    }
    
    footer a {
        padding: 8px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Additional mobile optimizations */
@media (max-width: 768px) {
    /* Prevent horizontal scrolling */
    body {
        overflow-x: hidden;
    }
    
    /* Improve form elements on mobile */
    input, textarea, select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    /* Better spacing for mobile */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Improve button touch targets */
    button, .btn, a[role="button"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better image handling */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Improve text readability */
    body {
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* Better table handling on mobile */
    table {
        font-size: 14px;
    }
    
    /* Improve modal/overlay handling */
    .modal, .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* Landscape mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-menu-toggle {
        top: 15px;
        right: 15px;
    }
    
    header nav {
        padding-top: 40px;
    }
    
    .center-logo img {
        max-width: 200px;
        width: 60vw;
    }
}
