﻿:root {
    --mc-primary: #f27a1a;
    --mc-primary-dark: #d9650b;
    --mc-primary-soft: #fff4eb;
    --mc-text: #23242a;
    --mc-muted: #6b7280;
    --mc-border: #e5e7eb;
    --mc-surface: #ffffff;
    --mc-page: #f6f7f9;
    --mc-radius-sm: 8px;
    --mc-radius: 12px;
    --mc-radius-lg: 18px;
    --mc-shadow: 0 8px 30px rgba(17, 24, 39, .08);
    --mc-container: 1200px;
}

html { box-sizing: border-box; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: inherit; }

body.modern-commerce {
    margin: 0;
    min-width: 320px;
    color: var(--mc-text);
    background: var(--mc-page);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

body.modern-commerce img { max-width: 100%; height: auto; }
body.modern-commerce a { color: inherit; text-decoration: none; }
body.modern-commerce a:hover { color: var(--mc-primary); }

body.modern-commerce input,
body.modern-commerce select,
body.modern-commerce textarea,
body.modern-commerce button { font: inherit; }

body.modern-commerce input[type="text"],
body.modern-commerce input[type="password"],
body.modern-commerce input[type="email"],
body.modern-commerce input[type="tel"],
body.modern-commerce input[type="number"],
body.modern-commerce select,
body.modern-commerce textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    color: var(--mc-text);
    background: var(--mc-surface);
    border: 1px solid var(--mc-border);
    border-radius: var(--mc-radius-sm);
    outline: 0;
}

body.modern-commerce input:focus,
body.modern-commerce select:focus,
body.modern-commerce textarea:focus {
    border-color: var(--mc-primary);
    box-shadow: 0 0 0 3px rgba(242, 122, 26, .15);
}

body.modern-commerce input[type="submit"],
body.modern-commerce input[type="button"],
body.modern-commerce button,
body.modern-commerce .button,
body.modern-commerce .btn {
    min-height: 42px;
    padding: 10px 18px;
    color: #fff;
    background: var(--mc-primary);
    border: 1px solid var(--mc-primary);
    border-radius: var(--mc-radius-sm);
    cursor: pointer;
    font-weight: 700;
}

body.modern-commerce input[type="submit"]:hover,
body.modern-commerce input[type="button"]:hover,
body.modern-commerce button:hover,
body.modern-commerce .button:hover,
body.modern-commerce .btn:hover {
    color: #fff;
    background: var(--mc-primary-dark);
    border-color: var(--mc-primary-dark);
}

body.modern-commerce table {
    width: 100%;
    border-collapse: collapse;
    background: var(--mc-surface);
}

body.modern-commerce th,
body.modern-commerce td {
    padding: 12px;
    border-bottom: 1px solid var(--mc-border);
    text-align: left;
    vertical-align: middle;
}

body.modern-commerce th {
    color: var(--mc-muted);
    background: #fafafa;
    font-size: 12px;
    text-transform: uppercase;
}

body.modern-commerce #wrapper,
body.modern-commerce #container,
body.modern-commerce .wrapper,
body.modern-commerce .container,
body.modern-commerce .ana,
body.modern-commerce .main,
body.modern-commerce .content,
body.modern-commerce .icerik,
body.modern-commerce .sayfa {
    width: min(calc(100% - 32px), var(--mc-container));
    margin-right: auto;
    margin-left: auto;
}

body.modern-commerce #header,
body.modern-commerce .header,
body.modern-commerce header {
    background: var(--mc-surface);
    border-bottom: 1px solid var(--mc-border);
    box-shadow: 0 2px 10px rgba(17, 24, 39, .04);
}

body.modern-commerce #menu ul,
body.modern-commerce .menu ul,
body.modern-commerce nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.modern-commerce #menu a,
body.modern-commerce .menu a,
body.modern-commerce nav a {
    display: block;
    padding: 12px 14px;
    color: var(--mc-text);
    border-bottom: 2px solid transparent;
    font-weight: 600;
}

