body {
    font-family: 'Poppins', sans-serif;
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader-container.fade-out {
    opacity: 0;
}

.loader {
    text-align: center;
}

.loader img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    animation: logoPulse 1.5s ease-in-out infinite;
}

@keyframes logoPulse {
    0% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive loader */
@media (max-width: 768px) {
    .loader img {
        width: 35%;
    }
}

@media (max-width: 480px) {
    .loader img {
        width: 35%;
    }
}

.category-card {
    position: relative;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    height: 100px;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-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;
    transition: all 0.3s ease;
}

.category-overlay:hover {
    background: rgba(0, 0, 0, 0.7);
}

.category-title {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.product-section {
    display: none;
}

.product-card {
    margin-bottom: 20px;
    transition: transform 0.3s;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.product-card .d-flex {
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card.out-of-stock {
    opacity: 0.7;
}

.product-card.out-of-stock img {
    filter: grayscale(100%);
}

.product-image-container {
    width: 120px;
    height: 120px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    padding: 12px;
    flex: 1;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.product-description {
    color: #6c757d;
    margin-bottom: 8px;
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    height: 2.8em;
}

.product-price {
    font-size: 1rem;
    font-weight: 600;
    color: #28a745;
}

.stock-status {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 8px;
}

.stock-status.in-stock {
    background-color: #d4edda;
    color: #155724;
}

.stock-status.out-of-stock {
    background-color: #f8d7da;
    color: #721c24;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.back-to-categories {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    min-width: fit-content;
    font-size: 0.9rem;
    height: 34px;
}

.back-to-categories:hover {
    background: #5a6268;
    color: white;
}

.category-title-container {
    display: none;
    margin-bottom: 20px;
}

.category-title-container.show {
    display: block !important;
}

.header-section {
    background: #f8f9fa;
}

.header-section .d-flex {
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-title-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    text-align: right;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 34px;
}

.search-container {
    width: 100%;
}

#urunArama {
    border-right: none;
}

#aramaSifirla {
    border-left: none;
    background: #343a40;
    color: white;
    border-color: #ced4da;
}

#aramaSifirla:hover {
    background-color: #23272b;
    color: white;
}

#aramaSifirla:active {
    background-color: #1d2124;
    color: white;
}

#aramaSifirla:focus {
    box-shadow: none;
    color: white;
}

.feedback-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background-color: #25D366;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.05);
}

.offcanvas {
    max-width: 300px;
    background-color: #3b3b3b;
    padding: 0;
}

