/* Menu Page Styles */
body {
    background-color: #2A1B0F;
    color: #f0f0f0;
    padding-top: 80px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    letter-spacing: 0.2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Menu Header */
.menu-header {
    background: linear-gradient(180deg, rgba(31,20,11,0.95) 0%, rgba(42,27,15,0.98) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    position: relative;
}

.menu-header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.menu-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 2.5rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.menu-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    border-radius: 2px;
}

.menu-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.search-container {
    display: flex;
    max-width: 400px;
    width: 100%;
    background: rgba(255,255,255,0.08);
    border-radius: 30px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.12);
}

.search-input {
    flex: 1;
    padding: 15px 24px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 1.1rem;
    outline: none;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.5);
    font-weight: 300;
}

.search-btn {
    padding: 15px 28px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.search-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(-2px);
}

.categories-btn {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255,255,255,0.1);
    color: #f0f0f0;
    text-decoration: none;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    font-weight: 300;
    letter-spacing: 1px;
}

.categories-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Categories Section */
.categories-section {
    padding: 4rem 0;
    background: rgba(0,0,0,0.3);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 2px;
    color: #ffffff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.category-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border-radius: 20px;
    padding: 1.8rem;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.category-card:hover {
    background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.category-card:hover::before {
    transform: translateX(100%);
}

.category-image, .product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.1);
}

.product-image {
    height: 200px;
    background: #f5f5f5;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
    transform: scale(1.15);
    transition: transform 0.3s ease;
}

.product-image img {
    object-position: 50% 40%;
    transform: scale(1.08);
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-name {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin: 0;
}

/* Products Section */
.products-section {
    padding: 4rem 0;
}

.product-category {
    margin-bottom: 5rem;
    scroll-margin-top: 100px; /* Account for fixed header */
}

.category-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    letter-spacing: 2px;
    color: #ffffff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 300px));
    gap: 2rem;
    justify-content: start;
}

/* Kartın ana yapısı */
.product-card {
  width: 300px;
  background: linear-gradient(145deg, #7E5B3F, #6E4B2F);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15), 
              0 2px 8px rgba(255,255,255,0.08) inset;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: 1.2rem;
  border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25),
              0 2px 12px rgba(255,255,255,0.1) inset;
  background: linear-gradient(145deg, #8E6B4F, #7E5B3F);
  border-color: rgba(255,255,255,0.1);
}

.product-image {
  width: 100%;
  background: #f5f5f5;
  overflow: hidden;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: unset;
  object-position: center;
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.3s cubic-bezier(.4,2,.6,1);
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.2rem 1.2rem 0 1.2rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (max-width: 900px) {
  .product-card {
    width: 100%;
  }
  .product-image {
    height: 160px;
  }
}
@media (max-width: 480px) {
  .product-image {
    height: 100px;
  }
}

.product-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    font-family: 'Playfair Display', serif;
}   

.product-description {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.2rem;
    line-height: 1.7;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFD700;
    display: block;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-price {
    transform: scale(1.05);
    color: #FFF;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .section-title,
    .category-title {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .menu-controls {
        gap: 1.5rem;
    }
    
    .search-container {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .menu-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-title,
    .category-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .category-card {
        min-height: 120px;
    }
    
    .category-image {
        height: 80px;
    }
    
    .category-name {
        font-size: 0.9rem;
        margin: 0.5rem 0;
    }
    
    .product-card {
        margin: 0 10px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-name {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .products-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    .product-card {
        width: 100% !important;
        max-width: none !important;
        flex: none !important;
    }
    .product-image {
        width: 100% !important;
        aspect-ratio: 1/1 !important;
        height: auto !important;
        margin-bottom: 0.5rem;
    }
    .product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        aspect-ratio: 1/1 !important;
    }
    /* Nargile ve müzik sepeti için ekstra kısıtlayıcı kuralları kaldır */
    .product-category#nargile .products-grid,
    .product-category#muzik-sepeti .products-grid {
        display: flex;
        justify-content: flex-start;
        gap: 2rem;
    }
    .product-category#nargile .product-card,
    .product-category#muzik-sepeti .product-card {
        flex: none;
        max-width: none;
        width: 100%;
    }
    .product-card .product-info {
        margin-top: 0.00000001rem;
    }
    .product-card.muzik-sepeti .product-image {
        height: auto !important;
        max-height: none !important;
        width: 100% !important;
        aspect-ratio: 1/1 !important;
    }
    .product-card.muzik-sepeti .product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}

/* Tablet specific adjustments */
@media (min-width: 481px) and (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading states for images */
/* .category-image::before,
.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;

} */

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Focus states for accessibility */
.category-card:focus,
.product-card:focus,
.search-input:focus,
.categories-btn:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .category-card,
    .product-card,
    .category-image img,
    .product-image img {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
} 

.hamburger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 25px;
  height: 2px;
  background: var(--text-light);
  transition: var(--transition);
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === Menü Fotoğrafı için özel kırpma ve hizalama === */
.menu-photo {
  overflow: hidden;
  height: 180px; /* ihtiyacınıza göre ayarlayın */
}

.menu-photo img {
  width: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  transform: translateY(3em) !important;
  border: 2px solid red !important;
}

.menu-grid .menu-photo img {
  width: 100%;
  object-fit: cover;
  transform: translateY(3em);
}

/* Menüdeki tüm fotoğraflar çerçeve içinde yukarı hizalı */
.category-image img,
.product-image img,
.menu-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 80%;
}

.product-card.muzik-sepeti {
  /* max-width ve margin kaldırıldı */
}
.product-card.muzik-sepeti .product-image {
  aspect-ratio: 1/1;
}

@supports not (aspect-ratio: 1/1) {
  .product-card.muzik-sepeti .product-image {
    height: 0;
    padding-top: 100%;
    position: relative;
  }
  .product-card.muzik-sepeti .product-image img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
  }
}

.product-category#muzik-sepeti .products-grid {
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
}
.product-category#muzik-sepeti .product-card {
  flex: 0 0 32%;
  aspect-ratio: 1/1;
  max-width: 350px;
}

/* Back to Categories Button */
.back-to-categories-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    color: #f0f0f0;
    text-decoration: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-categories-btn.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-categories-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.back-to-categories-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.back-to-categories-btn span {
    display: none;
}

@media (max-width: 768px) {
    .back-to-categories-btn {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-categories-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .back-to-categories-btn {
        bottom: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .back-to-categories-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* KIRPMA VE DOLDURMA ENGELLEMEK İÇİN EN SONA EKLE */
.product-image {
  height: auto !important;
  min-height: unset !important;
  display: block !important;
  align-items: unset !important;
  justify-content: unset !important;
}
.product-image img {
  width: 100% !important;
  height: auto !important;
  object-fit: unset !important;
  display: block !important;
}