body.modern-commerce #menu a:hover,
body.modern-commerce .menu a:hover,
body.modern-commerce nav a:hover {
    color: var(--mc-primary);
    border-bottom-color: var(--mc-primary);
}

body.modern-commerce input[id*="Ara"],
body.modern-commerce input[id*="ara"],
body.modern-commerce input[id*="Search"],
body.modern-commerce input[id*="search"] {
    min-height: 46px;
    background: #f3f4f6;
    border-color: transparent;
    border-radius: 10px;
}

body.modern-commerce .urun,
body.modern-commerce .urunKart,
body.modern-commerce .urun-kart,
body.modern-commerce .product,
body.modern-commerce .product-card,
body.modern-commerce .kampanya,
body.modern-commerce .kategori,
body.modern-commerce .marka {
    overflow: hidden;
    background: var(--mc-surface);
    border: 1px solid var(--mc-border);
    border-radius: var(--mc-radius);
    box-shadow: 0 4px 16px rgba(17, 24, 39, .04);
    transition: transform .18s ease, box-shadow .18s ease;
}

body.modern-commerce .urun:hover,
body.modern-commerce .urunKart:hover,
body.modern-commerce .urun-kart:hover,
body.modern-commerce .product:hover,
body.modern-commerce .product-card:hover,
body.modern-commerce .kampanya:hover,
body.modern-commerce .kategori:hover,
body.modern-commerce .marka:hover {
    transform: translateY(-3px);
    box-shadow: var(--mc-shadow);
}

body.modern-commerce .fiyat,
body.modern-commerce .price,
body.modern-commerce [class*="Fiyat"],
body.modern-commerce [class*="fiyat"] {
    color: var(--mc-primary);
    font-size: 18px;
    font-weight: 800;
}

body.modern-commerce fieldset,
body.modern-commerce .panel,
body.modern-commerce .box,
body.modern-commerce .kutu,
body.modern-commerce .form-area {
    margin-bottom: 18px;
    padding: 20px;
    background: var(--mc-surface);
    border: 1px solid var(--mc-border);
    border-radius: var(--mc-radius);
}

body.modern-commerce #footer,
body.modern-commerce .footer,
body.modern-commerce footer {
    margin-top: 40px;
    padding: 36px 0;
    color: #d1d5db;
    background: #1f2937;
}

.mc-container {
    width: min(calc(100% - 32px), var(--mc-container));
    margin-right: auto;
    margin-left: auto;
}

.mc-section {
    margin: 24px 0;
    padding: 22px;
    background: var(--mc-surface);
    border: 1px solid var(--mc-border);
    border-radius: var(--mc-radius-lg);
}

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

.mc-card {
    overflow: hidden;
    background: var(--mc-surface);
    border: 1px solid var(--mc-border);
    border-radius: var(--mc-radius);
}

.mc-table-scroll {
    width: 100%;
    overflow-x: auto;
}

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

@media (max-width: 768px) {
    body.modern-commerce #wrapper,
    body.modern-commerce #container,
    body.modern-commerce .wrapper,
    body.modern-commerce .container,
    body.modern-commerce .ana,
    body.modern-commerce .main,
    body.modern-commerce .content,
    body.modern-commerce .icerik,
    body.modern-commerce .sayfa,
    .mc-container {
        width: min(calc(100% - 20px), var(--mc-container));
    }

    body.modern-commerce #menu ul,
    body.modern-commerce .menu ul,
    body.modern-commerce nav ul {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    body.modern-commerce #menu a,
    body.modern-commerce .menu a,
    body.modern-commerce nav a {
        white-space: nowrap;
    }

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

@media (max-width: 480px) {
    .mc-grid { grid-template-columns: minmax(0, 1fr); }

    body.modern-commerce input[type="submit"],
    body.modern-commerce input[type="button"],
    body.modern-commerce button,
    body.modern-commerce .button,
    body.modern-commerce .btn {
        width: 100%;
    }
}