* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark mode (default) */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent: #00d4ff;
    --accent-hover: #00b8e6;
    --success: #00ff88;
    --danger: #ff4444;
    --border: #333333;
    --shadow: rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

[data-theme="light"] {
    /* Light mode */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #e8e8e8;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent: #00d4ff;
    --accent-hover: #00b8e6;
    --success: #00cc6a;
    --danger: #cc3333;
    --border: #d0d0d0;
    --shadow: rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, border-color 0.3s ease;
    position: relative;
}

[data-theme="light"] header {
    background: rgba(245, 245, 245, 0.95);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.header-nav {
    display: flex;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: auto;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 80px;
    width: auto;
    max-width: 300px;
    /* Keep original logo colors - no filter applied */
    filter: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    position: relative;
}

.theme-toggle-switch {
    display: inline-block;
    width: 51px;
    height: 31px;
    flex-shrink: 0;
    position: absolute;
    top: 50%;
    right: calc(2rem + 150px);
    transform: translateY(-50%);
    z-index: 101;
}

.theme-toggle-switch::after {
    content: "Change to light mode";
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.theme-toggle-switch:hover::after {
    opacity: 1;
}

.theme-toggle-switch:has(input:checked)::after {
    content: "Change to dark mode";
}

.theme-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    transition: 0.3s ease;
    border-radius: 34px;
}

.theme-slider:before {
    position: absolute;
    content: "";
    height: 27px;
    width: 27px;
    left: 2px;
    bottom: 1px;
    background-color: white;
    transition: 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-toggle-switch input:checked + .theme-slider {
    background-color: #007AFF;
    border-color: #007AFF;
}

.theme-toggle-switch input:checked + .theme-slider:before {
    transform: translateX(20px);
}

.theme-toggle-switch:hover .theme-slider {
    opacity: 0.8;
}

.search-bar {
    padding: 0.7rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    width: 250px;
    transition: all 0.3s ease;
}

.search-bar:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.search-bar::placeholder {
    color: var(--text-secondary);
}

nav {
    display: flex;
    gap: 2rem;
}

.header-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 103;
    pointer-events: auto;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.header-nav a:hover {
    color: var(--text-primary);
}

.header-nav a:hover::after {
    width: 100%;
}

/* Dropdown navigation styles */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 200;
    box-shadow: 0 8px 24px var(--shadow);
    padding: 0.5rem 0;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-menu a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding-left: 2rem;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.dropdown-menu a:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.dropdown-menu .dropdown-item.active {
    background: var(--bg-tertiary);
    color: var(--accent);
    font-weight: 600;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--text-primary);
}

nav a:hover::after {
    width: 100%;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    flex-shrink: 0;
    z-index: 101;
}

.cart-text {
    font-size: 1rem;
    font-weight: 500;
}

.cart-link svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.cart-link:hover {
    color: var(--text-primary);
}

.cart-link:hover svg {
    color: var(--accent);
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    min-width: 20px;
    position: absolute;
    top: -8px;
    right: -8px;
}

.cart-link:hover .cart-badge {
    background: var(--accent-hover);
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

.movies-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

/* Loading indicator styles */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid var(--danger);
    margin: 2rem 0;
}

.error-message h3 {
    color: var(--danger);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-message p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.error-retry-btn {
    padding: 0.75rem 2rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-retry-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.movie-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid var(--border);
    position: relative;
}

.movie-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
    border-color: var(--accent);
}

.movie-card:hover::before {
    opacity: 0.1;
}

.movie-image {
    width: 100%;
    height: 400px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.movie-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.movie-image::after {
    content: '🎬';
    animation: float 3s ease-in-out infinite;
}

.movie-image:has(img)::after {
    display: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.movie-info {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.movie-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.movie-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.movie-year {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.movie-rating {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.movie-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.movie-actions {
    display: flex;
    gap: 0.5rem;
}

.btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--accent);
}

.cart-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.6);
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--bg-secondary);
    box-shadow: -5px 0 30px var(--shadow);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.empty-cart {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 1rem;
    align-items: center;
}

.cart-item-image {
    width: 80px;
    height: 100px;
    background: var(--gradient);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--accent);
    font-weight: 600;
}

.cart-item-remove {
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    background: #cc0000;
    transform: scale(1.05);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.cart-total {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--accent);
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-tertiary);
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-poster-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    margin: 0 auto;
}

.modal-movie-image {
    width: 100%;
    height: 400px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
}

.modal-movie-image:has(img) {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 400px;
    background: transparent;
}

.modal-movie-image:has(img)::after {
    display: none;
}

