:root {
    --primary: #f39c12;
    --primary-hover: #e67e22;
    --dark: #0f172a;
    --light: #ffffff;
    --bg-light: #f8fafc;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow: 0 10px 30px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.08);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #fff;
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* Top Announcement Bar */
.top-bar {
    background: var(--dark);
    color: #fff;
    text-align: center;
    padding: 12px 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Header */
header {
    height: 80px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 clamp(1rem, 4vw, 8%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

header nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

header nav ul {
    display: flex;
    gap: 3rem;
    list-style: none;
}

header nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

header nav a:hover { color: var(--primary); }

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -1px;
}

.logo span { color: var(--primary); }

.nav-icons {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.nav-icons i {
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark);
    padding: 8px;
    border-radius: 50%;
}

.nav-icons i:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Brand Stories */
.stories-container {
    display: flex;
    gap: 1.2rem;
    padding: 1.5rem 8%;
    overflow-x: auto;
    scrollbar-width: none;
    background: #fff;
}

.stories-container::-webkit-scrollbar { display: none; }

.story {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    min-width: 85px;
    cursor: pointer;
}

.story-img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    padding: 3px;
    border: 2.5px solid var(--primary);
    object-fit: cover;
    transition: var(--transition);
}

.story:hover .story-img { transform: scale(1.08) rotate(5deg); }

.story span { font-size: 0.8rem; font-weight: 600; color: var(--text); }

/* Ana sayfa alt bento — mobilde tek sütun */
.home-bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 720px) {
    .home-bento-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .home-bento-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

/* Hero Slider */
.hero-slider {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.slider-counter {
    position: absolute;
    bottom: 1.5rem;
    right: 8%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 800;
    z-index: 30;
    backdrop-filter: blur(10px);
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    padding: 0 8%;
    background-size: cover;
    background-position: center;
}

.slide.active { opacity: 1; z-index: 10; }

/* Tüm slayt tıklanabilir (iç içe <a> olmadan) */
a.slide.slide--cta {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
a.slide.slide--cta:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}
.slide-cta-pill {
    margin-top: 1.5rem;
    padding: 1rem 2.5rem;
    display: inline-block;
    pointer-events: none;
}

.slide-content h2 { font-size: 2.5rem; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 0.5rem; }
.slide-content p { color: #fff; opacity: 0.8; font-size: 1rem; }

.slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.cart-focus-topbar {
    display: none;
}

/* Sepet — boş sayfa kompakt + güçlü CTA */
.cart-page--empty .cart-featured {
    padding-top: 1.25rem;
    padding-bottom: 0.5rem;
    min-height: 0;
}
.cart-page--empty .section-title {
    margin-bottom: 0.75rem;
}
.cart-empty {
    text-align: center;
    padding: 0.25rem 1rem 0.75rem;
    max-width: 420px;
    margin: 0 auto;
}
.cart-empty__text {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}
.cart-empty__hint {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}
.cart-empty__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.75rem !important;
    font-size: 1.08rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.02em;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%) !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.35), 0 0 0 3px rgba(243, 156, 18, 0.35) !important;
    text-decoration: none !important;
    transform: translateY(0);
    transition: transform 0.2s, box-shadow 0.2s;
}
.cart-empty__cta:hover {
    background: linear-gradient(135deg, var(--primary) 0%, #d97706 100%) !important;
    box-shadow: 0 12px 36px rgba(243, 156, 18, 0.45) !important;
    transform: translateY(-4px) scale(1.02);
    color: #fff !important;
}
/* Son baktıklar — sepet içinde gömülü */
.cart-recent-embed {
    margin-top: 0.5rem;
    padding-top: 0.25rem;
}
.cart-page--empty .cart-recent-embed {
    margin-top: 0.25rem;
}
.recent-viewed--embed-cart {
    margin-top: 1.25rem;
    padding: 1.25rem 1rem 1.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 40%);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.recent-viewed__title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
    color: var(--dark);
}
.recent-viewed-container--empty-state {
    text-align: center;
    padding-bottom: 1.75rem !important;
}
.recent-viewed__empty-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0 0 1.25rem;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
}
.recent-viewed__empty-cta {
    display: inline-flex;
    text-decoration: none;
}

/* Product Cards */
.featured-products { padding: 3rem clamp(1rem, 5vw, 8%); }

.section-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

