/* ══════════════════════════════════════════════
   KRUVAZE GİYİM — Ana Stil Dosyası
   Tasarım: Lüks Erkek Giyim | Koyu & Altın
   ══════════════════════════════════════════════ */

:root {
    /* Gece Modu (varsayılan) — tüm değerler direkt */
    --black:      #0a0a0a;
    --charcoal:   #141414;
    --dark:       #1c1c1c;
    --dark-mid:   #252525;
    --border:     #2e2e2e;
    --muted:      #6b6b6b;
    --light-gray: #a8a8a8;
    --off-white:  #e8e4dc;
    --white:      #f5f2ec;
    --gold:       #c9a84c;
    --gold-light: #e8c97a;
    --gold-dark:  #9e7c2c;
    --cream:      #f0ead8;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Montserrat', 'Helvetica Neue', sans-serif;

    --radius-sm:  4px;
    --radius:     8px;
    --radius-lg:  16px;

    --shadow-soft: 0 4px 24px rgba(0,0,0,.35);
    --shadow-gold: 0 4px 20px rgba(201,168,76,.25);

    --transition: 0.3s cubic-bezier(.4,0,.2,1);
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: var(--black);
    color: var(--off-white);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    text-align: center;
    margin-bottom: 8px;
    color: var(--white);
}
.section-title span { color: var(--gold); font-style: italic; }
.section-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: .85rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: 48px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    border: 1px solid var(--gold);
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: var(--shadow-gold);
    color: var(--black);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: var(--off-white);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.btn-sm { padding: 8px 18px; font-size: .75rem; }
.btn-lg { padding: 16px 40px; font-size: .9rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: #c0392b; color: #fff; border: 1px solid #c0392b; }
.btn-danger:hover { background: #a93226; color: #fff; }

/* ── Form Elemanları ── */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--light-gray);
    margin-bottom: 8px;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--off-white);
    font-family: var(--font-body);
    font-size: .9rem;
    transition: border-color var(--transition);
    outline: none;
}
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.1); }
.form-control::placeholder { color: var(--muted); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23a8a8a8' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
textarea.form-control { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:600px){ .form-row { grid-template-columns: 1fr; } }

/* ── Cards ── */
.card {
    background: var(--charcoal);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card-body { padding: 24px; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border); }

/* ── Product Card ── */
.product-card {
    background: var(--charcoal);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-img {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--dark);
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold);
    color: var(--black);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    padding: 3px 10px;
    border-radius: 2px;
    text-transform: uppercase;
}
.product-info { padding: 16px; }
.product-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--off-white);
}
.product-cat {
    font-size: .72rem;
    color: var(--muted);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.product-price {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--gold);
}
.product-price .old-price {
    font-size: .9rem;
    color: var(--muted);
    text-decoration: line-through;
    margin-right: 8px;
}

