@import url("reset.css");
@import url("online-fonts.css");
@import url("settings.css");
@import url("onlinedialog.css");
@import url("custom-elements.css");
@import url("form.css");

/*================== Global variables & Typography ==================*/
:root {
    --font-size: 15px;

    --cream-1: #fff5ef;
    --cream-2: #ffe4d1;
    --peach: #fbe0cd;
    --orange: #f2814a;
    --orange-dark: #e56a34;
    --ink: #20223a;
    --ink-soft: #4a4d63;
    --navy-logo: #2b2a6b;
    --line: #e7d3c2;
    --blue-1: #dceaf5;
    --blue-2: #a9c9e6;
    --white: #ffffff;
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(60, 40, 20, .08);
}


/*================== STORE / PRODUCT DETAIL PAGE STYLES ==================*/
.sayfa-resim .resim {
    width: 12em;
    height: 18em;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/*/================== Main ==================/*/

*, body {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;

}

body {
    color: var(--ink);
    background-color: var(--cream-1);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
section>header,
carousel-view>header,
h1.kitaplar {
    font-family:'Fraunces',serif;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
}

main,
.content-wrapper,
#filterbar {
    flex: 1;
    scroll-margin-top: 6.5em;
}

fragment-container, .list, .section, #content {
    scroll-margin-top: 6.5em;
}

strong,
b {
    font-weight: bold;
}

em,
i {
    font-style: italic;
}


a,
a:visited {
    transition: all 0.5s;
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: var(--orange-dark);

}

button {
    font-family: inherit;
    cursor: pointer;
}

img,
svg {
    display: block;
}

hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin: 1em 0;
}

hr.bold {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    margin: 1em 0;
}

/*============== COLOUR AND IMAGE UTILITIES ==============*/
.colorize {
    filter: hue-rotate(var(--main-hue-deg)) grayscale(0.25) opacity(0.85);
}

.colorize:hover {
    filter: hue-rotate(var(--main-hue-deg));
}

.colorize-disable {
    filter: hue-rotate(var(--main-hue-deg)) grayscale(0.85) opacity(0.85);
}

.colorize-disable:hover {
    filter: hue-rotate(var(--main-hue-deg)) grayscale(0.85) opacity(0.85);
}

/* MAIN APPLICATION GRID LAYOUT & HEADER STRUCTURE
   Defines the overall page grid container, header grid bar, and inner view headers*/

layout {
    display: grid;

    height: 100%;

    grid-template-rows: auto 1fr;
}

layout>header {
    z-index: 60;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 5em;
    margin: 0;
    padding: 0.5em 3em;
    background-color: white;
    color: var(--ink);
    border-bottom: 1px solid #e7d3c2;
    gap: 1em;
}

layout>header .right {
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
}

layout>header .vsplit {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 2em;
}

div.logo {
    display: flex;
    align-items: center;
    height: 4em;
    margin-right: 1em;
}

div.logo a, div.logo img {
    height: 100%;
    display: block;
}


main>.header {
    margin: 1em;

    text-align: center;
}

main>.header a.trail {
    font-size: 100%;
}

main>.header h1 {
    display: inline-block;

    color: #333;

    font-size: 100%;
    font-weight: bold;
}

layout>header .right {
    display: flex;
}

layout>.boxed-content {
    z-index: 1;

}

.vsplit {
    display: flex;
    flex-direction: column;
}

h1.kitaplar, .section>header {
    box-sizing: border-box;
    font-size: 1.5rem;
    font-weight: bold;
    width: 100%;
    max-width: min(94rem, 100vw);
    margin: 2em auto 1em auto;
    padding: 0;
}

/* ============ HEADER COMPONENTS: SEARCG BAR, LOGIN BOX ============ */
.site-header {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 18px 48px;
    background: white;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 60;
    flex-wrap: wrap;
}

div.search {
    display: flex;
    align-items: center;
    width: 24rem;
    height: 2.5rem;
    background-color: #F8EFEA;
    border-radius: 20px;
    padding: 0.2em 0.5rem 0 1rem;
    margin-top: 0;
    border: none;
}

div.search>form {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
}

div.search>form>input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    color: #333;
    min-width: 0;
}


div.search>form>input[type="submit"] {
    background-color: transparent;
    border: none;
    color: #e56b38;
    font-weight: bold;
    cursor: pointer;
    padding: 0 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}
div.search>form>input[type="submit"]:hover {
    color: #b84a1d;
}

div.search>form>input[type="text"]::placeholder {
    color: var(--ink-soft, #666);
    font-size: 90%;
    font-style: italic;

}

form.search-form {
    display: flex;
    align-items: center;
    gap: 0.5em;
    width: 100%;
    max-width: 450px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0.5em;
    padding: 0.5em 1em;
    background-color: #fce5d8;
    border-radius: 24px;
    border: none;
}

.search-input-wrapper svg.search-icon {
    flex-shrink: 0;
}

.search-input-wrapper input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #333;
}

.search-input-wrapper input::placeholder {
    color: #b08d79;
}


.search-submit-btn {
    padding: 0.55em 1.25em;
    border: none;
    border-radius: 24px;
    background-color: #e56b38;
    color: white;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-submit-btn:hover {
    background-color: #b84a1d;
}


/* ============ user login summary box ============ */
.login-box-combined {
    display: flex;
    align-items: center;
    border: none;
    border-radius: 0.5rem;
    font-size: 100%;
    gap: 1.5rem;
}

/* Cart */
.cart-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 0.5rem;
}
.cart-wrapper .cart-icon {
    height: 2.2rem;
    transition: transform 0.2s;
    opacity: 0.8;
}
.cart-wrapper:hover .cart-icon {
    transform: scale(1.1);
    opacity: 1;
}
.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #e56b38;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: 'Poppins', sans-serif;
}

/* User Dropdown Trigger */
.user-menu-wrapper {
    display: flex;
    align-items: center;
}
.user-dropdown {
    position: relative;
}
.user-trigger {
    display: flex;
    align-items: center;
    gap: 0.5em;
    cursor: pointer;
    color: #4a5568;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.user-trigger:hover {
    color: #e56b38;
    text-decoration: none;
}
.user-trigger .user-icon {
    height: 2.2rem;
    opacity: 0.75;
}
.user-trigger .chevron {
    font-size: 0.8em;
    transition: transform 0.2s;
}
.user-dropdown:hover .chevron {
    transform: rotate(180deg);
}
.user-trigger .user-name {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

/* Dropdown Content */
.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 100;
    border: 1px solid rgba(0,0,0,0.05);
}

.user-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

/* Style the dynamic nav links */
.dropdown-content .musterilinkleri ul,
.dropdown-content .simple-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.dropdown-content li {
    margin: 0;
    padding: 0;
}
.dropdown-content li a,
.dropdown-content .logout-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.6rem 1.25rem !important;
    color: #4a5568 !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    height: auto !important;
    position: static !important;
    white-space: nowrap !important;
    transition: background-color 0.2s, color 0.2s;
    font-family: 'Poppins', sans-serif;
}