.welcome-header {
    background-color: #25426f;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-header h5 {
    color: white;
    margin: 0;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.welcome-header .btn-close {
    background-color: transparent;
    filter: invert(1) grayscale(100%) brightness(200%);
}

.logo-section {
    background-color: #3b3b3b;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #4a4a4a;
}

.business-logo {
    width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.business-name {
    color: white;
    margin-top: 10px;
    font-size: 18px;
    font-weight: 500;
}

.business-location {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 5px;
}

.business-id {
    color: #aaa;
    font-size: 12px;
}

.info-section-title {
    color: white;
    padding: 15px 20px;
    font-weight: 500;
    margin: 0;
    border-bottom: 1px solid #4a4a4a;
    font-size: 14px;
}

.business-info {
    padding: 20px;
    color: white;
    background-color: #3b3b3b;
}

.business-info .info-item {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    color: white;
}

.business-info .info-item i {
    width: 20px;
    margin-right: 10px;
    margin-top: 4px;
}

.business-info .info-item span {
    flex: 1;
    font-size: 14px;
}

.social-media-title {
    color: white;
    padding: 15px 20px 10px;
    font-weight: 500;
    margin: 0;
    font-size: 14px;
}

.social-links {
    padding: 0 20px 20px;
    background-color: #3b3b3b;
}

.social-links a {
    color: white;
    font-size: 14px;
    margin-bottom: 10px;
    text-decoration: none;
    display: block;
}

.footer-text {
    color: #aaa;
    font-size: 12px;
    text-align: center;
    padding: 20px;
    background-color: #3b3b3b;
    border-top: 1px solid #4a4a4a;
}

.navbar-toggler {
    padding: 0;
    border: none;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.svg-inline--fa {
    color: white;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #343a40;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
    margin-top: 5px;
}

.language-menu.show {
    display: block;
}

.language-menu a {
    color: white;
    padding: 10px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.language-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.current-language-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    border: 2px solid rgba(255,255,255,0.3);
}

.nav-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.modern-lang-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 0.875rem;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-weight: 500;
}

.modern-lang-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: white;
}

.lang-code {
    font-weight: 600;
    font-size: 0.7rem;
}

.dropdown-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.modern-lang-btn:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-icon-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.nav-icon-btn:hover {
    opacity: 0.8;
    color: white;
    text-decoration: none;
}

@media (max-width: 767px) {
    .header-section {
        padding: 10px !important;
    }
    
    .header-section .d-flex {
        flex-direction: row !important;
        align-items: center !important;
        gap: 15px;
    }
    
    .back-to-categories {
        font-size: 0.85rem;
        padding: 6px 12px;
        margin: 0;
    }
    
    .category-title-text {
        font-size: 0.95rem;
        margin: 0;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    
    .search-container {
        margin-top: 10px;
    }
}

.navbar {
    transition: all 0.3s ease;
}

.navbar .category-title-nav {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    display: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 767px) {
    .navbar .category-title-nav {
        font-size: 1rem;
    }
}

.popular-products-section {
    padding: 10px 0;
    position: relative;
    margin-bottom: 15px;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.section-title {
    color: #333;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.popular-products-carousel {
    position: relative;
    padding: 0 30px;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

.popular-products-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    gap: 10px;
    padding: 5px 0;
    cursor: grab;
}

.popular-products-wrapper:active {
    cursor: grabbing;
}

.popular-product-item {
    flex: 0 0 calc(33.333% - 7px);
    min-width: calc(33.333% - 7px);
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0.7;
    transform: scale(0.95);
    padding: 2px;
}

.popular-product-item.active {
    opacity: 1;
    transform: scale(1);
}

.popular-product-image {
    width: 100%;
    height: 0;
    padding-bottom: 80%;
    position: relative;
    margin-bottom: 5px;
    border-radius: 8px;
    overflow: hidden;
}

.popular-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-product-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 2px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: rgba(0,0,0,0.7);
}

.carousel-nav.prev {
    left: 2px;
}

.carousel-nav.next {
    right: 2px;
}

@media (max-width: 767px) {
    .popular-product-item {
        flex: 0 0 calc(33.333% - 4px);
        min-width: calc(33.333% - 4px);
    }
    
    .popular-product-name {
        font-size: 0.7rem;
    }

    .popular-product-image {
        padding-bottom: 70%;
    }

    .carousel-nav {
        width: 18px;
        height: 18px;
    }

    .carousel-nav.prev {
        left: 2px;
    }
    
    .carousel-nav.next {
        right: 2px;
    }
}

.rating-modal .modal-content {
    border-radius: 10px;
    border: none;
}

.rating-modal .modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 10px 10px 0 0;
    padding: 15px 20px;
}

.rating-modal .modal-body {
    padding: 20px;
    text-align: center;
}

.rating-modal .rating-text {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.rating-modal .rating-btn {
    background-color: #4285f4;
    color: white;
    padding: 10px 24px;
    border-radius: 5px;
    border: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.rating-modal .rating-btn:hover {
    background-color: #3367d6;
    color: white;
    text-decoration: none;
}

.rating-modal .store-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin: 15px 0 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rating-modal .modal-dialog {
    max-width: 800px;
}

@media (max-width: 767px) {
    .rating-modal .store-image {
        height: 300px;
    }
    
    .rating-modal .modal-dialog {
        max-width: 95%;
        margin: 10px auto;
    }
}

.search-container {
    position: relative;
}

#urunArama {
    padding-right: 40px;
}

#aramaSifirla {
    border-left: none;
}

#aramaSifirla:hover {
    background-color: #e9ecef;
}

@media (max-width: 767px) {
    .category-title-container .d-flex {
        flex-direction: column;
        gap: 10px;
    }
    
    .category-title-text {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .search-container {
        width: 100%;
        margin-top: 10px;
    }
}

.product-section .row {
    margin: 0 -15px;
    row-gap: 20px;
}

.product-section .col-md-6 {
    padding: 0 15px;
}

.product-card {
    height: 100%;
    margin: 0;
}

@media (max-width: 767px) {
    .product-section .row {
        row-gap: 15px;
    }
    
    .product-section .col-md-6 {
        padding: 0 10px;
    }
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: #000000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 1000;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 12px;
    gap: 4px;
}

.bottom-nav-item i {
    font-size: 20px;
}

.bottom-nav-item span {
    font-size: 11px;
}

.bottom-nav-item:hover {
    color: #fff;
    opacity: 0.8;
}

.feedback-circle {
    background: #dc3545;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    bottom: 0px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin-top: -20px;
}

.feedback-circle i {
    font-size: 28px;
    margin: 0;
    color: white;
}

.feedback-circle span {
    display: none;
}

.whatsapp-btn {
    display: none;
}

body {
    padding-bottom: 70px;
}

/* Bottom navigation her zaman görünür olsun */
.bottom-nav {
    display: flex !important;
}

.feedback-btn {
    display: none !important;
}

.whatsapp-btn {
    display: none !important;
}

body {
    padding-bottom: 70px !important;
}

.wifi-icon {
    font-size: 48px;
    color: #0d6efd;
    display: block;
}

.wifi-text {
    color: #666;
    font-size: 0.9rem;
}

.wifi-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
}

