/* ==========================================================================
   SES Mağaza — tema
   Renkler SES logosundan (#662d91) ve ses.iyibiregitimplatformu.com
   arayüzünden (magenta / lacivert / amber) türetilmiştir.
   ========================================================================== */

:root {
    --ses-purple: #662d91;
    --ses-purple-dark: #4c1f6f;
    --ses-purple-light: #8b52bb;
    --ses-magenta: #ec167f;
    --ses-magenta-dark: #c40f68;
    --ses-navy: #1e1f36;
    --ses-navy-soft: #2b2c48;
    --ses-amber: #faac1d;
    --ses-teal: #40cbb4;

    --ses-ink: #1e1f36;
    --ses-muted: #6b6d85;
    --ses-line: #e7e5ee;
    --ses-surface: #ffffff;
    --ses-canvas: #f6f5fa;

    --ses-gradient: linear-gradient(120deg, var(--ses-purple) 0%, var(--ses-magenta) 100%);
    --ses-gradient-soft: linear-gradient(120deg, rgba(102, 45, 145, .08), rgba(236, 22, 127, .08));

    --ses-radius: 16px;
    --ses-radius-sm: 10px;
    --ses-shadow: 0 10px 30px rgba(30, 31, 54, .07);
    --ses-shadow-lg: 0 18px 48px rgba(30, 31, 54, .12);

    --bs-primary: #662d91;
    --bs-primary-rgb: 102, 45, 145;
}

* { -webkit-font-smoothing: antialiased; }

body {
    font-family: Poppins, "Segoe UI", system-ui, sans-serif;
    color: var(--ses-ink);
    background: var(--ses-canvas);
    font-size: .95rem;
}

h1, h2, h3, h4, h5, h6, .display-6 { font-weight: 700; letter-spacing: -.01em; }

a { color: var(--ses-purple); text-decoration: none; }
a:hover { color: var(--ses-magenta); }

.text-magenta { color: var(--ses-magenta) !important; }
.text-purple { color: var(--ses-purple) !important; }
.text-muted-ses { color: var(--ses-muted) !important; }
.bg-navy { background: var(--ses-navy) !important; }
.bg-canvas { background: var(--ses-canvas) !important; }
.bg-gradient-ses { background: var(--ses-gradient) !important; }

/* ---------------------------------------------------------------- buttons */

.btn { border-radius: 999px; font-weight: 600; padding: .6rem 1.5rem; }
.btn-sm { padding: .35rem 1rem; font-size: .82rem; }
.btn-lg { padding: .85rem 2rem; }

