:root {
    --primary-color: #1a1a1a;
    --secondary-color: #6c757d;
    --accent-color: #c5a47e;
    /* Altın/Bej tonu */
    --bg-light: #f8f9fa;
    --font-main: 'Manrope', sans-serif;
    --font-serif: 'Manrope', serif;
    color-scheme: light;
}

/* Logo boyutlandırma */
.header-logo {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.mobile-menu-logo {
    height: 32px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.footer-logo {
    height: 48px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.font-serif {
    font-family: 'Manrope', serif !important;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--primary-color);
    overflow-x: hidden;
    padding-top: 54px;
    /* Navbar height compensation */
}

body.auth-page {
    padding-top: 0 !important;
}

body.homepage {
    padding-top: 54px !important;
}

body.theme-saten {
    padding-top: 0 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Manrope', serif;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    padding: 0rem 0;
    background: #ffffff;
}

/* Navbar Button Styles */
.navbar .btn-custom {
    border: 1px solid #000000;
    color: #000000 !important;
    background: transparent;
}

.navbar .btn-custom:hover {
    background-color: #000000;
    color: #ffffff !important;
}

.navbar-brand {
    font-family: 'Manrope', serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.mobile-menu-logo {
    max-height: 32px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0 10px;
    position: relative;
    color: #000000 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #000000;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.is-active::after,
.nav-link.active::after {
    width: 100%;
}

/* Search Overlay */
.search-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    /* Changed from visibility/opacity to display for safety */
    backdrop-filter: blur(5px);
}

.search-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.search-overlay input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-overlay input:focus {
    box-shadow: none;
    border-color: #fff !important;
}

.hover-bg-white:hover {
    background-color: #fff !important;
    color: #000 !important;
}

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

/* Products */
.product-card {
    border: none;
    background: transparent;
    margin-bottom: 0;
}

.product-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

/* Ürün resmi tutarlı oran - tüm kartlarda aynı boyut */
.urun-ratio {
    aspect-ratio: 9 / 16;
}

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

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

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

.product-actions {
    position: absolute;
    bottom: -60px;
    /* Adjusted for larger buttons */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    transition: bottom 0.3s ease;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-title {
    font-size: 1rem;
    /* Adjusted for long names */
    margin-bottom: 0.5rem;
    font-weight: 600;
    /* Increased weight */
}

.product-price {
    color: var(--secondary-color);
    font-weight: 400;
    font-size: 1.1rem;
}

/* Hover Actions Buttons */
.product-hover-actions .btn {
    padding: 15px 0;
    /* Larger buttons */
    font-size: 1rem;
    font-weight: 500;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.about-image {
    height: 500px;
    object-fit: cover;
    width: 100%;
}

/* Cart Drawer Styles */
.offcanvas {
    border-left: none;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

.offcanvas-header {
    padding: 1.5rem;
}

.offcanvas-title {
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.cart-item {
    transition: all 0.3s ease;
    background-color: #fff;
    border-radius: 4px;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

.cart-item-image {
    width: 80px !important;
    height: 110px !important;
    flex-shrink: 0;
    background-color: #f1f1f1;
    border-radius: 4px;
    overflow: hidden;
}

.cart-item-title {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--primary-color);
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-variant {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.5rem !important;
}

.quantity-selector {
    border: 1px solid #eee;
    display: inline-flex;
    align-items: center;
    height: 28px;
    border-radius: 4px;
    background-color: #fff;
}

.quantity-selector button {
    width: 28px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background-color 0.2s;
    border: none;
    background: transparent;
}

.quantity-selector button:hover {
    background-color: #f5f5f5;
}

.quantity-selector input {
    width: 30px;
    height: 100%;
    border: none;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    text-align: center;
    font-size: 0.85rem;
    background: transparent;
    padding: 0;
}

.cart-item-price {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 700;
}

.remove-item-btn {
    transition: color 0.2s ease;
    opacity: 0.6;
}

.remove-item-btn:hover {
    color: #dc3545 !important;
    /* Bootstrap danger color */
    opacity: 1;
}

/* Favorites Drawer Styles */
.fav-item {
    transition: all 0.3s ease;
    background-color: #fff;
    border-radius: 4px;
}

.fav-item:hover {
    background-color: #f8f9fa;
}

.fav-item-image {
    width: 80px !important;
    height: 110px !important;
    flex-shrink: 0;
    background-color: #f1f1f1;
    border-radius: 4px;
    overflow: hidden;
}

.fav-item-title {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--primary-color);
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fav-item-price {
    font-size: 0.95rem;
    color: var(--primary-color);
}

.remove-fav-btn {
    transition: color 0.2s ease;
    opacity: 0.6;
}

.remove-fav-btn:hover {
    color: #dc3545 !important;
    opacity: 1;
}

.offcanvas-footer {
    background-color: #fff;
    padding: 1.5rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Ürün Açıklama HTML İçerik Stili */
.urun-aciklama-icerik p {
    margin-bottom: 0.75rem;
}

.urun-aciklama-icerik h2,
.urun-aciklama-icerik h3,
.urun-aciklama-icerik h4 {
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

.urun-aciklama-icerik ul,
.urun-aciklama-icerik ol {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.urun-aciklama-icerik a {
    color: var(--bs-primary);
}

.urun-aciklama-icerik p:last-child {
    margin-bottom: 0;
}

/* Product Detail Styles */
.object-fit-cover {
    object-fit: cover;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

/* Product Card Hover Effects (Listing) */
.product-card:hover .product-hover-actions {
    opacity: 1 !important;
}

.transition-opacity {
    transition: opacity 0.3s ease;
}

/* Hide scrollbar for sticky sidebar but keep functionality */
.sticky-top::-webkit-scrollbar,
.product-details-sticky::-webkit-scrollbar {
    width: 6px;
}

.sticky-top::-webkit-scrollbar-thumb,
.product-details-sticky::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Footer Styles */
footer#footer {
    background-color: #ffffff;
    padding: 80px 0 40px;
    margin-top: 0;
    border-top: 1px solid #e9ecef;
}

footer#iletisim {
    background-color: #f8f9fa;
    padding: 80px 0 40px;
    margin-top: 0;
}

.footer-title {
    font-family: 'Manrope', serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.footer-link {
    display: block;
    color: var(--secondary-color);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

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

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    color: var(--primary-color);
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid #eee;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 0.75rem;
    transition: color 0.3s ease;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
    color: var(--primary-color);
}

/* Mobile Adjustments */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 70px;
        /* Space for bottom nav */
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    /* Hero Section Mobile Fix */
    .hero-section {
        height: 100vh;
        min-height: 600px;
        background-attachment: scroll !important;
        /* Fix for mobile parallax issues */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .hero-content .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 1rem !important;
    }

    .hero-content .btn-custom {
        width: 100%;
        max-width: 280px;
    }
}

/* Number input spinner'larını sınıf bazlı gizle */
input.no-spinner[type="number"]::-webkit-outer-spin-button,
input.no-spinner[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button,
input.quantity-input[type="number"]::-webkit-outer-spin-button,
input.quantity-input[type="number"]::-webkit-inner-spin-button,
input.cart-qty-input[type="number"]::-webkit-outer-spin-button,
input.cart-qty-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input.no-spinner[type="number"],
input[type="number"],
input.quantity-input[type="number"],
input.cart-qty-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Desktop Sticky Sidebar */
@media (min-width: 992px) {
    .product-details-sticky {
        position: sticky;
        top: 80px;
        height: calc(100vh - 80px);
        overflow-y: auto;
    }
}

@media (max-width: 991.98px) {
    .product-details-sticky {
        position: static !important;
        height: auto !important;
        overflow: visible !important;
    }
}

/* Slide Up Hover Effects */
.transition-transform {
    transition: all 0.4s ease-in-out;
}

.duration-500 {
    transition-duration: 0.5s;
}

.duration-300 {
    transition-duration: 0.3s;
}

/* Default state: Hidden and pushed down */
.product-hover-actions {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
}

/* Hover state: Visible and slides up */
.product-card:hover .product-hover-actions {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Image animation: Slide up and zoom slightly */
.product-card:hover .product-image img {
    transform: translateY(-40px) scale(1.05);
}

.hover-scale {
    transition: transform 0.2s;
}

.hover-scale:hover {
    transform: scale(1.1);
}

.translate-y-full {
    transform: translateY(100%);
}

/* Mobile Adjustments for Product Actions */
@media (max-width: 991.98px) {
    .product-hover-actions {
        opacity: 1 !important;
        transform: translateY(0) !important;
        position: relative !important;
        /* Make it flow in document */
        bottom: auto !important;
        border-top: 1px solid #eee !important;
    }

    .product-image {
        margin-bottom: 0 !important;
    }

    .product-card {
        border: 1px solid #eee;
        border-radius: 4px;
        overflow: hidden;
    }
}

/* Mega Menu Styles */
.mega-menu {
    border-radius: 8px;
    animation: megaMenuFadeIn 0.2s ease-in-out;
}

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

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

.mega-menu h6 a {
    transition: color 0.2s ease;
}

.mega-menu h6 a:hover {
    color: var(--accent-color) !important;
}

.mega-menu ul li a {
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: block;
    padding: 2px 0;
}

.mega-menu ul li a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

/* Mobile Mega Menu Adjustments */
@media (max-width: 991.98px) {
    .mega-menu {
        position: static !important;
        width: 100% !important;
        min-width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0.5rem !important;
        background-color: #f8f9fa !important;
    }

    .mega-menu .row {
        margin: 0;
        flex-direction: column;
    }

    .mega-menu .col {
        flex: none;
        width: 100%;
        padding: 0.5rem;
    }
}

/* Desktop: Dropdown hover ile açılsın */
@media (min-width: 992px) {
    .dropdown-hover:hover>.dropdown-menu {
        display: block;
        animation: megaMenuFadeIn 0.2s ease-in-out;
    }

    .dropdown-hover {
        position: relative;
    }

    .dropdown-hover>.dropdown-menu {
        margin-top: 0;
    }
}

/* Sistem Dark Mode Koruması */
html, body {
    background-color: #fff;
    color: #1a1a1a;
}

.form-control,
.form-select,
.form-check-input,
input,
select,
textarea {
    color-scheme: light;
}

.modal-content,
.offcanvas,
.dropdown-menu,
.card,
.alert {
    background-color: #fff;
    color: #1a1a1a;
}

img {
    color-scheme: light;
}

/* ===== Mobil Tasarım Düzeltmeleri ===== */
@media (max-width: 767.98px) {
    /* Karşılaştır tablosu mobil kart düzeni */
    .compare-table {
        display: block;
    }
    .compare-table thead,
    .compare-table tbody {
        display: block;
    }
    .compare-table thead tr {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 1rem;
    }
    .compare-table thead th:first-child {
        display: none;
    }
    .compare-table thead th {
        display: block;
        min-width: 200px;
        flex-shrink: 0;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 1rem;
    }
    .compare-table tbody tr {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1rem;
        margin-bottom: 0.5rem;
    }
    .compare-table tbody th {
        min-width: 80px;
        flex-shrink: 0;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
    }
    .compare-table tbody td {
        min-width: 200px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .compare-product-img {
        max-height: 150px;
        width: auto;
    }
}

@media (max-width: 991.98px) {
    /* Footer mobil padding */
    footer#footer {
        padding: 40px 0 100px;
    }
    footer#iletisim {
        padding: 40px 0 20px;
    }

    /* Checkout sticky element mobil düzeltmesi */
    .checkout-summary-sticky {
        position: static !important;
    }
}

@media (max-width: 575.98px) {
    /* Tipografi mobil düzeltmeleri */
    .display-5 {
        font-size: 1.75rem !important;
    }
    .display-6 {
        font-size: 1.5rem !important;
    }

    /* İletişim formu mobil padding */
    .bg-light.p-5 {
        padding: 1.5rem !important;
    }

    /* Pagination touch hedefi */
    .pagination .page-link {
        min-width: 40px;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}