@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-teal: #007a8c;
    --accent-orange: #ff9000;
    --bg-white: #ffffff;
    --bg-light: #f4f4f4;
    --text-dark: #333333;
    --text-gray: #666666;
    --border-light: #e0e0e0;
    --font-main: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Navigation - Modern Design */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 122, 140, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
}

.nav-links a i {
    font-size: 1.1rem;
    color: var(--primary-teal);
    transition: transform 0.3s;
}

.nav-links a:hover i {
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 80%;
}

.nav-links a:hover {
    color: var(--primary-teal);
    background: rgba(0, 122, 140, 0.05);
}

.nav-icons {
    display: none;
    /* Hide icons as requested */
}

/* Hero Banner Section */
.hero-banner {
    background: linear-gradient(135deg, #f4f4f4 0%, #e8f4f8 100%);
    padding: 4rem 5% 3rem;
}

.banner-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.banner-item {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}

.banner-item:hover {
    transform: translateY(-5px);
}

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

.banner-large {
    grid-row: span 2;
    min-height: 400px;
}

.banner-small {
    min-height: 190px;
}

/* Section Titles */
.section-title {
    text-align: center;
    padding: 4rem 5% 2rem;
    color: var(--primary-teal);
    font-size: 2.2rem;
    font-weight: 700;
}

/* Product Grid */
.product-section {
    padding: 2rem 5% 5rem;
    background: var(--bg-white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-teal);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.product-card h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background: var(--accent-orange);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.product-btn:hover {
    background: #e68200;
    transform: scale(1.05);
}

/* Sidebar Layout */
.products-page-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    /* Reduced width */
    gap: 2rem;
    /* Reduced gap */
    padding-top: 4rem;
    padding-bottom: 5rem;
    align-items: start;
}

/* Specific title alignment for sidebar layout */
.product-section .section-title {
    text-align: left;
    padding: 0 0 2rem 0;
}

.product-section {
    padding: 0 !important;
    /* Reset specific padding */
    background: transparent !important;
}

.sidebar-filters {
    background: #fff;
    padding: 1.5rem;
    /* Reduced padding */
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-light);
    position: sticky;
    top: 100px;
    /* Adjusted top */
}

.filter-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0;
    /* Reset mobile styles */
    overflow-x: visible;
    padding-bottom: 0;
}

.filter-btn {
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    display: flex;
    /* easier alignment */
    align-items: center;
    justify-content: space-between;
}

.filter-btn:hover {
    background: var(--bg-light);
    color: var(--primary-teal);
    transform: translateX(5px);
    box-shadow: none;
    border-color: transparent;
}

.filter-btn.active {
    background: rgba(0, 122, 140, 0.08);
    color: var(--primary-teal);
    border-color: transparent;
    font-weight: 700;
    box-shadow: none;
    transform: none;
}

.filter-btn.active::after {
    content: '\f054';
    /* FontAwesome chevron-right */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.8rem;
}

/* Mobile Responsive Sidebar */
@media (max-width: 992px) {
    .products-page-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        /* Smaller gap on mobile */
        padding-top: 2rem;
        /* Less padding on mobile */
        display: block;
        /* Stack vertically */
    }

    .sidebar-filters {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0 0 1.5rem 0;
        /* Add bottom padding */
        border-radius: 0;
        background: transparent;
        width: 100%;
        overflow: hidden;
        /* Prevent page scroll */
    }

    .filter-title {
        display: none;
    }

    .filter-section {
        display: flex;
        /* Ensure flex */
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        gap: 0.8rem;
        width: 100%;
    }

    /* Hide scrollbar but allow scroll */
    .filter-section::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        width: auto;
        flex: 0 0 auto;
        background: #fff;
        border: 1px solid var(--border-light);
        border-radius: 50px;
        padding: 0.6rem 1.2rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        justify-content: center;
        font-size: 0.9rem;
        display: inline-flex;
        /* Fix flex alignment */
    }

    .filter-btn:hover {
        transform: none;
    }

    .filter-btn.active {
        background: var(--primary-teal);
        color: white;
        border-color: var(--primary-teal);
    }

    .filter-btn.active::after {
        content: none;
    }

    /* Center title on mobile */
    .product-section .section-title {
        text-align: center;
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .products-page-container {
        padding-top: 1rem;
        gap: 1.5rem;
    }
}


