/* Vitonza – simple modern light theme */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    background-color: #f5f7fb;
    color: #111827;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main_product_card {
  display: inline-block;
    text-align: center;
}

.sidebar_product_card {
  display: block;
    text-align: center;
}

img.main_product_card_img {
  width: 100%;
    max-width: 140px;
  }

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px;
}
img.header_logo {
  width: 100%;
    max-width: 200px;
}

.header {

}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-input {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    min-width: 220px;
}

.search-button {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background-color: #2563eb;
    color: #ffffff;
    font-weight: 500;
    cursor: pointer;
}

.search-button:hover {
    background-color: #1d4ed8;
}

.main {
    flex: 1;
}

.layout {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

.content {
    flex: 0 0 70%;
}

.sidebar {
    flex: 0 0 30%;
}

.card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

h1 {
    font-size: 26px;
    margin: 0 0 8px;
}

h2 {
    font-size: 20px;
    margin-top: 24px;
}

.meta {
    font-size: 16px;
    color: #6b7280;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background-color: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 500;
}

.badge .star {
    color: #f59e0b;
}

.product-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.product-image {
    max-width: 260px;
    border-radius: 8px;
}

.product-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.field-block {
    padding: 10px 12px;
    border-radius: 8px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 16px;
}

.html-block {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.6;
}

.form-link {
    margin-top: 16px;
}

.form-link a {
    display: inline-flex;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid #2563eb;
    color: #2563eb;
    font-weight: 500;
}

.form-link a:hover {
    background-color: #eff6ff;
}

.reviews-summary {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background-color: #fefce8;
    border: 1px solid #ebe3c4;
    font-size: 16px;
}

.reviews-summary-row {
    display: flex;
    justify-content: space-between;
}

.reviews-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-item {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    display: flex;
    gap: 12px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.review-body {
    flex: 1;
}

.review-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.review-meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.review-text {
    font-size: 16px;
    white-space: pre-line;
}

.stars {
    color: #f59e0b;
    font-size: 16px;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  background-color: #2581eb;
  color: #ffffff;
  font-weight: 500;
  cursor: pointer;
}

.button-primary:hover {
    background-color: #1d4ed8;
}

.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #374151;
    font-size: 16px;
    cursor: pointer;
}

.button-secondary:hover {
    background-color: #f9fafb;
}

.related-block {
    margin-top: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.related-item {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    font-size: 16px;
}

.related-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 6px;
}

.sidebar-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 14px 16px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

.sidebar-list li + li {
    margin-top: 4px;
}

.footer {
    background-color: #ffffff;
    padding: 12px 0;
    font-size: 16px;
    margin-top: 40px;
    color: #6b7280;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.form-control,
.form-textarea,
.form-select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 16px;
}

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

.error {
    color: #b91c1c;
    font-size: 13px;
    margin-bottom: 8px;
}

.success {
    color: #166534;
    font-size: 13px;
    margin-bottom: 8px;
}

.admin-nav {
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.table th,
.table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.table th {
    background-color: #f9fafb;
    font-weight: 600;
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .layout {
        flex-direction: column;
    }

    .content,
    .sidebar {
        flex: 1 1 auto;
    }
}