.btn-ses {
    background: var(--ses-gradient);
    border: 0;
    color: #fff;
    box-shadow: 0 8px 20px rgba(236, 22, 127, .25);
}
.btn-ses:hover, .btn-ses:focus { color: #fff; filter: brightness(1.06); box-shadow: 0 10px 26px rgba(236, 22, 127, .35); }

.btn-purple { background: var(--ses-purple); border: 0; color: #fff; }
.btn-purple:hover { background: var(--ses-purple-dark); color: #fff; }

.btn-outline-ses { border: 2px solid var(--ses-purple); color: var(--ses-purple); background: transparent; }
.btn-outline-ses:hover { background: var(--ses-purple); color: #fff; }

.btn-ghost-light { border: 2px solid rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--ses-purple); border-color: #fff; }

/* ----------------------------------------------------------------- header */

.topbar {
    background: var(--ses-navy);
    color: rgba(255, 255, 255, .78);
    font-size: .8rem;
    padding: .5rem 0;
}
.topbar a { color: rgba(255, 255, 255, .78); }
.topbar a:hover { color: #fff; }

.site-header {
    background: #fff;
    box-shadow: 0 2px 16px rgba(30, 31, 54, .06);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.site-header .navbar-brand img { height: 46px; width: auto; }

.nav-main .nav-link {
    color: var(--ses-ink);
    font-weight: 600;
    padding: .5rem .9rem;
    border-radius: 999px;
    font-size: .9rem;
}
.nav-main .nav-link:hover,
.nav-main .nav-link.active { color: var(--ses-magenta); background: rgba(236, 22, 127, .07); }

.header-search .form-control {
    border-radius: 999px 0 0 999px;
    border: 1px solid var(--ses-line);
    border-right: 0;
    padding-left: 1.1rem;
    height: 44px;
}
.header-search .btn { border-radius: 0 999px 999px 0; height: 44px; }
.header-search .form-control:focus { box-shadow: none; border-color: var(--ses-purple-light); }

.header-action {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--ses-ink);
    font-weight: 600;
    font-size: .85rem;
    padding: .4rem .7rem;
    border-radius: 999px;
}
.header-action:hover { color: var(--ses-magenta); background: rgba(236, 22, 127, .07); }
.header-action i { font-size: 1.05rem; }

.cart-badge {
    background: var(--ses-magenta);
    color: #fff;
    border-radius: 999px;
    font-size: .68rem;
    padding: .1rem .42rem;
    font-weight: 700;
}

/* ------------------------------------------------------------------ hero */

.hero { background: var(--ses-navy); position: relative; overflow: hidden; }
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(1000px 420px at 12% 0%, rgba(102, 45, 145, .75), transparent 62%),
                radial-gradient(760px 380px at 92% 100%, rgba(236, 22, 127, .55), transparent 60%);
}
.hero > * { position: relative; z-index: 1; }

.hero-slide { min-height: 460px; display: flex; align-items: center; color: #fff; }
.hero-slide .eyebrow {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .72rem;
    font-weight: 700;
    color: var(--ses-amber);
}
.hero-slide h1 { font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.12; }
.hero-slide p { color: rgba(255, 255, 255, .82); max-width: 42ch; }
.hero-visual {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    aspect-ratio: 16 / 10;
    background: rgba(255,255,255,.06);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.carousel-indicators [data-bs-target] {
    width: 26px; height: 4px; border-radius: 999px;
    background: rgba(255, 255, 255, .4); border: 0;
}
.carousel-indicators .active { background: var(--ses-amber); }

/* --------------------------------------------------------------- sections */

.section { padding: 4rem 0; }
.section-tight { padding: 2.5rem 0; }

.section-title { position: relative; margin-bottom: 2rem; }
.section-title .eyebrow {
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .72rem;
    font-weight: 700;
    color: var(--ses-magenta);
    margin-bottom: .35rem;
}
.section-title h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 0; }

/* ---------------------------------------------------------------- cards */

.feature-strip { background: #fff; border-radius: var(--ses-radius); box-shadow: var(--ses-shadow); }
.feature-item { display: flex; gap: .9rem; align-items: center; padding: 1.25rem; }
.feature-item i { font-size: 1.5rem; color: var(--ses-purple); }
.feature-item strong { display: block; font-size: .9rem; }
.feature-item span { font-size: .8rem; color: var(--ses-muted); }

/* Şeritteki ifade sayısı panelden değişir; içerik her sütunda ortalanır ki 2-3 ifade de dengeli dursun. */
.feature-strip .feature-item { justify-content: center; position: relative; }
@media (min-width: 992px) {
    .feature-strip .col + .col .feature-item::before {
        content: ""; position: absolute; left: 0; top: 25%; bottom: 25%;
        border-left: 1px solid var(--ses-line);
    }
}

.category-card {
    display: block;
    background: #fff;
    border-radius: var(--ses-radius);
    padding: 1.6rem 1.25rem;
    text-align: center;
    box-shadow: var(--ses-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
    height: 100%;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--ses-shadow-lg); }
.category-card .icon {
    width: 62px; height: 62px; margin: 0 auto .9rem;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--ses-gradient-soft);
    color: var(--ses-purple);
    font-size: 1.4rem;
}
.category-card h3 { font-size: .98rem; margin: 0 0 .25rem; color: var(--ses-ink); }
.category-card p { font-size: .78rem; color: var(--ses-muted); margin: 0; }

.product-card {
    background: #fff;
    border-radius: var(--ses-radius);
    overflow: hidden;
    box-shadow: var(--ses-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
    position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--ses-shadow-lg); }

.product-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--ses-gradient-soft);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-badges { position: absolute; top: .7rem; left: .7rem; display: flex; flex-direction: column; gap: .35rem; z-index: 2; }
.badge-ses {
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    padding: .3rem .65rem;
    letter-spacing: .02em;
}
.badge-discount { background: var(--ses-magenta); color: #fff; }
.badge-type { background: rgba(30, 31, 54, .82); color: #fff; }
.badge-soldout { background: #6b6d85; color: #fff; }

.product-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.product-category { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ses-magenta); font-weight: 700; }
.product-title { font-size: .95rem; font-weight: 600; margin: .35rem 0 .5rem; line-height: 1.35; }
.product-title a { color: var(--ses-ink); }
.product-title a:hover { color: var(--ses-purple); }
.product-meta { font-size: .76rem; color: var(--ses-muted); margin-bottom: .75rem; }
.product-price { margin-top: auto; display: flex; align-items: baseline; gap: .5rem; }
.product-price .now { font-size: 1.12rem; font-weight: 700; color: var(--ses-purple); }
.product-price .was { font-size: .82rem; color: var(--ses-muted); text-decoration: line-through; }

/* --------------------------------------------------------------- product */

.gallery-main {
    background: #fff;
    border-radius: var(--ses-radius);
    overflow: hidden;
    box-shadow: var(--ses-shadow);
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb {
    width: 76px; height: 60px; border-radius: 10px; overflow: hidden;
    border: 2px solid transparent; background: #fff; padding: 0; cursor: pointer;
}
.gallery-thumb.active { border-color: var(--ses-magenta); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.price-box {
    background: #fff;
    border-radius: var(--ses-radius);
    box-shadow: var(--ses-shadow);
    padding: 1.5rem;
}
.price-now { font-size: 2rem; font-weight: 800; color: var(--ses-purple); line-height: 1; }
.price-was { color: var(--ses-muted); text-decoration: line-through; }

.qty-input { display: inline-flex; border: 1px solid var(--ses-line); border-radius: 999px; overflow: hidden; }
.qty-input button { border: 0; background: #fff; width: 40px; font-size: 1.05rem; color: var(--ses-purple); }
.qty-input input { border: 0; width: 54px; text-align: center; font-weight: 600; }
.qty-input input:focus { outline: none; }

.info-list { list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.info-list li { display: flex; gap: .6rem; padding: .5rem 0; border-bottom: 1px dashed var(--ses-line); }
.info-list li:last-child { border-bottom: 0; }
.info-list i { color: var(--ses-teal); margin-top: .15rem; }

/* ------------------------------------------------------------------ panel */

.panel {
    background: #fff;
    border-radius: var(--ses-radius);
    box-shadow: var(--ses-shadow);
    padding: 1.5rem;
}
.panel-title { font-size: 1rem; font-weight: 700; margin-bottom: 1.1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--ses-line); }

.summary-row { display: flex; justify-content: space-between; padding: .45rem 0; font-size: .9rem; }
.summary-row.total { border-top: 1px solid var(--ses-line); margin-top: .5rem; padding-top: .9rem; font-size: 1.1rem; font-weight: 700; color: var(--ses-purple); }

.form-label { font-size: .8rem; font-weight: 600; color: var(--ses-muted); text-transform: uppercase; letter-spacing: .04em; }
.form-control, .form-select {
    border-radius: var(--ses-radius-sm);
    border: 1px solid var(--ses-line);
    padding: .65rem .9rem;
    font-size: .9rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--ses-purple-light);
    box-shadow: 0 0 0 .2rem rgba(102, 45, 145, .12);
}

.steps { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.step {
    display: flex; align-items: center; gap: .5rem;
    font-size: .82rem; font-weight: 600; color: var(--ses-muted);
    background: #fff; border-radius: 999px; padding: .5rem 1rem; box-shadow: var(--ses-shadow);
}
.step .num { width: 22px; height: 22px; border-radius: 50%; background: var(--ses-line); color: var(--ses-muted); display: grid; place-items: center; font-size: .72rem; }
.step.active { color: #fff; background: var(--ses-gradient); }
.step.active .num { background: rgba(255,255,255,.28); color: #fff; }

/* ------------------------------------------------------------------- auth */

.auth-split { min-height: calc(100vh - 60px); display: flex; }
.auth-visual {
    flex: 1;
    background: var(--ses-navy);
    position: relative;
    display: none;
    color: #fff;
    padding: 3rem;
}
.auth-visual::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(700px 420px at 20% 15%, rgba(102, 45, 145, .8), transparent 60%),
                radial-gradient(600px 420px at 85% 90%, rgba(236, 22, 127, .6), transparent 60%);
}
.auth-visual > * { position: relative; z-index: 1; }
.auth-form-side { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 20px; box-shadow: var(--ses-shadow-lg); padding: 2.25rem; border-top: 4px solid var(--ses-magenta); }

@media (min-width: 992px) { .auth-visual { display: block; } }

/* ----------------------------------------------------------------- footer */

.site-footer { background: var(--ses-navy); color: rgba(255, 255, 255, .68); padding: 3.5rem 0 0; }
.site-footer h5 { color: #fff; font-size: .92rem; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255, 255, 255, .68); font-size: .85rem; }
.site-footer a:hover { color: var(--ses-amber); }
.site-footer .footer-logo { height: 54px; filter: brightness(0) invert(1); opacity: .95; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2.5rem; padding: 1.2rem 0; font-size: .78rem; }
.social-link {
    width: 36px; height: 36px; border-radius: 50%;
    display: inline-grid; place-items: center;
    background: rgba(255, 255, 255, .08); color: #fff;
}
.social-link:hover { background: var(--ses-magenta); color: #fff; }

/* ------------------------------------------------------------------ admin */

.admin-body { background: var(--ses-canvas); }
.admin-sidebar {
    background: var(--ses-navy);
    color: rgba(255, 255, 255, .72);
    width: 250px;
    min-height: 100vh;
    position: fixed;
    top: 0; left: 0;
    padding: 1.25rem 0;
    overflow-y: auto;
    z-index: 1040;
}
.admin-sidebar .brand { padding: 0 1.25rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 1rem; }
.admin-sidebar .brand img { height: 38px; filter: brightness(0) invert(1); }
.admin-sidebar .nav-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.35); padding: 1rem 1.25rem .4rem; }
.admin-sidebar a {
    display: flex; align-items: center; gap: .7rem;
    padding: .6rem 1.25rem; color: rgba(255, 255, 255, .72);
    font-size: .87rem; font-weight: 500;
}
.admin-sidebar a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.admin-sidebar a.active { background: var(--ses-gradient); color: #fff; font-weight: 600; }
.admin-sidebar a i { width: 18px; text-align: center; }

.admin-content { margin-left: 250px; padding: 1.5rem; }
.admin-topbar {
    background: #fff; border-radius: var(--ses-radius);
    box-shadow: var(--ses-shadow); padding: .9rem 1.25rem;
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem;
}

.stat-card { background: #fff; border-radius: var(--ses-radius); box-shadow: var(--ses-shadow); padding: 1.25rem; height: 100%; }
.stat-card .label { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ses-muted); font-weight: 600; }
.stat-card .value { font-size: 1.6rem; font-weight: 800; color: var(--ses-ink); line-height: 1.2; }
.stat-card .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; color: #fff; }

.table-ses { font-size: .87rem; }
.table-ses > :not(caption) > * > * { padding: .8rem .75rem; }
.table-ses thead th {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
    color: var(--ses-muted); border-bottom: 2px solid var(--ses-line); font-weight: 700;
}

.status-pill { border-radius: 999px; padding: .25rem .7rem; font-size: .72rem; font-weight: 700; display: inline-block; }
.status-pending { background: #fff3d6; color: #9a6b00; }
.status-paid { background: #d9f5ee; color: #12735d; }
.status-preparing { background: #e4ecfd; color: #2b52a8; }
.status-shipped { background: #e6e0f5; color: var(--ses-purple); }
.status-completed { background: #d9f5ee; color: #0f6b56; }
.status-cancelled { background: #fde2e6; color: #a41930; }
.status-refunded { background: #ececf3; color: #55576e; }

@media (max-width: 991.98px) {
    .admin-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-content { margin-left: 0; }
}

/* ------------------------------------------------------------------ utils */

.empty-state { text-align: center; padding: 3.5rem 1rem; }
.empty-state i { font-size: 3rem; color: var(--ses-line); margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.1rem; }
.empty-state p { color: var(--ses-muted); font-size: .9rem; }

.page-head { background: var(--ses-navy); color: #fff; padding: 2.4rem 0; position: relative; overflow: hidden; }
.page-head::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(700px 300px at 8% 0%, rgba(102, 45, 145, .8), transparent 62%),
                radial-gradient(600px 300px at 95% 100%, rgba(236, 22, 127, .5), transparent 60%);
}
.page-head > * { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(1.4rem, 3vw, 2.1rem); margin: 0; }
.page-head .breadcrumb { margin: .4rem 0 0; font-size: .8rem; }
.page-head .breadcrumb a { color: rgba(255,255,255,.72); }
.page-head .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }
.page-head .breadcrumb-item.active { color: var(--ses-amber); }

.filter-panel { background: #fff; border-radius: var(--ses-radius); box-shadow: var(--ses-shadow); padding: 1.25rem; }
.filter-panel h6 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ses-muted); font-weight: 700; margin: 1.1rem 0 .6rem; }
.filter-panel h6:first-child { margin-top: 0; }

.pagination .page-link { border: 0; border-radius: 999px; margin: 0 .15rem; color: var(--ses-ink); font-size: .85rem; font-weight: 600; }
.pagination .active .page-link { background: var(--ses-gradient); color: #fff; }

.alert { border: 0; border-radius: var(--ses-radius-sm); font-size: .88rem; }
.alert-success { background: #d9f5ee; color: #12735d; }
.alert-danger { background: #fde2e6; color: #a41930; }
.alert-info { background: #e4ecfd; color: #2b52a8; }
.alert-warning { background: #fff3d6; color: #8a5f00; }
