.store-page,
.store-detail-page {
    background: linear-gradient(180deg, #f8f6f2 0%, #ffffff 280px);
}

/* Sticky footer: mağaza sayfalarında içerik kısa olsa bile footer sayfanın en altında
   kalır (sadece bu sayfalara özel, body-class="store-page-shell" ile scoped). */
body.store-page-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.store-page-shell > .store-page,
body.store-page-shell > .store-detail-page {
    flex: 1 0 auto;
}

.store-hero {
    max-width: 760px;
    margin: 0 auto;
}

.store-title {
    font-size: clamp(2rem, 2.6vw, 3rem);
    font-weight: 700;
    color: #1f2d1f;
    margin-bottom: 0.75rem;
}

.store-subtitle {
    color: #5f6b5f;
    font-size: 1.05rem;
}

/* Ürün kartı — .blog-card'ın e-ticaret varyantı */
.product-card {
    background: #fff;
    border: 1px solid rgba(140, 132, 108, 0.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(38, 49, 38, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(38, 49, 38, 0.12);
}

.product-card-image-link {
    display: block;
    position: relative;
}

.product-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: #ece9df;
}

.product-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #5e695e;
    letter-spacing: 0.04em;
}

.product-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    color: #fff;
}

.product-stock-badge.in-stock {
    background: var(--astro-main-green, #2f8f7a);
}

.product-stock-badge.out-of-stock {
    background: #9e2a2b;
}

.product-card-body {
    padding: 1rem 1rem 1.2rem;
}

.product-category-badge {
    background: rgba(67, 112, 72, 0.12);
    color: #2d6a33;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.78rem;
}

.product-card-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0.5rem 0 0.4rem;
}

.product-card-title a {
    color: #1f2d1f;
    text-decoration: none;
}

.product-card-title a:hover {
    color: var(--astro-main-green-hover, #1f6f5e);
}

.product-card-excerpt {
    color: #5a645a;
    line-height: 1.5;
    font-size: 0.88rem;
    margin-bottom: 0.7rem;
}

.product-card-price {
    font-weight: 800;
    font-size: 1.15rem;
    color: #1f2d1f;
}

.product-card-price-old {
    text-decoration: line-through;
    color: #9aa39a;
    font-size: 0.85rem;
    margin-left: 0.35rem;
}

.product-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.7rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.86rem;
    background: linear-gradient(135deg, var(--astro-main-green, #2f8f7a), var(--astro-deep-teal, #136F63));
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-cta-btn:hover {
    box-shadow: 0 8px 20px rgba(47, 143, 122, 0.3);
    transform: translateY(-1px);
    color: #fff;
}

.store-empty {
    background: #fff;
    border: 1px dashed rgba(133, 126, 106, 0.5);
    border-radius: 14px;
}

/* Kategori kenar çubuğu */
.store-category-sidebar {
    background: #fff;
    border: 1px solid rgba(140, 132, 108, 0.2);
    border-radius: 14px;
    padding: 1.1rem;
}

.store-category-sidebar h6 {
    font-weight: 700;
    color: #1f2d1f;
    margin-bottom: 0.7rem;
}

.store-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.store-category-list li {
    margin-bottom: 0.15rem;
}

.store-category-list .store-category-children {
    padding-left: 0.9rem;
    list-style: none;
}

.store-category-link {
    display: block;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    color: #3f4a3f;
    text-decoration: none;
    font-size: 0.92rem;
}

.store-category-link:hover {
    background: rgba(47, 143, 122, 0.08);
    color: var(--astro-main-green-hover, #1f6f5e);
}

.store-category-link.active {
    background: var(--astro-main-green, #2f8f7a);
    color: #fff;
    font-weight: 600;
}

/* Ürün detay sayfası */
.store-product-gallery-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    background: #ece9df;
    display: block;
}

.store-product-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}

.store-product-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.75;
    transition: all 0.15s ease;
}

.store-product-thumb.active,
.store-product-thumb:hover {
    border-color: var(--astro-main-green, #2f8f7a);
    opacity: 1;
}

.store-variant-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1.5px solid #d9e2d9;
    background: #fff;
    color: #3f4a3f;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    margin: 0 0.4rem 0.4rem 0;
    transition: all 0.15s ease;
}

.store-variant-option.selected {
    border-color: var(--astro-main-green, #2f8f7a);
    background: var(--astro-main-green, #2f8f7a);
    color: #fff;
}

.store-variant-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

@media (max-width: 767px) {
    .product-card-body {
        padding: 0.85rem;
    }
}

/* Ürün detay sayfası — genel panel çerçevesi */
.store-detail-panel {
    background: #fff;
    border: 1px solid rgba(140, 132, 108, 0.16);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(38, 49, 38, 0.07);
    padding: 2rem;
}

@media (max-width: 767px) {
    .store-detail-panel {
        padding: 1.25rem;
        border-radius: 16px;
    }
}

.store-sku-line {
    letter-spacing: 0.02em;
}

/* Galeri — ana görsel + büyüteç ipucu */
.store-gallery-main-wrap {
    position: relative;
}

.store-gallery-main-wrap .store-product-gallery-main {
    cursor: zoom-in;
}

.store-gallery-zoom-hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #2d3a2d;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    font-size: 0.9rem;
}

/* Lightbox modal */
.store-lightbox-modal .modal-content {
    background: rgba(10, 14, 10, 0.96);
    border: none;
    border-radius: 16px;
    min-height: 60vh;
    position: relative;
}

.store-lightbox-modal .modal-dialog {
    max-width: min(90vw, 900px);
}

.store-lightbox-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2.5rem;
}

.store-lightbox-body img {
    max-width: 100%;
    max-height: 74vh;
    object-fit: contain;
    border-radius: 8px;
}

.store-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1rem;
    z-index: 3;
    transition: background 0.15s ease;
}

.store-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.store-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.1rem;
    z-index: 3;
    transition: background 0.15s ease;
}

