/* ====================================
   BURSASPOR FORMA KOLEKSİYONU - V2
   Design System & Main Styles
   ==================================== */

:root {
    /* Colors */
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #C8E6C9;
    --bg-body: #f8f9fa;
    --bg-surface: #ffffff;
    --bg-dark: #0a0a0a;
    --text-main: #1a1a1a;
    --text-secondary: #555555;
    --text-light: #888888;
    --border-color: #e0e0e0;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-max-width: 1200px;
    --header-height: 80px;

    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Definitions */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 6rem 0;
}

/* Header & Navigation */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
}

.logo img {
    height: 40px;
}

.nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.nav a:hover,
.nav a.active {
    color: var(--primary-color);
}

/* Common Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 2px solid var(--text-main);
    color: var(--text-main);
    background: transparent;
}

.btn-outline:hover {
    background: var(--text-main);
    color: white;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-brand .logo img {
    height: auto;
    width: 163px;
}

.footer-brand p {
    margin-bottom: 3rem;
}

.footer-content {
    margin-bottom: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
    /* Align items to the top */
}

.footer-social .social-icons {
    justify-content: flex-end;
    /* Right align icons */
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

/* Footer Specific Alignments */
.footer-links ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Strictly align everything to the right */
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Strictly align everything to the center */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /* Strictly equal columns */
    gap: 2rem;
    align-items: start;
}

/* Hero Section */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}


/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    /* Hero Buttons Mobile */
    .hero-buttons {
        gap: 0.8rem;
    }

    .hero-buttons .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        min-width: auto;
        /* Allow buttons to shrink if needed */
    }

    /* Mobile Navigation */
    .header .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        transition: height 0.3s ease;
        padding: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }

    .header .nav.active {
        height: calc(100vh - var(--header-height));
        padding: 2rem 0;
        display: flex;
        /* Ensure it overrides any default hiding */
    }

    .nav a {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-main);
    }

    .mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1001;
    }

    .mobile-toggle span {
        width: 30px;
        height: 3px;
        background-color: var(--text-main);
        transition: all 0.3s ease;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .section {
        padding: 4rem 0;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Center list items */
    }

    .footer-social {
        align-items: center;
        /* Center social icons */
    }

    .footer-social .social-icons {
        justify-content: center;
    }

    /* Detail Page Mobile */
    .product-grid-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .product-grid-layout>div:first-child {
        /* Image container */
        position: static !important;
    }

    /* Contact Form Mobile */
    .contact-form-grid {}

    /* Contact Page */
    .contact-form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Slider Styles */
.swiper {
    width: 100%;
    height: 80vh;
    /* Default desktop height */
    margin-top: var(--header-height);
    position: relative;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.slide-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Overlay to darken image for text readability if needed */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Slight overlay */
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* Ensure text stacks vertically */
    color: #fff;
    padding: 2rem;
    /* Add padding to prevent text touching edges */
}

.slide-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-description {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Button override for slider */
.slide-overlay .btn-primary {
    border: 2px solid transparent;
}

.slide-overlay .btn-outline {
    border-color: #fff;
    color: #fff;
}

.slide-overlay .btn-outline:hover {
    background: #fff;
    color: var(--primary-color);
}

/* Swiper Navigation Customization */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .swiper {
        height: auto;
        /* Allow height to adapt to content (image) */
    }

    .slide-title {
        font-size: 2.5rem;
        /* Smaller title */
    }

    .slide-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
        /* Hide arrows on mobile for cleaner look */
    }

    /* Hide desktop background image, show mobile img tag */
    .slide-image-desktop {
        display: none !important;
    }

    .slide-image-mobile {
        display: block !important;
        width: 100%;
        height: auto;
    }
}

/* Base Styles for new classes */
.slide-image-mobile {
    display: none;
    /* Hidden by default on desktop */
}

.slide-image-desktop {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    /* Default to cover for desktop full screen experience */
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Featured Tabs Styles */
.featured-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 2rem;
    border: none;
    background: #f1f3f5;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
}

.tab-btn:hover {
    background: #e9ecef;
    color: var(--text-main);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.featured-tab-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Product Card Styles (replaces inline styles) */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-image-container {
    height: 250px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-image-container img {
    max-height: 100%;
    object-fit: contain;
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.3;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-info .season {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-info .meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.page-link.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #f8f9fa;
}

.page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    color: var(--text-light);
    pointer-events: none;
    padding: 0 0.5rem;
}

.page-link {
    min-width: 36px;
    height: 36px;
    font-size: 0.9rem;
}
}

/* Filter Form Styles */
/* Filter Form Styles */
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    background: #f8f9fa;
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.filter-form input,
.filter-form select {
    flex: 1 1 140px;
    /* Grow and shrink, min-width 140px */
    width: auto;
    /* Override 100% */
    padding: 0 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: white;
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s ease;
    height: 48px;
    font-weight: 500;
}

/* Search input should be slightly larger if possible */
.filter-form input[name="q"] {
    flex: 2 1 200px;
}

/* Custom Select Styling */
.filter-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Search Input Icon */
.filter-form input[name="q"] {
    padding-left: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.8rem center;
}

.filter-form input:focus,
.filter-form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 137, 72, 0.1);
}

.filter-form .btn {
    flex: 0 0 auto;
    /* Don't grow/shrink */
    height: 48px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.filter-form .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    /* On medium screens, maybe 2 rows are okay if needed, but Flexbox handles wrapping naturally.
       We can force some width adjustments if needed. */
}

@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
        gap: 0.8rem;
    }

    .filter-form input,
    .filter-form select,
    .filter-form .btn {
        width: 100%;
        flex: 1 1 auto;
    }
}
