body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a;
    color: #e5e5e5;
}

h1, h2, h3, .serif {
    font-family: 'Playfair Display', serif;
}

.header-bg, .sidebar-bg {
    background-color: #0a0a0a;
}

.grid-bg {
    background-image: radial-gradient(#333 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Custom Scrollbar for a luxury feel */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* T-Shirt Base Image Styles */
.tshirt-base {
    transition: opacity 0.3s ease;
    transform: scale(1.15);
    transform-origin: center center;
    object-fit: contain;
}

/* Drag & Resize Interactions */
.design-container {
    cursor: grab;
    touch-action: none;
    will-change: transform;
}
.design-container:active {
    cursor: grabbing;
}
.resize-handle {
    width: 14px;
    height: 14px;
    background: #d4af37;
    border: 2px solid #000;
    position: absolute;
    bottom: -7px;
    right: -7px;
    cursor: nwse-resize;
    display: none;
    z-index: 50;
    border-radius: 50%;
}
.design-container:hover .resize-handle,
.design-container.active .resize-handle {
    display: block;
}

/* Loading Animation */
.loader {
    border: 2px solid rgba(0,0,0,0.1);
    border-top: 2px solid #000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Design Archives Text Button */
.archives-btn {
    background: transparent;
    border: none;
    position: relative;
    overflow: hidden;
    padding: 8px 0;
    cursor: pointer;
}

.archives-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.archives-btn:hover {
    background: rgba(212, 175, 55, 0.05);
}

.archives-btn:hover::after {
    width: 80%;
}

.archives-btn:hover span {
    color: #d4af37;
}

.archives-btn span {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

/* Archives Modal Styles */
#archives-modal, #orders-modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#archives-modal:not(.hidden), #orders-modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

/* Grid inside Modal */
#archives-grid, #orders-list {
    scrollbar-width: thin;
    scrollbar-color: #333 #1a1a1a;
}

#archives-grid img {
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

#archives-grid img:hover {
    transform: scale(1.05);
    border-color: #d4af37;
}
