:root {
    --primary-color: #000000; /* Black */
    --primary-hover: #333333; /* Dark Gray */
    --secondary-color: #111111; /* Almost Black */
    --accent-color: #666666; /* Gray */
    --bg-color: #ffffff; /* White */
    --card-bg: #ffffff;
    --text-color: #111111;
    --text-muted: #666666;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --border-radius: 4px; /* Sharper, more premium */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.08);
}
/* Premium Footer Styles */
.bg-black {
    background-color: #000000 !important;
}

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

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

.font-size-12 {
    font-size: 12px;
}

.hover-white:hover {
    color: #ffffff !important;
    padding-left: 5px;
}

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

.social-link {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-3px);
}

.filter-white {
    filter: brightness(0) invert(1);
}

/* Newsletter Input */
footer .form-control::placeholder {
    color: rgba(255,255,255,0.3);
}

footer .form-control:focus {
    box-shadow: none;
    border-color: #ffffff !important;
}

/* Payment Icons */
.grayscale {
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.grayscale:hover {
    filter: grayscale(0%);
    opacity: 1 !important;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 15px; /* Slightly smaller, more refined */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
}

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

a:hover {
    color: var(--text-muted);
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.2rem 0;
    transition: all 0.4s ease;
    position: fixed; /* Fix for liquid effect */
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar.navbar-transparent {
    background: rgba(255, 255, 255, 0.15) !important; /* Semi-transparent for liquid feel */
    backdrop-filter: blur(12px); /* Stronger blur for glass/liquid feel */
    border-bottom: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* Subtle depth */
}

.navbar.navbar-shrink {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.95) !important; /* Solid on scroll */
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.navbar-brand img {
    max-height: 40px; /* Smaller, minimalist */
    transition: transform 0.3s ease;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-color) !important;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 12px;
}

.navbar-transparent .nav-link {
    color: #000000 !important; /* Always black text */
    text-shadow: 0 1px 2px rgba(255,255,255,0.8); /* Subtle shadow for readability on glass */
}

/* Also ensure icons are black */
.navbar-transparent .nav-icon-btn {
    color: #000000 !important;
}

.navbar.navbar-shrink .nav-link {
    color: #000000 !important; /* Force black text on shrink */
}

/* Navbar Popups (Cart & Profile) - Shrink Adjustments */
.navbar-shrink .nav-icon-btn {
    color: #000000 !important;
}

/* Dropdown Menu Animation */
.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #fff;
    margin-top: 10px; /* Spacing from navbar */
    padding: 10px 0;
    opacity: 0;
    display: block; /* Keep block but hidden via visibility/opacity */
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 8px 20px;
    font-size: 14px;
    color: var(--text-color);
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(0,0,0,0.03);
    color: var(--primary-color);
    padding-left: 25px; /* Slight slide right */
}

.dropdown-divider {
    border-top-color: rgba(0,0,0,0.05);
}

/* Page Layout Adjustments for Fixed Header */
body.inner-page .main-content {
    padding-top: 110px; /* Header height + space */
}

@media (max-width: 991px) {
    body.inner-page .main-content {
        padding-top: 100px;
    }
}