.dropdown-content li a img {
    position: static !important;
    height: 1.25rem !important;
    width: 1.25rem !important;
    object-fit: contain !important;
    opacity: 0.75 !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.dropdown-content li a span {
    margin: 0 !important;
    display: inline !important;
}

.dropdown-content li a:hover,
.dropdown-content .logout-link:hover {
    background-color: #F8EFEA !important;
    color: #e56b38 !important;
    text-decoration: none !important;
}

/* Logout special styling */
.logout-wrapper {
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: 0.3rem;
    padding-top: 0.3rem;
}
.logout-wrapper .logout-link {
    color: #c53030 !important;
}

/* Hide username on mobile to save space */
@media only screen and (max-width: 970px) {
    .user-trigger .user-name,
    .user-trigger .chevron {
        display: none;
    }
}

/* ============ logo ============ */
div.logo {
    display: inline-block;

    width: 14em;
    height: 5em;
    margin-top: auto;

    background-image: url("../images/logo.svg");
    background-repeat: no-repeat;
    background-position: center left;
    background-size: contain;
}

div.logo a {
    display: block;

    width: 100%;
    height: 100%;
}

/*============= NAVIGATION BAR AND BUTTON LINKS =================*/


a.satinal {
    display: inline-flex;

    padding-right: 0.3em;
    padding-left: 0.3em;

    transition: all 0.5s;
    text-decoration: none;

    color: var(--orange-dark);
    font-weight: 500;

}

a.satinal:hover {
    padding-right: 0;
    padding-left: 0.6em;

    text-decoration: none;

    border-left-color: #333;
}

nav-menu {
    display: none;

    cursor: pointer;
}

nav.top {
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;    
    row-gap: 0.8rem;
    column-gap: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    flex-direction: row;
}

nav.top ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0.5rem;
    column-gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    justify-content: center;
}

nav.top li {
    display: inline-block;
    margin: 0;
}

nav.top a,
nav.top a:visited {
    color: #565a63;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
    transition: color 0.2s, border-bottom-color 0.2s;
}

nav.top a:hover, nav.top a.active {
    color: #e56b38;
    border-bottom-color: #e56b38;
    text-decoration: none;
}

.filler {
    flex-basis: 0;
    flex-grow: 1;
}

.banner {
    display: block;
    overflow: hidden;

    width: 100%;
    height: 17.5em;
    margin: 1em 0em;
    padding: 0.5em 1em;

    background-color: white;
}

nav.categories {
    display: flex;
    align-items: left;
    flex-direction: wrap;
    gap: 1.5rem;
    margin-top: 0.5em;
}

nav.categories a {
    display: inline-block;
    margin-right: 1em;
    align-items: left;
    gap: 4px;
    padding: 6px 2px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
}

nav.categories a:hover {
    color: var(--orange-dark);
    border-bottom-color: var(--orange-dark);
}

nav.categories a:hover, nav.categories a.active {
    color: #e56b38;
    border-bottom-color: #e56b38;
    text-decoration: none;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
}

.book-grid.home-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
    overflow-x: visible;
    padding-bottom: 8px;
}

/* Mobile responsiveness for book cards */
@media (max-width: 900px) {
    .book-grid,
    .book-grid.home-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 700px) {
    .book-grid,
    .book-grid.home-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 550px) {
    .book-grid,
    .book-grid.home-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 380px) {
    .book-grid,
    .book-grid.home-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.book-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.cover {
    /* keep aspect ratio but cap maximum height so covers don't become too large */
    aspect-ratio: 3/4.3;
    width: 100%;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    transition: transform .18s ease;
}

.cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover .cov-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 6px 10px;
}

.cover .cov-title {
    position: relative;
    z-index: 1;
    padding: 8px 10px;
}

.book-card:hover .cover {
    transform: translateY(-4px);
}

.cover .cov-tag {
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
    opacity: .75;
}

.cover .cov-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.15;
}

.cover .cov-shape {
    position: absolute;
    border-radius: 50%;
    opacity: .5;
}

.book-meta .cat {
    font-size: 11.5px;
    color: var(--ink-soft);
}

.book-meta .title {
    font-size: 14.5px;
    font-weight: 600;
    margin-top: 2px;
}

.book-meta .author {
    font-size: 12.5px;
    color: var(--ink-soft);
}

.book-meta .price {
    font-size: 14px;
    font-weight: 700;
    margin-top: 4px;
}

.listesecimi {
    display: flex !important;
    margin-bottom: 1em !important; 
    flex-direction: row;
    align-items: center;
}

.listesecimi input {
    flex: 0 0 3em !important;
    margin-bottom: 0 !important;   
}

.listesecimi span {
    flex: 1 1 0 !important;
    font-weight: normal;
}


/* ===================Türler page cards ===================*/
.turliste {
    display: grid;

    width: 100%;
    margin: 1em 0em;
    padding: 1em;

    border-top: 0.15em solid #c0774e;
    border-bottom: 0.15em solid #c0774e;
    background-color: white;

    grid-template-columns: repeat(auto-fill, minmax(25em, 1fr));
    gap: 0.75em;
}

div.turliste li {
    margin-bottom: 0.2em;
    margin-left: 1em;

    list-style: disc;
}

.box {
    padding: 0.5em;

    border: var(--border-thin) solid #c0774e;
    border-radius: var(--roundness);
}

div.turliste .title {
    display: flex;
    align-items: center;

    font-size: 100%;
    font-weight: bold;
}

.alt.liste ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.25rem;
}

.alt.liste li a {
    color: var(--ink-soft);
    font-size: 0.96rem;
    transition: color 0.18s ease;
}

.alt.liste li a:hover {
    color: var(--orange-dark);
}


@media (max-width: 840px) {
    .tab-pill {
        flex: 1 1 auto;
        min-width: 150px;
    }
}

/** ============= Kitaplar ================**/
.active,
.active:visited {
    display: inline-block;

    text-decoration: underline;

    color: #333;

    text-decoration-color: #333;
    text-decoration-thickness: 0.12em;
}

.columns {
    display: flex;
}

.list {
    width: 100%;
    margin: 1em 0em;
    box-sizing: border-box;
    width: 100%;
    max-width: min(94rem, 100vw);
    margin: 0 auto;
}


.list>header {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    padding: 0.5em 1em;

    border-top: 1px solid rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.list>header>nav.top {
    text-align: left;
}

.simplelist {
    margin: 0.2em 2em 1em 2em;
}

.simplelist a {
    margin-right: 1em;
}

.list h4 {
    margin: 1rem 1rem -0.5rem 1rem;

    font-weight: bold;
}

.list p {
    margin: 1em;
}



/* =================== Contents ============== */
.vitrinwrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, 15em);
    justify-content: center;
    gap: 1.4em;
    width: 100%;
    max-width: min(94rem, 100vw);
    margin: 1.25em auto 4em auto;
}

/* Mobile responsiveness for vitrin wrapper */
@media (max-width: 550px) {
    .vitrinwrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2em;
        margin: 1.25em 0.5em 4em 0.5em;
    }
}

@media (max-width: 380px) {
    .vitrinwrapper {
        grid-template-columns: 1fr;
        gap: 1.2em;
        margin: 1.25em 0.5em 4em 0.5em;
    }
}

carousel-view>header,
header.list,
h1.kitaplar
 {
    font-size: 1.5rem;
    font-weight: bold;
    width: 100%;
    max-width: min(94rem, 100vw);
    margin: 0.5em auto 1.25em auto;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1em;
}

carousel-view>header a.view-all,
carousel-view>header .view-all a,
h1.kitaplar a.view-all,
h1.kitaplar .view-all a
{
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--orange-dark);
    text-decoration: none;
    letter-spacing: normal;
    white-space: nowrap;
}

carousel-view>header a.view-all:hover,
carousel-view>header .view-all a:hover,
h1.kitaplar a.view-all:hover,
h1.kitaplar .view-all a:hover {
    text-decoration: underline;
}

carousel-view {
    width: 100%;
    max-width: min(94rem, 100vw);
    margin: 0.5em auto 5em auto;
}
carousel-view:has(+ carousel-view) {
    margin-bottom: 1.25em;
}

carousel-view .kitap-grid, .vitrinwrapper>.kitap-grid {
    display: contents;
}

