/* HiraGold Modern Theme with Dark Mode Support */
:root {
    /* Light Mode (Varsayılan) */
    --primary: #D4AF37;
    --primary-dark: #B4941F;
    --primary-light: #F4E4B5;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --background-primary: #FFFFFF;
    --background-secondary: #F5F5F5;
    --background-tertiary: #EEEEEE;
    --border-color: #E0E0E0;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --header-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Dark Mode Classes */
[data-theme="dark"] {
    --primary: #F1C644;
    --primary-dark: #D4AF37;
    --primary-light: #5F4D0E;
    --text-primary: #FFFFFF;
    --text-secondary: #BBBBBB;
    --background-primary: #121212;
    --background-secondary: #1E1E1E;
    --background-tertiary: #2D2D2D;
    --border-color: #333333;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.3);
    --header-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* General Styles */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    background-color: var(--background-primary);
    line-height: 1.6;
    overflow-x: hidden;
    margin-top: 40px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    color: #FFF;
    border: none;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 26px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.section-title .separator {
    width: 80px;
    height: 3px;
    background-color: var(--primary);
    margin: 0 auto;
}

.section-title p {
    max-width: 600px;
    margin: 15px auto 0;
    color: var(--text-secondary);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: var(--background-primary);
    box-shadow: var(--header-shadow);
    transition: all 0.3s ease;
}


.header.scrolled {
    padding: 15px 0;
}

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

.header .logo img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(1);
}

.header.scrolled .logo img {
    height: 50px; /* Kaydırma sırasında logo boyutu */
}

/* Dark mode filtresi */
[data-theme="dark"] .header .logo img {
    filter: brightness(1.5);
}

.header .nav {
    display: flex;
    align-items: center;
}

.header .nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header .nav-item {
    margin: 0 15px;
}

.header .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.header .nav-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

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

.header .nav-link:hover:before,
.header .nav-link.active:before {
    width: 100%;
}

/* Nav Actions - Search & Theme Switch */
.nav-actions {
    display: flex;
    align-items: center;
    margin-left: 15px;
    position: relative;
    z-index: 1100;
}

.search-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px 10px;
    margin-right: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.search-btn:hover {
    color: var(--primary);
    background-color: var(--background-secondary);
    transform: scale(1.1);
}

.theme-switch {
    margin-left: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.theme-switch:hover {
    background-color: var(--background-secondary);
}

.theme-switch i {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    position: relative;
    z-index: 1050;
}

.mobile-menu-btn:hover {
    color: var(--primary);
}

/* Bootstrap Carousel Yeni Tasarım */
.hero-carousel-section {
    margin-top: 80px;
    height: 60vh;
    min-height: 400px;
    position: relative;
    z-index: 1;
    max-width: 100%;
    overflow: hidden;
}

.carousel {
    height: 100%;
}

.carousel-inner, .carousel-item {
    height: 100%;
    position: relative;
}

.full-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.full-slide-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-indicators {
    z-index: 5;
    bottom: 15px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: 0;
    margin: 0 5px;
}

.carousel-indicators .active {
    background-color: #fff;
    transform: scale(1.2);
}

.carousel-control-prev, .carousel-control-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    z-index: 5;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background: rgba(0,0,0,0.5);
    opacity: 1;
}

/* Products Section */
.products-section {
    padding: 100px 0;
    background-color: var(--background-secondary);
}

.product-card {
    background-color: var(--background-primary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.product-info {
    padding: 25px;
}

.product-category {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.product-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-weight {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.product-action {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.product-action i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.product-action:hover {
    color: var(--primary-dark);
}

.product-action:hover i {
    transform: translateX(3px);
}

/* Blog Section */
.blog-section {
    padding: 50px 0;
}

.blog-card {
    background-color: var(--background-primary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.blog-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
}

.blog-date {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.blog-excerpt {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.blog-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.blog-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.blog-link:hover {
    color: var(--primary-dark);
}

.blog-link:hover i {
    transform: translateX(3px);
}

/* Footer */
.footer {
    background-color: var(--background-tertiary);
    color: var(--text-primary);
    padding: 70px 0 20px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
}

.footer-contact {
    margin-bottom: 25px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--background-primary);
    color: var(--primary);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    color: #FFF;
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.newsletter-form .form-control {
    background-color: var(--background-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 4px 0 0 4px;
}

.newsletter-form .btn {
    border-radius: 0 4px 4px 0;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 50px;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .header .container {
        position: relative;
    }
    
    .mobile-menu-btn {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        display: block;
    }
    
    .header .logo img {
        height: 50px; /* Mobilde daha da küçük logo */
        width: auto;
    }
    
    .header.scrolled .logo img {
        height: 38px; /* Kaydırma sırasında mobilde daha küçük */
    }
    
    .hero-carousel-section {
        height: 50vh;
        min-height: 350px;
    }
    
    .nav-actions {
        position: absolute;
        right: 70px;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
    }
    
    .header .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background-color: var(--background-primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .header .nav-list.active {
        left: 0;
        z-index: 1040;
    }
    
    .header .nav-item {
        margin: 15px 0;
    }
}

@media (max-width: 767px) {
    .hero-carousel-section {
        height: 40vh;
        min-height: 300px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .product-card,
    .blog-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 575px) {
    .hero-carousel-section {
        height: 30vh;
        min-height: 250px;
        margin-top: 70px;
    }
    
    .carousel-control-prev, .carousel-control-next {
        width: 30px;
        height: 30px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* Ürün Detay Sayfası */
.product-detail-section {
    padding-top: 80px;
}

.product-detail-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.product-detail-image img {
    object-fit: contain;
    max-height: 100%;
    transition: transform 0.5s ease;
}

.gallery-thumb {
    height: 80px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-secondary);
    transition: all 0.3s ease;
}

.gallery-thumb:hover {
    transform: translateY(-3px);
}

.gallery-thumb img {
    object-fit: contain;
    max-height: 100%;
    transition: all 0.3s ease;
}

.product-detail-title {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.spec-item {
    transition: all 0.3s ease;
}

.spec-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.spec-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.product-contact-buttons .btn {
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-contact-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.description-content {
    line-height: 1.8;
    color: var(--text-secondary);
}

.cursor-pointer {
    cursor: pointer;
}

/* Ürün Listesi Sayfası */
.products-list-section {
    padding-top: 120px;
    padding-bottom: 80px;
    background-color: var(--background-secondary);
}

.products-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

/* Filtre Bileşenleri */
.product-filters {
    background-color: var(--background-primary);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

.filter-section {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.filter-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

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

.filter-list li {
    margin-bottom: 12px;
}

.filter-list li:last-child {
    margin-bottom: 0;
}

.filter-list a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: 5px 0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.filter-list a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.filter-list a.active {
    color: var(--primary);
    font-weight: 500;
}

/* Responsive Düzenlemeler */
@media (max-width: 991px) {
    .products-list-section {
        padding-top: 100px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .product-filters {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .products-list-section {
        padding-top: 90px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
}

/* Search Modal Styles */
.search-modal .modal-content {
    background-color: var(--background-primary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.search-modal .modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
}

.search-modal .modal-title {
    color: var(--text-primary);
    font-weight: 600;
}

.search-modal .modal-body {
    padding: 20px;
}

.search-modal .form-control {
    background-color: var(--background-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 15px;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.search-modal .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.search-modal .btn-search {
    background-color: var(--primary);
    color: white;
    padding: 0 20px;
    border: none;
    border-radius: 0 5px 5px 0;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-modal .btn-search:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.search-results {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.search-results-title {
    font-size: 16px;
    margin-bottom: 15px;
    color: #8B7530;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 8px;
}

.search-result-item {
    display: flex;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    background-color: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.search-result-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    background-color: rgba(212, 175, 55, 0.1);
}

.search-result-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.search-result-content {
    flex: 1;
}

.search-result-content h5 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.search-result-details {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.product-category, .product-stock-code {
    font-size: 13px;
    margin-right: 10px;
    color: #666;
}

.product-specs {
    display: flex;
    gap: 10px;
}

.product-spec {
    font-size: 12px;
    background-color: rgba(212, 175, 55, 0.2);
    color: #8B7530;
    padding: 2px 8px;
    border-radius: 4px;
}

.search-no-results {
    text-align: center;
    padding: 30px 20px;
    color: #666;
}

.search-no-results i {
    font-size: 2rem;
    display: block;
    margin-bottom: 15px;
    color: #aaa;
}

/* Modal Stilleri Geliştirme */
.search-modal .modal-content {
    background-color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.search-modal .modal-header {
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 15px 20px;
}

.search-modal .modal-title {
    font-size: 18px;
    color: #8B7530;
}

.search-modal .modal-body {
    padding: 20px;
}

.search-modal .btn-close {
    background-color: rgba(212, 175, 55, 0.1);
    padding: 4px;
    border-radius: 50%;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .search-modal .modal-dialog {
        margin: 10px;
        max-width: 100%;
    }
    
    .search-result-item {
        padding: 15px 10px;
    }
    
    .search-result-details {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-stock-code {
        margin-top: 5px;
    }
}

/* Header Contact Buttons */
.header-contact-buttons {
    display: flex;
    margin-left: 20px;
}

.header-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-secondary);
    color: var(--text-primary);
    border-radius: 30px;
    padding: 8px 15px;
    margin-left: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.header-contact-btn i {
    margin-right: 5px;
    font-size: 1rem;
}

.header-contact-btn.phone-btn {
    border: 1px solid var(--primary);
}

.header-contact-btn.phone-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.header-contact-btn.whatsapp-btn {
    background-color: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border: 1px solid #25D366;
}

.header-contact-btn.whatsapp-btn:hover {
    background-color: #25D366;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

@media (max-width: 991px) {
    .header-contact-buttons {
        display: none; /* Mobilde gizle */
    }
}

/* Mobile Sticky Contact Buttons */
.mobile-contact-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-primary);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px 0;
}

.mobile-contact-buttons {
    display: flex;
    justify-content: space-around;
}

.mobile-contact-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 0 5px;
}

.mobile-contact-btn i {
    font-size: 24px;
    margin-bottom: 5px;
}

.mobile-contact-btn span {
    font-size: 12px;
    font-weight: 500;
}

.mobile-contact-btn.phone-btn {
    color: var(--primary);
}

.mobile-contact-btn.phone-btn:active {
    background-color: rgba(212, 175, 55, 0.1);
}

.mobile-contact-btn.whatsapp-btn {
    background-color: transparent;
    color: #25D366;
}

.mobile-contact-btn.whatsapp-btn:active {
    background-color: rgba(37, 211, 102, 0.1);
}

@media (max-width: 991px) {
    .mobile-contact-bar {
        display: block;
    }
    
    /* Bottom padding for body to account for the sticky bar */
    body {
        padding-bottom: 70px;
    }
} 