﻿:root {
    --bg: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --line: #e2e8f0;
    --card: #ffffff;
    --soft: #f8fafc;
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    text-decoration: none;
    color: #6b7280;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    text-transform: lowercase;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--primary);
}

.hamburger-menu {
    display: none;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.hamburger-menu .bar {
    display: block;
    width: 26px;
    height: 3px;
    margin: 4px 0;
    border-radius: 3px;
    background: var(--text);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

.hero-order {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 28px;
}

.hero-image-wrap,
.order-form,
.page-content {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.hero-image-wrap {
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    min-height: 420px;
    max-height: 460px;
}

.order-form {
    padding: 18px;
}

.order-form h1 {
    margin: 0 0 14px;
    font-size: 28px;
}

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

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group textarea,
.form-group input[type="file"],
#mk-query {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: var(--text);
    background: #fff;
}

.form-group textarea {
    resize: vertical;
}

.form-group input[type="radio"] {
    margin-right: 6px;
}

.small-text-label {
    font-size: 0.9rem;
    color: var(--muted);
}

#mk-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#mk-query {
    flex: 1 1 230px;
}

#mk-search button,
button[type="submit"] {
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}

#mk-search button {
    padding: 10px 14px;
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    font-size: 1rem;
}

#mk-search button:hover,
button[type="submit"]:hover {
    background: var(--primary-hover);
}

#mk-result {
    width: 100%;
    margin: 0;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: var(--soft);
    padding: 10px;
    white-space: pre-wrap;
}

.payment-info,
.pickup-now-message {
    background: var(--soft);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.payment-info {
    margin-top: 10px;
}

.pickup-now-message {
    margin-top: 12px;
}

.form-status {
    margin-top: 0;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 8px;
    background: var(--soft);
    border: 1px solid #cbd5e1;
}

.page-content {
    padding: 20px;
}

.page-content h2,
.page-content h3 {
    margin-top: 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.gallery-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item p {
    margin: 0;
    padding: 10px;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 24px 20px;
    text-align: center;
    background: #fff;
}

.logo-container {
    margin-bottom: 8px;
}

.logo-container img {
    height: 40px;
    margin: 0 10px;
}

@media (max-width: 960px) {
    .hero-order {
        grid-template-columns: 1fr;
    }

    .hero-image {
        min-height: 240px;
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .topbar {
        flex-wrap: wrap;
    }

    .hamburger-menu {
        display: block;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding-top: 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .brand {
        font-size: 26px;
    }

    main {
        padding: 16px 12px 30px;
    }
}




.brands-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.brand-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.brand-card-logo {
    width: 100%;
    height: 72px;
    object-fit: contain;
    display: block;
    margin-bottom: 10px;
}

.brand-card h3 {
    margin: 0 0 8px;
}

.brand-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

@media (max-width: 960px) {
    .brands-info {
        grid-template-columns: 1fr;
    }
}

.product-grid {
    margin-top: 18px;
}

.product-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    display: block;
    margin-bottom: 10px;
}

.price-tag {
    margin: 0;
    display: inline-block;
    padding: 8px 14px;
    background: #dc2626;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
}

@media (max-width: 960px) {
    .product-image {
        height: 160px;
    }
}

.portfolio-status {
    margin: 0 0 12px;
    color: var(--muted);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.portfolio-thumb {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.portfolio-lightbox[aria-hidden="false"] {
    display: flex;
}

.lightbox-image {
    max-width: 88vw;
    max-height: 88vh;
    object-fit: contain;
}

.lightbox-nav,
.lightbox-close {
    position: absolute;
    border: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    border-radius: 8px;
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 32px;
    line-height: 1;
    width: 44px;
    height: 44px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    font-size: 34px;
    width: 50px;
    height: 64px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.no-scroll {
    overflow: hidden;
}

@media (max-width: 1100px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Global center alignment for page content */
main,
.page-content,
.order-form,
.brands-info,
.brand-card,
.product-card,
.gallery-item {
    text-align: center;
}

main ul,
main ol {
    list-style-position: inside;
    padding-left: 0;
}