h1.kitaplar {
    padding-inline: 1rem;
}

hr.kitaplar {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    margin: 1em auto 2em auto;
    padding-inline: 1rem;
    max-width: min(94rem, 100vw);
}

.kitap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 15em);
    justify-content: center;
    gap: 1.4em;
    width: 100%;
    max-width: min(94rem, 100vw);
    margin: 1.5em auto 0 auto;
}

/* Empty State Styling (when no books are found) */
.kitap-grid:not(:has(.kitap)) {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4em 2em;
    color: var(--ink-soft);
    font-size: 1.1em;
    font-weight: 500;
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin: 2em auto;
    width: 100%;
    max-width: 40em;
}

/* Mobile responsiveness for content grid */
@media (max-width: 550px) {
    .kitap-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2em;
        padding: 0 0.5em;
    }
}

@media (max-width: 380px) {
    .kitap-grid {
        grid-template-columns: 1fr;
        gap: 1.2em;
        padding: 0 0.5em;
    }
}

.kitap {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 17.5em;
}

.kitap .content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.kitap .resim {
    width: 100%;
    aspect-ratio: 3 / 4;
    background-size: cover;
    background-position: center;
}

.kitap .info {
    padding: 0.85em;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    flex: 1;
}

.kitap h1 {
    font-size: 1.15em;
    margin: 0;
    line-height: 1.3;
    color: var(--ink);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.kitap .yazar,
.kitap .yayinevi {
    margin: 0;
    font-size: 0.8em;
    color: var(--ink-soft);
}

.kitap .yayinevi a {
    color: inherit;
}

.kitap .nav {
    margin-top: auto;
}

.kitap .fiyat-link {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5em;
}

.kitap .fiyat-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
}

.kitap .fiyat {
    font-weight: 700;
    line-height: 1.2;
}

.kitap .fiyat .old {
    margin-right: 0.3em;
    color: var(--ink-soft);
    text-decoration: line-through;
    font-size: 0.85em;
    font-weight: 500;
}

.kitap .out-of-stock {
    font-size: 0.75em;
    color: var(--orange-dark);
    font-weight: 600;
}

.kitap nav {
    display: flex;
    gap: 0.5em;
    align-items: center;
}

.kitap nav a.btn-icon {
    color: var(--orange-dark);
    text-decoration: none;
    padding: 0.5em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(242, 129, 74, 0.08);
    transition: all 0.2s ease;
}

.kitap nav a.btn-icon svg {
    width: 1.25em;
    height: 1.25em;
}

.kitap nav a.btn-icon:hover {
    background-color: var(--orange-dark);
    color: white;
    transform: scale(1.05);
}

/* Modern Toggle Switch styling for checkboxes */
label.toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--ink-soft);
    font-weight: 500;
}

label.toggle input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 2.5em !important;
    height: 1.2em !important;
    min-width: 2.5em !important;
    min-height: 1.2em !important;
    max-width: 2.5em !important;
    max-height: 1.2em !important;
    background: rgba(0, 0, 0, 0.15) !important;
    border-radius: 2em !important;
    position: relative;
    outline: none;
    cursor: pointer;
    transition: background 0.3s ease;
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

label.toggle input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 0.15em !important;
    left: 0.15em !important;
    width: 0.9em !important;
    height: 0.9em !important;
    background: white !important;
    border-radius: 50% !important;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
    border: none !important;
}

label.toggle input[type="checkbox"]:checked {
    background: var(--orange-dark) !important;
}

label.toggle input[type="checkbox"]:checked::after {
    transform: translateX(1.3em) !important;
}


@media (max-width: 55em) {
    .kitap .resim {
        min-height: 16em;
    }
}

@media (max-width: 35em) {
    .contents {
        grid-template-columns: 1fr;
        padding: 0 0.5em;
    }

    .tab-row,
    .tabs-row {
        justify-content: center;
    }
}

/* ============ footer ============ */
footer {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 2.5rem 2rem 2rem 2rem;
    margin: 2rem 0 0 0;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 960px;
    margin: 0 auto;
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

footer h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.75rem;
    text-align: center;
}

footer div.contact,
footer div.address,
footer nav {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    width: 100%;
}

footer div.contact {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #718096;
}

footer p {
    margin: 0 0 0.35em 0;
    line-height: 1.5;
    color: #718096;
    font-size: 0.85rem;
}

footer a,
footer a:visited {
    color: #4a5568;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #e56b38;
    text-decoration: none;
}

footer div.contact a {
    color: #e56b38;
    font-weight: 500;
}

footer div.contact a:hover {
    color: #b84a1d;
    text-decoration: underline;
}

footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: center;
}

footer li {
    margin-bottom: 0.25em;
}

footer>.copyright,
footer>div:last-child,
footer>p:last-child {
    text-align: center;
    color: #a0aec0;
    font-size: 0.8rem;
    line-height: 1.5;
}

@media only screen and (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    footer {
        padding: 2rem 1rem 1rem;
    }
}

/*============== MEDIA QUERIES ===========*/


@media only screen and (max-width: 1250px) {
    div.search {
        min-width: 12em;
    }

    .login-links {
        display: none;
    }
}

@media only screen and (max-width: 1162px) {
    .banner {
        height: 34em;
    }

    .login-box-combined p {
        white-space: unset;
    }
}

@media only screen and (max-width: 970px) {
    layout>header {
        display: grid;

        grid-template-columns: auto 1fr;
    }

    form,
    [dialog="yes"] form {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    }

    .login-box-combined {
        border: none;
        border-radius: 0;
        margin-bottom: 0;
    }

    nav-menu {
        display: block;

        padding: 0.2em 0.3em 0.1em 0.3em;

        border: var(--border) solid hsl(var(--main-hue), 50%, 20%);
        border-radius: var(--roundness);
        background-color: white;

        font-size: 1.25rem;
        font-weight: bold;
    }

    nav-menu.inline {
        display: inline-block;

        margin-right: 1rem;
        padding: 0;

        border: none;
        background: unset;

        font-size: 1.5rem;
    }

    nav#topmenu {
        transform: scale(1.2) translateX(-50%);
    }

    nav#topmenu,
    .gelismisarama,
    .musterisolmenu {
        position: absolute;
        left: 50%;
        top: 5em;

        display: none;

        box-sizing: border-box;
        width: min(100vw, 20em);
        margin-top: 1em !important;
        padding: var(--spacing);

        transform: translateX(-50%);
        text-align: center;

        border: var(--border) solid hsl(var(--main-hue), 50%, 20%);
        border-radius: var(--roundness);
        background-color: white;
        box-shadow: var(--shadow-offset) var(--shadow-offset) var(--shadow-smoothness) hsla(0, 0%, 0%, 0.5);
    }

    nav.top ul {
        display: grid;
    }

    .musterisolmenu {
        text-align: unset;
    }


    nav#topmenu li:not(:first-child)::before {
        display: none;
    }

    nav#topmenu li {
        display: block;

        margin: 1em;
    }

    layout>header {
        height: 6em;
    }

    div.logo {
        height: 5em;
    }
}


@media only screen and (max-width: 500px) {
    div.search {
        width: 100%;
        min-width: 12rem;
    }

    .login-box-combined>p {
        font-size: 12px
    }
}

@media only screen and (max-width: 450px) {
    .login-box-combined div.info {
        display: none;
    }
}

@media only screen and (max-width: 400px) {
    :root {
        --font-size: 12px
    }

    div.search {
        width: 100%;
        min-width: unset;
    }

    .login-box-combined div.info {
        display: unset;
    }

    .login-box-combined p {
        display: unset;
    }

    .login-box-combined {
        margin-bottom: 0.1em;
    }

    div.search>form>input[type="text"] {
        width: calc(100% - 4em);
    }
}