/* Ortak ürün kartı (includes/product_card.php) */
.product-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1rem;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Tam genişlik şeritler + gölge: taşmayı yuvarlatılmış kart sınırında kes */
    overflow: hidden;
}

.product-card--has-discount {
    padding-top: 0;
}

.product-card__discount-bar {
    background: #ff4757;
    color: #fff;
    text-align: center;
    padding: 0.42rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    border-radius: var(--radius) var(--radius) 0 0;
    margin: 0 0 0.65rem 0;
}

/* İndirim bandı da kart kenarına kadar (padding ile hizalı şeritler) */
.product-card--has-discount .product-card__discount-bar {
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
    margin-bottom: 0.65rem;
    box-sizing: border-box;
}

.product-detail__discount-bar {
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.product-card__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.product-card__media {
    width: 100%;
    height: 220px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 0.65rem;
}

.product-card--scroll .product-card__media {
    height: 140px;
}

.product-card--cart .product-card__media {
    width: 88px;
    height: 88px;
    min-width: 88px;
    margin-bottom: 0;
}

.product-card__body {
    flex: 1;
    min-width: 0;
}

.product-card .product-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.25;
    margin: 0;
}

.product-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.65rem;
    width: 100%;
}

.product-card__footer-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.product-price-column--card {
    gap: 2px;
}

/* Satış fiyatı + TL aynı satır */
.product-price--sale {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.2ch;
    white-space: nowrap;
}

.product-price .product-price__n {
    font-variant-numeric: tabular-nums;
}

.product-price .product-price__suf {
    font-weight: 800;
    font-size: 0.88em;
    letter-spacing: 0.02em;
}

.product-price-column--card .product-price--sale {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 900;
}

.product-price-column--card .product-price:not(.product-price--sale) {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.2ch;
    white-space: nowrap;
}

.product-meta .price.product-price--sale {
    color: var(--primary);
}

.product-card__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.product-card__fav {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: #fff;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.product-card__fav:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.product-card__fav.is-active {
    border-color: #ff4757;
    color: #ff4757;
    background: rgba(255, 71, 87, 0.08);
}

.product-card__fav.is-active svg {
    fill: #ff4757;
    stroke: #ff4757;
}

.product-card__cart-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    width: 100%;
}

.product-card__link--cart {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    flex: 1 1 200px;
    min-width: 0;
}

.product-card--cart .product-title {
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__cart-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex: 0 0 auto;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 700;
}

.product-card__cart-meta .product-card__line {
    font-size: 1rem;
    font-weight: 900;
    color: var(--primary);
}

.product-card__remove-form {
    margin: 0;
}

