@import url(root.css);

body {
    background-color: var(--10);
    color: var(--8);
    font-family: var(--garet);
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--sloop-script), cursive;
}

.carousel-section-title {
    font-family: var(--garet);
}

.hero {
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.3) 62%), url('../images/flowerfoundry-hero4.png');
    height: 100vh;
    background-size: cover;
    background-position: center center;
    justify-content: center;
    display: flex;
    align-items: center;
    text-align: center;
}

@media (min-width: 1500px) {
    .hero {
        height: 90vh;
    }
}

.hero .hero-content {
    margin-top: -90px;
}

.hero .hero-content .hero-title {
    font-family: var(--garet);
    color: var(--10);
    font-size: 100px;
    font-weight: 700;
    margin-top: -50px;
    margin-left: 250px;
}

.hero .hero-content .hero-title1 span {
    font-family: var(--sloop-script);
    color: var(--10);
    font-size: 180px;
    font-weight: 700;
    margin-left: -80px;
}

.hero .hero-content .hero-description {
    font-family: var(--poppins);
    color: var(--10);
    font-size: 24px;
    font-weight: 400;
    padding-bottom: 20px;
}

.hero .hero-content .shop-btn {
    padding: 10px 18px;
    background-color: var(--10);
    color: var(--9);
    text-decoration: none;
    font-size: 14px;
    border-radius: 12px;
    border: 1px solid var(--10);
    font-weight: 700;
}

.hero .hero-content .shop-btn:hover {
    background-color: var(--1);
    color: var(--10);
    border: 1px solid var(--1);
    transition: background-color 0.5s, color 0.5s, border 0.5s;
}

.hero .hero-content .hero-search {
    width: min(720px, 92vw);
    margin: 18px auto 0;
    display: flex;
    align-items: center;
    background-color: var(--10);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.hero .hero-content .hero-search-input {
    flex: 1;
    border: 0;
    outline: none;
    padding: 12px 18px;
    font-family: var(--garet);
    font-size: 20px;
    color: var(--9);
    background-color: transparent;
}

.hero .hero-content .hero-search-input::placeholder {
    color: var(--16);
}

.hero .hero-content .hero-search-btn {
    border: 0;
    background: transparent;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hero .hero-content .hero-search-icon {
    width: 22px;
    height: 22px;
    display: block;
}

.hero .hero-content .hero-search:focus-within {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 0 0 3px rgba(191, 239, 228, 0.55);
}

.section-divider1 {
    background-color: var(--1);
    border-top: 1px solid var(--1);
    border-bottom: 1px solid var(--1);
    padding: 18px 0;
    overflow: hidden;
    margin-top: -90px;
}

.section-divider1 .divider-track {
    width: 100%;
    overflow: hidden;
}

.section-divider1 .divider-marquee {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: divider-scroll 22s linear infinite;
}

.section-divider1 .divider-group {
    display: flex;
    align-items: center;
}

.section-divider1 .divider-item {
    font-family: var(--garet);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
    color: var(--8);
    text-transform: uppercase;
    white-space: nowrap;
}

.section-divider1 .divider-accent {
    font-family: var(--sloop-script), cursive;
    font-weight: 600;
    font-size: 40px;
    letter-spacing: 0;
    color: var(--9);
    text-transform: none;
}

.section-divider1 .divider-sep {
    padding: 0 18px;
    color: var(--9);
    font-size: 18px;
    line-height: 1;
}

@keyframes divider-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .section-divider1 .divider-marquee {
        animation: none;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero .hero-content .hero-search-input {
        font-size: 18px;
        padding: 10px 14px;
    }

    .hero .hero-content .hero-search-icon {
        width: 20px;
        height: 20px;
    }

    .section-divider1{
        margin-top: 0px;
        padding: 10px 0px;
    }
}

.categories {
    padding: 70px 0 30px;
}

.categories-title {
    margin: 0 0 26px;
    text-align: center;
    font-family: var(--garet);
    font-size: 46px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--3);
}

.categories-grid {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.category-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
}

.category-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.category-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    fill: var(--10);
}

.category-label {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    background-color: var(--3);
    color: var(--10);
    font-family: var(--garet);
    font-weight: 800;
    letter-spacing: 1px;
    padding: 10px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 30px;
}