@media only screen and (max-width: 290px) {

    .sayfa-resim div.resim {
        width: 9em;
        height: 12em;
    }

    .sayfa-resim {
        margin: 0.5em;
    }

}

@media only screen and (max-width: 370px) {
    .login-box-combined div.info {
        display: none;
    }

    .login-box-combined {
        margin-bottom: 0;
    }
}

@media only screen and (min-width: 2500px) {
    :root {
        --font-size: 18px;
    }
}

@media only screen and (min-width: 3000px) {
    :root {
        --font-size: 22px;
    }
}

@media only screen and (min-width: 3500px) {
    :root {
        --font-size: 27px;
    }
}

@media only screen and (min-width: 5500px) {
    :root {
        --font-size: 38px;
    }
}

@media only screen and (min-width: 7000px) {
    :root {
        --font-size: 46px;
    }
}

@media only screen and (min-width: 9000px) {
    :root {
        --font-size: 60px;
    }
}

@media (hover: none) {
    footer nav li {
        margin-bottom: 0.5em;
    }

    nav.categories {
        margin-top: 1em;
    }
}


table.details {
    text-align: left;
}


table.details th,
table.details td {
    padding: 0.4em 0.2em;
}

table.details th {
    padding-right: 1em;

    font-weight: bold;
}

table.details th::after {
    content: ": ";
}

.dialog .notindialog {
    display: none;
}

nav.siparis {
    margin: 1em;
    text-align: right;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6em 1.2em;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white) !important;
    background-color: var(--orange-dark);
    border: none;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(230, 126, 34, 0.2);
}

.button+.button {
    margin-left: 1em;
}

.button:hover {
    text-decoration: none;
    background-color: #d35400; /* slightly darker orange */
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
    transform: translateY(-1px);
    color: var(--white) !important;
}

/* For secondary buttons or outlined ones */
.button.outline {
    background-color: transparent;
    border: 1px solid var(--orange-dark);
    color: var(--orange-dark) !important;
    box-shadow: none;
}

.button.outline:hover {
    background-color: rgba(242, 129, 74, 0.05);
}

/* Address Card Grid */
/* Bottom Links in Details Pages */
nav.musteribottom {
    position: relative !important;
    background: transparent !important;
    padding: 2em 0 0 0 !important;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: 2em;
}

nav.musteribottom:not(:has(a)) {
    display: none;
}


nav[style*="bottom:0"] .links,
.contents > .links,
.contents > .actions {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    margin-top: 1em;
}

nav[style*="bottom:0"] a.page-link,
.contents > .links a.page-link,
.contents > .actions a.page-link,
.contents > a.page-link,
.customer-content nav .links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6em 1.2em;
    border-radius: var(--radius-md);
    background-color: transparent;
    border: 1px solid var(--orange-dark);
    color: var(--orange-dark);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    font-size: 0.95rem;
}

nav[style*="bottom:0"] a.page-link:hover,
.contents > .links a.page-link:hover,
.contents > .actions a.page-link:hover,
.contents > a.page-link:hover,
.customer-content nav .links a:hover {
    background-color: rgba(242, 129, 74, 0.05);
    transform: translateY(-1px);
}

span.link-sep {
    display: inline-block;
    width: 1em;
    height: 1.2em;
    color: transparent;
}

.adres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5em;
    margin-top: 1em;
}

/* Individual Address Card */
.adres-grid > div,
.adres-grid > .address {
    background-color: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-lg);
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: auto !important; /* Override hardcoded heights */
    min-height: 14em;
}

.adres-grid > div:hover,
.adres-grid > .address:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.12);
}

.adres-grid h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin-top: 0;
    margin-bottom: 0.8em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.adres-grid p {
    font-size: 0.95rem;
    color: var(--ink-soft);
    margin: 0 0 0.4em 0;
    line-height: 1.4;
}

.adres-grid p:last-of-type {
    margin-top: auto; /* push action links to the bottom */
    padding-top: 1em;
    display: flex;
    gap: 1em;
    align-items: center;
}

.adres-grid p:last-of-type a {
    color: var(--orange-dark);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.adres-grid p:last-of-type a:hover {
    text-decoration: underline;
}

/* The "Yeni Adres" (Add New) Card */
.adres-grid .address {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.adres-grid .address:hover {
    transform: none;
    box-shadow: none;
}

.adres-grid .address a[add] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-decoration: none;
    color: var(--ink-soft);
    border: 2px dashed rgba(0,0,0,0.15);
    border-radius: var(--radius-lg);
    background-color: #fafbfc;
    transition: all 0.2s ease;
}

.adres-grid .address a[add]:hover {
    background-color: var(--white);
    border-color: var(--orange-dark);
    color: var(--orange-dark);
}

.adres-grid .address a[add] div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

.adres-grid .address a[add] h4 {
    border: none;
    margin: 0;
    padding: 0;
    font-size: 1.1rem;
    color: inherit;
}

.adres-grid .address a[add] img {
    margin: 0 !important; /* Override hardcoded inline margins */
    opacity: 0.5;
    transition: opacity 0.2s ease;
}
.adres-grid .address a[add]:hover img {
    opacity: 1;
}

.split-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20em, 1fr));
    align-items: start;
}

.sep {
    border-top: 0.15em solid #c0774e;
    padding-top: 0.5em
}

.alternate> :nth-child(2n) {
    background-color: #c0784e20;
}

.siparisliste {
    display: flex;
    flex-wrap: wrap;
}

.siparisliste>div {
    padding: 0.3em 1em;
}

.simplelist {
    text-align: center;
    margin: 2em;
}

.simplelist:not(:first-child) {
    margin-top: 2em;
}

.simplelist a,
.simplelist a:visited {
    font-weight: bold;
    color: darkgreen;
}

a.detayal {
    border: 0.17em solid darkgreen !important;
    border-radius: 0.5em;
    font-weight: bold;
    padding: 0.5em 2em !important;
}

div.yorumlar {
    margin-top: 2em;
}

div.yorumlar>div>div {
    margin-bottom: 2em;
}

.star-rating {
    --star-size: 1.5em;

    display: inline-block;
    position: relative;
    width: calc(5 * var(--star-size));
    height: var(--star-size);

    background: url('../images/star-empty.svg') repeat-x;
    background-size: var(--star-size) var(--star-size);
}

.star-rating::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;

    background: url('../images/star-full.svg') repeat-x;
    background-size: var(--star-size) var(--star-size);

    width: calc(var(--full-stars, 0) * var(--star-size));
}

.star-rating::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;

    left: calc(var(--full-stars, 0) * var(--star-size));
    width: var(--star-size);

    background: url('../images/star-half.svg') no-repeat;
    background-size: var(--star-size) var(--star-size);

    display: var(--show-half, none);
}

.star-rating {
    filter: opacity(0.8);
    transition: filter 0.5s;
}

.star-rating:hover {
    filter: opacity(1.0);
}

.star-rating[data-rating="0"] {
    filter: opacity(0.5);
}

.star-rating[data-rating="0.5"] {
    --full-stars: 0;
    --show-half: block;
}

.star-rating[data-rating="1"] {
    --full-stars: 1;
}

.star-rating[data-rating="1.5"] {
    --full-stars: 1;
    --show-half: block;
}

.star-rating[data-rating="2"] {
    --full-stars: 2;
}

.star-rating[data-rating="2.5"] {
    --full-stars: 2;
    --show-half: block;
}

.star-rating[data-rating="3"] {
    --full-stars: 3;
}

