/* ============================================================
   BS THEME — Screenshot Match Styles
   Matches the provided design exactly
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */



.bs-top-bar {
    background-color: var(--primary) !important;
    border-bottom: 1px solid var(--white) !important;
    color: var(--white) !important;
}

.page-index .bs-top-bar {
    background-color: var(--secondary) !important;
    border-bottom: 1px solid var(--text-dark) !important;
    color: var(--text-dark) !important;
}

body:not(.page-index) .bs-nav-link,
body:not(.page-index) .bs-logo {
    border-right: none !important;
}

.bs-header {
    border-top: none !important;
    border-bottom: none !important;
}

/* ============================================================
   HERO BANNER (Yellow with Stars)
   ============================================================ */
.bs-hero {
    background-color: var(--secondary);
    position: relative;
    padding: 40px 0 50px;
    overflow: hidden;
}

/* Star pattern background (Removed) */

.bs-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.bs-hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.bs-hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.bs-hero-breadcrumb a {
    color: var(--text-medium);
    transition: color 0.2s ease;
}

.bs-hero-breadcrumb a:hover {
    color: var(--primary);
}

.bs-breadcrumb-sep {
    color: var(--text-medium);
}

.bs-breadcrumb-current {
    color: var(--text-dark);
    font-weight: 600;
}

/* Hero Decorations */
.bs-hero-deco {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    color: #111827;
    /* Professional black */
}

.bs-hero-deco-left {
    left: 5%;
    bottom: 0;
    z-index: 2;
}

.bs-hero-deco-right {
    right: 5%;
    bottom: 0;
    z-index: 2;
}

.bs-hero-bee {
    position: absolute;
    font-size: 3rem;
    animation: float-simple 4s ease-in-out infinite;
}

.bs-hero-bee-1 {
    top: 20%;
    left: 15%;
}

.bs-hero-bee-2 {
    top: 30%;
    right: 20%;
    animation-delay: 1s;
}

/* ============================================================
   PRODUCT GRID (Category Page)
   ============================================================ */
.bs-products-section {
    background-color: var(--bg-main);
    padding-bottom: 80px;
}

.bs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.bs-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Product Card - Exact match to screenshot */
.bs-product-card {
    background-color: var(--bg-main);
    border: 3px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    box-shadow: 4px 4px 0 var(--border-color);
}

.bs-product-card:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.bs-product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 20px;
    background-color: var(--bg-main);
    border-bottom: 2px solid var(--border-color);
    display: block;
}

.bs-product-info {
    padding: 20px 16px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.bs-product-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.bs-product-name a {
    color: var(--text-dark);
    text-decoration: none;
}

.bs-product-price {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text-dark);
}

/* Product Actions (Heart, Compare, View) - Hidden by default */
.bs-product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bs-product-card:hover .bs-product-actions {
    opacity: 1;
}

.bs-product-action-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background-color: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bs-product-action-btn:hover {
    background-color: var(--primary);
    transform: scale(1.1);
}

.bs-product-action-btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================================
   BREADCRUMB (Category Page)
   ============================================================ */
.bs-breadcrumb-section {
    padding: 20px 0;
    background-color: var(--bg-main);
}

.bs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.bs-breadcrumb a {
    color: var(--text-medium);
    transition: color 0.2s ease;
}

.bs-breadcrumb a:hover {
    color: var(--primary);
}

.bs-breadcrumb-sep {
    color: var(--text-medium);
}

.bs-breadcrumb-current {
    color: var(--text-dark);
    font-weight: 600;
}

/* ============================================================
   CATEGORY SIDEBAR
   ============================================================ */
.bs-category-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.bs-sidebar {
    background-color: transparent;
}

.bs-sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.bs-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bs-sidebar-link {
    display: block;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.bs-sidebar-link:hover,
.bs-sidebar-link.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* Sort Section */
.bs-sort-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--border-color);
}

.bs-sort-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.bs-sort-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bs-sort-link {
    display: block;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-medium);
    transition: all 0.2s ease;
}

.bs-sort-link:hover,
.bs-sort-link.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

