/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ===== CUSTOM FONTS ===== */
@font-face {
    font-family: 'Urban Starblues';
    src: url('Urban Starblues Demo.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

/* ===== CSS VARIABLES ===== */
:root {
    /* Green Color Palette */
    --green-100: #C9FEC5;
    --green-200: #31ED37;
    --green-300: #26C02B;
    --green-400: #1C9920;
    --green-500: #127015;
    --green-600: #074709;
    --green-700: #022102;

    /* Light Mode */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-tertiary: #F0F0F0;
    --text-primary: #022102;
    --text-secondary: #074709;
    --text-muted: #666666;
    --border: #E5E5E5;
    --accent: var(--green-300);
    --accent-hover: var(--green-400);
    --sidebar-bg: #FAFAFA;
}

[data-theme="dark"] {
    --bg-primary: #0A0A0A;
    --bg-secondary: #1A1A1A;
    --bg-tertiary: #2A2A2A;
    --text-primary: #E5E5E5;
    --text-secondary: #C5C5C5;
    --text-muted: #999999;
    --border: #2A2A2A;
    --sidebar-bg: #0F0F0F;
}

html {
    scroll-behavior: smooth;
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100vh;
    height: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* ===== MOBILE HEADER ===== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}

.mobile-logo {
    font-family: 'Urban Starblues', cursive;
    font-size: 1.4rem;
    font-weight: normal;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    border: 4px solid var(--accent);
    border-radius: 50%;
    width: 80px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 0.05em;
}

.mobile-logo:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 999;
    transition: transform 0.3s ease;
}

.sidebar-header {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-link:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.logo {
    font-family: 'Urban Starblues', cursive;
    font-size: 1.8rem;
    font-weight: normal;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    cursor: pointer;
    background: var(--bg-secondary);
    border: 4px solid var(--accent);
    border-radius: 50%;
    width: 120px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

/* Navigation */
.nav-main,
.nav-secondary {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-main {
    margin-bottom: 1.5rem;
}

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 1rem 0;
}

.nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    padding: 0 0.75rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.nav-link:hover .nav-icon {
    color: var(--accent);
}

.nav-link.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 500;
}

.nav-link.active .nav-icon {
    color: var(--accent);
}

.nav-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-text {
    flex: 1;
}

.nav-number {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    min-width: 16px;
    text-align: right;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.theme-tabs {
    position: relative;
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 3px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.theme-input {
    display: none;
}

.theme-tab {
    position: relative;
    z-index: 2;
    padding: 0.4rem 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none;
}

.theme-input:checked + .theme-tab {
    color: var(--text-primary);
}

.theme-glider {
    position: absolute;
    z-index: 1;
    top: 3px;
    left: 3px;
    height: calc(100% - 6px);
    width: calc(50% - 2px);
    background: var(--bg-primary);
    border-radius: 4px;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.theme-input:nth-of-type(1):checked ~ .theme-glider {
    transform: translateX(0);
}

.theme-input:nth-of-type(2):checked ~ .theme-glider {
    transform: translateX(calc(100% + 2px));
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: 240px;
    padding: 3rem;
    max-width: 1000px;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.section {
    margin-bottom: 2rem;
    scroll-margin-top: 2rem;
}

/* Info Boxes */
.info-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
}

.info-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
}

.info-box p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.3;
    margin: 0;
}

/* Video Container */
.video-container {
    margin-top: 3rem;
    width: 920px;
    max-width: 100%;
}

.video-container video {
    width: 100%;
    height: 430px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
}

/* Carousel Container */
.carousel-container {
    margin-top: 1.5rem;
    width: 920px;
    max-width: 100%;
    position: relative;
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 430px;
    z-index: 1;
}

.carousel-image {
    display: none;
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    pointer-events: none;
}

.carousel-image.active {
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 0;
    height: 430px;
    background: transparent;
    color: transparent;
    border: none;
    width: 50%;
    cursor: pointer;
    font-size: 0;
    transition: none;
    z-index: 100;
    outline: none;
}

.carousel-btn:hover {
    background: transparent;
}

.carousel-btn:active {
    background: transparent;
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-dots {
    text-align: center;
    padding: 20px 0;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: var(--text-tertiary);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--text-primary);
}

/* About Carousel */
.about-carousel {
    position: relative;
    width: 250px;
    margin-right: 0;
}

.about-carousel-images {
    position: relative;
    width: 250px;
    height: 230px;
}

.about-carousel-image {
    display: none;
    width: 250px;
    height: 230px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    pointer-events: none;
}

.about-carousel-image.active {
    display: block;
}

.about-carousel .carousel-btn {
    width: 50%;
    height: 230px;
    top: 0;
    padding: 0;
    z-index: 100;
    outline: none;
    background: transparent;
}

.about-carousel .carousel-btn:hover,
.about-carousel .carousel-btn:active {
    background: transparent;
}

kbd {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 0.1rem 0.3rem;
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Hero Section */
.hero {
    margin-bottom: 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.view-all {
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.view-all:hover {
    color: var(--accent-hover);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.about-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Updates Section */
.updates-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.update-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.update-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.update-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.update-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.update-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.update-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.update-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.update-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: auto;
}

/* Aesthetic Goods Section */
.goods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.goods-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

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

.goods-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.goods-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.goods-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.goods-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.goods-brand {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.goods-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 0.25rem;
}

/* Minigames Section */
.minigames-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.minigame-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.minigame-link:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.minigame-title {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.minigame-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

/* Software Section */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.software-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.software-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.software-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.software-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.software-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.software-description {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Socials Section */
.socials-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    display: inline-block;
    font-size: 1rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: var(--accent-hover);
}

/* ===== FLOATING BUTTONS ===== */
.floating-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 100;
}

.floating-button:hover {
    background: var(--accent-hover);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.floating-button:active {
    transform: translateY(-2px);
}

.search-button {
    position: fixed;
    bottom: 2rem;
    right: 6rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 100;
}

.search-button:hover {
    background: var(--accent-hover);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.search-button:active {
    transform: translateY(-2px);
}

/* ===== SEARCH MODAL (Chat Style) ===== */
.search-modal {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 400px;
    max-height: 600px;
    display: none;
    z-index: 1001;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.search-modal.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.search-container {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.search-modal.active .search-container {
    animation: slideUp 0.3s ease;
}

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

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.search-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.search-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.search-close:hover {
    color: var(--text-primary);
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 0.75rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-suggestions {
    flex: 1;
    overflow-y: auto;
    margin-top: 0.5rem;
}

.search-suggestion-item {
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.search-result {
    padding: 0.875rem 1.25rem;
    margin-bottom: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.search-result:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent);
    transform: translateX(4px);
}

/* ===== CONTACT FORM ===== */
.contact-section {
    /* Removed max-height to allow scrolling */
}

.contact-form-container {
    max-width: 700px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form-compact {
    gap: 0.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    padding: 0.6rem 0.875rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    padding: 0.75rem 1.75rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        padding-top: 80px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem;
        padding-top: 80px;
        min-height: auto;
        overflow-y: visible;
    }

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

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

    .section-title {
        font-size: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-image {
        max-width: 200px;
        margin: 0 auto;
    }

    .update-card {
        flex-direction: column;
    }

    .update-image {
        width: 100%;
        height: 200px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

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

    .software-grid {
        grid-template-columns: 1fr;
    }

    .floating-button {
        bottom: 1rem;
        right: 1rem;
        width: 56px;
        height: 56px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }

    .search-button {
        bottom: 5rem;
        right: 1rem;
        width: 60px;
        height: 60px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }

    .info-boxes {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .search-modal {
        top: 80px;
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        width: auto;
        max-height: none;
        height: auto;
    }

    .search-modal .search-container {
        height: 100%;
        display: flex;
        flex-direction: column;
        max-height: calc(100vh - 100px);
    }

    .search-modal .search-suggestions {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .search-close {
        font-size: 2rem;
        padding: 0.75rem;
        min-width: 44px;
        min-height: 44px;
    }

    .search-title {
        font-size: 1.25rem;
    }

    .search-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem 1.25rem;
        border-radius: 10px;
    }

    .video-container video {
        height: auto;
        aspect-ratio: 920 / 430;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
        padding-top: 76px;
    }

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

    .goods-grid {
        grid-template-columns: 1fr;
    }

    .info-boxes {
        gap: 0.5rem;
        margin-top: 2rem;
    }

    .info-box {
        padding: 0.6rem 0.8rem;
    }

    .search-modal {
        top: 70px;
        bottom: 1rem;
        right: 0.5rem;
        left: 0.5rem;
        max-height: none;
    }

    .search-button {
        width: 56px;
        height: 56px;
        bottom: 4.5rem;
        right: 0.75rem;
    }

    .floating-button {
        width: 52px;
        height: 52px;
        bottom: 0.75rem;
        right: 0.75rem;
    }
}
