/* PrintByMyself - Gold & White Designer Theme */
:root {
    --gold: #D4AF37;
    --gold-light: #F4E4BC;
    --gold-dark: #B8860B;
    --white: #FFFFFF;
    --cream: #FEFDF8;
    --gray-light: #F8F8F8;
    --gray-medium: #666666;
    --gray-dark: #333333;
    --shadow: rgba(212, 175, 55, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--cream);
    color: var(--gray-dark);
    line-height: 1.6;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 100%);
    box-shadow: 0 2px 20px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--gold-dark);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--gold-dark);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gold-dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--cream) 0%, var(--gold-light) 100%);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/uploads/hero-bg.jpg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--gold-dark);
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: -2px;
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--gray-medium);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray-dark);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px var(--shadow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--gold-dark);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white);
    color: var(--gray-dark);
    border: 2px solid var(--gold-light);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

/* Product Table */
.product-table {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-dark);
    margin: 2rem 0;
}

.product-table table {
    width: 100%;
    border-collapse: collapse;
}

.product-table th,
.product-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gold-light);
}

.product-table th {
    background: var(--gold-light);
    color: var(--gold-dark);
    font-weight: 600;
}

.product-table tr:hover {
    background: var(--gray-light);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--gray-light);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gray-light);
}

.product-card-image-placeholder {
    width: 100%;
    height: 200px;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.product-card-content {
    padding: 1.5rem;
}

.product-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.product-card-description {
    color: var(--gray-medium);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-card-category {
    display: inline-block;
    background: var(--gold-light);
    color: var(--gold-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.product-card-prices {
    border-top: 1px solid var(--gray-light);
    padding-top: 1rem;
}

.product-card-prices h4 {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.product-price-item:last-child {
    border-bottom: none;
}

.product-price-text {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.product-price-value {
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 1rem;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--gray-light);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.3rem;
    color: var(--gold-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-description {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* Price Table */
.price-table {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow-dark);
    margin: 2rem 0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gold-light);
}

.price-item:last-child {
    border-bottom: none;
}

.price-name {
    font-weight: 600;
    color: var(--gray-dark);
}

.price-value {
    font-weight: bold;
    color: var(--gold-dark);
    font-size: 1.1rem;
}

.price-description {
    font-size: 0.9rem;
    color: var(--gray-medium);
    margin-top: 0.25rem;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-dark);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gold-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

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

.submit-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px var(--shadow);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--gray-dark) 0%, var(--gold-dark) 100%);
    color: var(--white);
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Admin Styles */
.admin-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 20px;
}

.admin-header {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-dark);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-title {
    color: var(--gold-dark);
    font-size: 2rem;
    font-weight: 300;
}

.logout-btn {
    background: var(--gray-medium);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
}

.logout-btn:hover {
    background: var(--gray-dark);
}

.admin-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-dark);
    margin-bottom: 2rem;
}

.admin-section h3 {
    color: var(--gold-dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.admin-form {
    display: grid;
    gap: 1rem;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    padding: 12px 15px;
    border: 2px solid var(--gold-light);
    border-radius: 8px;
    font-size: 1rem;
}

.admin-form button {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px var(--shadow);
}

.item-list {
    margin-top: 2rem;
}

.item {
    background: var(--gray-light);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.delete-btn:hover {
    background: #c82333;
}

/* Login Form */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cream) 0%, var(--gold-light) 100%);
}

.login-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 15px 40px var(--shadow-dark);
    width: 100%;
    max-width: 400px;
}

.login-title {
    text-align: center;
    color: var(--gold-dark);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 20px var(--shadow-dark);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }

    .category-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .product-table {
        overflow-x: auto;
    }

    .product-table table {
        min-width: 600px;
    }
    
    .price-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container,
    .nav-container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 15px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .admin-container {
        padding: 0 15px;
    }
    
    .login-form {
        margin: 1rem;
        padding: 2rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.hidden {
    display: none;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}
