/* Color scheme: Sarı (yellow), siyah (black), kırık beyaz (off-white) */
:root {
    --yellow: #FFD700;
    --black: #000000;
    --offwhite: #F5F5F0;
    --dark-gray: #333333;
    --light-gray: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--offwhite);
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--black);
    color: var(--yellow);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--yellow);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.logo {
    border-radius: 50%;
    overflow: hidden;
    width: 60px;
    height: 60px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--offwhite);
}

.whatsapp-btn a {
    background: #25D366;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-btn a:hover {
    background: #128C7E;
}

/* Hero */
.hero {
background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('photo/Viyola Oturma Grubu.jpg') center/cover;
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.cta-btn {
    background: var(--yellow);
    color: var(--black);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.3s;
}

.cta-btn:hover {
    transform: scale(1.05);
}

/* Products */
.products {
    padding: 100px 0;
    background: var(--offwhite);
}

.products h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--black);
}

.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.cat-btn {
    position: relative;
    color: var(--yellow);
    border: none;
    padding: 50px 100px;
    font-size: 2.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cat-btn[data-cat="sandalyeler"] {
    background-image: url('photo/MDF Düz Kapaklı Yatak Odası Takımı 7.jpg');
}

.cat-btn[data-cat="sark-kose"] {
    background-image: url('photo/şark köşesi 5.jpeg');
}

.cat-btn[data-cat="cekyat"] {
    background-image: url('photo/Sandıklı Çekyat Grubu.jpg');
}

.cat-btn[data-cat="oturma-takimi"] {
    background-image: url('photo/Viyola\ Oturma\ Grubu\ 9.jpg');
}

.cat-btn[data-cat="masa"] {
    background-image: url('photo/Tac 6 Kişilik Yemek Masası 4.jpg');
}

.cat-btn[data-cat="unite"] {
    background-image: url('photo/Aynalı Lüks Görünümlü Tv Ünitesi 7.jpg');
}

.cat-btn[data-cat="sandalyeler-new"] {
    background-image: url('photo/sandalye.jpeg');
}

.cat-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 30px;
    z-index: 1;
}

.cat-btn span {
    position: relative;
    z-index: 2;
}

.cat-btn.active::before,
.cat-btn:hover::before {
    content: none;
}

.cat-btn.active,
.cat-btn:hover {
    background: var(--yellow);
    color: var(--black);
    transform: translateY(-2px);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product:hover {
    transform: translateY(-10px);
}

/* Product Image Slider Styles */
.product-images {
    position: relative;
    height: 300px;
}

.main-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    cursor: pointer;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    z-index: 2;
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-prev:hover, .slider-next:hover {
    background: var(--yellow);
    color: var(--black);
    transform: translateY(-50%) scale(1.1);
}

.thumbnails {
    display: flex;
    gap: 5px;
    padding: 10px 10px 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.thumbs::-webkit-scrollbar {
    height: 4px;
}

.thumbs::-webkit-scrollbar-thumb {
    background: var(--yellow);
    border-radius: 2px;
}

.thumb {
    flex: 0 0 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.thumb.active, .thumb:hover {
    opacity: 1;
    border-color: var(--yellow);
    transform: scale(1.05);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.modal-slider {
    position: relative;
    height: 70vh;
    max-width: 800px;
    margin: 0 auto 20px;
}

.modal-slider img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.modal-prev, .modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-prev {
    left: -30px;
}

.modal-next {
    right: -30px;
}

.modal-prev:hover, .modal-next:hover {
    background: var(--yellow);
    color: var(--black);
}

.close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.close:hover {
    color: var(--yellow);
}

.modal-thumbs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.modal-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    border: 3px solid transparent;
}

.modal-thumb.active, .modal-thumb:hover {
    opacity: 1;
    border-color: var(--yellow);
    transform: scale(1.1);
}

.modal-thumb:hover {
    transform: scale(1.1);
}

/* Responsive for sliders */
@media (max-width: 768px) {
    .thumbnails {
        padding: 10px;
    }
    
    .thumb {
        flex: 0 0 60px;
        height: 45px;
    }
    
    .modal-slider {
        height: 60vh;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    .close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .product-images {
        height: 280px;
    }
    
    .main-image {
        height: 220px;
    }
    
    .slider-prev, .slider-next {
        width: 35px;
        height: 35px;
    }
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.product-info p {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

/* About */
.about {
    padding: 100px 0;
    background: var(--black);
    color: var(--offwhite);
    text-align: center;
}

.about h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--yellow);
}

.about p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Contact */
.contact {
    padding: 100px 0;
}

.contact h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--black);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-item {
    text-align: center;
    padding: 1.2rem;
    background: var(--black);
    color: var(--offwhite);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,215,0,0.3);
}

.contact-item i {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.contact-item .fa-phone {
    color: #25D366;
}

.contact-item .fa-whatsapp {
    color: #25D366;
}

.contact-item .fa-tiktok {
    color: var(--offwhite);
}

.contact-item .fa-instagram {
    color: #E4405F;
}

.contact-item .fa-facebook {
    color: #1877F2;
}

.contact-item a {
    color: var(--offwhite);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    white-space: nowrap;
}

.map-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--black);
    color: var(--yellow);
    padding: 12px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s;
    z-index: 1000;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.map-btn:hover {
    background: var(--yellow);
    color: var(--black);
    transform: translateY(-2px);
}

.map-btn i {
    margin-right: 5px;
}

/* Footer */
footer {
    background: var(--black);
    color: var(--yellow);
    text-align: center;
    padding: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--black);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        flex-direction: column;
    }

    .map-btn {
        top: 15px;
        right: 15px;
        padding: 14px 20px;
        font-size: 1.1rem;
    }

    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin: 0;
        padding: 1rem 0;
    }

    nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255,215,0,0.3);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        padding: 1rem 20px;
    }

    .whatsapp-btn {
        order: -1;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .categories {
        justify-content: center;
    }

    .cat-btn {
        padding: 30px 60px;
        font-size: 2rem;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}
