﻿/* =========================================================
   GLOBAL TOKENS (SINGLE ROOT)  ✅ radius=0
   ========================================================= */
:root {
    --bg: #f7f7f8;
    --card: #ffffff;
    --ink: #111827;
    --text: #111827;
    --muted: #6b7280;
    --mut: rgba(17,24,39,.62);
    --line: rgba(17,24,39,.12);
    --line2: rgba(17,24,39,.16);
    --soft: rgba(17,24,39,.06);
    --shadow-sm: 0 10px 20px rgba(17,24,39,.06);
    --shadow: 0 18px 38px rgba(17,24,39,.10);
    --brand: #111827;
    --accent: #c41e3a;
    --radius: 0px; /* ✅ NO RADIUS */
}

/* =========================================================
   GLOBAL RESET for BOOTSTRAP SHAPES (NO RADIUS ANYWHERE)
   ========================================================= */
.card, .card-header, .card-body,
.btn, .badge, .alert,
.form-control, .form-select,
.table, .table-responsive,
.modal-content {
    border-radius: 0 !important;
}

    /* Optional: daha net bootstrap focus */
    .form-control:focus, .form-select:focus, .btn:focus {
        box-shadow: none !important;
        outline: none !important;
    }

/* =========================================================
   ANIMATIONS (SINGLE)
   ========================================================= */
@keyframes shine {
    from {
        transform: translateX(0) skewX(-18deg);
    }

    to {
        transform: translateX(260%) skewX(-18deg);
    }
}

/* =========================================================
   UNIVERSAL SHINE BUTTON (GENEL)
   ========================================================= */
.btn-shine {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

    .btn-shine::before {
        content: "";
        position: absolute;
        inset: -2px;
        background: radial-gradient(600px 220px at 30% 0%, rgba(255,255,255,.16), transparent 55%);
        opacity: .55;
        z-index: 0;
        pointer-events: none;
    }

    .btn-shine::after {
        content: "";
        position: absolute;
        top: -30%;
        left: -45%;
        width: 45%;
        height: 160%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.40), transparent);
        transform: skewX(-18deg);
        opacity: 0;
        z-index: 0;
        pointer-events: none;
    }

    .btn-shine > * {
        position: relative;
        z-index: 1;
    }

    .btn-shine:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 28px rgba(17,24,39,.16), 0 0 0 3px rgba(17,24,39,.04);
        filter: brightness(1.04);
    }

        .btn-shine:hover::after {
            opacity: 1;
            animation: shine 900ms ease forwards;
        }

    .btn-shine:active {
        transform: translateY(0);
        filter: brightness(1.02);
    }

/* =========================================================
   PRODUCT DETAIL (PD)  — Scoped
   ========================================================= */

/* ✅ STICKY (desktop) */
@media (min-width: 992px) {
    .pd-sticky {
        position: sticky;
        top: 96px;
    }
}

.pd-shell {
    padding: 26px 0 70px;
}

/* breadcrumb */
.pd-breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 650;
    font-size: .92rem;
    letter-spacing: .1px;
}

    .pd-breadcrumb a:hover {
        color: var(--text);
        text-decoration: underline;
    }

.pd-title {
    font-weight: 820;
    letter-spacing: -.2px;
    color: var(--text);
    line-height: 1.15;
    margin: 0;
    font-size: clamp(1.35rem, 1.8vw, 1.75rem);
}

.pd-sub {
    color: var(--muted);
    margin-top: 10px;
    line-height: 1.7;
    font-weight: 450;
    font-size: .98rem;
}

/* chips */
.pd-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 650;
    font-size: .86rem;
    color: var(--text);
}

    .pd-chip i {
        opacity: .9;
    }

    .pd-chip.muted {
        color: var(--muted);
    }

    .pd-chip.danger {
        border-color: rgba(196,30,58,.22);
        color: var(--accent);
    }

/* Gallery */
.pd-media {
    background: var(--card);
    border: 1px solid var(--line2);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.pd-main-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform .32s ease;
    display: block;
    background: #f3f4f6;
}

.pd-media:hover .pd-main-img {
    transform: scale(1.01);
}

.pd-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
    background: #fff;
    border-top: 1px solid var(--line2);
}

.thumb-btn {
    padding: 0;
    border: 0;
    background: transparent;
}

.thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 1px solid var(--line2);
    cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
    box-shadow: 0 10px 16px rgba(17,24,39,.06);
    display: block;
    background: #f3f4f6;
}

    .thumb:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 22px rgba(17,24,39,.09);
    }

    .thumb.active {
        border-color: rgba(17,24,39,.35);
    }

/* Right panel */
.pd-panel {
    background: #fff;
    border: 1px solid var(--line2);
    box-shadow: var(--shadow-sm);
    padding: 18px;
}

.pd-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 10px 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

    .pd-price .val {
        font-size: clamp(1.45rem, 2vw, 1.8rem);
        font-weight: 820;
        letter-spacing: -.15px;
        color: var(--text);
        line-height: 1;
    }

    .pd-price .cur {
        font-size: 1rem;
        font-weight: 650;
        color: var(--muted);
    }

.pd-actions {
    margin-top: 14px;
    padding-top: 12px;
}

/* Qty */
.qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--line2);
    background: #fff;
    overflow: hidden;
    height: 48px;
}