@media (max-width: 992px) {
    .categories {
        padding: 60px 0 20px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-image {
        height: 300px;
    }
}

.top-sellers {
    padding: 0 0 95px; 
    position: relative;
    background-image: url('../images/top-selling.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    margin-top: -30px;; 
    overflow: hidden;
}

.top-sellers-flowers {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.top-sellers-flower {
    position: absolute;
    width: 52px;
    height: 52px;
    object-fit: contain;
    opacity: 0.95;
}

.top-sellers-header,
.top-sellers .products-container {
    position: relative;
    z-index: 1;
}

/* Random-ish placement */
.top-sellers-flower.flower-1 {
    left: 6%;
    top: 10%;
    width: 58px;
    height: 58px;
    transform: rotate(-10deg);
}

.top-sellers-flower.flower-2 {
    left: 22%;
    top: 18%;
    width: 46px;
    height: 46px;
    transform: rotate(12deg);
}

.top-sellers-flower.flower-3 {
    left: 41%;
    top: 2%;
    width: 62px;
    height: 62px;
    transform: rotate(-6deg);
}

.top-sellers-flower.flower-4 {
    left: 64%;
    top: 22%;
    width: 48px;
    height: 48px;
    transform: rotate(18deg);
}

.top-sellers-flower.flower-5 {
    left: 76%;
    top: 14%;
    width: 60px;
    height: 60px;
    transform: rotate(-14deg);
}

.top-sellers-flower.flower-6 {
    left: 92%;
    top: 20%;
    width: 44px;
    height: 44px;
    transform: rotate(8deg);
}

.top-sellers-flower.flower-7 {
    left: 10%;
    top: 36%;
    width: 52px;
    height: 52px;
    transform: rotate(16deg);
}

.top-sellers-flower.flower-8 {
    left: 30%;
    top: 48%;
    width: 42px;
    height: 42px;
    transform: rotate(-8deg);
}

.top-sellers-flower.flower-9 {
    left: 52%;
    top: 38%;
    width: 50px;
    height: 50px;
    transform: rotate(10deg);
}

.top-sellers-flower.flower-10 {
    left: 66%;
    top: 44%;
    width: 56px;
    height: 56px;
    transform: rotate(-12deg);
}

.top-sellers-flower.flower-11 {
    left: 84%;
    top: 52%;
    width: 44px;
    height: 44px;
    transform: rotate(14deg);
}

.top-sellers-flower.flower-12 {
    left: 46%;
    top: 30%;
    width: 40px;
    height: 40px;
    transform: rotate(-18deg);
}

.top-sellers-header {
    margin: 0; 
    text-align: center;
    width: 100%;
}

.top-sellers-kicker {
    margin: 0;
    font-family: var(--garet);
    font-size: 44px;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--10);
}

.top-sellers-title {
    margin: -8px 0 0;
    font-family: var(--sloop-script), cursive;
    font-size: 120px;
    font-weight: 400;
    line-height: 0.95;
    color: var(--3);
}


.top-sellers .products-container {
    width: min(1100px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    align-items: start;
    justify-content: center;
}

.top-sellers .product-card {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(6, 10, 14, 0.10);
    overflow: hidden;
}

.top-sellers .product-card .card-body {
    text-align: center;
    padding: 18px 18px 16px;
}

.top-sellers .product-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 16px 0;
    background: linear-gradient(180deg, var(--hard-white), var(--hard-white));
}

.top-sellers .product-img {
    width: 100%;
    height: 210px;
    border-radius: 18px;
    object-fit: cover;
    background: var(--14);
    border: 0;
    box-shadow: 0 10px 20px rgba(6, 10, 14, 0.08);
}

.top-sellers .product-card .card-title {
    font-family: var(--garet);
    font-weight: 700;
    color: var(--9);
}

.top-sellers .availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-sellers .availability .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--14);
}

.top-sellers .price {
    font-family: var(--poppins);
    font-weight: 600;
    color: var(--9);
}

