:root {
    --primary-color: #ff4081;
    --secondary-color: #ff80ab;
    --dark-pink: #e91e63;
    --light-pink: #fff0f5;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --text-color: #444444;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-pink);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.logo-container h1 {
    font-size: 2.2rem;
    margin: 0;
    font-weight: 700;
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
}

.user-prefs button {
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-prefs button:hover {
    background-color: var(--dark-pink);
    color: var(--white);
    transform: translateY(-2px);
}

nav ul {
    list-style: none;
    padding: 0 20px 15px;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

nav ul li {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

nav ul li:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px 10px;
}

#main-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
}

.recommendation-info {
    background-color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
}

main {
    padding: 20px;
    min-height: calc(100vh - 180px);
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    gap: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-pink);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    padding: 20px;
}

.product-item {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 360px;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

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

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-gray);
    min-height: 2.4em;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-category {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    min-height: 1.6em;
}

.product-price {
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 12px;
    margin-top: auto;
}

.product-rating {
    color: #ffc107;
    font-size: 0.9rem;
    line-height: 1.3;
    min-height: 20px;
    overflow: visible;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Modal Stilleri */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.product-modal-content {
    max-width: 800px;
}

.product-modal-container {
    display: flex;
    gap: 30px;
    height: 100%;
    flex-wrap: wrap;
}

.product-modal-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
}

.product-modal-details {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.product-modal-details h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.product-modal-details .product-price {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.product-modal-details .product-rating {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-modal-details .product-colors {
    margin-bottom: 20px;
}

.product-modal-details .product-description {
    margin-bottom: 30px;
    line-height: 1.6;
}

.product-modal-details .product-actions {
    margin-top: auto;
}

.product-modal-details .product-actions button {
    padding: 12px 25px;
    font-size: 1.1rem;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

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

/* Tercih Formu Stilleri */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group select, 
.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: var(--dark-pink);
    transform: translateY(-2px);
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        gap: 5px;
    }
    
    nav ul li {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .product-list {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tercihler Sekme Menüsü */
.preferences-panel {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 320px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    z-index: 100;
    padding: 20px;
    display: none;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(0,0,0,0.1);
}

.preferences-panel h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.preferences-panel .form-group {
    margin-bottom: 12px;
}

.preferences-panel .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.preferences-panel select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
}

.preferences-panel .close-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    background: none;
    border: none;
    color: var(--dark-gray);
    cursor: pointer;
    font-size: 1.2rem;
}

.pref-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pref-actions button {
    padding: 8px 25px;
    font-size: 0.95rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.pref-actions button:hover {
    background-color: var(--dark-pink);
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--white);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
    
    .footer-section {
        margin-bottom: 20px;
    }
    
    .preferences-panel {
        width: 90%;
        right: 5%;
    }
}

/* Arama Çubuğu Stilleri */
.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-container form {
    display: flex;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s;
}

.search-container input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
    background-color: #fff;
}

.search-container button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px 10px;
    font-size: 1rem;
}

.search-container button:hover {
    color: var(--dark-pink);
    background: none;
    transform: translateY(-50%) scale(1.1);
}

.search-results {
    margin-top: 20px;
}

/* Responsivlik için Arama Alanı Ayarları */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-container {
        width: 100%;
        max-width: 100%;
        margin: 10px 0;
        order: 3;
    }
    
    .user-prefs {
        align-self: flex-end;
    }
}

/* Yorumlar Bölümü Stilleri */
.product-comments {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.product-comments h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.comments-container {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.comment {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

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

.comment-date {
    font-size: 0.8rem;
    color: #888;
}

.comment-rating {
    color: #ffc107;
    margin-bottom: 8px;
}

.comment-text {
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.comment-like {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #888;
    cursor: pointer;
    font-size: 0.9rem;
}

.comment-like:hover {
    color: var(--primary-color);
}

.comment-like.liked {
    color: var(--primary-color);
}

.comment-form {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
}

.comment-form h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    height: 100px;
    resize: vertical;
    font-family: 'Poppins', sans-serif;
}

.comment-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    font-size: 1.5rem;
    justify-content: flex-end;
    line-height: 1.5;
}

.star-rating input {
    display: none;
}

.star-rating label {
    color: #ddd;
    cursor: pointer;
}

.star-rating :checked ~ label {
    color: #ffc107;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffdb70;
}

.star-rating label:before {
    content: '\f005'; /* Star icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.no-comments {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

@media (max-width: 768px) {
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-date {
        margin-top: 5px;
    }
}

/* Dil Değiştirici Stilleri */
.language-switcher {
    position: relative;
    margin-right: 15px;
}

#lang-btn {
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#lang-btn:hover {
    background-color: var(--dark-pink);
    color: var(--white);
    transform: translateY(-2px);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 8px;
    width: 150px;
    z-index: 150;
    overflow: hidden;
    display: none;
}

.language-dropdown.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.lang-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-option:hover {
    background-color: var(--light-pink);
}

.lang-flag {
    font-size: 1.2rem;
}

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

.user-prefs {
    display: flex;
    align-items: center;
}

/* Sepet Buton ve Panel Stilleri */
.cart-button {
    position: relative;
    margin-right: 15px;
}

#cart-btn {
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

#cart-btn:hover {
    background-color: var(--dark-pink);
    color: var(--white);
    transform: translateY(-2px);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--dark-pink);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.cart-panel {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    margin-top: 8px;
    width: 320px;
    z-index: 150;
    overflow: hidden;
    display: none;
    border: 1px solid rgba(0,0,0,0.1);
}

.cart-panel.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.cart-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.cart-header .close-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.cart-header .close-btn:hover {
    color: var(--primary-color);
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 0;
}

.cart-empty {
    padding: 30px 15px;
    text-align: center;
    color: #999;
}

.cart-empty i {
    font-size: 2.5rem;
    margin-top: 10px;
    color: #ddd;
}

.cart-item {
    display: flex;
    padding: 10px 15px;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
}

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

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 3px;
    font-size: 0.95rem;
}

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

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    background: #f5f5f5;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-value {
    margin: 0 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.cart-item-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #ddd;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.cart-item-remove:hover {
    color: #ff5252;
}

.cart-footer {
    padding: 15px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.checkout-btn:hover {
    background-color: var(--dark-pink);
    transform: translateY(-2px);
}

/* Sıkça Sorulan Sorular (FAQ) Stilleri */
.faq-section {
    margin-top: 20px;
    background: rgba(255,255,255, 0.10);
    border-radius: 12px;
    padding: 20px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.faq-section h5 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 14px;
    text-align: left;
}
.faq-item {
    margin-bottom: 12px;
}
.faq-question {
    background: #fff;
    color: var(--primary-color);
    font-weight: 600;
    border: none;
    outline: none;
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: background 0.2s;
}
.faq-question:hover {
    background: #ffe4ef;
}
.faq-answer {
    background: #fff;
    color: #444;
    padding: 10px 16px 10px 40px;
    border-radius: 0 0 8px 8px;
    display: none;
    font-size: 0.98em;
}
.faq-item.open .faq-answer {
    display: block;
}
.faq-item .faq-question::after {
    content: '\25BC';
    float: right;
    color: var(--primary-color);
    transition: transform 0.2s;
}
.faq-item.open .faq-question::after {
    transform: rotate(180deg);
}