:root {
    --accent: #ff7a1a;
    --text: #222831;
    --muted: #707784;
    --bg: #f2f3f5;
    --card: #ffffff;
    --line: #e3e6ea;
    --shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

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

.container {
    width: min(980px, 92%);
    margin: 0 auto;
}

.topbar {
    position: relative;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 16px;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.top-links {
    display: flex;
    gap: 16px;
}

.top-links a {
    color: var(--muted);
    font-weight: 500;
}

.top-links a:hover {
    color: var(--accent);
}

.hero {
    padding: 36px 0 24px;
    background: transparent;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(1.7rem, 2.8vw, 2.5rem);
}

.hero p {
    margin: 0;
    color: var(--muted);
    max-width: 760px;
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.hero-small {
    padding: 28px 0;
}

.hero-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.price-tag {
    background: var(--accent);
    color: #fff;
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 700;
}

.breadcrumb {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.section {
    padding: 20px 0;
}

.section-alt {
    background: #fff;
}

.section-title {
    margin: 0 0 18px;
    font-size: 1.4rem;
}

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

.brand-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.brand-card.small {
    min-height: 230px;
}

.brand-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

.brand-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.brand-card-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff2e8, #ffd9bf);
    color: #8a3f00;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.brand-card-media {
    width: 100%;
    height: 96px;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.brand-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 0.92rem;
    margin-top: auto;
}

.btn {
    border: 0;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    padding: 11px 16px;
    border-radius: 11px;
    font-weight: 600;
    transition: 0.2s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(0.96);
}

.btn-outline {
    background: #fff;
    color: var(--accent);
    border: 1px solid #ffca9f;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px;
}

.panel h2 {
    margin: 0 0 14px;
    font-size: 1.2rem;
}

.panel p {
    margin: 0 0 10px;
}

.panel-full {
    grid-column: 1 / -1;
}

.kv-list,
.bullet-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kv-list li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--line);
}

.kv-list li:last-child {
    border-bottom: 0;
}

.kv-list span {
    color: var(--muted);
}

.bullet-list li {
    border-bottom: 1px dashed var(--line);
    padding: 9px 0;
}

.faq details {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
}

.faq p {
    margin: 10px 0 4px;
    color: var(--muted);
}

.video-wrap {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

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

.form-grid label {
    display: grid;
    gap: 6px;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-grid input,
.form-grid textarea,
.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 11px;
    font: inherit;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.alert {
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 0.93rem;
}

.alert.success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.cta-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer {
    margin-top: 30px;
    padding: 40px 0;
    background: #1d2338;
    color: #d1d5db;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.footer h4 {
    color: #fff;
    margin: 0 0 6px;
}

.footer-extra {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-extra p {
    margin: 0 0 8px;
    color: #c5cad6;
}

.footer-created {
    font-weight: 600;
    color: #eef2ff;
}

.footer-created a {
    color: #ffffff;
    text-decoration: underline;
}

.admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 240px 1fr;
}

.admin-sidebar {
    background: #ffffff;
    border-right: 1px solid var(--line);
    padding: 20px 14px;
}

.admin-sidebar h2 {
    margin: 0 0 18px;
    font-size: 1.1rem;
}

.admin-sidebar a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--muted);
    margin-bottom: 6px;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: #fff5ec;
    color: #9a4700;
}

.admin-main {
    padding: 20px;
}

.admin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
}

.stat-card p {
    margin: 0;
    color: var(--muted);
}

.stat-card strong {
    font-size: 1.5rem;
}

.admin-table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 0.92rem;
}