.top-sellers .btn.btn-cart {
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 14px;
    background: var(--3);
    border: 1px solid var(--3);
    color: var(--10);
    font-family: var(--garet);
    font-weight: 700;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.top-sellers .btn.btn-cart:hover {
    background: var(--14);
    color: var(--9);
    border-color: var(--14);
}

.top-sellers .btn.btn-cart.is-added {
    background: #2e7d32;
    border-color: #2e7d32;
    color: var(--10);
}

.top-sellers .btn.btn-cart.is-added:hover {
    background: #276b2b;
    border-color: #276b2b;
    color: var(--10);
}

.top-sellers .products-container > .w-100 {
    grid-column: 1 / -1;
    text-align: center;
    padding: 36px 32px;
    background: rgba(6, 10, 14, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(6, 10, 14, 0.35);
    font-family: var(--garet);
    font-size: 20px;
    font-weight: 400;
    color: var(--10) !important;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.top-sellers .top-sellers-header img{
    margin-top: 0px;
    width: 100%;
    height: auto;
}

.top-sellers-header .top-sellers-logo2{
    display: none;
}

@media (max-width: 600px) {
    .top-sellers {
        /* Snaps the banner to the top on mobile views as well */
        padding: 0 14px 58px; 
    }
    
    /* Ensures the banner drops structural page margins on small viewports */
    .top-sellers-header {
        margin-left: -14px;  /* Counteracts the parent section's left padding */
        margin-right: -14px; /* Counteracts the parent section's right padding */
        width: calc(100% + 28px); /* Forces it to bleed past padding edge to edge */
    }

    .top-sellers .top-sellers-header img {
        display: none;
    }

    .top-sellers-logo2{
        display: block !important;
        margin: 0 auto;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 992px) {
    .top-sellers {
        padding: 60px 20px;
    }

    .top-sellers-flower {
        width: 44px;
        height: 44px;
    }

    .top-sellers-kicker {
        font-size: 34px;
    }

    .top-sellers-title {
        font-size: 86px;
    }

    .top-sellers .products-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .top-sellers .product-img {
        height: 220px;
    }
}

@media (min-width: 1200px) {
    .top-sellers .product-img {
        height: 235px;
    }
}

@media (max-width: 768px) {
    .top-sellers .products-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .marquee-section {
        border-top: 4px solid var(--3); /* Blends perfectly with your marquee theme */
        margin-top: 0; /* Ensures it doesn't pull under the sticky header too much */
    }
}

@media (max-width: 600px) {
    .top-sellers .products-container {
        grid-template-columns: minmax(0, 320px);
    }

    .top-sellers .product-img {
        height: 200px;
    }
}

/* Scoped styling for the delivery-address modal to match the site theme */
.delivery-modal .modal-content {
    border-radius: 18px;
    border: 1px solid rgba(6, 10, 14, 0.08);
    box-shadow: 0 18px 55px rgba(6, 10, 14, 0.25);
    overflow: hidden;
    background: var(--10);
    color: var(--8);
    font-family: var(--poppins), sans-serif !important;
}

.delivery-modal .modal-header {
    background: var(--1);
    border-bottom: 0;
    padding: 16px 18px;
}

.delivery-modal .modal-title {
    margin: 0;
    color: var(--10);
    font-weight: 800;
    letter-spacing: 0.5px;
    font-family: var(--garet), sans-serif;
}

.delivery-modal .btn-close {
    filter: invert(1) grayscale(100%);
    opacity: 0.95;
}

.delivery-modal .modal-body {
    padding: 18px;
}

.delivery-modal .form-label {
    color: var(--9);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.delivery-modal .form-control {
    border-radius: 12px;
    border: 1px solid rgba(6, 10, 14, 0.16);
    padding: 12px 14px;
    font-size: 18px;
    color: var(--9);
}

.delivery-modal .form-control:focus {
    border-color: var(--16);
    box-shadow: 0 0 0 3px rgba(191, 239, 228, 0.55);
}

.delivery-modal .form-text {
    color: var(--16);
}

.delivery-modal .modal-footer {
    border-top: 0;
    padding: 0 18px 18px;
    gap: 10px;
}

.delivery-modal .btn {
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
}

.delivery-modal .btn.btn-primary {
    background: var(--5);
    border-color: var(--5);
}

.delivery-modal .btn.btn-primary:hover,
.delivery-modal .btn.btn-primary:focus {
    background: var(--3);
    border-color: var(--3);
}

.delivery-modal .btn.btn-secondary {
    background: transparent;
    color: var(--9);
    border-color: rgba(6, 10, 14, 0.22);
}

.delivery-modal .btn.btn-secondary:hover,
.delivery-modal .btn.btn-secondary:focus {
    background: rgba(6, 10, 14, 0.06);
    color: var(--9);
    border-color: rgba(6, 10, 14, 0.28);
}

/* Phone / small-screen specific overrides */
@media (max-width: 600px) {
    .hero {
        height: 69vh;
        min-height: 520px;
        background-position: center 30%;
        position: relative;
        padding: 0 0 22px;
    }

    .hero::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 42%;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(6, 10, 14, 0) 0%, rgba(6, 10, 14, 0.45) 100%);
    }

    .hero .hero-content {
        margin-top: -26px;
        padding: 0 14px;
        width: min(460px, 100%);
        position: relative;
        z-index: 1;
    }

    .hero .hero-content .hero-title {
        font-size: 44px;
        margin-top: 0;
        margin-left: 0;
        text-align: center;
        line-height: 0.95;
        text-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    }

    .hero .hero-content .hero-title1 span {
        font-size: 78px;
        margin-left: 0;
        display: block;
        line-height: 0.95;
        text-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    }

    .hero .hero-content .hero-description {
        font-size: 16px;
        line-height: 1.35;
        max-width: 300px;
        margin: 0 auto;
        padding-bottom: 10px;
        text-wrap: balance;
    }

    .hero .hero-content .shop-btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    .hero .hero-content .hero-search {
        width: calc(100% - 10px);
        margin: 12px auto 0;
        border-radius: 18px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    }

    .hero .hero-content .hero-search-input {
        font-size: 16px;
        padding: 12px 14px;
    }

    .hero .hero-content .hero-search-btn {
        min-width: 52px;
    }

    .categories {
        padding: 34px 14px 26px;
        background: linear-gradient(180deg, rgba(247, 243, 236, 0.76) 0%, rgba(255, 255, 255, 0) 100%);
    }

    .categories-title {
        font-size: 30px;
        margin-bottom: 16px;
        letter-spacing: 2px;
    }

    .categories-grid {
        gap: 14px;
    }

    .category-card {
        border-radius: 22px;
        box-shadow: 0 18px 42px rgba(6, 10, 14, 0.16);
    }

    .category-wave {
        height: 48px;
    }

    .category-image {
        height: 250px;
    }

    .category-label {
        bottom: 14px;
        font-size: 21px;
        padding: 9px 16px;
        letter-spacing: 0.5px;
        width: max-content;
        max-width: calc(100% - 24px);
    }

    .top-sellers {
        padding: 44px 14px 58px;
        margin-top: 0;
        background-position: center center;
    }

    .top-sellers-kicker {
        font-size: 28px;
        line-height: 1;
    }

    .top-sellers-title {
        font-size: 70px;
        margin-top: 4px;
    }

    .top-sellers-flower {
        opacity: 0.62;
    }

    .top-sellers-flower.flower-6,
    .top-sellers-flower.flower-10,
    .top-sellers-flower.flower-11,
    .top-sellers-flower.flower-12 {
        display: none;
    }

    .top-sellers .products-container {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
        padding: 0;
    }

    .top-sellers .product-card {
        margin: 0 auto;
        width: min(100%, 370px);
        border-radius: 20px;
        box-shadow: 0 16px 36px rgba(6, 10, 14, 0.2);
    }

    .top-sellers .product-card .card-body {
        padding: 16px 14px 14px;
    }

    .top-sellers .product-img-wrap {
        padding: 12px 12px 0;
    }

    .top-sellers .product-img {
        height: 196px;
    }

    .top-sellers .btn.btn-cart {
        width: 100%;
        padding: 10px 18px;
        font-size: 14px;
    }

    .top-sellers .products-container > .w-100 {
        border-radius: 16px;
        font-size: 18px;
        padding: 24px 18px;
    }

    .delivery-modal .modal-dialog {
        margin: 12px;
    }

    .delivery-modal .modal-content {
        border-radius: 16px;
    }

    .delivery-modal .modal-body,
    .delivery-modal .modal-header,
    .delivery-modal .modal-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .delivery-modal .form-control {
        font-size: 16px;
    }

    .delivery-modal .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .hero {
        min-height: 500px;
    }

    .hero .hero-content .hero-title {
        font-size: 60px;
        margin-top: -30px;
        margin-left: 50px;
    }

    .hero .hero-content .hero-title1 span {
        font-size: 130px;
        margin-left: -10px !important;
    }

    .hero .hero-content .hero-description {
        font-size: 15px;
    }

    .category-image {
        height: 220px;
    }

    .category-label {
        font-size: 18px;
        padding: 8px 14px;
    }

    .top-sellers-kicker {
        font-size: 24px;
    }

    .top-sellers-title {
        font-size: 58px;
    }

    .top-sellers .product-card {
        max-width: 332px;
    }
}