/* ===== STORE PAGES - EloriaBloom Boho Theme ===== */

/* ===== NEEDLE HERO ===== */
.needle-hero {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
}

.needle-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 60%);
    pointer-events: none;
}

.needle-hero picture img {
    height: 70vh;
    min-height: 500px;
}

.hero-overlay-text {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.hero-overlay-text h1 {
    margin: 0;
    font-size: 3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .hero-overlay-text {
        bottom: 30px;
        left: 20px;
        right: 20px;
        align-items: center;
        text-align: center;
    }
    
    .hero-overlay-text h1 {
        font-size: 2rem;
    }
}

/* ===== CATEGORIES ===== */
.needle-categories {
    margin-bottom: 60px;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.categories-visual-wrapper {
    display: flex;
    justify-content: center;
    gap: 48px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 10px 20px;
}

.categories-visual-wrapper::-webkit-scrollbar {
    display: none;
}

.category-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

.category-circle-item:hover {
    transform: translateY(-5px);
}

.category-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.category-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-circle-item span {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .categories-visual-wrapper {
        justify-content: flex-start;
        gap: 24px;
        padding: 10px 0;
    }
    
    .category-circle {
        width: 72px;
        height: 72px;
    }
    
    .category-circle-item span {
        font-size: 0.8rem;
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
}

.section-header h2 {
    font-size: 1.75rem;
}

/* Products Grid */
.products-page {
    padding-top: 100px;
    padding-bottom: 60px;
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-chip:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.filter-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px; /* Mobilde boşluğu iyice azalt, tam ekran hissi ver */
    }
    .products-page {
        padding-top: 80px;
        padding-bottom: 20px;
    }
}

/* Product Card - Needle.tr Style */
.product-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: none;
}

.product-card-image {
    position: relative;
    width: 100%;
    padding-top: 130%;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.03);
}

.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.product-card-actions {
    display: none;
}

.product-card-info {
    padding: 12px 4px;
    text-align: left;
}

.product-card-title {
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.product-card-title {
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Product Detail */
.product-detail-page {
    padding-top: 100px;
    padding-bottom: 60px;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.product-detail-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.product-detail-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-detail-info {
    padding: 16px 0;
}

.product-detail-info .category {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.product-detail-info h1 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.product-detail-info .price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 16px;
}

.product-detail-info .description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.product-detail-info .seller-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.seller-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

.stock-dot.low {
    background: var(--warning);
}

.stock-dot.out {
    background: var(--danger);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 1.2rem;
}

.quantity-selector button:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.quantity-selector .qty-value {
    font-size: 1.2rem;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.product-detail-actions {
    display: flex;
    gap: 12px;
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .sticky-action-bar {
        position: fixed;
        bottom: 64px; /* mobil bottom nav üstünde dursun */
        left: 0;
        right: 0;
        background: var(--bg-card);
        padding: 12px 16px;
        border-top: 1px solid var(--border);
        box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
        z-index: 1000;
        display: flex;
        gap: 12px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
    
    .product-detail-page {
        padding-bottom: 140px; /* sticky bar için ekstra boşluk */
    }
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--accent-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.feature-card h4 {
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    font-weight: 500;
}

.pagination button:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.pagination button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}