:root {
    --bg-color: #0D0D0D;
    --text-primary: #FFFFFF;
    --accent-color: #FC7A1E;
    --accent-glow: rgba(252, 122, 30, 0.3);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --card-bg: #1F1F1F;
    --font-inter: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-inter);
    text-transform: uppercase;
    overflow-x: hidden;
    line-height: 1.5;
}

html {
    scroll-behavior: smooth;
}

/* Base resets */
a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
}

ul {
    list-style: none;
}

/* Header */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--accent-glow);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo img {
    height: 40px;
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    font-size: 10px;
    font-weight: 900;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-badge.hidden {
    display: none;
}

/* Filters */
.filters-container {
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 24px;
    border-radius: 50px;
    background-color: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--accent-color);
}

.filter-btn.active {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

/* Photo Grid */
.photo-grid {
    padding: 0 2rem 4rem 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
}

.photo-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-card:hover {
    transform: scale(1.03);
}

.photo-image {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    margin-bottom: 8px;
}

.photo-info {
    padding: 4px 0;
}

.photo-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.photo-price {
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 400;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 13, 13, 0.95);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    width: 100%;
    height: 100%;
    display: flex;
}

.modal-left {
    flex: 0 0 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-left img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-right {
    flex: 0 0 40%;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--accent-color);
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
}

.modal-description {
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.8;
    margin-bottom: 1rem;
    text-transform: none; /* Descriptions might be better in mixed case, but requirement says ALL uppercase */
}

.modal-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 2rem;
    width: fit-content;
}

.modal-divider {
    height: 1px;
    background-color: var(--border-subtle);
    margin-bottom: 2rem;
}

.resolution-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 2rem;
}

.res-option {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.res-option.selected {
    border-color: var(--accent-color);
    background-color: rgba(252, 122, 30, 0.05);
}

.res-info {
    display: flex;
    flex-direction: column;
}

.res-name {
    font-weight: 700;
    font-size: 1rem;
}

.res-desc {
    font-size: 0.7rem;
    opacity: 0.6;
    text-transform: none;
}

.res-price {
    color: var(--accent-color);
    font-weight: 700;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-add-cart {
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.btn-buy-now {
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-buy-now:hover {
    background-color: #e66a1a;
}

/* Cart Panel */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2500;
    display: none;
}

.cart-overlay.active {
    display: block;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -380px;
    width: 380px;
    height: 100%;
    background-color: #111111;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.cart-panel.active {
    right: 0;
}

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

.cart-title {
    font-size: 1.5rem;
    font-weight: 900;
}

.cart-close {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-empty-msg {
    text-align: center;
    color: var(--text-primary);
    opacity: 0.5;
    margin-top: 4rem;
}

.cart-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.cart-item-thumb {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.cart-item-res {
    font-size: 0.6rem;
    opacity: 0.6;
}

.cart-item-price {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 700;
}

.cart-item-remove {
    color: var(--accent-color);
    font-size: 0.6rem;
    font-weight: 700;
    margin-top: 4px;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cart-total-label {
    font-size: 0.8rem;
    opacity: 0.6;
}

.cart-total-price {
    font-size: 1.5rem;
    font-weight: 900;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    font-weight: 700;
}

/* Footer */
footer {
    padding: 4rem 2rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    font-size: 0.7rem;
    font-weight: 300;
    opacity: 0.6;
}

.footer-center a {
    font-size: 0.7rem;
    opacity: 0.8;
}

.footer-right a {
    font-size: 0.7rem;
    color: var(--accent-color);
    font-weight: 700;
}

@media (max-width: 768px) {
    footer {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-container {
        flex-direction: column;
    }
    
    .modal-left {
        flex: 0 0 40%;
    }
    
    .modal-right {
        flex: 1;
        padding: 2rem;
    }
    
    .cart-panel {
        width: 100%;
        right: -100%;
    }
}
