/* ===================================
   Yapı Market Pro - Theme Styles
   Author: ESC Medya
   =================================== */

/* --- Custom Properties --- */
:root {
    --primary: #FF6B00;
    --primary-hover: #e65e00;
    --primary-light: rgba(255, 107, 0, 0.1);
    --dark: #1a1a2e;
    --dark-secondary: #16213e;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-color: #333333;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

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

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

/* --- Utility Classes --- */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

.section-header {
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--dark);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Buttons --- */
.btn-orange {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    padding: 10px 28px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-orange:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.btn-outline-orange {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 8px 22px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-outline-orange:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* --- Top Bar --- */
.top-bar {
    background: var(--dark);
    padding: 8px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-left span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar-left i {
    color: var(--primary);
    font-size: 12px;
}

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

.top-bar-right a {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 12px;
    font-size: 14px;
    transition: var(--transition);
}

.top-bar-right a:hover {
    color: var(--primary);
}

/* --- Navbar --- */
.main-navbar {
    background: var(--dark-secondary);
    padding: 12px 0;
    transition: var(--transition);
    z-index: 1030;
}

.main-navbar.scrolled {
    background: var(--dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 8px 0;
}

.navbar-logo {
    max-height: 45px;
    width: auto;
}

.navbar-brand-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
}

.main-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    font-size: 15px;
    position: relative;
    transition: var(--transition);
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--primary) !important;
}

.main-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
    width: 60%;
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 10px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
}

.hero-slider .carousel-item {
    height: 600px;
    position: relative;
}

.slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--dark);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(22, 33, 62, 0.6) 100%);
    z-index: 1;
}

.carousel-caption-custom {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 600px;
    max-width: 650px;
    text-align: left;
}

.carousel-caption-custom h1 {
    font-size: 52px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
}

.carousel-caption-custom p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    max-width: 500px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 107, 0, 0.7);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
    margin: 0 20px;
}

.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary);
}

/* --- Category Cards --- */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 15px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--text-color);
    border: 1px solid transparent;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
    color: var(--text-color);
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: var(--transition);
}

.category-icon i {
    font-size: 28px;
    color: var(--primary);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--primary);
}

.category-card:hover .category-icon i {
    color: var(--white);
}

.category-card h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.category-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* --- Product Cards --- */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: var(--light-bg);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
}

.product-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Why Us / About Section --- */
.why-us-image {
    position: relative;
    display: inline-block;
}

.why-us-image img {
    border-radius: var(--radius);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: var(--white);
    padding: 20px 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
}

.experience-badge .year {
    display: block;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 13px;
    font-weight: 500;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 10px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 22px;
    color: var(--primary);
}

.feature-item h6 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* --- Brand Cards --- */
.brand-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.brand-card img {
    max-height: 60px;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.brand-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Counters Section --- */
.section-counters {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-counters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,107,0,0.08)"/></svg>') repeat;
    background-size: 30px 30px;
}

.counter-item {
    position: relative;
    z-index: 1;
}

.counter-icon {
    margin-bottom: 15px;
}

.counter-icon i {
    font-size: 40px;
    color: var(--primary);
}

.counter-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}

.counter-label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* --- FAQ Accordion --- */
.faq-info {
    padding-right: 30px;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius) !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    font-size: 16px;
    padding: 18px 22px;
    color: var(--dark);
    background: var(--white);
}

.accordion-button:not(.collapsed) {
    background: var(--primary-light);
    color: var(--primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FF6B00'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    padding: 15px 22px 22px;
}

/* --- Page Header --- */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
    padding: 60px 0 40px;
    text-align: center;
}

.page-title {
    color: var(--white);
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-header .breadcrumb {
    justify-content: center;
    margin-bottom: 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb-item a:hover {
    color: var(--primary);
}

.page-header .breadcrumb-item.active {
    color: var(--primary);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* --- About Page --- */
.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* --- Value Cards --- */
.value-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid transparent;
}

.value-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.value-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-icon i {
    font-size: 30px;
    color: var(--primary);
}

.value-card h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* --- Contact Page --- */
.contact-info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid transparent;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.contact-info-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.contact-info-icon i {
    font-size: 26px;
    color: var(--primary);
}

.contact-info-card h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-info-card a {
    color: var(--text-color);
    font-weight: 500;
}

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

.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
}

.contact-form .form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.contact-form .form-floating label {
    color: var(--text-muted);
}

.form-alert {
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.form-alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* --- Footer --- */
.site-footer {
    background: var(--dark);
    padding: 60px 0 0;
    color: rgba(255, 255, 255, 0.75);
}

.footer-title {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-links a i {
    font-size: 10px;
    color: var(--primary);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-contact li i {
    color: var(--primary);
    font-size: 16px;
    margin-top: 3px;
    min-width: 16px;
}

.footer-contact li a {
    color: rgba(255, 255, 255, 0.75);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 40px;
    font-size: 14px;
}

.footer-bottom a {
    color: var(--primary);
    font-weight: 600;
}

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

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    color: var(--white);
    transform: scale(1.1);
    animation: none;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7); }
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 33px;
    width: 45px;
    height: 45px;
    background: var(--dark);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1199px) {
    .section-title {
        font-size: 32px;
    }

    .carousel-caption-custom h1 {
        font-size: 42px;
    }
}

@media (max-width: 991px) {
    .section-padding {
        padding: 60px 0;
    }

    .top-bar {
        display: none;
    }

    .hero-slider .carousel-item {
        height: 500px;
    }

    .carousel-caption-custom {
        height: 500px;
    }

    .carousel-caption-custom h1 {
        font-size: 34px;
    }

    .carousel-caption-custom p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .counter-number {
        font-size: 38px;
    }

    .faq-info {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .experience-badge {
        bottom: -10px;
        right: -10px;
        padding: 15px 20px;
    }

    .experience-badge .year {
        font-size: 28px;
    }

    .navbar-actions {
        margin: 10px 0 0 0 !important;
    }
}

@media (max-width: 767px) {
    .hero-slider .carousel-item {
        height: 450px;
    }

    .carousel-caption-custom {
        height: 450px;
        text-align: center;
    }

    .carousel-caption-custom h1 {
        font-size: 28px;
    }

    .carousel-caption-custom p {
        font-size: 15px;
        max-width: 100%;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }

    .section-title {
        font-size: 24px;
    }

    .section-padding {
        padding: 50px 0;
    }

    .counter-number {
        font-size: 32px;
    }

    .page-title {
        font-size: 28px;
    }

    .contact-form-wrapper {
        padding: 25px;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .site-footer {
        text-align: center;
    }

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

    .footer-links a {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .hero-slider .carousel-item {
        height: 400px;
    }

    .carousel-caption-custom {
        height: 400px;
    }

    .carousel-caption-custom h1 {
        font-size: 24px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top {
        bottom: 80px;
        right: 23px;
        width: 40px;
        height: 40px;
    }
}