/* ── Hero Section ── */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--black);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1208 50%, #0a0a0a 100%);
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/assets/images/hero-pattern.svg') repeat;
    opacity: .04;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: 80px 0;
}
.hero-eyebrow {
    font-size: .75rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.hero-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold);
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--white);
}
.hero-title em {
    font-style: italic;
    color: var(--gold);
}
.hero-desc {
    font-size: .9rem;
    color: var(--white);
    margin-bottom: 40px;
    max-width: 420px;
    line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Section Spacing ── */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-dark { background: var(--charcoal); }

/* ── Product Grid ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* ── Breadcrumb ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    color: var(--muted);
    padding: 16px 0;
    letter-spacing: .05em;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--border); }

/* ── Alert / Flash ── */
.flash-message {
    position: fixed;
    top: calc(var(--header-h) + 12px);
    right: 20px;
    z-index: 9999;
    padding: 14px 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .88rem;
    box-shadow: var(--shadow-soft);
    animation: slideIn .3s ease;
    max-width: 380px;
}
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: none; opacity: 1; } }
.flash-success { background: #1a3a1a; border: 1px solid #2e7d32; color: #81c784; }
.flash-error   { background: #3a1a1a; border: 1px solid #c62828; color: #ef9a9a; }
.flash-warning { background: #3a2e10; border: 1px solid #f9a825; color: #ffcc02; }
.flash-close { margin-left: auto; font-size: 1.2rem; opacity: .6; cursor: pointer; background: none; border: none; color: inherit; }

/* ── Table ── */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table th {
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-weight: 500;
}
table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(46,46,46,.6);
    font-size: .88rem;
    vertical-align: middle;
}
table tr:hover td { background: rgba(255,255,255,.02); }

/* ── Badge ── */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.badge-success  { background: rgba(46,125,50,.25); color: #81c784; border: 1px solid rgba(46,125,50,.4); }
.badge-warning  { background: rgba(249,168,37,.2); color: #ffd54f; border: 1px solid rgba(249,168,37,.35); }
.badge-danger   { background: rgba(198,40,40,.2); color: #ef9a9a; border: 1px solid rgba(198,40,40,.35); }
.badge-info     { background: rgba(2,136,209,.2); color: #81d4fa; border: 1px solid rgba(2,136,209,.35); }
.badge-gold     { background: rgba(201,168,76,.2); color: var(--gold); border: 1px solid rgba(201,168,76,.35); }

/* ── Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-box {
    background: var(--charcoal);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    font-size: 1.5rem;
    color: var(--muted);
    background: none; border: none;
    cursor: pointer;
    transition: color var(--transition);
}
.modal-close:hover { color: var(--gold); }

/* ── Stats Cards ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.stat-card {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.stat-card .stat-label {
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.stat-card .stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
    line-height: 1;
}
.stat-card .stat-sub { font-size: .78rem; color: var(--muted); }

/* ── Page Header ── */
.page-header {
    padding: 80px 0 48px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 64px;
}
.page-header h1 { margin-bottom: 12px; }
.page-header p { color: var(--muted); max-width: 540px; margin: 0 auto; }

/* ── Loader ── */
.spinner {
    width: 36px; height: 36px;
    border: 2px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── POS Barkod Scanner ── */
#barcodeVideo { border: 1px solid var(--border); border-radius: var(--radius); }

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 40px 0;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .85rem;
    transition: all var(--transition);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .active { background: var(--gold); color: var(--black); border-color: var(--gold); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-content { max-width: 100%; }
}
@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .hero { min-height: 75vh; }
    .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .container { padding: 0 16px; }
    .btn-lg { padding: 14px 28px; }
}

/* ── Divider ── */
.divider-gold {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0;
    color: var(--muted);
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.divider-gold::before, .divider-gold::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-dark), transparent);
}

/* ── Branches (Contact page) ── */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.branch-card {
    background: var(--charcoal);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color var(--transition), transform var(--transition);
    overflow: hidden;
}
.branch-card:hover { border-color: var(--gold); transform: translateY(-3px); }
/* Görsel varsa padding dışarıdan gelir */
.branch-card.has-image { padding: 0; }
.branch-card.has-image .branch-inner { padding: 24px; }
.branch-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 12px;
}
.branch-card img {
    width: 100%;
    display: block;
    aspect-ratio: 16/7;
    object-fit: cover;
    transition: transform .5s ease;
}
.branch-card:hover img { transform: scale(1.04); }
.branch-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: .875rem;
    color: var(--light-gray);
}
.branch-info-row svg { flex-shrink: 0; margin-top: 2px; }


/* ══════════════════════════════════════
   GÜNDÜZ MODU
   ══════════════════════════════════════ */
[data-theme="light"] {
    --black:      #f8f5f0;
    --charcoal:   #ede9e1;
    --dark:       #ffffff;
    --dark-mid:   #f0ece4;
    --border:     #d4cdc0;
    --muted:      #8a7f72;
    --light-gray: #5a5248;
    --off-white:  #2d2820;
    --white:      #1a1510;
    --gold:       #a07828;
    --gold-light: #c9a84c;
    --gold-dark:  #7a5c18;
    --cream:      #e8dfc8;
}
[data-theme="light"] .site-header {
    background: rgba(248,245,240,.97) !important;
    border-bottom-color: var(--border-color);
}
[data-theme="light"] .site-header.scrolled {
    background: rgba(248,245,240,.99) !important;
}
[data-theme="light"] .site-footer {
    background: #ede9e1;
    border-top: 1px solid var(--border-color);
}
[data-theme="light"] .footer-bottom {
    background: #e4dfd6;
}
[data-theme="light"] .btn-outline {
    border-color: var(--border-color);
    color: var(--text-sub);
}
[data-theme="light"] .flash-success { background: #d4edda; color: #1a5c2a; border-color: #a8d5b5; }
[data-theme="light"] .flash-error   { background: #f8d7da; color: #7d1a1a; border-color: #f1aeb5; }
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
    background: #fff;
    color: var(--text-main);
    border-color: var(--border-color);
}

/* Tema geçiş animasyonu */
body {
    transition: background .3s ease, color .3s ease;
}
