/* M Florist Style Reset & Tokens */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --bg-white: #ffffff;
    --bg-light-beige: #F9F7F2;
    --bg-gray: #EAEAEA;
    --text-dark: #222222;
    --text-light: #666666;
    --primary-color: #111111;
    --accent-color: #333333;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Cabin', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 15px;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* Announcement Bar */
.announcement-bar {
    background-color: #2F2F2F;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 5%;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
}

.logo {
    max-height: 80px;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.nav-link {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 3px;
    color: #444;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.cart-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 18px;
}

.cart-icon {
    transition: var(--transition-smooth);
}

.cart-container:hover .cart-icon {
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    padding: 14px 35px;
    border: none;
    font-family: var(--font-body);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.btn-light {
    background: rgba(255, 255, 255, 0.85);
    color: #000;
}

.btn-light:hover {
    background: #fff;
    transform: translateY(-3px);
}

.btn-dark {
    background: #111;
    color: #fff;
}

.btn-dark:hover {
    background: #444;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-light-outline {
    background: transparent;
    border: 1px solid #111;
    color: #111;
}

.btn-light-outline:hover {
    background: #111;
    color: #fff;
}

.full-width {
    width: 100%;
}

/* General Sections */
.section {
    padding: 100px 5%;
    text-align: center;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.center-text {
    text-align: center;
}

.section-desc {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 16px;
    color: var(--text-light);
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
}

.hero-content {
    color: #fff;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 15px;
    font-style: italic;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Selection Section */
.selection-section {
    background: var(--bg-light-beige);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.product-card {
    cursor: pointer;
    text-align: center;
}

.img-wrapper {
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
}

.img-wrapper img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card:hover .img-wrapper img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.product-card p {
    font-size: 15px;
    color: var(--text-light);
}

/* Services */
.services-section {
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    text-align: center;
}

.service-item h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.service-item p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 15px;
}

.service-item a {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 2px;
}

.service-item a:hover {
    color: #888;
    border-color: #888;
}

/* Events */
.events-section,
.roses-section {
    background: var(--bg-light-beige);
    padding: 150px 5%;
}

.events-content,
.roses-content {
    max-width: 600px;
    margin: 0 auto;
}

.events-content p,
.roses-content p {
    margin-bottom: 40px;
    font-size: 16px;
    color: var(--text-light);
}

/* Flower Fables */
.fables-section {
    padding: 0;
    text-align: left;
}

.fables-flex {
    display: flex;
    align-items: center;
}

.fables-img-wrapper {
    flex: 1;
}

.fables-img-wrapper img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.fables-content {
    flex: 1;
    padding: 5% 8%;
    background: #EFEFEF;
}

.pre-title {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    margin-bottom: 15px;
}

.fables-desc {
    margin-bottom: 40px;
    color: var(--text-light);
}

/* FAQs */
.faqs-section {
    padding: 100px 5%;
    background: var(--bg-light-beige);
}

.faqs-flex {
    display: flex;
    gap: 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.faqs-left {
    flex: 1;
}

.faqs-right {
    flex: 2;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
    padding: 25px 0;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.6rem;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, margin-top 0.4s;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    margin-top: 20px;
}

.plus {
    font-size: 24px;
    font-weight: 300;
}

/* Footer */
.footer {
    background: var(--bg-gray);
    padding: 80px 10% 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 60px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 30px;
}

.footer-left {
    flex: 1;
    max-width: 450px;
}

.footer-left h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.footer-left p {
    margin-bottom: 25px;
    color: var(--text-light);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    background: #fff;
    font-family: var(--font-body);
}

.footer-right {
    flex: 1;
    max-width: 400px;
}

.footer-logo-text {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.brand-desc {
    color: var(--text-light);
    font-style: italic;
    font-family: var(--font-heading);
    margin-bottom: 30px;
}

.footer-info-block {
    margin-bottom: 20px;
}

.footer-info-block h4 {
    font-family: var(--font-body);
    text-transform: capitalize;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 5px;
}

.footer-info-block p {
    color: var(--text-light);
}

.call-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}

/* Modal Core Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 5%;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content,
.cart-modal-content {
    width: 100%;
    max-width: 1200px;
    position: relative;
    transform: translateY(50px);
    transition: var(--transition-smooth);
    opacity: 0;
}

.modal-overlay.active .modal-content,
.modal-overlay.active .cart-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.cart-modal-content {
    max-width: 600px;
    background: #F9F7F2;
    padding: 50px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    align-self: center;
}

.close-modal {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 30px;
    background: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #eaeaea;
    cursor: pointer;
    color: #333;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

#product-modal .close-modal {
    position: fixed;
    top: 30px;
    right: 50px;
    background: none;
    border: none;
    box-shadow: none;
}

.close-modal:hover {
    transform: rotate(90deg);
}

/* Modals - Products */
.modal-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 30px 0;
}

.modal-product {
    background: #fff;
    padding: 20px;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.modal-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.modal-product img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    margin-bottom: 20px;
}

.modal-product h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.modal-product p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-sm {
    padding: 10px 15px;
    font-size: 11px;
}

/* Modals - Cart */
#cart-items-container {
    margin: 30px 0;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.cart-item-info p {
    font-size: 14px;
    color: var(--text-light);
}

.remove-item {
    background: none;
    border: none;
    color: #cc0000;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
}

#cart-summary {
    text-align: right;
    border-top: 2px solid #ccc;
    padding-top: 20px;
}

#cart-summary p {
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-family: var(--font-heading);
}

/* Order Status Overlay */
.order-status-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #F9F7F2;
    z-index: 100;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.order-status-overlay.active {
    display: flex;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid #ddd;
    border-top: 3px solid #111;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.success-message {
    display: none;
}

.success-message.active {
    display: block;
}

.check-icon {
    width: 80px;
    height: 80px;
    background: #111;
    color: white;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 30px;
}

.success-message h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.success-message p {
    margin-bottom: 30px;
    color: var(--text-light);
}

/* Detailed Product overlay */
.details-flex {
    display: flex;
    gap: 50px;
    align-items: center;
    background: #fff;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.details-img-wrap {
    flex: 1;
}

.details-img-wrap img {
    width: 100%;
}

.details-info {
    flex: 1;
    text-align: left;
}

.details-info h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.details-info p.price {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.details-info p.desc {
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.8;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #111;
    color: #fff;
    padding: 15px 40px;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 9999;
    font-family: var(--font-body);
    letter-spacing: 1px;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (max-width: 900px) {

    .product-grid,
    .modal-product-grid,
    .services-grid,
    .footer-top,
    .faqs-flex,
    .fables-flex {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 3rem;
    }

    .details-flex {
        flex-direction: column;
    }

    .nav-right {
        right: 5%;
    }

    .faqs-left {
        text-align: center;
    }
}