.store-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

.store-lightbox-prev {
    left: 14px;
}

.store-lightbox-next {
    right: 14px;
}

.store-lightbox-counter {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    z-index: 3;
}

@media (max-width: 767px) {
    .store-lightbox-body {
        padding: 1rem;
    }

    .store-lightbox-nav {
        width: 40px;
        height: 40px;
    }
}

/* Miktar stepper */
.store-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #d9e2d9;
    border-radius: 999px;
    overflow: hidden;
}

.store-qty-stepper .store-qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: #f4f7f4;
    color: #2d3a2d;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    transition: background 0.15s ease;
}

.store-qty-stepper .store-qty-btn:hover {
    background: rgba(47, 143, 122, 0.14);
    color: var(--astro-main-green-hover, #1f6f5e);
}

.store-qty-stepper input[type="number"] {
    width: 46px;
    height: 34px;
    border: none;
    border-left: 1.5px solid #d9e2d9;
    border-right: 1.5px solid #d9e2d9;
    text-align: center;
    font-weight: 600;
    -moz-appearance: textfield;
}

.store-qty-stepper input[type="number"]::-webkit-outer-spin-button,
.store-qty-stepper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Güven rozetleri */
.store-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px dashed rgba(140, 132, 108, 0.25);
}

.store-trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: #f4f7f4;
    color: #3f4a3f;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(140, 132, 108, 0.14);
    transition: all 0.15s ease;
}

a.store-trust-badge:hover {
    background: rgba(47, 143, 122, 0.12);
    color: var(--astro-main-green-hover, #1f6f5e);
    border-color: transparent;
}

.store-trust-badge i {
    color: var(--astro-main-green, #2f8f7a);
}

/* Ürün detay accordion */
.store-detail-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid rgba(140, 132, 108, 0.16);
    background: transparent;
}

.store-detail-accordion .accordion-item:first-child {
    border-top: 1px solid rgba(140, 132, 108, 0.16);
}

.store-detail-accordion .accordion-button {
    background: transparent;
    color: #1f2d1f;
    font-weight: 700;
    font-size: 0.98rem;
    padding: 1rem 0.25rem;
    box-shadow: none;
}

.store-detail-accordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--astro-main-green-hover, #1f6f5e);
    box-shadow: none;
}

.store-detail-accordion .accordion-button::after {
    background-size: 1.1rem;
}

.store-detail-accordion .accordion-body {
    padding: 0 0.25rem 1.25rem;
    color: #4a544a;
    line-height: 1.7;
    font-size: 0.92rem;
}

.store-detail-accordion .accordion-body a {
    color: var(--astro-main-green-hover, #1f6f5e);
    font-weight: 600;
}