.product-card__remove-form button {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.product-card--cart:hover {
    transform: none;
}

/* 2. ürün indirimi şeridi (kampanya aktifse) */
.product-second-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    margin-bottom: 0.75rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #047857 0%, #059669 38%, #10b981 72%, #34d399 100%);
    color: #ecfdf5;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.35;
    box-shadow: 0 3px 12px rgba(5, 150, 105, 0.28);
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.product-second-strip--detail {
    font-size: 0.85rem;
    padding: 0.65rem 1.2rem;
    margin-bottom: 1rem;
    border-radius: 16px;
}
.product-second-strip__text {
    flex: 1;
    min-width: 0;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}
.product-second-strip__stock {
    font-weight: 900;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    background: rgba(255, 255, 255, 0.18);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
}

/* Tasarruf: yeşil/kırmızıdan ayrılan indigo ton (turuncu yerine daha dengeli) */
.product-second-strip--savings {
    justify-content: flex-start;
    background: linear-gradient(135deg, #3730a3 0%, #4f46e5 42%, #6366f1 88%);
    color: #eef2ff;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.28);
    border-color: rgba(255, 255, 255, 0.2);
}

.product-second-strip--savings .product-second-strip__text {
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

/* Liste / scroll kart: şeritler kartın yatay padding’ini aşıp tam genişlik */
.product-card:not(.product-card--cart) .product-card__body > .product-second-strip {
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
    box-sizing: border-box;
    border-radius: 14px;
    padding: 0.55rem 1.2rem;
}

.product-card__body .product-second-strip + .product-second-strip--savings {
    margin-top: 0.4rem;
}

.product-meta .product-second-strip + .product-second-strip--savings {
    margin-top: 0.4rem;
}

.product-second-strip--in-cart {
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
    margin-bottom: 0.65rem;
    box-sizing: border-box;
    border-radius: 14px;
    padding: 0.55rem 1.2rem;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image { transform: scale(1.06); }

.product-price-column {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-old-price {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 600;
}

.product-price { font-size: 1.1rem; font-weight: 800; color: var(--dark); }

.product-savings-note {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #059669;
    letter-spacing: 0.01em;
}
.product-savings-note--detail {
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.add-to-cart-btn {
    width: 45px;
    height: 45px;
    background: var(--dark);
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.product-card:hover .add-to-cart-btn {
    background: var(--primary);
    transform: rotate(10deg);
}

/* Product Detail */
.product-detail-container {
    padding: 4rem 8%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-gallery img {
    width: 100%;
    border-radius: 30px;
    background: var(--bg-light);
}

.product-meta h1 { font-size: 3rem; font-weight: 900; margin-bottom: 1rem; }
.product-meta .price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: baseline;
    gap: 0.2ch;
    white-space: nowrap;
}

.btn {
    padding: 1.2rem 2rem;
    border-radius: 18px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

/* Recently Viewed Section */
.recent-viewed-container {
    padding: 2rem 8%;
    background: #fff;
    border-top: 1px solid var(--border);
}

.recent-viewed-list {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.75rem 0 1rem;
    align-items: stretch;
}

.recent-viewed-list::-webkit-scrollbar { display: none; }

.recent-viewed-list .product-card--scroll {
    flex: 0 0 min(46vw, 200px);
    max-width: 200px;
}

.btn-primary { background: var(--dark); color: #fff; }
.btn-primary:hover { background: var(--primary); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(243,156,18,0.2); }

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

/* Sticky Bottom Navigation */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    justify-content: space-around;
    padding: 15px 0;
    z-index: 2000;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.03);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 700;
    transition: var(--transition);
}

.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item i { width: 22px; height: 22px; }

/* Mobile */
@media (max-width: 768px) {
    header nav { display: none !important; }
    header { padding: 0 5%; height: 70px; }
    .featured-products { padding: 2rem 5%; }
    .stories-container { padding: 1rem 5%; }
    .hero-slider { height: 180px; }
    .slide-content h2 { font-size: 1.5rem; }
    .recent-viewed-list .product-card--scroll {
        flex: 0 0 46vw;
        max-width: none;
    }
    .product-card__cart-row { flex-direction: column; align-items: stretch; }
    .product-card__link--cart { flex-direction: row; }
    .product-card__cart-meta { align-items: flex-start; text-align: left; flex-direction: row; flex-wrap: wrap; justify-content: space-between; width: 100%; }
    .bottom-nav { display: flex; }
    body { padding-bottom: 90px; }
    /* Sepet: tam ekran hissi — üst şerit + header + alt tab bar gizli */
    body.page-cart {
        padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    }
    body.page-cart .top-bar,
    body.page-cart header {
        display: none !important;
    }
    body.page-cart .bottom-nav {
        display: none !important;
    }
    body.page-cart .cart-focus-topbar {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin: 0 0 0.85rem;
        padding: 0.55rem 0.15rem;
        font-weight: 800;
        font-size: 0.92rem;
        color: var(--primary);
        text-decoration: none;
        width: fit-content;
        border-radius: 12px;
    }
    body.page-cart .cart-focus-topbar:active {
        opacity: 0.85;
    }
    body.page-cart .cart-page {
        padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
    }
    body.page-cart footer .footer-content {
        display: none;
    }
    body.page-cart .recent-viewed--embed-cart {
        margin-bottom: 0.5rem;
    }
    .product-detail-container { grid-template-columns: 1fr; gap: 3rem; padding: 2rem 5%; }
    
    .product-meta h1 { font-size: 1.8rem; }
    .product-meta .price { font-size: 1.8rem; }
}

/* Mobil / dar tablet: her zaman 2 sütun, taşmayı minmax(0,1fr) + min-width:0 ile kes */
@media (max-width: 900px) {
    .featured-products,
    .product-related-section {
        padding: 1.25rem 3%;
    }

    .product-related-section .product-grid,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .product-card {
        padding: 0.5rem 0.45rem;
        border-radius: var(--radius-sm);
    }

    .product-card .product-title {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .product-card__media {
        height: 128px;
    }

    .product-card--scroll .product-card__media {
        height: 108px;
    }

    .product-card__fav {
        width: 34px;
        height: 34px;
    }

    .add-to-cart-btn {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }
}

/* Icon Fixes */
.btn-outline i { color: var(--dark); vertical-align: middle; }
.btn-primary i { vertical-align: middle; }

.btn-outline.favorite-toggle.is-active {
    border-color: #ff4757;
    color: #ff4757;
}

.btn-outline.favorite-toggle.is-active svg {
    fill: #ff4757;
    stroke: #ff4757;
}

.product-related-section {
    padding: 2rem 8% 3rem;
    background: #fff;
    border-top: 1px solid var(--border);
}

.cart-lines {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Checkout & hesap */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.15);
}
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 340px);
    gap: 2rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 900px) {
    .checkout-grid { grid-template-columns: 1fr; }
}
.checkout-section { margin-bottom: 2rem; }
.checkout-kicker {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 1rem;
    color: var(--dark);
}
.checkout-fields label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin: 0.75rem 0 0.35rem;
}
.checkout-fields .form-control { margin-bottom: 0.25rem; }
.checkout-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 600px) {
    .checkout-two { grid-template-columns: 1fr; }
}
.checkout-invoice-type label {
    display: block;
    margin: 0.35rem 0;
    font-weight: 600;
}
.checkout-hint { font-size: 0.85rem; color: var(--text-muted); margin: 0.35rem 0; }
.checkout-alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.checkout-alert--err { background: #fee2e2; color: #991b1b; }
.checkout-alert--ok { background: #dcfce7; color: #166534; }
.checkout-summary {
    background: var(--bg-soft);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.checkout-lines { list-style: none; padding: 0; margin: 0 0 1rem; }
.checkout-lines li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.checkout-sum-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    padding: 0.35rem 0;
}
.checkout-sum-row--total {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid var(--border);
    font-size: 1.1rem;
    color: var(--primary);
}
.checkout-submit { margin-top: 1rem; width: 100%; max-width: 320px; }
.req { color: #ef4444; }

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    max-width: 900px;
}
.account-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s, transform 0.25s;
}
.account-card:hover {
    box-shadow: var(--shadow);
}
.account-balance { font-size: 2.15rem; font-weight: 900; color: var(--primary); margin: 0.35rem 0 0.5rem; letter-spacing: -0.02em; }
.account-balance span { font-size: 1rem; font-weight: 700; color: var(--dark); }
.account-links { list-style: none; padding: 0; margin: 0; }
.account-links a {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0;
    border-bottom: 2px solid transparent;
}
.account-links a:hover { border-bottom-color: rgba(243, 156, 18, 0.45); }
.account-links li { margin: 0.35rem 0; }

.order-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    max-width: 1100px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.data-table th,
.data-table td {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.data-table th { font-weight: 800; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }

/* Sepet ikonu — adet rozeti */
.nav-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nav-cart__badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    line-height: 1.1rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.nav-cart__badge--empty {
    display: none;
}

/* Sepete eklendi toast (mobil + masaüstü) */
#cart-toast-root {
    position: fixed;
    z-index: 10050;
    pointer-events: none;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 5.5rem 1rem 1rem;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    #cart-toast-root {
        align-items: flex-end;
        justify-content: center;
        padding: 1rem 1rem calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }
}
.cart-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    max-width: min(100%, 380px);
    padding: 0.75rem 0.85rem 0.75rem 0.75rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.06);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}
@media (max-width: 768px) {
    .cart-toast {
        transform: translateY(16px);
        max-width: min(100%, 420px);
    }
}
.cart-toast--in {
    opacity: 1;
    transform: translateY(0);
}
.cart-toast__media {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-light);
    border: 1px solid var(--border);
}
.cart-toast__media--empty {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-toast__media--empty::after {
    content: '';
    width: 22px;
    height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 6h15l-1.5 9h-12z'/%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='18' cy='20' r='1'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cart-toast__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cart-toast__body {
    flex: 1;
    min-width: 0;
}
.cart-toast__title {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart-toast__sub {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #059669;
}
.cart-toast__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
}
.cart-toast__link {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}
.cart-toast__link:hover {
    text-decoration: underline;
}
.cart-toast__close {
    border: none;
    background: #f1f5f9;
    color: #64748b;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.cart-toast__close:hover {
    background: #e2e8f0;
    color: var(--dark);
}
