/* Global Styles */
:root {
    --primary-color: #800020; /* Burgundy */
    --secondary-color: #f8f8f8;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #600018;
}

/* Header */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    max-height: 40px;
    width: auto;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Hero Section */
.hero {
    background-color: #ffffff;
    padding: 20px 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.centered {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.centered-image {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.dropdown:hover .dropdown-content {
    display: block;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #600018;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero-jam.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--light-text);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.about h2 {
    text-align: center;
    margin-bottom: 40px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 15px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.product-image img {
  max-width: 100%;
  width: 180px;   /* küçük kart görünümü için ideal */
  height: 180px;  /* sabit yükseklik */
  object-fit: contain; /* oranı korur, taşırmaz */
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

.modal-product-image img {
  max-width: 100%;
  width: 250px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

/* Products Section */
.products {
    padding: 30px 0;
    background-color: #ffffff;
}

.products h2 {
    text-align: center;
    margin-bottom: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 15px;
    text-align: center;
    position: relative;
}

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

.product-image {
    height: 180px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s;
}

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

.product-info {
    padding: 10px 0;
}

.product-info h3 {
    margin: 10px 0 5px;
    font-size: 1.1rem;
}

.product-info p {
    color: #666;
    margin-bottom: 10px;
}

.product-price {
    font-weight: bold;
    color: #8B0000;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.view-details-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
    background-color: #8B0000;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-details-btn:hover {
    background-color: #6d0000;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.contact h2 {
    text-align: center;
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.contact-details, .contact-hours {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-details h3, .contact-hours h3 {
    margin-bottom: 20px;
}

.contact-details p, .contact-hours p {
    margin-bottom: 15px;
}

.contact-details i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #333;
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo, .footer-links, .footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-logo h3, .footer-links h3, .footer-social h3 {
    color: var(--light-text);
    margin-bottom: 20px;
}

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

.footer-links ul li a {
    color: var(--light-text);
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #ccc;
}

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

.social-icons a {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #ccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

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

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
}

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

.product-details {
    display: flex;
    gap: 30px;
}

.product-details-image {
    flex: 1;
    max-width: 400px;
}

.product-details-image img {
    width: 100%;
    border-radius: 10px;
}

.product-details-info {
    flex: 1;
}

.product-details-info h2 {
    margin-bottom: 15px;
}

.product-details-info p {
    margin-bottom: 20px;
}

.product-details-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-button {
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-info {
        flex-direction: column;
    }
    
    .product-details {
        flex-direction: column;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
}