.star-rating[data-rating="3.5"] {
    --full-stars: 3;
    --show-half: block;
}

.star-rating[data-rating="4"] {
    --full-stars: 4;
}

.star-rating[data-rating="4.5"] {
    --full-stars: 4;
    --show-half: block;
}

.star-rating[data-rating="5"] {
    --full-stars: 5;
}

/* ==========================================================================
   MINI CART DIALOG (MINISEPET)
   ========================================================================== */

.minisepet {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 1em;
    row-gap: 0.4em;
    margin: 0.5em 0;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.88rem;
    padding-right: 0.25em;
}

.minisepet > div {
    padding: 0.35em 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.minisepet-item-title {
    color: var(--ink);
    font-weight: 500;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.minisepet-item-qty {
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
    text-align: right;
    align-self: center;
}

.success-message {
    background-color: #edf7ed;
    color: #1e4620;
    border: 1px solid #c8e6c9;
    border-radius: var(--radius-sm);
    padding: 0.5em 0.8em;
    margin: 0 0 0.8em 0;
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.minisepet-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5em;
    margin-top: 0.8em;
    padding-top: 0.8em;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.minisepet-button {
    font-size: 0.85rem !important;
    padding: 0.45em 1em !important;
    margin: 0 !important;
    white-space: nowrap;
}

/* Compact dialog container when showing mini cart preview */
.dialog:has(.minisepet) {
    padding: 1.25rem 1.5rem;
    max-width: 360px;
    width: auto;
}

.dialog:has(.minisepet) > div:first-child {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}
/*================== Pagination (.simplelist) ==================*/
.simplelist {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5em;
    margin: 2.5rem auto;
    padding: 0 1em;
}

.simplelist:empty {
    display: none;
}

.simplelist a,
.simplelist a:visited {
    color: var(--ink) !important;
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5em 1em;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    font-weight: 500 !important;
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 0 !important;
}

.simplelist a:hover {
    color: var(--orange-dark) !important;
    border-color: var(--orange-dark);
    background-color: rgba(242, 129, 74, 0.05);
}

/* ==========================================================================
   CUSTOMER LAYOUT (MÜŞTERİ)
   ========================================================================== */

.customer-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5em;
    align-items: start;
    width: 100%;
    max-width: min(94rem, 100vw);
    margin: 2em auto;
}

.customer-main {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    padding: 2.5em;
    position: relative;
    min-height: 50vh;
    min-width: 0; /* Prevents wide tables from blowing out the CSS grid column */
}

.customer-content {
    overflow-x: auto; /* Allows wide tables to scroll internally */
    width: 100%;
}

.musteribaslik {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 0.5em;
}

/* Sidebar Menu Wrapper */
.musterisolmenu {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    padding: 2em 1.5em;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    position: sticky;
    top: 7em; /* Makes the sidebar sticky on desktop */
}

/* User Info Block */
.musteribilgisi {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.musteribilgisi img.user {
    width: 6em;
    height: 6em;
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
    margin-bottom: -0.3em;
}

.musteribilgisi div {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}

/* Sidebar Links (Scoped to prevent breaking the top login dropdown) */
.musterisolmenu .musterilinkleri {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

.musterisolmenu .musterilinkleri a {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 0.9em 1.2em;
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.musterisolmenu .musterilinkleri a:hover,
.musterisolmenu .musterilinkleri a.active {
    background-color: var(--white);
    color: var(--orange-dark);
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transform: translateY(-1px);
}

.musterisolmenu .musterilinkleri a img {
    width: 1.3em;
    height: 1.3em;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.musterisolmenu .musterilinkleri a:hover img,
.musterisolmenu .musterilinkleri a.active img {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 970px) {
    .customer-layout {
        grid-template-columns: 1fr;
        padding: 0 1rem; /* Give the card some breathing room from screen edges */
    }

    .musterisolmenu {
        display: none; /* Native toggle handles it */
        position: absolute;
        z-index: 100;
        top: 6em;
        left: 50%;
        transform: translateX(-50%);
        width: 90vw;
        max-width: 300px;
    }

    .customer-main {
        padding: 1.5em 1em;
    }

    .musteribaslik {
        font-size: 1.5rem;
    }
}


.simplelist b, 
.simplelist strong,
.simplelist span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5em 1em;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    background-color: var(--orange-dark);
    color: white;
    font-weight: 600;
}


/* ==========================================================================
   ORDERS / PURCHASES (ALIŞVERİŞLERİM)
   ========================================================================== */

.satis-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-md);
    margin-bottom: 1.5em;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.order-header {
    background-color: #fbf5ed; /* Theme beige */
    padding: 1.2em 1.5em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    font-size: 0.95rem;
    color: var(--ink);
}

.order-info,
.order-totals {
    display: flex;
    gap: 1.5em;
    align-items: center;
}

.order-code strong,
.order-source strong,
.order-status strong,
.order-price strong {
    color: var(--ink-soft);
    font-weight: 500;
    margin-right: 0.3em;
}

.order-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--orange-dark);
}

.order-status {
    padding: 0.3em 0.8em;
    background-color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: 1px solid rgba(0,0,0,0.08);
}

.order-delivery {
    padding: 0.8em 1.5em;
    background-color: #fafbfc;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.order-delivery strong {
    color: var(--ink);
    margin-right: 0.5em;
}

.order-items {
    padding: 0;
    margin: 0;
}

.siparisliste {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 1.2em 1.5em;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    gap: 1em;
}

/* ==========================================================================
   CART (SEPET)
   ========================================================================== */

.sepet {
    display: grid;
    grid-template-columns: 2fr 2fr 100px 120px 100px;
    align-items: center;
    gap: 1em 1.5em;
    width: 100%;
}

.sepet > div {
    padding: 0.5em 0;
}

/* Column formatting */
.sepet > .fiyat {
    font-weight: 600;
    color: var(--orange-dark);
}

.sepet .item-title {
    font-weight: 600;
    color: var(--ink);
}

.sepet a {
    color: var(--ink);
    text-decoration: none;
}

.sepet a:hover {
    color: var(--orange-dark);
}

/* The item quantity column wrapper (4th column in every 5-item row) */
.sepet > div:nth-child(5n+4) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-weight: bold;
}

.sepet img.inline-icon {
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
}

.sepet img.inline-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Nested bottom-html totals row */
.sepet > .sepet {
    grid-column: 1 / -1;
    border-top: 2px solid rgba(0,0,0,0.05) !important;
    padding-top: 1em;
    margin-top: 0.5em;
}

@media (max-width: 900px) {
    .sepet {
        grid-template-columns: 1fr;
        gap: 0.5em;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        padding-bottom: 1.5em;
        margin-bottom: 1.5em;
    }
    .sepet > div { padding: 0.2em 0; }
    
    /* 1. Hide the table header on mobile */
    .sepet.title {
        display: none !important;
    }
    
    /* 2. Left align the quantity (Adet) column */
    /* Because each row is its own .sepet, quantity is the 4th child */
    .sepet > div:nth-child(4) {
        justify-content: flex-start !important;
    }
    
    /* 3. Prepend "Toplam: " to the item total price */
    .sepet .fiyat.toplam::before {
        content: "Toplam: ";
        font-weight: normal;
        color: var(--ink-soft);
        margin-right: 0.5em;
    }
    
    /* 4. Fix the bottom Total and Shipping row layout */
    .sepet.kargo,
    .sepet.totals {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        border-top: none !important;
    }
    
    /* 5. Hide all empty divs in sepet on mobile */
    .sepet > div:empty {
        display: none !important;
    }
}

.order-items > :last-child .siparisliste {
    border-bottom: none;
}

/* Alternate row background */
.order-items > :nth-child(even) .siparisliste {
    background-color: rgba(242, 129, 74, 0.03); /* Faint orange */
}

.item-name {
    flex: 3 3 22em;
    font-weight: 600;
}

.item-name a {
    color: var(--ink);
    text-decoration: none;
}
.item-name a:hover {
    color: var(--orange-dark);
    text-decoration: underline;
}

.item-meta {
    flex: 2.5 2.5 20em;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.item-meta a {
    color: var(--ink-soft);
    text-decoration: none;
}
.item-meta a:hover {
    text-decoration: underline;
}

.item-qty {
    flex: 1 1 6em;
    text-align: center;
    font-weight: 500;
    color: var(--ink-soft);
}

.item-price {
    flex: 1 1 8em;
    text-align: right;
    font-weight: 600;
    color: var(--ink);
}

.order-actions {
    padding: 1.2em 1.5em;
    background-color: #fafbfc;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    justify-content: flex-end;
    gap: 1em;
}

.order-section-title {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    margin: 1.5em 0 1em 0;
    padding-bottom: 0.5em;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}

/* Mobile Adjustments for Orders */
@media (max-width: 768px) {
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8em;
    }
    
    .order-info,
    .order-totals {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3em;
    }
    
    .siparisliste {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5em;
    }
    
    .item-name,
    .item-meta,
    .item-qty,
    .item-price {
        flex: 1 1 auto;
        text-align: left;
        width: 100%;
    }
    
    .item-qty,
    .item-price {
        font-size: 0.95rem;
    }
}

/* Global Form Styling (from dialogs) */
form.kayit input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), 
form.kayit textarea, 
form.kayit select,
.dialog form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), 
.dialog form textarea, 
.dialog form select,
.customer-content form textarea,
.customer-content form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.customer-content form select,
form[is="xhr-form"] textarea,
form[is="xhr-form"] input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
form[is="xhr-form"] select {
    border-radius: 0.5rem;
    border: 1px solid #c2dbf8;
    background-color: #e8f0fe;
    padding: 0.6rem 0.8rem;
    box-shadow: none;
    margin-bottom: 0;
    height: auto;
    font-size: 1rem;
    color: var(--ink);
    font-family: inherit;
    box-sizing: border-box;
    max-width: 100%;
}