.modal-movie-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.modal-movie-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.modal-movie-description {
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.modal-movie-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.modal-actions .btn {
    flex: 1;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 102;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    align-items: flex-end;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}


.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 20px var(--shadow);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.mobile-menu-content {
    padding: 1rem 0;
}

.mobile-menu-section {
    margin-bottom: 1rem;
}

.mobile-menu-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

.mobile-menu-link:hover {
    background: var(--bg-tertiary);
}

.mobile-menu-categories {
    padding: 0.5rem 0;
}

.mobile-menu-categories a {
    display: block;
    padding: 0.75rem 2.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-menu-categories a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-left-color: var(--accent);
    padding-left: 3rem;
}

.mobile-menu-categories a.active {
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
}

.mobile-menu-cart-section {
    border-bottom: 2px solid var(--border);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.mobile-menu-cart-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-cart-count {
    background: var(--accent);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

.mobile-menu-settings-section {
    border-top: 2px solid var(--border);
    margin-top: 1rem;
    padding-top: 1rem;
}

.mobile-menu-settings-link {
    cursor: default;
}

.mobile-menu-settings-link:hover {
    background: transparent;
}

.mobile-menu-theme-section {
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
}

.mobile-menu-theme-toggle {
    width: 100%;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background 0.3s ease;
    border-radius: 0;
}

.mobile-menu-theme-toggle:hover {
    background: var(--bg-tertiary);
}

.mobile-menu-theme-icon {
    font-size: 1.3rem;
}

.mobile-menu-theme-text {
    font-weight: 500;
}


/* Responsive Design */
@media (max-width: 768px) {
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide desktop navigation */
    .header-nav {
        display: none;
    }

    /* Adjust header layout */
    .header-content {
        padding-right: 3.5rem;
    }

    .logo-image {
        height: 60px;
    }

    .theme-toggle-switch {
        display: none;
    }

    .cart-link {
        display: none;
    }

    .search-bar {
        width: 150px;
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .modal-content {
        width: 95%;
    }

    nav {
        gap: 1rem;
    }

    header h1 {
        font-size: 1.3rem;
    }

    .header-right {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
    }

    .search-bar {
        width: 120px;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .logo-image {
        height: 50px;
    }

    .header-content {
        padding-right: 3rem;
    }

    .theme-toggle-switch {
        display: none;
    }

    .movies-grid {
        grid-template-columns: 1fr;
    }

    .movie-image {
        height: 300px;
    }

    .modal-movie-image {
        height: 250px;
        font-size: 6rem;
    }

    .header-right {
        width: 100%;
        order: 2;
    }

    header h1 {
        order: 1;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    color: var(--accent);
    background: var(--bg-primary);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Footer responsive */
@media (max-width: 768px) {
    footer {
        padding: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Page-specific styles for checkout.html */

.checkout-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.checkout-header {
    text-align: center;
    margin-bottom: 2rem;
}

.checkout-header h1 {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: var(--bg-primary);
    border-color: var(--accent);
    transform: translateX(-5px);
}

.checkout-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    align-items: center;
    border: 1px solid var(--border);
    position: relative;
}

.checkout-item-image {
    width: 100px;
    height: 120px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
    overflow: hidden;
}

.checkout-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.checkout-item-image:has(img) {
    background: transparent;
    padding: 0;
}

.checkout-item-image:has(img)::before {
    content: "";
    display: none;
}

.checkout-item-info {
    flex: 1;
}

.checkout-item-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.checkout-item-details {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-controls label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.quantity-input {
    width: 60px;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    text-align: center;
    font-size: 1rem;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--accent);
}

.checkout-item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.remove-item-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.remove-item-btn:hover {
    background: #cc0000;
    transform: rotate(90deg) scale(1.1);
}

.checkout-summary {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border);
    margin-top: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.summary-row:last-child {
    border-bottom: none;
    margin-top: 1rem;
    padding-top: 1.5rem;
}

.summary-label {
    color: var(--text-secondary);
}

.summary-value {
    font-weight: 600;
}

.total-row {
    font-size: 1.5rem;
}

.total-value {
    color: var(--accent);
    font-size: 2rem;
}

.continue-shopping-btn {
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.continue-shopping-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.02);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.4);
}

.continue-shopping-btn-empty {
    width: auto;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.continue-shopping-btn-empty:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.02);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.4);
}

.complete-purchase-btn {
    width: 100%;
    padding: 1.5rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.complete-purchase-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.4);
}

.complete-purchase-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Confirmation Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.confirm-modal-body {
    text-align: center;
}

.confirm-modal-body h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.confirm-modal-body p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirm-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-btn-yes {
    background: var(--danger);
    color: white;
}

.confirm-btn-yes:hover {
    background: #cc0000;
    transform: scale(1.05);
}

.confirm-btn-no {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.confirm-btn-no:hover {
    background: var(--bg-primary);
    border-color: var(--accent);
}

.empty-checkout {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-checkout h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.empty-checkout p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .checkout-container {
        padding: 1rem;
    }

    .checkout-item {
        flex-direction: column;
        text-align: center;
    }

    .checkout-item-info {
        width: 100%;
    }
}

