/* css/cakes.css */

/* Cakes Page General Styles */
#cakes-page-content {
    background-color: #EAE4DD; /* Figma: fill_E5Y7ZU */
    color: #000000; /* Figma: fill_XON6SO (default text color) */
    padding: 20px 40px; /* General padding, adjust as needed */
    font-family: 'Poppins', sans-serif; /* Fallback if more specific fonts aren't set */
}

/* Header Section */
.cakes-header {
    margin-bottom: 40px;
}

.cakes-top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 20px;
}

.cakes-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* be directed against Cakes In the top bar of the pageLogopicture，Application specific size */
.cakes-top-bar .site-logo {
    height: 35px;
}

/* newly added：Page Title Style */
.cakes-page-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #000000;
    text-align: center;
    margin: 20px 0;
}

.cakes-title-bar {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-left: 10px;
}

.cakes-back-btn {
    /* cause common-back-button-img Control basic styles */
}

.cakes-description {
    font-family: 'Abhaya Libre Medium', serif; /* Figma: style_EZYPRK */
    font-weight: 500; /* Figma: style_EZYPRK */
    font-size: 20px; /* Figma: style_EZYPRK */
    line-height: 1.18; /* Figma: style_EZYPRK (approx) */
    text-align: center; /* Figma: style_EZYPRK */
    color: #000000; /* Figma: fill_XON6SO */
    max-width: 800px; /* To control width and encourage wrapping */
    margin: 0 auto 30px auto;
}

/* Main Content - Cake Grid */
.cakes-main-content {
    /* Add any specific padding or margin if needed */
}

.cake-grid {
    display: grid;
    /* Figma shows items in rows, then wrapping. Let's start with 2 columns. */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px; /* Adjust as needed, Figma implies various spacing */
}

.cake-item {
    background-color: #FFFFFF; /* Figma: fill_W4F51W on Rectangle 148 etc. */
    border-radius: 20px; /* Figma: borderRadius */
    padding: 20px;
    text-align: left; /* Content within card often left-aligned */
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cake-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.cake-image-container {
    width: 100%;
    /* height: 200px; /* Fixed height or aspect ratio? Figma images vary. */
    margin-bottom: 15px;
    border-radius: 15px; /* Inner radius for image if needed */
    overflow: hidden; /* To clip image if it's larger than container */
}

.cake-image-container img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block;
    object-fit: cover; /* Cover the area, may crop */
    max-height: 250px; /* Optional: prevent overly tall images */
}

.cake-info {
    margin-top: auto; /* Pushes info to bottom if image container has fixed height */
}

.cake-info h3 {
    font-family: 'Poppins', sans-serif; /* Figma: style_TW4UCE */
    font-weight: 500; /* Figma: style_TW4UCE */
    font-size: 24px; /* Figma: 32px, adjusting for smaller card view */
    color: #000000; /* Figma: fill_XON6SO */
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.cake-price {
    font-family: 'Poppins', sans-serif; /* Figma: style_TW4UCE */
    font-weight: 500; /* Figma: style_TW4UCE */
    font-size: 20px; /* Figma: 32px, adjusting */
    color: #000000; /* Figma: fill_XON6SO */
    margin: 0;
}

/* Footer */
.cakes-footer {
    text-align: center; /* Figma: style_WZUI9F */
    padding: 40px 20px;
    margin-top: 50px;
    border-top: 1px solid #000000; /* Figma: Line 36 (stroke_YJEYDJ) */
}

.cakes-footer p {
    font-family: 'Poppins', sans-serif; /* Figma: style_WZUI9F */
    font-weight: 600; /* Figma: style_WZUI9F */
    font-size: 14px; /* Figma: 16px, adjusting */
    color: #000000; /* Figma: fill_XON6SO */
    line-height: 1.3; /* Figma: style_WZUI9F */
    max-width: 700px;
    margin: 0 auto;
}

/* Divider lines from Figma (e.g., Line 33, 34, 35) */
/* These might be borders on elements or standalone elements */
/* For simplicity, using border-top on footer. Add more if needed. */

/* Responsive adjustments (example) */
@media (max-width: 768px) {
    #cakes-page-content {
        padding: 20px;
    }
    .cake-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }
    .cakes-page-title {
        font-size: 28px;
    }
    .cakes-description {
        font-size: 16px;
    }
    .cake-info h3 {
        font-size: 20px;
    }
    .cake-price {
        font-size: 18px;
    }
}

/* Similarly for mobile devicescake-itemAdd clickable prompts */
.mobile-cake-item {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-cake-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
} 