form.kayit input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus, 
form.kayit textarea:focus, 
form.kayit select:focus,
.dialog form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus, 
.dialog form textarea:focus, 
.dialog form select:focus,
.customer-content form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus,
.customer-content form textarea:focus,
.customer-content form select:focus,
form[is="xhr-form"] input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus,
form[is="xhr-form"] textarea:focus,
form[is="xhr-form"] select:focus {
    border-color: var(--orange-dark);
    outline: none;
    box-shadow: 0 0 0 3px rgba(242, 130, 84, 0.15);
    background-color: #ffffff;
}

form.kayit label,
.dialog form label {
    color: var(--ink);
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    align-self: center; /* Fix for grid vertical alignment */
}

/* Align textarea labels to the top */
form.kayit label:has(+ textarea),
.dialog form label:has(+ textarea) {
    align-self: flex-start;
    padding-top: 0.6rem;
}

/* Let the custom dyna-select override styles be global as well */
form.kayit dyna-select,
.dialog form dyna-select {
    --dynaselect-css: 'onlinedynaselect.css';
}

form.kayit input[type="submit"],
.dialog form input[type="submit"] {
    background-color: var(--orange-dark);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-weight: bold;
    padding: 0.8em 1.5em;
    cursor: pointer;
    text-align: center;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(242, 129, 74, 0.2);
    transition: all 0.2s ease;
    height: auto !important;
    line-height: normal;
    box-sizing: border-box;
}

form.kayit input[type="submit"]:hover,
.dialog form input[type="submit"]:hover {
    background-color: #e57245;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(242, 129, 74, 0.3);
}

form.kayit input[type="submit"]:focus,
.dialog form input[type="submit"]:focus {
    outline: none;
}

form {
    row-gap: 1rem;
}

/* ============ Book Details Page - Hero Section ============ */
.kitap-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: flex-start;
    margin: 2rem auto;
    max-width: min(94rem, 100vw);
    padding: 2rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.kitap-header {
    flex: 0 0 100%;
    margin-bottom: -1rem; /* bring it closer to the content */
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.kitap-header h2 {
    margin: 0;
    color: #2d3748;
    font-size: 1.8rem;
}

.kitap-hero > .sayfa-resim {
    flex: 0 0 auto;
    float: none; /* override online.css */
    margin: 0; /* override online.css */
    display: flex;
    flex-direction: column;
    align-items: center; /* center the content of the left pane */
    gap: 0.5rem;
    max-width: 100%;
}

.kitap-hero > .sayfa-resim > div.resim {
    width: 16em; /* Noticeably larger for modern feel */
    height: 24em;
    border-radius: 0.5rem;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
    margin-bottom: 0.5rem;
    background-size: cover;
    border: none !important; /* Override online.css burlywood border */
    background-color: transparent !important; /* Override online.css */
}

.kitap-hero > .sayfa-resim nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    margin-top: 0.5rem;
}

/* Hide the <br>s the user left in the markup */
.kitap-hero > .sayfa-resim nav br {
    display: none;
}

/* Override online.css link borders */
.kitap-hero > .sayfa-resim nav a {
    border: none !important; /* Fix inherited green border */
    display: block;
    margin: 0;
}

.kitap-hero > .sayfa-resim nav a.detayal {
    background-color: var(--orange-dark);
    color: white;
    text-align: center;
    padding: 0.85em 1em;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
}

.kitap-hero > .sayfa-resim nav a.detayal:hover {
    background-color: #e57245;
    transform: translateY(-2px);
    padding-left: 1em !important; /* Override online.css */
    padding-right: 1em !important;
}

.kitap-hero > .sayfa-resim nav a.page-list {
    background-color: #f7fafc;
    color: #4a5568;
    text-align: center;
    padding: 0.85em 1em;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e2e8f0 !important; /* light gray outline */
    transition: all 0.2s;
}

.kitap-hero > .sayfa-resim nav a.page-list:hover {
    background-color: #edf2f7;
    color: var(--orange-dark);
    padding-left: 1em !important; /* Override online.css */
    padding-right: 1em !important;
}

