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

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background-color: #f8fafc;
    color: #1a1a1a;
}

/* ============================
   HEADER
============================ */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-top {
    background: #1f2937;
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.header-main {
    padding: 1rem 0;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: #0b6822;
}

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

.nav-menu a {
    color: #374151;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: 0.2s;
    text-decoration: none;
}

.nav-menu a:hover {
    background: #f3f4f6;
    color: #0b6822;
}

/* SEARCH BAR */
.search-bar {
    max-width: 400px;
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
}

.search-input:focus {
    border-color: #0b6822;
    outline: none;
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: #0b6822;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
}

/* ============================
   HERO SECTION
============================ */
.hero-section {
    background: linear-gradient(135deg, #0b6822 0%, #000000 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
}

.hero-subtitle {
    margin-top: 0.5rem;
    font-size: 1.25rem;
    opacity: 0.9;
}

/* ============================
   CATEGORY CARDS
============================ */
.category-section {
    padding: 60px 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: 0.2s;
}

.category-card:hover {
    border-color: #0b6822;
    transform: translateY(-3px);
}

.category-name {
    font-size: 18px;
    font-weight: 600;
}

/* ============================
   PRODUCT GRID
============================ */
.products-section {
    padding: 50px 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.25s;
}

.product-card:hover {
    border-color: #0b6822;
    transform: translateY(-5px);
}

.product-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-info {
    padding: 16px;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
}

/* ============================
   MODAL (ÜRÜN DETAY)
============================ */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.65);
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

/* SLIDER */
.modal-image-slider {
    position: relative;
    overflow: hidden;
}

.modal-images-track {
    display: flex;
    transition: 0.3s;
}

.gallery-image-wrapper {
    min-width: 100%;
    height: 400px;
}

.gallery-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* SLIDER BUTTONS */
.modal-image-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    opacity: 0;
    transition: 0.3s;
}

.modal-image-slider:hover .modal-image-nav-btn {
    opacity: 1;
}

.modal-image-nav-btn:hover {
    background: rgba(0,0,0,0.8);
}

.modal-image-nav-btn.prev { left: 15px; }
.modal-image-nav-btn.next { right: 15px; }

/* INDICATORS */
.modal-image-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.modal-image-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid white;
    cursor: pointer;
}

.modal-image-indicator.active {
    background: white;
}

/* COUNTER */
.modal-image-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
}

/* ============================
   FOOTER
============================ */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 1rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: auto;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
}

.footer-section h3 {
    color: #0b6822;
    margin-bottom: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    text-align: center;
    padding-top: 1rem;
    color: #9ca3af;
}

/* ============================
   BUTTONS
============================ */
.btn-primary {
    background: #0b6822;
    color: white;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: none;
    transition: 0.2s;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: #000000;
}

.btn-secondary {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: 0.2s;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    border-color: #0b6822;
    color: #0b6822;
}

.btn-danger {
    background: #dc2626;
    color: white;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* ============================
   ADMIN PANEL
============================ */
.admin-container {
    min-height: 100vh;
    background: #f8fafc;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    color: white;
    position: fixed;
    height: 100%;
    padding: 2rem 1.5rem;
}

.nav-item {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.nav-item:hover {
    background: rgba(255,255,255,0.15);
}

.nav-item.active {
    background: rgba(255,255,255,0.25);
}

.main-content {
    margin-left: 280px;
    padding: 2rem;
}

/* DASHBOARD */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #0b6822;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* FORMS */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
}

.form-input:focus {
    border-color: #0b6822;
    outline: none;
}

/* LOGIN */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0b6822, #000000);
}

/* BACK TO STORE BUTTON */
.back-to-store {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 50;
    background: #0b6822;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

/* TABLE ROW HOVER */
#products-table-body > div:hover {
    background: #f9fafb;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
    }
    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}
