/* ═══════════════════════════════════════════════════════
   YeşilSepet — Store Detail Page Styles
   ═══════════════════════════════════════════════════════ */

:root {
    --green-900: #1a3a15;
    --green-800: #2D5A27;
    --green-700: #357a2e;
    --green-600: #3d8b34;
    --green-500: #4CAF50;
    --green-400: #66BB6A;
    --green-300: #81C784;
    --green-200: #A5D6A7;
    --green-100: #C8E6C9;
    --green-50: #E8F5E9;
    --amber-500: #FF9800;
    --red-500: #EF5350;
    --dark-900: #0d1f0b;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.sd-page {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: #f8fdf6;
    color: #1e293b;
    overflow-x: hidden;
}

body.sd-page::-webkit-scrollbar {
    width: 8px;
}

body.sd-page::-webkit-scrollbar-track {
    background: var(--green-50);
}

body.sd-page::-webkit-scrollbar-thumb {
    background: var(--green-400);
    border-radius: 4px;
}

/* ═══════════════════════════════════════
   NAVBAR (reused from homepage)
   ═══════════════════════════════════════ */
.sd-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 58, 21, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sd-navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.sd-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: 1.35rem;
}

.sd-brand-icon {
    font-size: 1.5rem;
}

.sd-nav-links {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.sd-nav-btn {
    padding: 0.45rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.sd-nav-btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #fff;
}

.sd-nav-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.sd-nav-btn-solid {
    background: linear-gradient(135deg, var(--green-500), var(--green-400));
    color: #fff;
}

.sd-nav-user {
    color: var(--green-200);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════ */
.sd-breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.sd-breadcrumb a {
    color: var(--green-600);
    text-decoration: none;
    font-weight: 500;
}

.sd-breadcrumb a:hover {
    text-decoration: underline;
}

.sd-breadcrumb .sep {
    color: #cbd5e1;
}

/* ═══════════════════════════════════════
   STORE HEADER
   ═══════════════════════════════════════ */
.sd-store-header {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.sd-header-card {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.sd-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--green-500), var(--green-300), var(--amber-500));
}

.sd-store-avatar {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.sd-store-avatar.market {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.sd-store-avatar.bakery {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}

.sd-store-avatar.restaurant {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
}

.sd-store-avatar.grocery {
    background: linear-gradient(135deg, #e8f5e9, #a5d6a7);
}

.sd-store-info {
    flex: 1;
}

.sd-store-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.sd-store-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    background: var(--green-50);
    color: var(--green-800);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.sd-store-address {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sd-store-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.sd-stat {
    display: flex;
    flex-direction: column;
}

.sd-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--green-700);
}

.sd-stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.sd-header-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
}

.sd-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 14px;
    border: 1.5px solid var(--green-500);
    background: transparent;
    color: var(--green-700);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sd-map-btn:hover {
    background: var(--green-500);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.sd-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.5rem;
    border-radius: 14px;
    background: var(--green-50);
    color: var(--green-800);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.sd-back-btn:hover {
    background: var(--green-100);
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════
   MAIN CONTENT AREA
   ═══════════════════════════════════════ */
.sd-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
}

/* ── Sidebar ── */
.sd-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

.sd-filter-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.sd-filter-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sd-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sd-filter-item a {
    display: block;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    transition: all 0.2s ease;
}

.sd-filter-item a:hover {
    background: var(--green-50);
    color: var(--green-800);
}

.sd-filter-item.active a {
    background: var(--green-500);
    color: #fff;
    font-weight: 700;
}

/* ── Product Grid ── */
.sd-products-section {
    min-width: 0;
}

.sd-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sd-products-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.sd-products-count {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

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

/* ── Product Card ── */
.sd-product-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.sd-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--green-200);
}

.sd-product-image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, var(--green-50), #f0fdf4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sd-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sd-product-image .placeholder-icon {
    font-size: 3.5rem;
    opacity: 0.25;
}

.sd-product-badges {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    right: 0.6rem;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.sd-badge-discount {
    background: var(--red-500);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
}

.sd-badge-co2 {
    background: rgba(45, 90, 39, 0.9);
    color: var(--green-200);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    backdrop-filter: blur(8px);
}

.sd-product-body {
    padding: 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sd-product-category {
    font-size: 0.7rem;
    color: var(--green-600);
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sd-product-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.6rem;
    line-height: 1.35;
}

.sd-product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.sd-price-current {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--green-700);
}

.sd-price-original {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.sd-product-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.85rem;
    font-size: 0.78rem;
    color: #64748b;
}

.sd-product-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sd-stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.sd-stock-dot.low {
    background: var(--amber-500);
    animation: sd-blink 1.2s ease-in-out infinite;
}

.sd-stock-dot.ok {
    background: var(--green-500);
}

@keyframes sd-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.sd-product-footer {
    margin-top: auto;
}

.sd-add-cart-btn {
    width: 100%;
    padding: 0.65rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--green-600), var(--green-500));
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.sd-add-cart-btn:hover {
    background: linear-gradient(135deg, var(--green-500), var(--green-400));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.25);
}

.sd-add-cart-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sd-add-cart-btn.success {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.sd-products-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

.sd-products-empty p {
    font-size: 1.1rem;
    margin: 0;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.sd-footer {
    background: var(--dark-900);
    color: rgba(255, 255, 255, 0.6);
    padding: 2rem 1.5rem 1rem;
}

.sd-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.sd-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.sd-footer-copy {
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
}

/* ═══════════════════════════════════════
   TOAST
   ═══════════════════════════════════════ */
.sd-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    padding: 0.9rem 1.4rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.875rem;
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 340px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sd-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.sd-toast.success {
    background: linear-gradient(135deg, var(--green-600), var(--green-500));
    color: #fff;
}

.sd-toast.error {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
    .sd-navbar-inner {
        height: 56px;
        padding: 0 1rem;
    }

    .sd-brand {
        font-size: 1.15rem;
    }

    .sd-header-card {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.2rem;
    }

    .sd-store-avatar {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .sd-store-name {
        font-size: 1.35rem;
    }

    .sd-header-actions {
        flex-direction: row;
        width: 100%;
    }

    .sd-header-actions>* {
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    .sd-main {
        grid-template-columns: 1fr;
    }

    .sd-sidebar {
        position: static;
    }

    .sd-filter-card {
        /* Horizontal scroll on mobile */
        padding: 1rem;
    }

    .sd-filter-list {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.35rem;
        padding-bottom: 0.25rem;
    }

    .sd-filter-item a {
        white-space: nowrap;
        padding: 0.5rem 0.85rem;
    }

    .sd-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.75rem;
    }

    .sd-product-image {
        height: 140px;
    }

    .sd-product-body {
        padding: 0.85rem;
    }

    .sd-product-name {
        font-size: 0.9rem;
    }

    .sd-price-current {
        font-size: 1.1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .sd-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ═══ MYSTERY BOX CARDS ═══ */
.sd-mystery-section {
    margin-bottom: 2rem;
}

.sd-mystery-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sd-mystery-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.sd-mystery-subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Image area: yeşil gradient — normal karttan ayırt edici */
.sd-mystery-image {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0) !important;
}

.sd-mystery-card .placeholder-icon {
    font-size: 4.5rem;
    opacity: 0.75;
}

.sd-mystery-card {
    border-color: var(--green-100);
}

.sd-mystery-card:hover {
    border-color: var(--green-300);
}
