/* Single Recipe Template Styles */

/* Main Container - Match archive page width */
.handy-single-recipe-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 30px;
}

/* Breadcrumbs Background Component - Full Width */
.handy-single-recipe-breadcrumbs-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #E7EDF0;
    border-top: 10px solid #DBE1E4;
    border-bottom: 1px solid #DBE1E4;
    margin-bottom: 40px;
}

/* Breadcrumbs Content Component - Content Width */
.handy-single-recipe-breadcrumbs {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 30px;
}

.handy-single-recipe-breadcrumbs .handy-breadcrumb-nav {
	font-family: Poppins, san-serif;
	font-weight: 600;
    font-size: 1.063rem;
    color: #969CA3;
}

.handy-single-recipe-breadcrumbs .handy-breadcrumb-nav a {
    color: #00A7CF;
    text-decoration: none;
}

.handy-single-recipe-breadcrumbs .handy-breadcrumb-nav a:hover {
    text-decoration: none;
}

/* Two Column Main Content */
.handy-single-recipe-main {
    margin-bottom: 60px;
}

.handy-recipe-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Left Column */
.handy-recipe-left-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.handy-recipe-title {
    font-size: 4.047rem;
    font-weight: 700;
    color: #0C243E;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

/* Social Icons Row */
.handy-recipe-social-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.handy-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #00A7CF;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
}

.handy-social-icon:hover {
    background: #005a8b;
    color: white;
}

.handy-social-separator {
    color: #666;
    font-size: 1.125rem;
    font-weight: 300;
}

.handy-social-media-icons {
    display: flex;
    gap: 10px;
}

/* Prep Time and Servings Row */
.handy-recipe-prep-servings-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    font-family: Poppins, sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: #3E434A;
}

.handy-prep-separator {
    color: #666;
    font-size: 1.125rem;
    font-weight: 300;
}

/* Recipe Content */
.handy-recipe-content {
    font-size: 1.125rem;
	font-weight: 500;
    line-height: 1.6;
    color: #3E434A;
}


/* Right Column */
.handy-recipe-right-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Product thumbnail styling for recipe images - matches product template exactly */
.handy-product-main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 90px 0px 90px 0px; /* Match product distinctive corners */
}

/* Legacy recipe image styling - kept for backwards compatibility */
.handy-recipe-image {
    background: white;
    overflow: hidden;
    width: 480px;
    height: 320px;
    margin: 20px 0;
    border: 10px solid #E7EDF0;
    box-shadow: -10px 25px 0px #2329330F;
    border-radius: 8px;
}

.handy-recipe-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* Accordion Content Section */
.handy-single-recipe-accordion {
    width: 100%;
    margin-top: 0px;
    background: white;
}

.handy-accordion-container {
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Accordion Sections */
.handy-accordion-section {
    border-bottom: 1px solid #e0e0e0;
}

.handy-accordion-section:last-child {
    border-bottom: none;
}

/* Accordion Headers */
.handy-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0px 0px 0px;
    background: white;
    border: none;
	font-family: Poppins, sans-serif;
    font-size: 1.625rem;
    font-weight: 800;
    color: #0145AB;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
	letter-spacing: var(--unnamed-character-spacing-0);
}

.handy-accordion-header:hover {
    color: #007cba;
}

.handy-accordion-header.active {
    color: #273749;
}

.handy-accordion-header.active i {
    transform: rotate(180deg);
}

.handy-accordion-header i {
    transition: transform 0.3s ease;
    color: #007cba;
}


/* Accordion Content */
.handy-accordion-content {
    display: none;
    padding: 10px 0 10px 0;
}

.handy-accordion-content.active {
    display: block;
}

/* Recipe-specific Content Areas */
.handy-ingredients-content,
.handy-prep-content,
.handy-cooking-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.handy-ingredients-content {
    margin-bottom: 20px;
}

.handy-prep-content {
    margin-bottom: 20px;
}

