/* Edible Flowers Pages */

.ef-hero {
    padding: 80px 0 15px;
    background: var(--light-bg);
}

/* Flower Cards on Landing Page */
.ef-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.ef-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.ef-card-img {
    height: 280px;
    overflow: hidden;
}

.ef-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ef-card:hover .ef-card-img img {
    transform: scale(1.08);
}

.ef-card-body {
    padding: 1.25rem;
    text-align: center;
}

.ef-card-body h4 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* Detail Page */
.ef-detail-header {
    padding: 80px 0 10px;
    background: var(--light-bg);
}

.ef-back-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.ef-back-link:hover {
    color: var(--dark-color);
}

/* Detail Page Image Gallery */
.ef-gallery-main {
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 10px;
    cursor: pointer;
}

.ef-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ef-gallery-main:hover img {
    transform: scale(1.03);
}

.ef-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ef-gallery-thumbs::-webkit-scrollbar { display: none; }

.ef-gallery-thumb {
    flex: 0 0 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.6;
}

.ef-gallery-thumb.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.ef-gallery-thumb:hover {
    opacity: 1;
}

.ef-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Spec Cards */
.ef-spec-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ef-spec-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ef-spec-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.1);
}

.ef-spec-icon {
    flex: 0 0 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.ef-spec-label {
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
    margin-bottom: 2px;
}

.ef-spec-value {
    color: var(--dark-color);
    font-size: 0.95rem;
    font-weight: 500;
}

.ef-price-tag {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark-color);
}

/* Lightbox */
.ef-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ef-lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.ef-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.ef-lb-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.ef-lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
}

.ef-lb-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ef-lb-prev { left: 20px; }
.ef-lb-next { right: 20px; }

@media (max-width: 768px) {
    .ef-hero, .ef-detail-header {
        padding: 80px 0 10px;
        text-align: center;
    }

    .ef-card-img {
        height: 200px;
    }

    .ef-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .ef-lb-arrow {
        width: 40px;
        height: 40px;
    }

    .ef-lb-prev { left: 10px; }
    .ef-lb-next { right: 10px; }
}
