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

body {
    font-family: system-ui, sans-serif;
    background: #f5f5f0;
    color: #2c2c2c;
    line-height: 1.6;
}

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

/* Navigation */
nav {
    background: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 28px;
    font-weight: 600;
    color: #8b7355;
}

nav a {
    color: #2c2c2c;
    text-decoration: none;
    margin: 0 15px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 500;
}

nav a:hover {
    color: #8b7355;
}

/* Hero */
.hero {
    padding: 120px 20px;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    position: relative;
    color: white;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?w=1200&h=600&fit=crop') center/cover;
    opacity: 0.3;
}

.hero>* {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 56px;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.8;
    opacity: 0.95;
}

/* Button */
.btn {
    background: #8b7355;
    color: white;
    padding: 14px 32px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 1px;
}

.btn:hover {
    background: #6d5844;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

/* Sections */
section {
    padding: 80px 20px;
}

.gallery-section {
    background: linear-gradient(180deg, #ffffff 0%, #f9f7f3 100%);
    border-top: 3px solid #8b7355;
}

.menu-section {
    background: white;
}

.team {
    background: linear-gradient(180deg, #f5f5f0 0%, #ffffff 100%);
}

.events {
    background: #2c2c2c;
    color: white;
}

h2 {
    font-size: 42px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    width: 100%;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #8b7355;
    margin: 15px auto 0;
}

/* Grid Layouts */
.galerii {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.gallery-item {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: block;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item-title {
    padding: 12px;
    text-align: center;
    background-color: white;
    font-weight: 600;
    color: #2c2c2c;
    font-size: 15px;
    border-radius: 0 0 12px 12px;
}

.hidden-item {
    opacity: 0.5;
    border: 2px solid red;
}

.detail-container {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-left: 4px solid #8b7355;
}

.detail-content {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.detail-image {
    flex: 0 0 45%;
}

.detail-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.detail-info {
    flex: 1;
}

.detail-info h2 {
    margin-top: 0;
    text-align: left;
}

.detail-info h2::after {
    display: none;
}

.detail-info p {
    margin: 15px 0;
    font-size: 1em;
    line-height: 1.8;
}

.detail-info strong {
    color: #8b7355;
    font-weight: 600;
}

.detail-comments {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e0e0e0;
}

.detail-comments strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #2c2c2c;
}

.comments-box {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #8b7355;
    word-wrap: break-word;
    line-height: 1.6;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.95em;
}

.detail-comment-form {
    margin-top: 20px;
}

.detail-comment-form form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-comment-form input[type="text"] {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    width: 100%;
}

.detail-comment-form input[type="text"]:focus {
    outline: none;
    border-color: #8b7355;
}

.detail-comment-form input[type="submit"] {
    padding: 12px 24px;
    background: #8b7355;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 500;
    width: auto;
    align-self: flex-start;
}

.detail-comment-form input[type="submit"]:hover {
    background: #6d5844;
    transform: translateY(-2px);
}

.pilt img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.pilt p {
    padding: 20px;
    color: #2c2c2c;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

/* Products */
.product-card {
    text-align: center;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 3px solid transparent;
}

.product-card:hover {
    border-top-color: #8b7355;
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 160px;
    height: 160px;
    background: #f0f0f0;
    border-radius: 12px;
    margin: 0 auto 20px;
    overflow: hidden;
}

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

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 15px 0 10px;
    color: #2c2c2c;
}

.product-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.price {
    font-weight: 700;
    color: #8b7355;
    font-size: 20px;
}

/* Team */
.team-member {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    max-width: 400px;
    margin: 0 auto;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.team-member h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 15px 0;
    color: #2c2c2c;
}

.team-member p {
    font-size: 16px;
    color: #8b7355;
    font-weight: 500;
}

/* Services */
.services-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    text-align: center;
    padding: 25px;
    background: white;
    border-radius: 12px;
    border: 2px solid #8b7355;
    min-width: 180px;
    cursor: pointer;
}

.service-item:hover {
    background: #8b7355;
    color: white;
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.3);
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-desc {
    font-size: 14px;
    opacity: 0.9;
}

/* Categories */
.menu-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.menu-category {
    padding: 8px 0;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 500;
}

.menu-category.active,
.menu-category:hover {
    border-bottom-color: #8b7355;
    color: #8b7355;
}

/* Admin */
.admin-section {
    background-color: white;
    padding: 20px;
    margin: 20px auto;
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-form {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    max-width: 500px;
}

.admin-form div {
    margin: 10px 0;
}

.admin-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.admin-form input[type="text"],
.admin-form input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.admin-form-full {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    max-width: 600px;
    margin-top: 30px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}

.admin-table tr:hover {
    background-color: #f9f9f9;
}

.admin-table .hidden-row {
    background-color: #ffcccc !important;
}

.admin-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.btn-small {
    display: inline-block;
    padding: 6px 12px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85em;
    margin-right: 5px;
}

.btn-small:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.btn-small.btn-danger {
    background-color: #ff6b6b;
}

.btn-small.btn-danger:hover {
    background-color: #ff5252;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
}

.hidden-row .status-badge {
    background-color: #ffcccc;
    color: #cc0000;
}

.status-badge:not(.hidden-row .status-badge) {
    background-color: #ccffcc;
    color: #00cc00;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

input[type="submit"] {
    background: #8b7355;
    color: white;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 500;
}

input[type="submit"]:hover {
    background: #6d5844;
}

/* Footer */
footer {
    background: #2c2c2c;
    color: white;
    text-align: center;
    padding: 30px 20px;
    font-size: 14px;
    border-top: 3px solid #8b7355;
}

.table-img {
    width: 100px;
    border-radius: 10px;
}

.btn-delete {
    background: #f44336;
}

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

.logout-link {
    text-align: center;
}

.page-header {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 10px;
}

.login-form {
    max-width: 400px;
    margin: 20px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin: 15px 0;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
}

.form-input:focus {
    outline: none;
    border-color: #8b7355;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.image-gallery .gallery-item {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

.image-gallery .gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 15px;
    }

    .hero {
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    h2 {
        font-size: 32px;
    }

    section {
        padding: 50px 20px;
    }

    .image-gallery,
    .products,
    .galerii {
        grid-template-columns: 1fr;
    }

    .services-list {
        flex-direction: column;
    }

    .detail-content {
        flex-direction: column;
        gap: 20px;
    }

    .detail-image {
        flex: 0 0 100%;
    }

    .detail-comment-form form {
        flex-direction: column;
    }
}