.bs-sort-link.active {
    font-weight: 700;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.bs-section-header {
    margin-bottom: 32px;
}

.bs-section-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.bs-section-subtitle {
    font-size: 0.95rem;
    color: var(--text-medium);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.bs-empty-state {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--bg-main);
    border-radius: var(--radius-xl);
    border: 2px dashed var(--border-color);
}

.bs-empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.bs-empty-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.bs-empty-desc {
    color: var(--text-medium);
    margin-bottom: 24px;
}

/* ============================================================
   FOOTER (Bs Style)
   ============================================================ */
/* footer.css handles .bs-footer, .bs-footer-grid styles */

/* ============================================================
   RESPONSIVE (bs-products-grid, category layout)
   ============================================================ */
@media (max-width: 1024px) {
    .bs-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bs-category-layout {
        grid-template-columns: 220px 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .bs-hero-title {
        font-size: 2rem;
    }

    .bs-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .bs-category-layout {
        grid-template-columns: 1fr;
    }

    .bs-sidebar {
        margin-bottom: 24px;
    }

    .bs-sidebar-inner {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .bs-sort-section {
        margin-top: 16px;
        padding-top: 16px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .bs-products-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .bs-hero-title {
        font-size: 1.5rem;
    }

    .bs-product-actions {
        flex-direction: row;
        top: auto;
        bottom: 12px;
        right: 12px;
    }
}

/* ============================================================
   ÜRÜN DETAY SAYFASI (Product Detail Styles)
   ============================================================ */
.product-detail-layout {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 40px;
    margin: 40px 0;
    align-items: start;
}

.product-detail-gallery {
    position: sticky;
    top: 100px;
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-detail-main-img {
    width: 100%;
    max-width: 380px;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
}

.product-detail-gallery:hover .product-detail-main-img {
    transform: scale(1.03);
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-category {
    display: inline-block;
    align-self: flex-start;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(255, 123, 56, 0.25);
}

.product-detail-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--bg-dark);
    line-height: 1.25;
}

.product-detail-author {
    font-size: 1.1rem;
    color: var(--text-medium);
    font-weight: 600;
}

.product-detail-author strong {
    color: var(--bg-dark);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

.stars {
    display: flex;
    gap: 3px;
    color: var(--text-slate-light);
}

.star.filled {
    color: var(--star-yellow);
}

.rating-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.product-detail-price-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.product-detail-price {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--primary);
}

.discount-badge {
    background: var(--danger);
    color: var(--white);
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 10px;
    margin-left: 8px;
}

.product-detail-desc {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--bg-slate-light);
}

.product-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: var(--surface-slate);
    border-radius: 8px;
}

.meta-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0;
}

.qty-selector label {
    font-weight: 800;
    color: var(--text-dark);
    font-size: 1rem;
}

.qty-input-group {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(255, 123, 56, 0.15);
}

.qty-btn {
    width: 42px;
    height: 42px;
    background: var(--white);
    border: none;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.qty-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.qty-number {
    width: 50px;
    height: 42px;
    text-align: center;
    border: none;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--bg-dark);
    outline: none;
}

.qty-number::-webkit-inner-spin-button,
.qty-number::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-detail-actions {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}



@media (max-width: 991px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .product-detail-gallery {
        position: static;
        max-width: 480px;
        margin: 0 auto;
    }
}

/* ============================================================
   CHECKOUT NAVİGASYON ADIMLARI (Multi-Step Bar & Floating Bees)
   ============================================================ */
.bs-checkout-nav-box {
    position: relative;
    max-width: 1100px;
    margin: 35px auto 30px;
    padding: 26px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #fffbf5 50%, #fff7ed 100%);
    border-radius: 24px;
    border: 2px solid #fed7aa;
    box-shadow: 0 12px 35px rgba(255, 123, 56, 0.09);
    overflow: visible;
}

.checkout-steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 5;
}

.checkout-deco {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    user-select: none;
}

.checkout-deco-left-1 {
    top: -24px;
    left: -32px;
    font-size: 2.3rem;
    animation: floatBee 3.5s ease-in-out infinite;
}

.checkout-deco-left-2 {
    bottom: -22px;
    left: -24px;
    font-size: 1.9rem;
    animation: floatLetter 4s ease-in-out infinite 0.8s;
}

.checkout-deco-right-1 {
    top: -24px;
    right: -32px;
    font-size: 2.3rem;
    animation: floatBee 3.8s ease-in-out infinite 1.2s;
}

.checkout-deco-right-2 {
    bottom: -22px;
    right: -24px;
    font-size: 1.9rem;
    animation: floatLetter 4.2s ease-in-out infinite 0.5s;
}


