:root {
    --primary-color: #2a5885;
    --secondary-color: #f8f8f8;
    --text-color: #333;
    --light-gray: #eee;
    --medium-gray: #888;
    --dark-gray: #555;
    --white: #fff;
    --shadow: 0 4px 10px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

body {
    font-family: 'Poppins', 'Segoe UI', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 13px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.boxed-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--white);
    box-shadow: var(--shadow);
    animation: scaleIn 0.5s ease forwards;
}

header {
    background-color: white;
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 0;
    animation: fadeIn 0.5s ease forwards;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-block;
}

.logo img {
    height: 40px;
}

/* Menü stilleri */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

nav ul li {
    animation: slideInRight 0.5s ease forwards;
    animation-delay: calc(0.1s * var(--animation-order));
    opacity: 0;
}

nav ul li:nth-child(1) { --animation-order: 1; }
nav ul li:nth-child(2) { --animation-order: 2; }
nav ul li:nth-child(3) { --animation-order: 3; }
nav ul li:nth-child(4) { --animation-order: 4; }

@keyframes slideInRight {
    0% {
        transform: translateX(20px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color, #555);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: var(--transition, all 0.3s ease);
    text-transform: capitalize;
    padding: 0.5rem 0;
    position: relative;
    display: block;
}

nav ul li a:hover {
    color: var(--primary-color, #26b99a);
}

/* Seçili olan link için stil - koyu siyah ve altı çizgili */
nav ul li a.active {
    color: #111; /* Koyu siyah */
    font-weight: 500;
}

nav ul li a.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #111; /* Çizginin rengi de koyu siyah */
}

.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
    animation: fadeIn 0.7s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.active-slide {
    display: block;
    opacity: 1;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 15px;
    background-color: rgba(0,0,0,0.3);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    border-radius: 4px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.5);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    padding: 1.5rem 1rem;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    animation: fadeIn 0.7s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.filter-buttons button {
    padding: 0.6rem 1.25rem;
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-color);
    transition: var(--transition);
}

.filter-buttons button:hover, 
.filter-buttons button.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.product-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem 2rem 3rem;
    animation: fadeIn 0.7s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    animation: scaleIn 0.5s ease forwards;
    animation-delay: calc(0.1s * var(--card-order));
    opacity: 0;
}

.product-card:nth-child(1) { --card-order: 1; }
.product-card:nth-child(2) { --card-order: 2; }
.product-card:nth-child(3) { --card-order: 3; }
.product-card:nth-child(4) { --card-order: 4; }
.product-card:nth-child(5) { --card-order: 5; }
.product-card:nth-child(6) { --card-order: 6; }
.product-card:nth-child(7) { --card-order: 7; }
.product-card:nth-child(8) { --card-order: 8; }

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image {
    height: 150px;
    overflow: hidden;
    position: relative;
    background-color: #f7f7f7;
}

.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-image span {
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
    color: #aaa;
    font-size: 0.9rem;
}

.product-info {
    padding: 1.25rem;
}

.product-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #000;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem 2rem;
    margin-top: 1.5rem;
    animation: fadeIn 0.7s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.product-images {
    overflow: hidden;
    border-radius: 4px;
    animation: slideInLeft 0.7s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
    cursor: zoom-in;
}

.product-images img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-images img:hover {
    transform: scale(1.02);
}

.no-image {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 4px;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.product-details {
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.7s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.product-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.product-meta {
    margin-bottom: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.meta-label {
    width: 120px;
    font-weight: 500;
    color: #000;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.quantity-selector button {
    width: 36px;
    height: 36px;
    border: 1px solid var(--light-gray);
    background-color: var(--white);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-selector button:hover {
    background-color: var(--secondary-color);
}

.quantity-selector input {
    width: 50px;
    height: 36px;
    border: 1px solid var(--light-gray);
    text-align: center;
    margin: 0 4px;
    font-size: 0.95rem;
}

.action-buttons {
    margin-top: 0.5rem;
}

.teklif-btn {
    padding: 0.6rem 1.2rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: auto;
    display: inline-block;
}

.teklif-btn:hover {
    background-color: #1e3c5a;
    transform: translateY(-2px);
}

.popup-overlay,
.success-overlay,
.image-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.popup-overlay {
    background-color: rgba(0,0,0,0.5);
}

.success-overlay {
    background-color: rgba(0,0,0,0.5);
}

.image-popup-overlay {
    background-color: rgba(0,0,0,0.9);
    cursor: zoom-out;
}

.popup-content,
.success-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    animation: fadeIn 0.3s ease forwards;
}

.popup-content {
    max-width: 550px;
    overflow-y: auto;
    max-height: 85vh;
}

.success-content {
    max-width: 400px;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
    transition: all 0.3s ease;
    line-height: 0.8;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: #333;
    background-color: rgba(0,0,0,0.05);
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: #4CAF50;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon:before {
    content: "";
    display: block;
    width: 30px;
    height: 20px;
    border-left: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(-45deg) translate(3px, -5px);
}

.popup-content h2,
.success-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #2a5885;
    font-weight: 600;
}

.success-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 1.5rem;
}

.submit-section button,
.success-button {
    padding: 0.6rem 2rem;
    background-color: #2a5885;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-section button:hover,
.success-button:hover {
    background-color: #1e3c5a;
    transform: translateY(-2px);
}

.submit-section {
    margin-top: 1.5rem;
    text-align: center;
}

.product-summary {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.product-summary h3,
.customer-info h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #2a5885;
    font-weight: 500;
}

.customer-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.customer-info input {
    padding: 0.75rem 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.customer-info input:focus {
    border-color: #2a5885;
    outline: none;
    box-shadow: 0 0 0 2px rgba(42, 88, 133, 0.1);
}

.image-popup-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: fadeIn 0.3s ease forwards;
}

.image-popup-container img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    object-fit: contain;
}

.close-gallery {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: transform 0.3s;
}

.close-gallery:hover {
    transform: rotate(90deg);
}

.gallery-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    box-sizing: border-box;
}

.gallery-controls button {
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.gallery-controls button:hover {
    background-color: rgba(255,255,255,0.4);
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s;
    flex-shrink: 0;
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnail.active {
    opacity: 1;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.gallery-thumbnail:hover {
    opacity: 1;
}

.pulse-effect {
    animation: pulse 2s infinite;
}

/* Site Footer Styles */
.site-footer {
    background-color: #fff;
    color: #333;
    padding: 50px 0 20px;
    margin-top: 40px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #777;
    font-size: 13px;
}

.footer-nav h3, .footer-contact h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.footer-nav h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 14px;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    color: #555;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
    text-align: center;
    color: #777;
    font-size: 13px;
}

@media (max-width: 992px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-image{
        max-height: 115px;
    }
    
    .product-image img {
        max-height: 115px;
        width: 100%;
        object-fit: contain;
    }

    .slider-container {
        height: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-logo {
        grid-column: span 2;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    header img {
        margin-bottom: 1rem;
    }
    
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .product-container {
        padding: 1.5rem 1rem;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .product-price {
        font-size: 12px;
    }

    .slider-container {
        height: 250px;
    }
    
    .product-card-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-nav h3::after, .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    nav ul li a {
        font-size: 0.85rem;
    }
    
    .meta-item {
        flex-direction: column;
    }
    
    .meta-label {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .teklif-btn {
        width: 100%;
    }
    
    .popup-content {
        padding: 1.5rem;
    }

    .slider-container {
        height: 200px;
    }
    
    .product-card-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-name {
        font-size: 12px;
    }
    
    .product-price {
        font-size: 12px;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-buttons button {
        width: 100%;
        max-width: 300px;
    }
}