.wifi-item {
    margin-bottom: 12px;
}

.wifi-item:last-child {
    margin-bottom: 0;
}

.wifi-label {
    font-weight: 500;
    color: #333;
    display: inline-block;
    width: 100px;
}

.wifi-value {
    color: #666;
}

.modal-content {
    border: none;
    border-radius: 15px;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 15px 20px;
}

.modal-body {
    padding: 20px;
}

.offcanvas-header .btn-close {
    filter: none !important;
    opacity: 0.7;
}

.offcanvas-body {
    color: white;
}

.offcanvas .nav-link {
    color: white;
}

.offcanvas .nav-link:hover {
    color: rgba(255,255,255,0.8);
}

.goog-te-banner-frame,
.goog-te-gadget {
    display: none !important;
}

body {
    top: 0 !important;
    position: relative !important;
}

.goog-te-combo {
    display: none !important;
}

.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#google_translate_element {
    position: fixed !important;
    bottom: -999999px !important;
    left: -999999px !important;
    z-index: -99999 !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.skiptranslate {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

iframe.skiptranslate {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.offcanvas-end {
    width: 300px;
    background-color: #ffffff !important;
}

.category-menu-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
}

.list-group-item {
    border: none;
    padding: 12px 16px;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.offcanvas-header {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offcanvas-title {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.offcanvas-body {
    padding: 1rem 0;
}

.list-group-item.active {
    background-color: #f8f9fa;
    color: #0d6efd;
    border-color: transparent;
}

.bottom-nav-item:hover {
    opacity: 0.8;
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

.offcanvas-start {
    background-color: #3b3b3b !important;
}

.offcanvas-start .offcanvas-body,
.offcanvas-start .nav-link,
.offcanvas-start .welcome-header h5,
.offcanvas-start .business-info,
.offcanvas-start .info-item,
.offcanvas-start .social-links a {
    color: white !important;
}

.offcanvas-start .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
}
/* URL tabanlı kategori sistemi için CSS */
.category-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.breadcrumb-nav {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.breadcrumb-nav span {
    color: #6c757d;
    font-weight: 500;
}

.back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
    transform: translateX(-2px);
}

.category-info {
    background: #e9ecef;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}

.category-info i {
    color: #007bff;
}

/* Kategori kartları için iyileştirmeler */
.category-card {
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Alt kategori başlıkları */
.category-title {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    font-weight: 600;
}

/* Responsive iyileştirmeler */
@media (max-width: 767px) {
    .breadcrumb-nav {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .back-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .category-info {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* Feedback Circle CSS Override - Default tema için düzeltme */
.bottom-nav .feedback-circle {
    background: #dc3545 !important;
    width: 65px !important;
    height: 65px !important;
    border-radius: 50% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    bottom: 0px !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    margin-top: -20px !important;
}

.bottom-nav .feedback-circle i {
    font-size: 28px !important;
    margin: 0 !important;
    color: white !important;
}

.bottom-nav .feedback-circle span {
    display: none !important;
}


/* TEMA3'TEN KOPYALANAN ÇALIŞAN FEEDBACK CIRCLE KODU */
.feedback-circle {
    background: #dc3545 !important;
    width: 65px !important;
    height: 65px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    bottom: 0px !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    margin-top: -20px !important;
    /* Kritik düzeltmeler - gap ve flex-direction override */
    flex-direction: row !important;
    gap: 0 !important;
    min-width: 65px !important;
    min-height: 65px !important;
    max-width: 65px !important;
    max-height: 65px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}

/* Feedback circle içindeki icon */
.feedback-circle i {
    font-size: 28px !important;
    margin: 0 !important;
    color: white !important;
    line-height: 1 !important;
}

/* Feedback circle içindeki span gizle */
.feedback-circle span {
    display: none !important;
}

/* Bottom nav item'ın feedback circle'a etkisini tamamen kaldır */
.bottom-nav-item.feedback-circle {
    flex-direction: row !important;
    gap: 0 !important;
}
