/* ===================================
   MAĞAZALAR PAGE STYLES
   =================================== */

/* Dark Navbar for this page */
.navbar-dark {
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);
}

.navbar-dark .logo {
    color: var(--color-primary);
}

.navbar-dark .nav-links a {
    color: var(--color-primary);
}

.navbar-dark .nav-links a.active {
    color: var(--color-secondary);
}

.navbar-dark .search-btn {
    color: var(--color-primary);
}

.navbar-dark .menu-toggle span {
    background-color: var(--color-primary);
}

/* Page Header */
.page-header {
    padding: 140px var(--space-md) var(--space-lg);
    text-align: center;
    background-color: var(--color-bg);
}

.page-header h1 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5em;
    color: var(--color-text);
}

/* Stores Section */
.stores-section,
.sales-points-section {
    padding: 0 var(--space-lg) var(--space-lg);
    background-color: var(--color-bg);
}

.stores-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Divider */
.section-divider {
    text-align: center;
    padding: var(--space-xl) 0;
    margin-top: var(--space-lg);
}

.section-divider h2 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5em;
    color: var(--color-text);
    position: relative;
    display: inline-block;
}

.section-divider h2::before,
.section-divider h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background-color: var(--color-border);
}

.section-divider h2::before {
    right: calc(100% + 30px);
}

.section-divider h2::after {
    left: calc(100% + 30px);
}

/* Store Card */
.store-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--color-border);
}

.store-card:last-child {
    border-bottom: none;
}

.store-info {
    display: flex;
    flex-direction: column;
}

.store-info h2 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
}

.store-address {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.store-phone {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.store-hours {
    margin-bottom: var(--space-sm);
}

.store-hours p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.store-hours strong {
    color: var(--color-text);
}

.store-contact {
    margin-bottom: var(--space-sm);
}

.store-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.store-contact a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.store-contact a:hover {
    color: var(--color-primary);
}

.store-contact svg {
    flex-shrink: 0;
    color: var(--color-text-muted);
}

/* Map Link */
.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    text-decoration: none;
    padding: 0.75rem 0;
    margin-bottom: var(--space-md);
    transition: color 0.3s ease;
}

.map-link:hover {
    color: var(--color-secondary);
}

.map-link svg {
    width: 12px;
    height: 12px;
}

/* Store Gallery */
.store-gallery {
    margin-top: auto;
}

.gallery-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gallery-images {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.gallery-images img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-images img.active {
    opacity: 1;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-arrow:hover {
    background: white;
}

.gallery-arrow.prev {
    left: 10px;
}

.gallery-arrow.next {
    right: 10px;
}

.gallery-arrow svg {
    color: var(--color-primary);
}

/* Store Map */
.store-map {
    position: relative;
    min-height: 400px;
    background: #f0f0f0;
}

.store-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

/* Map Info Card */
.map-info-card {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    background: white;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    max-width: 280px;
}

.map-info-card h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.map-info-card p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
}

.map-info-card .rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.map-info-card .stars {
    color: #ffc107;
    font-size: 0.85rem;
}

.map-info-card .count {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.map-info-card .directions-btn {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--color-secondary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.map-info-card .directions-btn:hover {
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 992px) {
    .store-card {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .store-map {
        min-height: 350px;
        order: 2;
    }
}

@media (max-width: 600px) {

    .stores-section,
    .sales-points-section {
        padding: 0 var(--space-md) var(--space-lg);
    }

    .page-header {
        padding: 120px var(--space-md) var(--space-md);
    }

    .page-header h1 {
        font-size: 0.85rem;
        letter-spacing: 0.4em;
    }

    .section-divider h2 {
        font-size: 0.85rem;
    }

    .section-divider h2::before,
    .section-divider h2::after {
        width: 30px;
    }

    .section-divider h2::before {
        right: calc(100% + 15px);
    }

    .section-divider h2::after {
        left: calc(100% + 15px);
    }

    .store-info h2 {
        font-size: 0.8rem;
    }

    .gallery-images {
        height: 180px;
    }

    .map-info-card {
        max-width: 200px;
        padding: 12px 15px;
    }
}

/* Animation */
.store-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.store-card:nth-child(1) {
    animation-delay: 0.1s;
}

.store-card:nth-child(2) {
    animation-delay: 0.2s;
}

.store-card:nth-child(3) {
    animation-delay: 0.3s;
}

.store-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}