.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;
    }
}