th {
    background: #f8fafc;
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-card {
    width: min(430px, 100%);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px;
}

.muted {
    color: var(--muted);
}

.admin-image-preview {
    width: min(240px, 100%);
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-top: 8px;
    background: #fff;
}

.admin-gallery-grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.admin-gallery-item {
    display: grid;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px;
    background: #fff;
}

.admin-gallery-item img {
    width: 100%;
    height: 96px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fafc;
}

.admin-gallery-item span {
    font-size: 0.86rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-logo-showcase {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.brand-logo-showcase img {
    display: block;
    width: min(420px, 100%);
    max-height: 280px;
    object-fit: contain;
}

.about-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.about-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 12px;
}

.about-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.about-card p {
    margin: 0;
}

.about-card ul {
    margin: 0;
    padding-left: 18px;
}

.about-card li {
    margin-bottom: 4px;
}

.about-card-full {
    grid-column: 1 / -1;
}

.about-main-image,
.about-image {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.about-main-image img,
.about-image img {
    display: block;
    width: 100%;
    height: auto;
}

.about-list {
    margin: 0;
    padding-left: 18px;
}

.about-list li {
    margin-bottom: 6px;
}

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

.about-concept-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

.about-concept-item h3 {
    margin: 0 0 8px;
    font-size: 0.98rem;
}

.about-concept-item img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(12, 18, 32, 0.55);
    display: grid;
    place-items: center;
    z-index: 999;
    padding: 16px;
}

.modal-card {
    width: min(680px, 100%);
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.28);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.modal-head h2 {
    margin: 0;
    font-size: 1.1rem;
}

.modal-close {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.modal-content {
    padding: 14px 16px 16px;
}

.modal-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
}

.modal-row span {
    color: var(--muted);
}

.modal-message {
    padding-top: 12px;
}

.modal-message span {
    color: var(--muted);
    display: block;
    margin-bottom: 6px;
}

.modal-message p {
    margin: 0;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    white-space: pre-wrap;
}

.modal-backdrop[hidden] {
    display: none;
}

.promo-panel {
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
}

.promo-panel h2,
.promo-panel h3 {
    margin: 0 0 8px;
}

.promo-image-link {
    display: block;
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.promo-image-link img {
    display: block;
    width: 100%;
    height: auto;
}

.promo-compact {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.brand-carousel {
    position: relative;
}

.brand-carousel-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 2px;
    scrollbar-width: thin;
}

.brand-carousel-track::-webkit-scrollbar {
    height: 8px;
}

.brand-carousel-track::-webkit-scrollbar-thumb {
    background: #d7dde5;
    border-radius: 999px;
}

.brand-carousel-track .brand-card {
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: calc((100% - 48px) / 4);
    scroll-snap-align: start;
}

.brand-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    border-radius: 999px;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.28);
    transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.brand-carousel-btn.prev {
    left: -20px;
}

.brand-carousel-btn.next {
    right: -20px;
}

.brand-carousel-btn:hover {
    transform: translateY(-50%) scale(1.04);
    background: rgba(255, 122, 26, 0.92);
    border-color: rgba(255, 255, 255, 0.4);
}

.brand-carousel-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.45);
}

.adisyon-slider {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 46px 1fr 46px;
    align-items: center;
    gap: 10px;
}

.adisyon-slider-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 6px 3%;
}

.adisyon-slider-track::-webkit-scrollbar {
    height: 8px;
}

.adisyon-slider-track::-webkit-scrollbar-thumb {
    background: #d7dde5;
    border-radius: 999px;
}

.adisyon-slider-btn {
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    background: #fff;
    color: #475569;
    border-radius: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.adisyon-slider-btn:hover {
    color: var(--accent);
    border-color: #ffca9f;
}

.adisyon-card {
    width: 94%;
    min-width: 94%;
    height: clamp(300px, 36vw, 430px);
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f8fafc;
    scroll-snap-align: center;
}

.adisyon-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
}

.brand-top-slider .adisyon-card {
    height: clamp(260px, 34vw, 400px);
}

@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .brand-carousel-track .brand-card {
        flex-basis: calc((100% - 16px) / 2);
        min-width: calc((100% - 16px) / 2);
    }
    .admin-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .details-grid,
    .form-grid,
    .footer-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-concepts {
        grid-template-columns: 1fr;
    }
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .admin-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .card-grid,
    .admin-cards {
        grid-template-columns: 1fr;
    }
    .brand-carousel {
        overflow: hidden;
    }
    .brand-carousel-btn {
        display: none;
    }
    .brand-carousel-track .brand-card {
        flex-basis: 100%;
        min-width: 100%;
    }
    .adisyon-slider {
        grid-template-columns: 1fr;
    }
    .adisyon-slider-btn {
        display: none;
    }
    .admin-gallery-grid {
        grid-template-columns: 1fr;
    }
    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