@media (max-width: 768px) {
    .bs-checkout-nav-box {
        padding: 16px 20px;
        margin: 20px auto 20px;
    }

    .checkout-deco-left-1,
    .checkout-deco-right-1 {
        font-size: 1.6rem;
        top: -16px;
    }

    .checkout-deco-left-2,
    .checkout-deco-right-2 {
        display: none;
    }
}

/* ============================================================
   INTERACTIVE VIRTUAL CREDIT CARD (Dinamik Kredi Kartı Görünümü)
   ============================================================ */
.virtual-card-wrapper {
    perspective: 1000px;
    margin: 0 auto 30px;
    max-width: 420px;
    width: 100%;
}

.virtual-card {
    width: 100%;
    aspect-ratio: 1.586 / 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    border-radius: 20px;
    padding: 22px 28px;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.virtual-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 123, 56, 0.18) 0%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}

.virtual-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.virtual-card-chip {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contactless-icon {
    font-size: 1.2rem;
    opacity: 0.8;
}

.vcard-brand-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.vcard-brand-badge.visa {
    background: #1a1f71;
    color: #ffffff;
    border-color: #f79e1b;
}

.vcard-brand-badge.mastercard {
    background: #eb001b;
    color: #ffffff;
    border-color: #ff5f00;
}

.vcard-brand-badge.troy {
    background: #005baa;
    color: #ffffff;
    border-color: #00a4e4;
}

.vcard-number-display {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    margin: 15px 0;
    white-space: nowrap;
}

.virtual-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.vcard-label {
    font-size: 0.65rem;
    color: #94a3b8;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 3px;
    font-weight: 700;
}

.vcard-val {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.virtual-card.cvv-focused {
    border-color: #ff7b38;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 30px rgba(255, 123, 56, 0.5), 0 15px 35px rgba(15, 23, 42, 0.35);
}

/* ============================================================
   FOOTER (Responsive Grid - handled by footer.css)
   ============================================================ */

@media (max-width: 480px) {
    .virtual-card-wrapper {
        margin-bottom: 20px;
    }

    .virtual-card {
        padding: 16px 20px;
        border-radius: 16px;
    }

    .vcard-number-display {
        font-size: 1.15rem;
        letter-spacing: 2px;
    }

    .vcard-val {
        font-size: 0.9rem;
    }
}

.checkout-step-item {
    display: flex;
    align-items: center;
}

.checkout-step-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: default;
}

.checkout-step-item.completed .checkout-step-link {
    cursor: pointer;
}

.checkout-step-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #cbd5e1;
    transition: all 0.3s ease;
}

.checkout-step-item.active .checkout-step-badge {
    background: #ff7b38;
    color: #ffffff;
    border-color: #ff7b38;
    box-shadow: 0 0 0 5px rgba(255, 123, 56, 0.2);
}

.checkout-step-item.completed .checkout-step-badge {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.checkout-step-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.checkout-step-icon {
    font-size: 1.2rem;
}

.checkout-step-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #64748b;
    transition: color 0.3s ease;
}

.checkout-step-item.active .checkout-step-title {
    color: #ff7b38;
    font-weight: 900;
}

.checkout-step-item.completed .checkout-step-title {
    color: #0f172a;
}

.checkout-step-line {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    margin: 0 15px;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.checkout-step-line.completed {
    background: #10b981;
}

@media (max-width: 768px) {
    .checkout-step-title {
        display: none;
    }

    .checkout-step-line {
        margin: 0 8px;
    }
}

/* ============================================================
   HERO SLIDER NAVIGASYON (Önceki / Sonraki Butonları)
   ============================================================ */
.hero-image-side {
    position: relative;
}

.hero-nav-wrapper {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 30;
    width: max-content;
}

.hero-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 2px solid #ff7b38;
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    color: #ff7b38;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(255, 123, 56, 0.25);
    transition: all 0.25s ease;
}

.hero-nav-item:hover {
    background: #ff7b38;
    color: #ffffff;
    transform: none;
    box-shadow: 0 10px 25px rgba(255, 123, 56, 0.4);
}

.hero-nav-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 123, 56, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.hero-nav-item:hover .hero-nav-circle {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .hero-nav-wrapper {
        bottom: -35px;
    }
}