:root {
    --black: #111111;
    --white: #ffffff;
    --gray: #f5f5f5;
    --text-muted: #6b6b6b;
    --border: #dddddd;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--black);
    background: var(--white);
}

main {
    flex: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.navbar {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
}

.nav-links a:hover {
    text-decoration: underline;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--white);
    width: 42px;
    height: 42px;
    font-size: 22px;
}

.hero {
    min-height: 520px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(17,17,17,0.88), rgba(17,17,17,0.34)),
        url("../images/hero.jpg");
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 56px 20px;
    color: var(--white);
}

.hero-content span {
    display: block;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 700;
}

.hero h1 {
    max-width: 650px;
    margin: 0 0 18px;
    font-size: 52px;
    line-height: 1.08;
    letter-spacing: 0;
}

.hero p {
    max-width: 520px;
    margin: 0 0 28px;
    color: #eeeeee;
    font-size: 18px;
}

.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 20px;
}

.section-title,
.page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.page-heading {
    display: block;
}

.section-title h2,
.page-heading h1 {
    margin: 0;
    font-size: 32px;
}

.page-heading p {
    color: var(--text-muted);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-card {
    padding: 28px;
    background: var(--gray);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 700;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
}

.product-image {
    aspect-ratio: 4 / 5;
    background: var(--gray);
    object-fit: cover;
    width: 100%;
}

.product-info {
    padding: 16px;
}

.product-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.price {
    font-weight: 800;
    margin: 8px 0 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--black);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    background: var(--white);
}

.btn-dark {
    background: var(--black);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--black);
}

.filters {
    display: grid;
    grid-template-columns: 1fr 220px 220px;
    gap: 14px;
    margin-bottom: 24px;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font: inherit;
}

textarea {
    min-height: 120px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}

.detail-layout img {
    width: 100%;
    border-radius: 8px;
    background: var(--gray);
}

.product-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 18px 0;
    padding: 16px;
    background: var(--gray);
    border-radius: 8px;
}

.product-specs p {
    margin: 0;
}

.size-select,
.checkout-form {
    display: grid;
    gap: 8px;
    margin: 16px 0;
    font-weight: 700;
}

.checkout-form {
    gap: 14px;
    max-width: 680px;
}

.cart-list,
.orders-list {
    display: grid;
    gap: 14px;
}

.cart-item,
.order-item,
.profile-card,
.order-box,
.admin-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
    background: var(--white);
}

.cart-item {
    display: grid;
    grid-template-columns: 90px 1fr 110px 100px;
    gap: 16px;
    align-items: center;
}

.cart-item img {
    width: 90px;
    height: 110px;
    object-fit: cover;
    background: var(--gray);
}

.cart-summary {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--gray);
}

.auth-card {
    width: min(100%, 430px);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
    display: grid;
    gap: 14px;
}

.auth-card h1 {
    margin: 10px 0 0;
}

.auth-card label,
.admin-form label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.footer {
    margin-top: auto;
    padding: 42px 20px 24px;
    background: var(--black);
    color: var(--white);
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr;
    gap: 34px;
    align-items: flex-start;
}

.footer h3,
.footer h4 {
    margin: 0 0 12px;
}

.footer p {
    margin: 0 0 8px;
    color: #d7d7d7;
    line-height: 1.6;
}

.footer-brand p {
    max-width: 460px;
}

.footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 16px;
    margin-top: 4px;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #bdbdbd;
}

.admin-layout {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 20px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.admin-table th,
.admin-table td {
    border: 1px solid var(--border);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    background: var(--gray);
}

.admin-form {
    display: grid;
    gap: 14px;
    max-width: 720px;
}

.admin-preview {
    width: 140px;
    height: 170px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--gray);
}

/* Marka yorumlari */
.brand-comments-section {
    padding-top: 70px;
    padding-bottom: 80px;
}

.comments-title {
    margin-bottom: 28px;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.comments-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 38px;
    padding: 6px 0 18px;
}

.comments-slider::before,
.comments-slider::after {
    content: "";
    position: absolute;
    top: 0;
    z-index: 2;
    width: 90px;
    height: 100%;
    pointer-events: none;
}

.comments-slider::before {
    left: 0;
    background: linear-gradient(90deg, var(--white), rgba(255,255,255,0));
}

.comments-slider::after {
    right: 0;
    background: linear-gradient(270deg, var(--white), rgba(255,255,255,0));
}

.comment-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: commentSlide 28s linear infinite;
}

.comment-track:hover {
    animation-play-state: paused;
}

.comment-track.is-empty,
.comment-track.is-static {
    width: 100%;
    animation: none;
    justify-content: center;
    flex-wrap: wrap;
}

.brand-comment-card {
    width: 330px;
    min-height: 185px;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    background: var(--white);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.07);
}

.quote-icon {
    display: block;
    height: 30px;
    font-size: 46px;
    line-height: 1;
    color: var(--black);
}

.brand-comment-card p {
    min-height: 76px;
    margin: 8px 0 18px;
    line-height: 1.65;
    color: #292929;
}

.comment-author {
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.comment-author strong {
    display: block;
    margin-bottom: 5px;
}

.comment-author span {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
}

.no-comment {
    width: 100%;
    border: 1px dashed var(--border);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    color: var(--text-muted);
    background: var(--gray);
}

.comment-form {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    background: var(--white);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.comment-form h3 {
    margin: 0;
    font-size: 24px;
}

.comment-form-info {
    margin: -8px 0 4px;
    color: var(--text-muted);
    line-height: 1.6;
}

.comment-form label {
    display: grid;
    gap: 9px;
    font-weight: 700;
}

.comment-form input,
.comment-form textarea {
    min-height: 48px;
    border-radius: 10px;
}

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

.comment-form .btn {
    width: max-content;
    padding-left: 24px;
    padding-right: 24px;
}

.form-message {
    margin: 0;
    color: var(--text-muted);
}

@keyframes commentSlide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

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

.message {
    padding: 12px;
    background: var(--gray);
    border-radius: 6px;
}

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-block;
    }

    .nav-links {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 72px;
        padding: 18px 20px;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
    }

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

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

    .category-grid,
    .product-grid,
    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-layout,
    .checkout-layout,
    .filters {
        grid-template-columns: 1fr;
    }

    .brand-comments-section {
        padding-top: 45px;
        padding-bottom: 55px;
    }

    .comments-slider::before,
    .comments-slider::after {
        width: 38px;
    }

    .brand-comment-card {
        width: 285px;
    }

    .comment-form {
        padding: 24px;
    }

    .product-specs {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 78px 1fr;
    }

    .cart-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

@media (max-width: 520px) {
    .category-grid,
    .product-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 34px 16px;
    }
}


.admin-note {
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 16px 0;
}

.form-message.error,
#commentMessage.error {
    color: #b00020;
}

/* Admin kullanıcı yönetimi */
.user-editor-card {
    margin: 18px 0 28px;
}

.user-editor-card h2 {
    margin-top: 0;
}

.admin-notice {
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: 6px;
    font-weight: 700;
}

.admin-notice.success {
    border: 1px solid #9bd69b;
    background: #eefbee;
}

.admin-notice.error {
    border: 1px solid #e2a2a2;
    background: #fff0f0;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.table-actions form {
    margin: 0;
}

.table-actions .btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
