/* ===== STORE PUBLIC PAGE STYLES ===== */

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.5rem;
    border-radius: 6px;
}

.breadcrumb-link:hover {
    color: var(--primary-orange);
    background: rgba(255, 107, 53, 0.05);
}

.breadcrumb-link svg {
    width: 16px;
    height: 16px;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--gray-300);
}

.breadcrumb-current {
    color: var(--gray-900);
    font-weight: 500;
}

/* Store Public Container */
.store-public-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    overflow-x: hidden; /* Banner için horizontal scroll'u engelle */
}

/* Store Header with Banner */
.store-header {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-left: calc(-50vw + 50%); /* Sol tarafa tam ekran genişliği */
    margin-right: calc(-50vw + 50%); /* Sağ tarafa tam ekran genişliği */
    margin-bottom: 3rem;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw; /* Tam viewport genişliği */
}

.store-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.default-banner-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.8) 0%, 
        rgba(247, 147, 30, 0.8) 30%, 
        rgba(102, 126, 234, 0.8) 70%, 
        rgba(118, 75, 162, 0.8) 100%
    );
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 2;
}

.store-info {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 1200px; /* Container max-width ile aynı */
    margin: 0 auto; /* Ortalamak için */
    padding: 2rem;
}

.store-avatar {
    margin-bottom: 2rem;
}

.store-logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.store-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.default-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 4px solid rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    color: white;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.store-details {
    text-align: center;
}

.store-name {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.store-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.store-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.contact-item svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.store-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
    color: var(--gray-600);
    font-size: 0.95rem;
}

.contact-item svg {
    color: var(--primary-orange);
    flex-shrink: 0;
}

/* Store Stats */
.store-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-orange);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

/* Store Products */
.store-products {
    margin-top: 3rem;
}

/* Product Section */
.product-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid transparent;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 30%, #667eea 70%, #764ba2 100%) bottom;
    background-size: 100% 3px;
    background-repeat: no-repeat;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 2px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Product Card */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    group: hover;
    will-change: transform, box-shadow;
    transform: translate3d(0, 0, 0);
    contain: layout style paint;
}

.product-card:hover {
    transform: translate3d(0, -8px, 0);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Product Visual */
.product-visual {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--gray-50);
}

.product-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

/* Product Badges */
.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.badge.discount {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.badge.out-of-stock {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.9) 0%, 
        rgba(247, 147, 30, 0.9) 30%, 
        rgba(102, 126, 234, 0.9) 70%, 
        rgba(118, 75, 162, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.overlay-actions {
    display: flex;
    gap: 1rem;
}

.overlay-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.overlay-btn.primary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--gray-900);
    border-color: rgba(255, 255, 255, 0.3);
}

.overlay-btn.primary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Product Info */
.product-info {
    padding: 1.5rem;
}

.product-name {
    margin-bottom: 1rem;
}

.product-name a {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 30%, #667eea 70%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Product Price Area */
.product-price-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-orange);
}

.price-old {
    font-size: 1rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

/* No Products */
.no-products {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gray-50);
    border-radius: 16px;
    border: 2px dashed var(--gray-200);
}

.no-products-icon {
    margin-bottom: 1.5rem;
}

.no-products-icon svg {
    color: var(--gray-300);
}

.no-products h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.no-products p {
    font-size: 1rem;
    color: var(--gray-500);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .store-public-container {
        padding: 1rem;
    }
    
    .store-header {
        min-height: 400px;
        margin-bottom: 2rem;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        width: 100vw;
    }
    
    .store-info {
        padding: 1.5rem;
    }
    
    .store-logo,
    .default-avatar {
        width: 100px;
        height: 100px;
    }
    
    .default-avatar {
        font-size: 3rem;
    }
    
    .store-name {
        font-size: 2.25rem;
    }
    
    .store-description {
        font-size: 1rem;
    }
    
    .store-contact {
        gap: 1rem;
    }
    
    .contact-item {
        justify-content: center;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .store-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .product-info {
        padding: 1.25rem;
    }
    
    .overlay-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .store-public-container {
        padding: 0.5rem;
    }
    
    .breadcrumb {
        margin-bottom: 1rem;
    }
    
    .breadcrumb-link {
        padding: 0.25rem;
        font-size: 0.8rem;
    }
    
    .store-header {
        min-height: 300px;
        margin-bottom: 1.5rem;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        width: 100vw;
    }
    
    .store-info {
        padding: 1rem;
    }
    
    .store-logo,
    .default-avatar {
        width: 80px;
        height: 80px;
    }
    
    .default-avatar {
        font-size: 2.5rem;
    }
    
    .store-name {
        font-size: 1.75rem;
    }
    
    .store-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .store-contact {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .contact-item {
        padding: 0.5rem 1rem;
        min-width: 200px;
        justify-content: center;
    }
    
    .store-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-card {
        border-radius: 16px;
    }
    
    .badge {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Hover Effects */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.03) 0%, 
        rgba(247, 147, 30, 0.03) 30%, 
        rgba(102, 126, 234, 0.03) 70%, 
        rgba(118, 75, 162, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 20px;
}

.product-card:hover::before {
    opacity: 1;
}

/* Accessibility */
.product-card:focus-within {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

.overlay-btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .product-overlay,
    .overlay-actions {
        display: none !important;
    }
    
    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
