:root {
    --primary-color: #78350f;
    /* Amber 900 */
    --secondary-color: #92400e;
    /* Amber 800 */
    --accent-color: #d97706;
    /* Amber 600 */
    --bg-color: #fffbeb;
    /* Amber 50 */
    --text-color: #3a3226;
    --text-light: #fef3c7;
    /* Amber 100 */
    --card-bg: #ffffff;
    --font-main: 'Tajawal', sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #dc2626;
    color: white;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 40px;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fde68a;
}

/* Tablet / Intermediate Design */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    .logo span {
        font-size: 1.25rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.product-description {
    color: #4b5563;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.old-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* Badge */
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: bold;
}

/* Dashboard Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-family: inherit;
}

/* Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.data-table th,
.data-table td {
    padding: 0.75rem 1.5rem;
    text-align: right;
    border-bottom: 1px solid #e5e7eb;
}

.data-table th {
    background-color: #f9fafb;
    font-weight: 600;
}

/* 1990-2010 Section Style Overrides */
.retro-era {
    background-color: #2d2a2e;
    /* Dark theme for retro */
    color: #fcd34d;
    /* Amber 300 */
    padding: 4rem 0;
    margin-top: 2rem;
    border-top: 4px solid #d97706;
    border-bottom: 4px solid #d97706;
}

.retro-era h2 {
    font-family: 'Courier New', Courier, monospace;
    /* Monospaced for retro feel */
    text-shadow: 2px 2px #000;
}

.retro-card {
    background-color: #4b5563;
    border: 2px solid #fcd34d;
    color: white;
}

.retro-btn {
    background-color: #fcd34d;
    color: #2d2a2e;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 900;
}

.retro-btn:hover {
    background-color: #fbbf24;
    color: black;
    box-shadow: 0 0 10px #fbbf24;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        /* Adjust based on header height */
        left: 0;
        background: var(--primary-color);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-toggle {
        display: block;
    }
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Vintage / Internal Pages Styles */
.vintage-card {
    background: #fdfbf7;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.vintage-header {
    font-family: 'Tajawal', sans-serif;
    /* Keep consistent font */
    color: var(--primary-color);
}

.timeline-item {
    padding: 1rem;
    border-right: 2px solid var(--accent-color);
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.5);
}