.kitap-hero > .sayfa-resim nav p {
    text-align: center;
    margin: 0;
    font-weight: 500;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

/* Metadata Info Pane */
.kitap-info {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kitap-info > p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

/* Description Block */
.kitap-info > .kitap-aciklama {
    display: block;
    margin-top: 1rem;
    color: #4a5568;
    line-height: 1.8;
}

/* Prevent inner P tags in aciklama from getting the row layout */
.kitap-info > .kitap-aciklama p {
    margin: 0 0 1em 0;
    display: block;
    border: none;
    padding: 0;
}

.kitap-info > .kitap-aciklama p:empty {
    display: none;
}

.kitap-info > .kitap-aciklama p:last-child {
    margin-bottom: 0;
}

.kitap-info > p strong {
    flex: 0 0 140px;
    color: #718096;
    font-weight: 600;
}

.kitap-info a {
    color: var(--orange-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.kitap-info a:hover {
    color: var(--ink);
    text-decoration: underline;
}

/* Star rating override for the hero */
.kitap-hero .star-rating {
    margin: 0.5rem 0;
}

/* Responsive */
@media only screen and (max-width: 600px) {
    .kitap-hero {
        padding: 1.25rem;
        gap: 1.5rem;
    }
    .kitap-hero > .sayfa-resim {
        width: 100%;
    }
    .kitap-hero > .sayfa-resim > div.resim {
        width: 100%;
        max-width: 16em;
    }
    .kitap-info > p strong {
        flex: 0 0 110px;
    }
}

/* ============ Search Page Layout ============ */
.list.columns {
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    gap: 2rem;
    max-width: min(94em, 100vw);
    margin: 2rem auto;
    padding: 0 1rem;
    align-items: start;
}

/* Sidebar Card */
.section.gelismisarama {
    background-color: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    flex-basis: auto !important; /* Override inline styles */
    min-width: 0 !important;
}

form.arama h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #4a5568;
    border: none;
}

form.arama h4:first-child {
    margin-top: 0;
}

form.arama input:not([type="submit"]):not([type="checkbox"]), 
form.arama select,
form.arama dyna-select {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Fix DynaSelect styling */
form.arama dyna-select {
    --dynaselect-css: 'onlinedynaselect.css';
}

/* Fix Checkboxes */
form.arama label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

form.arama label input[type="checkbox"] {
    width: 1.25rem !important;
    height: 1.25rem !important;
    margin: 0 !important;
    display: block !important;
    flex-shrink: 0;
}

form.arama input[type="submit"] {
    width: 100%;
    margin-top: 1rem;
    background-color: var(--orange-dark);
    color: white;
    border-radius: 0.5rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

/* Main Content Section Titles */
.list.columns fragment-container > h4, .list.columns h4.kitaplar {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    color: #2d3748;
    border-bottom:  1px solid rgba(0, 0, 0, 0.2);
    padding-bottom: 0.5rem;
    margin-top: 0;
}

.list.columns fragment-container .section {
    margin: 1rem;
    line-height: 1.5;
}

/* Author and Category Links (Pill Style) */
.list.columns .section.links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

/* If the h4 is inside the flex container, force it to its own line */
.list.columns .section.links > h4, 
.list.columns fragment-container > h4 {
    flex-basis: 100%;
    margin-bottom: 0.5rem;
}

/* Exclude nav links (pagination) from pill styles */
.list.columns .section.links .section > a {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 2rem; /* creates a pill shape */
    font-size: 0.9rem;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    margin: 0.4rem;
}

.list.columns .section.links .section > a:hover {
    background-color: var(--orange-dark);
    color: #fff;
    border-color: var(--orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(242, 129, 74, 0.15);
}

.list.columns .section.links .simplelist {
    margin: 0.5rem auto 2rem auto;
}

/* Apply book grid to search results */
fragment-container[name="kitaplar"] .contents {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 1.5rem;
}

/* ============ Mobile Header Fixes ============ */
@media only screen and (max-width: 970px) {
    .list.columns {
        grid-template-columns: 1fr !important;
    }

    /* Header Container */
    layout > header {
        display: flex !important;
        flex-direction: row;
        height: auto !important;
        min-height: 5rem;
        padding: 0.5rem !important;
        padding-left: 4.5rem !important; /* Space for the absolute hamburger menu */
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
        position: relative; /* For absolute search */
    }
    
    /* Make logo bigger */
    layout > header .logo {
        height: 4rem !important;
        width: 8rem;
        flex-shrink: 0;
    }
    
    /* Right panel (login + absolute search space) */
    layout > header .right {
        width: auto !important;
        margin-top: 0;
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        padding-right: 3.5rem; /* Space for absolute search icon */
    }
    
    layout > header .right .filler {
        display: none !important;
    }
    
    layout > header .right .vsplit {
        width: auto !important;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Login Box Resurrections */
    .login-box-combined {
        margin-bottom: 0 !important;
        text-align: right;
        margin-right: 1em;
    }
    
    /* Un-hide the login info that online.css hides */
    .login-box-combined div.info,
    .login-box-combined p,
    .login-links {
        display: block !important;
    }
    
    /* Hide username/chevron if logged in, keeping only icon */
    .user-trigger .user-name,
    .user-trigger .chevron {
        display: none !important;
    }
    
    .login-links {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Expandable Search Bar (Icon -> Full Width) */
    div.search {
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        min-width: 0 !important;
        width: 2.75rem !important; /* Start as icon */
        height: 2.75rem !important;
        margin-top: 0 !important;
        box-sizing: border-box;
        background-color: var(--orange-dark) !important;
        border: 1px solid var(--orange-dark) !important;
        border-radius: 2rem !important;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
    }
    
    div.search:focus-within {
        width: calc(100% - 4.5rem) !important; /* Expand but leave hamburger menu visible */
        background-color: #fff !important;
    }
    
    div.search > form {
        display: flex;
        width: 100%;
        height: 100%;
        position: relative;
    }
    
    div.search > form > input[type="text"] {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding-left: 1.25rem !important;
        padding-right: 3rem !important; /* Space for icon */
        border: none !important;
        background: transparent !important;
        opacity: 0;
        transition: opacity 0.2s;
    }
    
    div.search:focus-within > form > input[type="text"] {
        opacity: 1;
    }
    
    /* SVG Search Icon */
    div.search::before {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        width: 2.75rem;
        height: 2.75rem;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
        background-size: 1.25rem;
        background-position: center;
        background-repeat: no-repeat;
        pointer-events: none;
        z-index: 2;
    }
    
    div.search:focus-within::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2814a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    }
    
    div.search > form > input[type="submit"] {
        position: absolute !important;
        right: 0 !important;
        top: 0 !important;
        width: 2.75rem !important;
        height: 2.75rem !important;
        background: transparent !important;
        color: transparent !important; /* Hide "Ara" text */
        border: none !important;
        cursor: pointer;
        z-index: 3;
    }
    
    /* When search is collapsed, ignore clicks on the invisible submit button 
       so the click passes through to the text input, triggering :focus-within */
    div.search:not(:focus-within) > form > input[type="submit"] {
        pointer-events: none !important;
    }
}

/* ============ Mobile Book Grid (2 columns) ============ */
@media only screen and (max-width: 500px) {
    .kitapliste, 
    fragment-container[name="kitaplar"] .contents {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
    }
    
    .kitapliste .kitap .content,
    fragment-container[name="kitaplar"] .contents .kitap .content {
        padding: 0.5rem !important;
    }
    
    .kitapliste .kitap .info h1,
    fragment-container[name="kitaplar"] .contents .kitap .info h1 {
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
    }
}

/* ============ Mobile Swipeable Filters ============ */
@media only screen and (max-width: 970px) {
    .list > header nav.top ul,
    .list > header nav.categories > div {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
        gap: 1.25rem;
        
        /* Force scroll content to start from the left */
        justify-content: flex-start !important;
        text-align: left !important;
        
        /* Hide scrollbars for native swipe feel */
        scrollbar-width: none !important;
    }

    /* Webkit hide scrollbar */
    .list > header nav.top ul::-webkit-scrollbar,
    .list > header nav.categories > div::-webkit-scrollbar {
        display: none !important;
    }

    .list > header nav.top ul li {
        display: inline-block !important;
        flex-shrink: 0;
    }
    
    .list > header nav.top ul li a {
        display: block;
        white-space: nowrap;
        font-size: 1rem !important; /* Normalize font size */
    }
    
    .list > header nav.categories > div > a {
        display: inline-block !important;
        flex-shrink: 0;
        margin-right: 0 !important;
        white-space: nowrap;
        font-size: 1rem !important; /* Normalize font size */
    }
    
    .list > header nav.categories {
        display: block;
        text-align: left !important;
        margin-top: 0;
    }

    label.toggle {
        margin-top: 1em;
    }
    
    .list > header nav.top {
        text-align: left !important;
        display: block;
    }
}

/* ============ Remove Legacy Borders & Backgrounds ============ */
.turliste, .list, .duyuru, .sep {
    border: none !important;
    background-color: transparent !important;
}

/* ============ Announcements (Duyuru Toasts) ============ */
.duyuru {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    max-width: min(94em, 100vw);
    gap: 1rem;
    margin: 1.5rem auto; /* Align vertically with content blocks */
}

.duyuru > div {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.25rem 1rem;
    background-color: var(--white);
    border-left: 4px solid var(--orange-dark);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

/* Title */
.duyuru > div h2 {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    line-height: 1.4;
}

/* Summary (if exists) */
.duyuru > div span {
    grid-column: 1;
    grid-row: 2;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.duyuru > div span:empty {
    display: none;
}

/* 'Devamı' Button */
.duyuru > div a {
    grid-column: 2;
    /* Vertically center across both rows, or single row if span is empty */
    grid-row: 1 / span 2; 
    margin-left: 0 !important; /* Override the inline style the user mentioned */
    color: var(--orange-dark);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(242, 129, 74, 0.1); /* light orange button feel */
    transition: background 0.2s;
}

.duyuru > div a:hover {
    background: rgba(242, 129, 74, 0.2);
}

@media (max-width: 500px) {
    .duyuru {
        margin: 1.5rem 1rem; /* Give sides some breathing room on mobile */
    }
}

/* ============ Custom Pages (.sayfa) ============ */
.sayfa {
    max-width: min(94em, 100vw);
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    min-height: 40vh; /* Ensure the page doesn't look empty if there are only a few lines */
}

.sayfa > h1 {
    margin-top: 0;
    color: #2d3748;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.sayfa .content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    max-width: 80ch; /* Optimal reading width for long text */
}

.sayfa .content p {
    margin-bottom: 1.25em;
}

@media only screen and (max-width: 600px) {
    .sayfa {
        padding: 1.5rem;
        margin: 1rem auto;
        max-width: calc(100vw - 2rem);
    }
}

/* ============ Registration Page (.uye-kayit) ============ */
form.uye-kayit {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: 1rem 1.5rem; /* Reduced spacing */
    align-items: center;
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.space-above {
    margin-top: 1.5rem;
}

/* Informational text at the top - Stack them for reliable layout */
form.uye-kayit > readonly-input {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
}

.nolabel, form .fill-after.nolabel {
    grid-column: 1 / -1;
    grid-column-end: -1;
}

/* Submit button spans the entire bottom row */
form.uye-kayit > input[type="submit"] {
    grid-column: 1 / -1;
    justify-self: center;
    min-width: 250px;
    margin-top: 1rem;
    padding: 0.85em 2em;
    font-size: 1.15rem;
}

/* Hide any stray hidden inputs from messing with the grid */
form.uye-kayit > input[type="hidden"] {
    display: none !important;
}

/* Fix checkbox alignment */
form.uye-kayit > input[type="checkbox"] {
    justify-self: start;
    width: auto !important;
    margin: 0;
}

/* On smaller screens, fall back to a single column of label/input pairs */
@media only screen and (max-width: 768px) {
    form.uye-kayit {
        grid-template-columns: max-content 1fr;
        padding: 1.5rem;
    }
}

/* ============ Global Page Header (.page-header) ============ */
.page-header {
    max-width: min(94em, 100vw);
    margin: 2rem auto 1rem;
    padding: 0 1rem;
}

.page-header .breadcrumb {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

.page-header .breadcrumb a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s;
}

.page-header .breadcrumb a:hover {
    color: var(--orange-dark);
}

.page-header .breadcrumb .separator {
    margin: 0 0.5rem;
    color: #cbd5e0;
}

.page-header h1 {
    margin: 0;
    color: #2d3748;
    font-size: 2rem;
}

.turliste {
    max-width: min(94em, 100vw);
    margin: 0 auto 3rem;
    padding: 1rem;
    display: grid !important; /* Force override online.css grid */
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem;
}

.turliste > .box {
    background-color: #fff;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.turliste > .box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

.turliste > .box .title {
    display: flex;
    align-items: baseline;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.turliste > .box .title .cat-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    flex: 1;
}

.turliste > .box .cat-link {
    color: var(--orange-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
}

.turliste > .box .cat-link:hover {
    color: var(--ink);
}

.turliste > .box > .section > .cat-link {
    margin-top: auto; /* Push to bottom */
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
    width: 100%;
}

.turliste > .box .section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.turliste > .box .alt.liste {
    flex: 1;
}

.turliste > .box .alt.liste ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1rem 0;
}

.turliste > .box .alt.liste ul li {
    padding: 0;
    position: relative;
}

/* Remove default marker if any */
.turliste > .box .alt.liste ul li::marker {
    content: "";
}

/* Style as clickable menu blocks rather than bullet points */
.turliste > .box .alt.liste ul li a {
    display: block;
    color: #4a5568;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    font-size: 0.95rem;
    padding: 0.4rem 0.75rem;
    margin-left: -0.75rem; /* pull left to align text with title */
    border-radius: 0.5rem;
}

.turliste > .box .alt.liste ul li a:hover {
    color: var(--orange-dark);
    background-color: #f7fafc;
}

@media only screen and (max-width: 1024px) {
    .turliste {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media only screen and (max-width: 600px) {
    .turliste {
        grid-template-columns: 1fr !important;
    }
}
/* ============ Listelerim Grid (Customer Book Lists) ============ */
.listelerim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 2rem; padding: 2rem 0; }
.listelerim-grid > div { display: contents; } /* If simple list wraps rows in divs */
.liste-kart { display: block; text-decoration: none; color: inherit; text-align: center; cursor: pointer; }
.kart-deste { position: relative; width: 140px; height: 200px; margin: 0 auto 1rem; }
.kart { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.15); background: #fff; overflow: hidden; border: 1px solid #ddd; transition: transform 0.3s ease; }
.kart .resim { width: 100%; height: 100%; background-size: cover; background-position: center; }
.kart5 { transform: rotate(-20deg) translate(-20px, 15px); z-index: 0; background: #eee; }
.kart4 { transform: rotate(-15deg) translate(-15px, 10px); z-index: 1; background: #eee; }
.kart3 { transform: rotate(-10deg) translate(-10px, 5px); z-index: 2; }
.kart2 { transform: rotate(0deg) translate(0, 0); z-index: 3; }
.kart1 { transform: rotate(10deg) translate(10px, 5px); z-index: 4; }
.kart-deste[data-count="0"] .kart1, .kart-deste[data-count="1"] .kart1 { transform: rotate(0) translate(0,0); }
.kart-deste[data-count="2"] .kart2 { transform: rotate(-5deg) translate(-5px, 2px); }
.kart-deste[data-count="2"] .kart1 { transform: rotate(5deg) translate(5px, 2px); }
.liste-kart:hover .kart3 { transform: rotate(-15deg) translate(-20px, 10px); }
.liste-kart:hover .kart2 { transform: rotate(0deg) translate(0, -15px); }
.liste-kart:hover .kart1 { transform: rotate(15deg) translate(20px, 10px); }
.liste-kart:hover .kart-deste[data-count="0"] .kart1, .liste-kart:hover .kart-deste[data-count="1"] .kart1 { transform: rotate(0) translate(0,-15px); }
.kart-bos { display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #ccc; z-index: 3; transform: rotate(0); background: #f9f9f9; }
.liste-sayi { position: absolute; bottom: -10px; right: -10px; width: 36px; height: 36px; background: var(--main-color, #e53935); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.3); border: 2px solid #fff; }
.liste-isim { font-weight: 600; font-size: 1.1rem; margin-top: 10px; }