/* Buttons */
.btn {
    border-radius: 2px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Hero Section */
.section-solutions {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.s-solutions-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.s-solutions-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.s-solutions-bg-layer.active {
    opacity: 1;
}

.s-solutions {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
    height: 100%;
    padding-top: 80px;
}

/* Hero Cards */
.s-solution {
    flex: 0 0 auto;
    width: 300px;
    height: 250px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.6s ease;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    /* Match navbar transparent style */
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.s-solution:hover {
    height: 380px;
    transform: translateY(-5px);
    /* Keep consistent style on hover */
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.s-solution-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    width: 100%;
    text-align: center;
}

.s-solution-logo-img {
    max-width: 160px;
    max-height: 100px;
    transition: all 0.6s ease;
    filter: none; /* No grayscale */
    opacity: 1;
}

.s-solution:hover .s-solution-logo-img {
    filter: none;
    opacity: 1;
}

.s-solution.hovered .s-solution-logo {
    top: 18%;
    transform: translate(-50%, -50%);
}

.s-solution.hovered .s-solution-logo-img {
    max-width: 120px;
    max-height: 80px;
}

.s-solution-content {
    position: absolute;
    top: 35%; 
    left: 0;
    width: 100%;
    height: 65%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.5s ease 0.1s;
    padding: 0 2rem 2rem 2rem;
    color: var(--text-color);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Don't push button to bottom */
    align-items: flex-start;
}

.s-solution.hovered .s-solution-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.s-solution-text {
    flex-grow: 0; /* Don't take up all space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px; /* Reduced gap */
    text-align: left;
    margin-bottom: 15px; /* Space before button */
}

.s-solution-text .line {
    margin: 0;
    font-family: var(--font-body);
    font-size: 13px; /* Small, minimalist */
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-color);
}

.s-solution-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.s-solution-link:hover {
    color: var(--text-muted);
    transform: translateX(5px);
}

.s-solution-link-text {
    margin-right: 8px;
}

.arrow-wrapper {
    position: relative;
    overflow: hidden;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
}

.arrows {
    position: relative;
    width: 100%;
    height: 100%;
}

.arrow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.arrow-main {
    transform: translate(0, 0);
}

.arrow-hover {
    transform: translate(-100%, 100%);
}

.s-solution-link:hover .arrow-main {
    transform: translate(100%, -100%);
}

.s-solution-link:hover .arrow-hover {
    transform: translate(0, 0);
}

.arrow svg path {
    fill: var(--primary-color);
}

/* Product Cards (Minimalist) */
.card {
    border: none;
    border-radius: 4px;
    background: var(--card-bg);
    box-shadow: none; /* Remove default shadow */
    border: 1px solid #f0f0f0; /* Subtle border */
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-img-container {
    height: 280px;

    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    filter: grayscale(0%); /* Products in color? Or B&W? Let's keep color for products, it pops */
}

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

.card-body {
    padding: 1.5rem;
    text-align: center;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.card-text {
    color: var(--text-muted);
    font-size: 13px;
}

.price-tag {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    display: block;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #000 !important;
    color: #fff !important;
    padding-top: 80px;
    padding-bottom: 40px;
}

footer h5 {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-link {
    color: #999;
    font-size: 13px;
    transition: all 0.3s;
}

.footer-link:hover {
    color: #fff;
    padding-left: 0; /* No shift */
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

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

.section-title {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #000;
    margin: 15px auto 0;
}

/* Navbar Popups (Cart & Profile) */
.nav-icon-btn {
    position: relative;
    color: var(--text-color);
    font-size: 1.1rem;
    padding: 8px 12px;
    transition: color 0.3s;
}

.nav-icon-btn:hover {
    color: var(--text-muted);
}

.popup-wrapper {
    position: relative;
    display: inline-block;
}

.popup-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
}

.popup-wrapper:hover .popup-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Flying Image Animation Class */
.flying-img {
    position: fixed;
    z-index: 9999;
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.product-brand-logo {
    max-height: 25px;
    width: auto;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 991px) {
    /* Hero Section Mobile */
    .section-solutions {
        height: auto;
        min-height: auto;
        padding: 80px 0 40px 0;
        overflow-y: visible;
        display: block; /* Ensure block layout */
    }

    .s-solutions {
        flex-direction: column;
        padding-top: 0;
        gap: 30px;
        height: auto;
        width: 100%;
        display: flex;
        align-items: center;
    }

    .s-solution {
        width: 100%;
        max-width: 340px;
        height: 200px;
        margin-bottom: 0;
    }
    
    .s-solution:hover, .s-solution:active, .s-solution.active {
        height: 380px;
    }

    /* Force background layers to show */
    .s-solutions-bg-layer {
        opacity: 0.5; /* Show partially to see bg */
    }
    .s-solutions-bg-layer.active {
        opacity: 1;
    }

    /* Hide desktop only text on mobile if too crowded, or adjust font */
    .desktop-only {
        display: block;
    }

    .s-solution-logo-img {
        max-width: 120px;
    }
    
    .s-solution:hover .s-solution-logo, .s-solution.active .s-solution-logo {
        top: 20%;
    }
    
    /* Navbar Adjustments */
    .navbar-collapse {
        background: #fff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        margin-top: 15px;
    }

    .nav-link {
        padding: 10px 0;
    }

    .dropdown-menu {
        box-shadow: none;
        padding-left: 15px;
        border-left: 2px solid #eee;
        margin-top: 0;
        /* Ensure it shows when toggled on mobile */
        display: none; /* Hidden by default */
        opacity: 1;
        visibility: visible;
        transform: none;
        position: static;
        float: none;
    }
    
    .dropdown-menu.show {
        display: block;
    }
    
    /* Popup Menus on Mobile - Adjust positioning */
    .popup-wrapper:hover .popup-menu {
        /* On mobile, standard hover is bad. Use click or make them full screen if active. */
        /* For now, let's keep them simpler */
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        width: 300px;
        max-height: 80vh;
        overflow-y: auto;
    }
}

@media (max-width: 576px) {
    .s-solution {
        width: 95%;
    }
    
    /* Popup mobile adjust */
    .popup-menu {
        width: 280px;
        right: -50px; /* Shift slightly if needed */
    }
}

/* Product Detail Image */
.detail-img-container {
    height: 500px;
    padding: 0 !important; /* Remove padding to fill space */
}

.lead {
    font-size: 1rem !important;
    font-weight: 400;
}

@media (max-width: 768px) {
    .detail-img-container {
        height: 250px;
        padding: 10px;
    }
    
    .detail-img-container img {
        max-height: 220px !important;
        width: auto;
    }
    
    h1.display-5 {
        font-size: 1.5rem;
        margin-top: 15px;
    }
    
    /* Responsive Cart Table */
    .cart-items table, 
    .cart-items thead, 
    .cart-items tbody, 
    .cart-items tr, 
    .cart-items td {
        display: block;
        width: 100%;
    }
    
    .cart-items thead {
        display: none;
    }
    
    .cart-items tr {
        margin-bottom: 20px;
        border: 1px solid #eee;
        padding: 15px;
        border-radius: 8px;
        position: relative;
        background: #fff;
    }
    
    .cart-items td {
        text-align: right;
        padding: 10px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f9f9f9;
        min-height: 40px;
    }
    
    .cart-items td:last-child {
        border-bottom: none;
        justify-content: flex-end;
    }

    /* Product Cell - First TD */
    .cart-items td:first-child {
        text-align: left;
        display: block;
        height: auto;
    }
    
    .cart-items td:first-child .d-flex {
        align-items: flex-start;
    }

    /* Add labels for context */
    .cart-items td:nth-child(2):before {
        content: "Fiyat:";
        font-weight: 600;
        color: #999;
        font-size: 12px;
    }
    
    .cart-items td:nth-child(3):before {
        content: "Adet:";
        font-weight: 600;
        color: #999;
        font-size: 12px;
    }
    
    .cart-items td:nth-child(4):before {
        content: "Toplam:";
        font-weight: 600;
        color: #999;
        font-size: 12px;
    }
}
