/* QR Menu - Modern Responsive Styles */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --card-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header Styles */
.menu-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: var(--card-shadow);
}

.cafe-logo {
    margin-bottom: 1rem;
}

.logo-img {
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 10px;
}

.cafe-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

/* Main Content */
.menu-content {
    padding: 2rem 0;
    min-height: 60vh;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.category-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-content {
    flex: 1;
    text-align: center;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.category-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
    text-align: center;
}

/* Subcategories */
.subcategories {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.subcategory-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.subcategory-item:hover {
    background: #e9ecef;
}

.subcategory-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 0.75rem;
}

/* Products List */
.products-list {
    margin-top: 1rem;
}

.product-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.product-info {
    display: flex;
    gap: 1rem;
}

.product-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    flex: 1;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Set Cards */
.set-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.set-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.set-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.set-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.set-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    text-align: center;
}

.set-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    text-align: center;
}

.set-products {
    margin-bottom: 1rem;
    text-align: center;
}

.set-products strong {
    display: block;
    margin-bottom: 0.5rem;
}

.set-products ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
    text-align: center;
    display: inline-block;
}

.set-products li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
    color: #555;
}

.set-products li:before {
    content: "✓ ";
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.set-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
    padding-top: 1rem;
    border-top: 2px solid #eee;
}

/* Footer */
.menu-footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.cafe-description {
    text-align: center;
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--secondary-color);
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

.social-links {
    text-align: center;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    margin: 0 0.5rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Category Detail Page Styles */
.category-header {
    padding: 0.5rem 0 1rem 0;
    text-align: center;
}

.category-header-image {
    max-width: 200px;
    margin: 0 auto 1rem auto;
}

.category-header-image img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.category-header .section-title {
    text-align: center !important;
    margin: 0 auto 0.5rem auto;
    font-size: 1.75rem;
    display: block;
}

.category-description-large {
    font-size: 1rem;
    color: #666;
    max-width: 800px;
    margin: 0.5rem auto 0 auto;
    line-height: 1.6;
    text-align: center;
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-top: 0;
    color: var(--primary-color);
    text-align: left;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

/* Products List Container */
.products-list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Product Card Item */
.product-card-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.product-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.product-card-left {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.product-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: left;
}

.product-card-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
    text-align: left;
}

.product-card-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-align: right;
}

.product-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
    white-space: nowrap;
    text-align: right;
}

.product-card-price-from {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    white-space: nowrap;
    text-align: right;
}

/* Product Variations */
.product-variations {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
    display: block !important;
    visibility: visible !important;
}

.product-variations .variation-item {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    width: 100%;
}

.product-variations .variation-item:not(:last-child) {
    border-bottom: 1px solid #f5f5f5;
}

.variation-name {
    color: #555;
    font-weight: 500;
    flex: 1;
}

.variation-price {
    color: var(--accent-color);
    font-weight: 600;
    margin-left: auto;
    white-space: nowrap;
}

.breadcrumb {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.breadcrumb-item a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cafe-name {
        font-size: 1.5rem;
    }
    
    .logo-img {
        max-width: 100px;
        max-height: 100px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .category-card,
    .set-card,
    .product-card-item {
        padding: 1rem;
    }
    
    .category-header {
        padding: 0.25rem 0 0.75rem 0;
    }
    
    .category-header-image {
        max-width: 120px;
    }
    
    .category-header .section-title {
        font-size: 1.5rem;
    }
    
    .product-card-image {
        height: 180px;
    }
    
    .product-card-content {
        flex-direction: row;
        gap: 1rem;
        flex-wrap: nowrap;
    }
    
    .product-card-right {
        flex-shrink: 0;
        justify-content: flex-end;
    }
    
    .product-card-price {
        font-size: 1.1rem;
    }
    
    .product-card-name {
        font-size: 1rem;
    }
    
    .product-info {
        flex-direction: column;
    }
    
    .product-image {
        width: 100%;
        height: 200px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .menu-content {
        padding: 1rem 0;
    }
}

@media (max-width: 576px) {
    .menu-header {
        padding: 1.5rem 0;
    }
    
    .cafe-name {
        font-size: 1.25rem;
    }
    
    .category-name,
    .set-name {
        font-size: 1.1rem;
    }
    
    .product-name {
        font-size: 1rem;
    }
}

/* Set Detail Page Styles */
.set-price-large {
    text-align: center;
}

.set-products-section {
    margin-top: 2rem;
}

.set-description-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    margin-top: 1rem;
    text-align: center;
}

.set-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.set-products-list {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.set-product-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.set-product-row:last-child {
    border-bottom: none;
}

.set-product-row .set-product-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    flex: 1;
}

.set-product-row .set-product-quantity {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-left: 1rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .set-product-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .set-product-row .set-product-quantity {
        margin-left: 0;
    }
}