.handy-cooking-content {
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1600px) {
    .handy-single-recipe-container {
        padding: 15px 40px;
    }
    
    .handy-single-recipe-breadcrumbs {
        padding: 20px 40px;
    }
    
    .handy-recipe-content-wrapper {
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .handy-recipe-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .handy-recipe-title {
        font-size: 2rem;
    }
    
    .handy-accordion-header {
        padding: 15px 0;
        font-size: 1rem;
    }
    
    .handy-accordion-content {
        padding: 20px 0 30px 0;
    }
}

@media (max-width: 549px) {
    .handy-single-recipe-container {
        padding: 10px 20px;
    }
    
    .handy-single-recipe-breadcrumbs {
        padding: 20px 20px;
    }
    
    .handy-recipe-left-column {
        gap: 20px;
    }
    
    .handy-recipe-title {
        font-size: 1.8rem;
    }
    
    .handy-social-icon {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
    
    .handy-accordion-header {
        padding: 12px 0;
        font-size: 0.875rem;
    }
    
    .handy-accordion-content {
        padding: 15px 0 20px 0;
    }
    
}

/* Featured Products Section */
.handy-featured-products-section {
    margin-top: 40px;
    background-color: #B5016E;
    margin-left: -100vw;
    margin-right: -100vw;
    padding-left: 100vw;
    padding-right: 100vw;
    padding: 60px 0;
    height: clamp(16rem, 20vw, 22rem);
}

.handy-featured-products-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.handy-featured-products-title {
    font-family: Poppins, sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 0 0 40px 0;
    white-space: nowrap;
}

/* Featured Products Grid - Matching archive template layout exactly */
.handy-featured-products-grid {
    display: grid;
    gap: 35px;
    justify-content: center;
    align-items: start;
    margin: -2rem auto 0 auto;
    padding: 0 20px;
}

/* Default 2-column layout - matching archive template */
.handy-featured-products-grid {
    grid-template-columns: repeat(2, 675px);
    max-width: 1385px;
}

/* Product Cards - Matching archive styling exactly */
.handy-featured-products-grid .product-list-card {
    background: white;
    border-radius: 60px;
    overflow: hidden;
    box-shadow: 10px 25px 0px #2329330F;
    margin-bottom: 60px;
    width: 675px;
    padding-bottom: 20px;
}

.handy-featured-products-grid .product-list-card:hover {
    /* No hover effect currently */
}

.handy-featured-products-grid .product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.handy-featured-products-grid .product-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Product Thumbnail Container */
.handy-featured-products-grid .product-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.handy-featured-products-grid .product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.handy-featured-products-grid .image-placeholder {
    width: 100%;
    height: 100%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.125rem;
    font-weight: 500;
}

/* Product Content */
.handy-featured-products-grid .product-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 20px 20px 0 20px;
    flex-grow: 1;
}

.handy-featured-products-grid .product-title {
    font-family: Poppins, sans-serif;
    margin: 0 0 12px 0;
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.82px;
    color: #0145AB;
    line-height: 1.2;
}

.handy-featured-products-grid .product-excerpt p {
    font-family: Poppins, sans-serif;
    font-weight: 400;
    margin: 0 0 15px 0;
    line-height: 1.6;
    color: #3E434A;
    font-size: 1.125rem;
}

/* Product Actions */
.handy-featured-products-grid .product-actions {
    margin-top: auto;
}

.handy-featured-products-grid .btn,
.handy-featured-products-grid .btn-product-details {
    background: #0145AB;
    color: #FFFFFF;
    border-radius: 0px 28px 28px 0px;
    padding: 10px 20px;
    margin-left: -15px;
    border: none;
    text-decoration: none;
    font-family: Poppins, sans-serif;
    font-weight: 600;
    font-size: 1.063rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.handy-featured-products-grid .btn:hover,
.handy-featured-products-grid .btn-product-details:hover {
    background: #003a8c;
    color: #FFFFFF;
    text-decoration: none;
}

.handy-featured-products-grid .btn i,
.handy-featured-products-grid .btn-product-details i {
    font-size: 1rem;
}

/* Dynamic centering based on number of products - archive template sizing */
.handy-featured-products-grid[data-columns="1"] {
    grid-template-columns: 675px;
    max-width: 675px;
    margin: -10rem auto 0 auto;
}

.handy-featured-products-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 675px);
    max-width: 1385px;
    margin: -10rem auto 0 auto;
}

/* Responsive design for Featured Products - matching archive template behavior */
@media (max-width: 1420px) {
    /* Tablet layout - scale down from 675px while maintaining aspect ratio */
    .handy-featured-products-grid[data-columns="2"] {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1000px;
        gap: 25px;
        margin: -8rem auto 0 auto;
    }
    
    .handy-featured-products-grid[data-columns="1"] {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: -8rem auto 0 auto;
    }
    
    /* Tablet optimization for product cards */
    .handy-featured-products-grid .product-list-card {
        width: 100%;
        max-width: 675px;
    }
    
    .handy-featured-products-title {
        font-size: 3rem;
    }
}

@media (max-width: 549px) {
    /* Mobile layout - single column layout matching archive template */
    .handy-featured-products-grid[data-columns="1"],
    .handy-featured-products-grid[data-columns="2"] {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 15px;
        margin: -5rem auto 0 auto;
    }
    
    /* Mobile optimization for product cards */
    .handy-featured-products-grid .product-list-card {
        width: 100%;
        max-width: 100%;
    }
    
    .handy-featured-products-title {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }
    
    .handy-featured-products-content {
        padding: 0 15px;
    }
}