/* Footer */
footer {
    background: var(--bg-light);
    padding: 4rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.footer-col h4 {
    color: var(--primary-teal);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary-teal);
}

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

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
}

.wa-btn {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
}

.wa-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

/* Product Detail Page */
.product-detail {
    padding: 3rem 5%;
    background: var(--bg-white);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.back-btn:hover {
    gap: 0.8rem;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-image-large {
    background: var(--bg-light);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-large img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
}

.product-info h1 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.badge-new {
    background: var(--primary-teal);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.box-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-weight: 500;
}

.product-specs {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.product-specs h2 {
    color: var(--primary-teal);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.specs-list {
    list-style: none;
}

.specs-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: var(--text-dark);
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list i {
    color: var(--primary-teal);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

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

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent-orange);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background: #e68200;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--primary-teal);
    color: var(--primary-teal);
}

/* Responsive */
@media (max-width: 992px) {
    .banner-grid {
        grid-template-columns: 1fr;
    }

    .banner-large {
        grid-row: span 1;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-info h1 {
        font-size: 1.8rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Features Section */
.features-section {
    padding: 3rem 5%;
    background: white;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.feature-card {
    background: transparent;
    padding: 1rem;
    border-radius: 0;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    border-right: 1px solid var(--border-light);
}

.feature-card:last-child {
    border-right: none;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-teal);
    margin-bottom: 0.5rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 5%;
    background: linear-gradient(rgba(0, 122, 140, 0.9), rgba(0, 122, 140, 0.8)), url('assets/img/MARSSTAR MCM-300 INOX CAYMAKINESI.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    text-align: center;
    color: white;
    margin: 4rem 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-cta {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--accent-orange);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-cta:hover {
    background: #e68200;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* About Us Modern */
.about-hero {
    background: var(--bg-light);
    padding: 4rem 5%;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 5%;
    align-items: center;
}

.about-content h2 {
    color: var(--primary-teal);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-orange);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Contact Modern */
.contact-wrapper {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info-card {
    background: var(--primary-teal);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 122, 140, 0.2);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--accent-orange);
}

.contact-form-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary-teal);
    outline: none;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary-teal);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #006270;
}

/* Animated Hero Slider */
.hero-slider {
    background: #f4f4f4;
    padding: 3rem 0;
    overflow: hidden;
    position: relative;
}

.hero-slider::before,
.hero-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-slider::before {
    left: 0;
    background: linear-gradient(to right, #f4f4f4 0%, transparent 100%);
}

.hero-slider::after {
    right: 0;
    background: linear-gradient(to left, #f4f4f4 0%, transparent 100%);
}

.slider-track {
    display: flex;
    width: calc(280px * 14);
    /* 7 items * 2 sets * card width roughly */
    animation: scroll 40s linear infinite;
}

.slider-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-280px * 7));
        /* Move by width of one set */
    }
}

.slider-card {
    width: 250px;
    height: 320px;
    margin: 0 15px;
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    flex-shrink: 0;
    text-decoration: none;
}

.slider-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.slider-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.slider-card h4 {
    color: var(--text-dark);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.slider-price {
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Styled Hero Background (Shared) */
.hero-bg-styled {
    background: linear-gradient(rgba(0, 122, 140, 0.9), rgba(0, 122, 140, 0.8)), url('assets/img/MARSSTAR MCM-300 INOX CAYMAKINESI.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: white;
}

.hero-bg-styled h2 {
    color: white !important;
}

.hero-bg-styled p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        justify-content: center;
        padding: 1rem;
        border-radius: 0;
        width: 100%;
    }
}