/* assets/css/site.css */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: #f5f6fa;
    color: #222;
}

a {
    text-decoration: none;
    color: inherit;
}

.site-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #e2e4ea;
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-logo a {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.03em;
}

.site-top-menu a {
    margin-right: 12px;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 999px;
}

.site-top-menu a:hover {
    background: #f0f1f5;
}

.site-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-cart {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #d1d3de;
    font-size: 14px;
}

.btn-cart:hover {
    background: #f0f1f5;
}

/* CONTENT */

.site-content {
    flex: 1;
    padding: 20px 24px 30px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* HERO */

.hero {
    background: linear-gradient(135deg, #ffffff, #f3f6ff);
    border-radius: 18px;
    padding: 24px 24px 28px;
    border: 1px solid #e2e4ea;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-text {
    flex: 1 1 260px;
}

.hero-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 14px;
    color: #555;
    max-width: 520px;
    margin-bottom: 12px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
}

.hero-badge {
    background: #ffffff;
    border-radius: 999px;
    padding: 4px 10px;
    border: 1px solid #e2e4ea;
}

.hero-side {
    min-width: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    font-size: 12px;
    color: #555;
}


/* PRODUCT GRID */

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.product-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e4ea;
    padding: 8px 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card-title {
    font-size: 13px;
    font-weight: 600;
}

.product-card-category {
    font-size: 11px;
    color: #777;
}

.product-card-cover {
    width: 100%;
    height: 120px;          /* ÖNEMLİ: daha küçük */
    border-radius: 8px;
    overflow: hidden;
    background: #f5f6fa;
    margin-top: 4px;
}

.product-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.product-card-body {
    font-size: 12px;
    color: #555;
    min-height: 30px;
    margin-top: 4px;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.product-price {
    font-weight: 700;
    font-size: 13px;
}

.product-card-actions a,
.product-card-actions button {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #d1d3de;
    background: #fff;
    cursor: pointer;
}

.product-card-actions a:hover,
.product-card-actions button:hover {
    background: #f0f1f5;
}

.product-card-actions form {
    display: inline-block;
}


/* PRODUCT DETAIL */

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr);
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 24px;
}

.product-main {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e4ea;
    padding: 16px;
}

.product-main-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.product-main-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #f5f6fa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-logo img {
    max-width: 100%;
    max-height: 100%;
}

.product-main-title {
    font-size: 18px;
    font-weight: 700;
}

.product-main-category {
    font-size: 12px;
    color: #777;
}

.product-main-section {
    margin-top: 14px;
}

.product-main-section h2 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.product-main-section p,
.product-main-section ul {
    font-size: 13px;
    color: #555;
}

.product-main-section ul {
    margin-left: 18px;
    list-style: disc;
}

/* GALLERY */

.product-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.product-gallery img {
    height: 60px;
    border-radius: 8px;
    border: 1px solid #e2e4ea;
}

/* SIDEBAR */

.product-sidebar {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e4ea;
    padding: 16px;
    align-self: flex-start;
}

.product-sidebar-price {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.product-sidebar-label {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
}

.product-sidebar button,
.product-sidebar .btn-primary {
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    background: #2f80ed;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.product-sidebar button:hover,
.product-sidebar .btn-primary:hover {
    background: #2466ba;
}

/* FOOTER */

.site-footer {
    background: #ffffff;
    border-top: 1px solid #e2e4ea;
    padding: 10px 24px;
    font-size: 13px;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer-inner a {
    margin-left: 10px;
    font-size: 13px;
    color: #555;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .product-detail {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .site-header-left {
        flex-wrap: wrap;
    }

    .site-content {
        padding: 16px 16px 24px;
    }
}
/* IMAGE MODAL (for screenshots) */

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.image-modal-img {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    background: #ffffff;
}
/* LIVE CHAT WIDGET – SAĞ ALTA SABİT BALON */
.live-chat-widget {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 200;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #2f80ed;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.2);
    text-decoration: none;
}

.live-chat-widget:hover {
    background: #2466ba;
}