.qty-btn {
    width: 46px;
    height: 48px;
    border: 0;
    background: #fff;
    color: var(--text);
    font-weight: 800;
    display: grid;
    place-items: center;
    transition: background .12s ease;
}

    .qty-btn:hover {
        background: rgba(17,24,39,.05);
    }

.qty-input {
    width: 72px;
    height: 48px;
    border: 0;
    outline: 0;
    text-align: center;
    font-weight: 750;
    color: var(--text);
    font-size: .98rem;
}

/* BUY BUTTON (shine + clean) */
.btn-buy {
    height: 48px;
    font-weight: 820;
    letter-spacing: .15px;
    background: linear-gradient(135deg, #111827, #0b1220 55%, #111827);
    border: 1px solid rgba(17,24,39,.18);
    box-shadow: 0 12px 20px rgba(17,24,39,.12);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    font-size: .95rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

    .btn-buy::before {
        content: "";
        position: absolute;
        inset: -2px;
        background: radial-gradient(600px 220px at 30% 0%, rgba(255,255,255,.16), transparent 55%);
        opacity: .55;
        z-index: 0;
        pointer-events: none;
    }

    .btn-buy::after {
        content: "";
        position: absolute;
        top: -20%;
        left: -35%;
        width: 45%;
        height: 140%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
        transform: skewX(-18deg);
        opacity: 0;
        z-index: 0;
        pointer-events: none;
    }

    .btn-buy > * {
        position: relative;
        z-index: 1;
    }

    .btn-buy:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 26px rgba(17,24,39,.16), 0 0 0 3px rgba(17,24,39,.04);
        filter: brightness(1.05);
    }

        .btn-buy:hover::after {
            opacity: 1;
            animation: shine 900ms ease forwards;
        }

    .btn-buy:active {
        transform: translateY(0);
        filter: brightness(1.02);
        box-shadow: 0 12px 18px rgba(17,24,39,.14);
    }

    .btn-buy:disabled {
        opacity: .55;
        transform: none;
        box-shadow: none;
        filter: none;
    }

/* secondary buttons */
.pd-mini-actions .btn {
    font-weight: 750;
    padding: 9px 12px;
    font-size: .92rem;
    transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}

    .pd-mini-actions .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 18px rgba(17,24,39,.08);
        filter: brightness(1.02);
    }

/* Trust */
.pd-trust {
    margin-top: 14px;
    border: 1px solid var(--line2);
    background: #fff;
    padding: 12px;
    color: var(--muted);
    font-weight: 650;
    font-size: .92rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

    .pd-trust i {
        color: var(--text);
        opacity: .9;
    }

.pd-alert {
    box-shadow: var(--shadow-sm);
}

/* modal content already radius=0 via global rule */


/* =========================================================
   ADMIN / ORDERS LOOK — Scoped (ord- / sec- / table-wrap)
   ========================================================= */

/* page header */
.ord-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0 6px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 14px;
}

.ord-title {
    margin: 0;
    font-weight: 900;
    letter-spacing: .01em;
    color: var(--ink);
    line-height: 1.1;
}

.ord-sub {
    margin-top: 6px;
    color: var(--mut);
    font-size: .92rem;
    font-weight: 650;
}

/* sections */
.sec {
    border: 1px solid var(--line);
    background: #fff;
    margin-bottom: 14px;
}

.sec-h {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

    .sec-h h5 {
        margin: 0;
        font-size: .95rem;
        font-weight: 900;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--ink);
    }

.sec-b {
    padding: 14px;
}

/* admin inputs */
.sec .form-control,
.sec .form-select {
    border: 1px solid var(--line2) !important;
    box-shadow: none !important;
    font-weight: 700;
}

.form-text {
    color: var(--mut) !important;
}

/* badges admin */
.sec .badge,
.ord-head .badge {
    font-weight: 900 !important;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .72rem !important;
    padding: 8px 10px !important;
}

/* admin buttons */
.sec .btn {
    font-weight: 850 !important;
    letter-spacing: .01em;
    border-width: 2px !important;
}

/* table shell */
.table-wrap {
    border: 1px solid var(--line);
    background: #fff;
}

.table {
    margin: 0;
}

    .table thead th {
        background: #0b1220 !important;
        color: #fff !important;
        border-color: rgba(255,255,255,.08) !important;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .10em;
        font-size: .74rem;
        white-space: nowrap;
        padding: 12px 12px !important;
    }

    .table td, .table th {
        border-color: var(--line) !important;
        vertical-align: middle !important;
        padding: 12px 12px !important;
    }

    .table tbody tr:hover {
        background: rgba(17,24,39,.02);
    }

    .table tfoot th {
        background: #fff;
        font-weight: 900;
    }

/* alerts */
.alert {
    border: 1px solid var(--line);
    font-weight: 700;
}

/* ✅ admin mobile table => card rows (still radius=0) */
@media (max-width: 575.98px) {
    .ord-head {
        flex-wrap: wrap;
    }

    .ord-sub {
        font-size: .9rem;
    }

    .table-responsive {
        border: 0 !important;
    }

    table.table thead {
        display: none;
    }

    table.table tbody tr {
        display: block;
        border: 1px solid var(--line);
        margin-bottom: 10px;
        padding: 10px 10px;
        background: #fff;
    }

    table.table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        border: 0 !important;
        padding: 8px 0 !important;
    }

        table.table tbody td::before {
            content: attr(data-label);
            color: var(--mut);
            font-weight: 800;
            min-width: 110px;
        }
}
    