/* Flowers Page Styles */

/* Hero Section */
.flowers-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/static/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.flowers-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.flowers-hero .lead {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Filter Section */
/* Filter Section */
.flowers-filter-section {
    padding: 30px 0;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.filter-btn {
    padding: 12px 25px;
    border: none;
    background-color: white;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(45, 80, 22, 0.15);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 5px 15px rgba(45, 80, 22, 0.3);
}

/* Flowers Grid */
.flowers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 80px;
}

/* FLIP CARD STYLES */
.flower-card-container {
    background-color: transparent;
    width: 100%;
    height: 400px;
    perspective: 1000px;
    /* 3D effect depth */
}

.flower-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.flower-card-container:hover .flower-card-inner {
    transform: rotateY(180deg);
}

.flower-card-front,
.flower-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    background-color: white;
    border: 1px solid #eee;
}

/* Front Face */
.flower-card-front {
    display: flex;
    flex-direction: column;
}

.flower-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.flower-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flower-content-front {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
}

.flower-category {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.flower-content-front h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.flip-hint {
    font-size: 0.8rem;
    color: #999;
    margin-top: 10px;
    display: block;
}

/* Back Face */
.flower-card-back {
    background: linear-gradient(135deg, #fdfbf7 0%, #fff 100%);
    color: #333;
    transform: rotateY(180deg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flower-content-back h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.flower-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
}

.flower-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.tag {
    background-color: #e8f5e9;
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-ask-bot {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn-ask-bot:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .flowers-hero h1 {
        font-size: 2.5rem;
    }

    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Best Sellers Slider */
.best-sellers-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
    margin: 60px 0 0 0;
    overflow: hidden;
}

.slider-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.slider-track {
    display: flex;
    gap: 20px;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.slider-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

.slide-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    min-width: 250px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.slide-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.slide-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slide-info h5 {
    color: var(--primary-color);
    font-size: 1.1em;
    font-weight: bold;
    margin: 0;
}

.slide-price {
    color: var(--accent-color);
    font-size: 1.2em;
    font-weight: bold;
}

.slide-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 25px;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.slide-link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .slider-title {
        font-size: 1.5em;
    }
    
    .slide-card {
        min-width: 200px;
    }
}