:root {
    --primary-color: #8B4513;
    --secondary-color: #A0522D;
    --accent-color: #D2691E;
    --light-color: #F5F5DC;
    --dark-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Header Styles */
.top-bar {
    background-color: var(--dark-color);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
}

.social-icons a {
    color: white;
    margin-left: 10px;
    font-size: 16px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent-color);
}

/* Navigation */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo span {
    color: var(--accent-color);
}

/* Mega Menu */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    position: relative;
    padding: 10px 15px;
}

.nav-item>a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.nav-item>a:hover {
    color: var(--primary-color);
}

.nav-item>a i {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s;
}

.nav-item:hover>a i {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    left: 0;
    top: 100%;
    width: 800px;
    background-color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 5px 5px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 100;
}

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

.mega-menu h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 16px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.mega-menu ul {
    list-style: none;
}

.mega-menu li {
    margin-bottom: 10px;
}

.mega-menu a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.mega-menu a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.mega-menu .featured-image {
    grid-column: span 1;
    background-size: cover;
    background-position: center;
    height: 200px;
    border-radius: 5px;
    overflow: hidden;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    pointer-events: none;
    /* tıklamayı kapat */
    z-index: 0
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    /* sadece aktifte tıklama açık */
    z-index: 2;
    /* üste getir */
}

.slide-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    color: white;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    max-width: 500px;
}

.slide-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.slide-content p {
    margin-bottom: 30px;
    font-size: 18px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--accent-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active {
    background-color: white;
}

/* Featured Categories */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 23px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    color: #777;
    max-width: 700px;
    margin: 0 auto;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    position: relative;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: white;
}

.category-overlay h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.category-overlay a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.category-overlay a i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.category-overlay a:hover i {
    transform: translateX(5px);
}

/* Featured Products */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    position: relative;
    /* DÜZELTME: Bu satır eklendi */
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    /* position: relative;  Bu satır artık gerekli değil, konteyner göreceli */
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
    /* Diğer elemanların üzerinde kalmasını sağlar */
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--accent-color);
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.add-to-cart {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 600;
}

.add-to-cart:hover {
    background-color: var(--secondary-color);
}

.wishlist {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s;
}

.wishlist:hover {
    color: red;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--light-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--accent-color);
}

.footer-column p {
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .mega-menu {
        width: 600px;
    }

    .hero-slider {
        height: 500px;
    }

    .slide-content h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .mega-menu {
        width: 100%;
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 10px 0;
    }

    .nav-item:hover .mega-menu {
        display: block;
    }

    .hero-slider {
        height: 400px;
    }

    .slide-content {
        padding: 20px;
    }

    .slide-content h2 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 16px;
    }
}

/* Product Detail Styles */
.product-detail-section {
    padding: 60px 0;
    background-color: #fff;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.product-gallery {
    display: flex;
    flex-direction: column;
}

.main-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.main-image:hover img {
    transform: scale(1.02);
}

.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail {
    height: 100px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumbnail.active {
    border-color: var(--accent-color);
}

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

.product-info {
    padding: 20px;
}

.product-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.product-category {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.product-title {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.stars {
    color: #FFD700;
    margin-right: 10px;
}

.review-count {
    color: #777;
    font-size: 14px;
}

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.current-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    margin-left: 15px;
}

.discount-badge {
    background-color: #FF5252;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 15px;
}

.product-badges {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.badge {
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.badge.new {
    background-color: var(--accent-color);
}

.badge.bestseller {
    background-color: #4CAF50;
}

.product-description {
    margin-bottom: 30px;
}

.product-description p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-features {
    margin-top: 20px;
}

.product-features h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.product-features ul {
    list-style: none;
}

.product-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.product-features i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 14px;
}

.product-option {
    margin-bottom: 25px;
}

.product-option h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.color-selector {
    display: flex;
    gap: 15px;
}

.color-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.color-circle.active {
    border-color: var(--dark-color);
    transform: scale(1.1);
}

.fabric-selector {
    display: flex;
    gap: 10px;
}

.fabric-option {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.fabric-option.active {
    border-color: var(--accent-color);
    background-color: rgba(210, 105, 30, 0.1);
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background-color: #f9f9f9;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 16px;
}

.add-to-cart-btn {
    flex: 1;
    min-width: 200px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart-btn:hover {
    background-color: var(--secondary-color);
}

.wishlist-btn {
    width: 40px;
    height: 40px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.wishlist-btn:hover {
    color: red;
    border-color: red;
}

.product-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.meta-item i {
    color: var(--accent-color);
    font-size: 18px;
}

/* Product Tabs */
.product-tabs-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.product-tabs-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 600;
    color: #777;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.tab-panel p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.description-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.feature {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature i {
    font-size: 30px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.feature h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.feature p {
    font-size: 14px;
    color: #777;
}

.description-image {
    margin: 30px 0;
}

.description-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.specs-table th {
    width: 30%;
    color: var(--primary-color);
    font-weight: 600;
}

.reviews-summary {
    display: flex;
    gap: 50px;
    margin-bottom: 40px;
    align-items: center;
}

.average-rating {
    text-align: center;
}

.rating-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
}

.total-reviews {
    color: #777;
    font-size: 14px;
}

.rating-bars {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rating-bar span:first-child {
    width: 70px;
    color: #777;
}

.bar-container {
    flex: 1;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    margin: 0 15px;
    overflow: hidden;
}

.bar {
    height: 100%;
    background-color: #FFD700;
}

.review-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.review-form h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.rating-input {
    color: #ddd;
}

.rating-input i {
    cursor: pointer;
    font-size: 20px;
    margin-right: 5px;
}

.rating-input i.active {
    color: #FFD700;
}

.submit-review-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-review-btn:hover {
    background-color: var(--secondary-color);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.review {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.review-author {
    font-weight: 600;
    color: var(--dark-color);
}

.review-date {
    color: #777;
    font-size: 14px;
}

.review-rating {
    color: #FFD700;
    margin-left: auto;
}

.review-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.review-text {
    color: #555;
    line-height: 1.6;
}

.shipping-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.info-box {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.info-box i {
    font-size: 30px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.info-box h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.info-box p {
    color: #777;
    font-size: 14px;
}

.return-info {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.return-info p {
    margin-bottom: 15px;
}

/* Related Products */
.related-products-section {
    padding: 60px 0;
    background-color: #fff;
}

/* Responsive Design */
@media (max-width: 992px) {
    .product-detail-container {
        grid-template-columns: 1fr;
    }

    .main-image {
        height: 400px;
    }

    .description-features {
        grid-template-columns: 1fr 1fr;
    }

    .shipping-info {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 24px;
    }

    .current-price {
        font-size: 24px;
    }

    .old-price {
        font-size: 16px;
    }

    .product-actions {
        flex-direction: column;
    }

    .add-to-cart-btn {
        width: 100%;
    }

    .description-features {
        grid-template-columns: 1fr;
    }

    .shipping-info {
        grid-template-columns: 1fr;
    }

    .tabs-header {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }

    .tab-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .main-image {
        height: 300px;
    }

    .thumbnail-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-meta {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 576px) {
    .top-bar-container {
        flex-direction: column;
    }

    .contact-info {
        margin-bottom: 10px;
    }

    .hero-slider {
        height: 350px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 28px;
    }
}