/* public/css/style.css?v=1.0.1_fixed */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --bg-color: #0d0d0d;
    --text-color: #f0f0f0;
    --accent-color: #c9a55c;
    /* Gold/Bronze */
    --surface-color: #1a1a1a;
    --border-color: #333;
}

body {
    background: url('/assets/img/admin-bg.jpg') no-repeat center center/cover fixed;
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1,
h2,
h3,
.serif {
    font-family: 'Playfair Display', serif;
}

/* Utilities */
.text-accent {
    color: var(--accent-color);
}

.bg-surface {
    background-color: var(--surface-color);
}

.cursor-pointer {
    cursor: pointer;
}

.object-cover {
    object-fit: cover;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Login Page */
/* Login Page */
#login-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Background is now on body to support transparent header consistency */
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.login-box {
    position: relative;
    z-index: 10;
    background: rgba(20, 20, 20, 0.85);
    padding: 3rem;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #555;
    color: #fff;
    width: 100%;
    padding: 10px 0;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.login-input:focus {
    border-color: var(--accent-color);
}

.btn-primary {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Dashboard */
.app-header {
    padding: 20px 40px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 13, 13, 0.8);
    /* Transparent Header */
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-link {
    color: #aaa;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #fff;
}

.page-container {
    padding: 40px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Catalog Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.catalog-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 20px;
    transition: transform 0.3s;
}

.catalog-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

/* Product Grid (Masonry-ish) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    position: relative;
    /* transition: transform 0.3s; */
}

.product-img-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #222;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    margin-top: 15px;
}

.product-code {
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 1px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 5px 0;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-color);
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    display: flex;
    overflow: hidden;
    border: 1px solid #333;
}

.modal-img {
    width: 50%;
    height: 100%;
    object-fit: contain;
}

.modal-details {
    width: 50%;
    padding: 40px;
    overflow-y: auto;
}

/* Size Selector */
.size-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.size-input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #444;
    padding: 10px;
}

.size-label {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 5px;
}

.qty-input {
    width: 100%;
    background: transparent;
    border: 1px solid #555;
    color: #fff;
    text-align: center;
    padding: 5px;
}

/* Toast */
#toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 15px 25px;
    border-left: 4px solid var(--accent-color);
    transform: translateY(100px);
    transition: transform 0.3s;
}

#toast.active {
    transform: translateY(0);
}