/* ===== POSYBLOOM MASTER CSS - OPTIMIZED & MERGED ===== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Professional Fonts */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-accent: 'Work Sans', sans-serif;

    /* Brand Colors */
    --brand-pink: #EC4899;
    --brand-pink-light: #F472B6;
    --brand-pink-dark: #DB2777;
    --brand-green: #65A30D;
    --brand-green-light: #84CC16;
    --brand-green-dark: #4D7C0F;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --text-lighter: #9CA3AF;
    --background-light: #FEF2F2;
}

/* ===== BASE TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    letter-spacing: -0.025em;
}

body,
p,
span,
div,
input,
button,
a {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
}

.btn,
button {
    font-family: var(--font-accent);
    font-weight: 500;
    letter-spacing: 0.01em;
}

nav a {
    font-family: var(--font-accent);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.01em;
}

/* ===== RESPONSIVE FONT SIZES ===== */
.hero-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(1.2rem, 2.8vw, 1.6rem);
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.card-title {
    font-size: clamp(1rem, 3vw, 1.125rem);
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.body-text {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-family: var(--font-body);
    line-height: 1.6;
    font-weight: 400;
}

.small-text {
    font-size: clamp(0.8rem, 2vw, 0.875rem);
    font-family: var(--font-body);
    font-weight: 400;
}

.accent-text {
    font-family: var(--font-accent);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* ===== COLOR UTILITIES ===== */
.text-brand-pink {
    color: var(--brand-pink);
}

.text-brand-green {
    color: var(--brand-green);
}

.bg-brand-pink {
    background-color: var(--brand-pink);
}

.bg-brand-green {
    background-color: var(--brand-green);
}

.border-brand-pink {
    border-color: var(--brand-pink);
}

.hover\:text-brand-pink:hover {
    color: var(--brand-pink);
}

.hover\:bg-brand-pink:hover {
    background-color: var(--brand-pink);
}

/* ===== LAYOUT UTILITIES ===== */
.menu-open {
    overflow: hidden;
}

.hero-bg {
    background-image: linear-gradient(rgba(236, 72, 153, 0.2), rgba(101, 163, 13, 0.2)),
        url('./image/The_Flora_Banner\ copy.jpg');
    background-size: cover;
    background-position: center;
}

/* ===== BUTTON SYSTEM ===== */
.btn-primary {
    background-color: var(--brand-pink);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--brand-pink-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.25);
}

.btn-secondary {
    background-color: var(--brand-green);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
}

/* .btn-secondary:hover {
    background-color: var(--brand-green-dark);
    transform: translateY(-16px);
    box-shadow: 0 10px 25px rgba(101, 163, 13, 0.25);
} */

.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading i {
    animation: spin 1s linear infinite;
}

/* ===== DROPDOWN SYSTEM ===== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 300px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #F3F4F6;
    padding: 8px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
}

.dropdown-menu a:hover {
    background-color: var(--background-light);
    color: var(--brand-pink);
}

/* ===== FORM SYSTEM ===== */
.form-group {
    position: relative;
    margin-bottom: 1.2rem;
}

.form-input,
.search-input {
    width: 100%;
    padding: 6px 12px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: #FAFAFA;
    outline: none;
    transition: all 0.3s ease;
    font-weight: 400;
}

.form-input:focus,
.search-input:focus {
    border-color: var(--brand-pink);
    background: white;
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(236, 72, 153, 0.1);
}

.form-label {
    position: absolute;
    top: 12px;
    left: 16px;
    color: var(--text-light);
    font-size: 0.85rem;
    font-family: var(--font-body);
    pointer-events: none;
    background: transparent;
    padding: 0 4px;
}

.form-input:focus+.form-label,
.form-input:not(:placeholder-shown)+.form-label {
    top: -8px;
    left: 12px;
    font-size: 0.75rem;
    color: var(--brand-pink);
    background: white;
    font-weight: 500;
}

.search-input::placeholder {
    color: var(--text-lighter);
    font-weight: 400;
}

/* ===== CARD SYSTEM ===== */
.card-hover {
    transition: all 0.3s ease;
    box-shadow: 0px 0px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-hover:hover {
    transform: translateY(-4px);
}

/* ===== QUANTITY SELECTOR ===== */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
}

.quantity-selector button:hover {
    background: var(--background-light);
    color: var(--brand-pink);
}

.quantity-selector input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    font-weight: 500;
}

/* ===== STAR RATING ===== */
.star-rating {
    display: inline-flex;
    align-items: center;
    color: #fbbf24;
}

.star-rating .star {
    width: 18px;
    height: 18px;
    margin-right: 2px;
}

/* ===== CHECKBOX STYLES ===== */
.flower-checkbox {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flower-checkbox input[type="checkbox"] {
    display: none;
}

.flower-checkbox .checkmark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0px;
    height: 20px;
    width: 20px;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.flower-checkbox input:checked~.checkmark {
    background-color: var(--brand-pink);
    border-color: var(--brand-pink);
}

.flower-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.flower-checkbox input:checked~.checkmark:after {
    display: block;
}

.flower-checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* ===== CART & CHECKOUT ===== */
.cart-item {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.cart-item:hover {
    border-color: var(--brand-pink);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.15);
}

.delivery-option {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delivery-option:hover,
.delivery-option.selected {
    border-color: var(--brand-pink);
    background-color: var(--background-light);
}

.summary-card {
    position: sticky;
    top: 2rem;
}

/* ===== DELIVERY STATUS ===== */
.delivery-available {
    background-color: rgba(101, 163, 13, 0.1);
    border: 1px solid var(--brand-green);
    color: var(--brand-green-dark);
}

.delivery-unavailable {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #dc2626;
}

.delivery-info {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid #3b82f6;
    color: #1d4ed8;
}

/* ===== ADD-ON ITEMS ===== */
.addon-item {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.addon-item:hover,
.addon-item.selected {
    border-color: var(--brand-pink);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.15);
    background: rgba(236, 72, 153, 0.05);
}

/* ===== ACCORDION SYSTEM ===== */
.accordion {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.accordion-header {
    background: #f9fafb;
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: #f3f4f6;
}

.accordion-content {
    padding: 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: var(--brand-pink);
}

/* ===== DURATION TOGGLE ===== */
.duration-toggle {
    display: inline-flex;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.duration-toggle input[type="radio"] {
    display: none;
}

.duration-toggle label {
    padding: 12px 24px;
    cursor: pointer;
    background: white;
    color: var(--text-light);
    transition: all 0.2s;
    border-right: 1px solid #e5e7eb;
}

.duration-toggle label:last-child {
    border-right: none;
}

.duration-toggle input:checked+label {
    background: var(--brand-pink);
    color: white;
}

/* ===== PAYMENT METHODS ===== */
.payment-method {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: block;
}

.payment-method:hover,
.payment-method.selected {
    border-color: var(--brand-pink);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.15);
    background: rgba(236, 72, 153, 0.05);
}

.payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.payment-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.payment-method::before {
    content: '';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: white;
    transition: all 0.3s ease;
}

.payment-method.selected::before {
    border-color: var(--brand-pink);
    background: var(--brand-pink);
}

.payment-method.selected::after {
    content: '';
    position: absolute;
    top: 21px;
    right: 21px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
}

#card-details {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    opacity: 0;
}

#card-details.show {
    max-height: 500px;
    opacity: 1;
    margin-top: 24px;
}

/* ===== THUMBNAIL IMAGES ===== */
.thumbnail-image {
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.thumbnail-image:hover,
.thumbnail-image.active {
    border-color: var(--brand-pink);
    transform: scale(1.05);
}

.main-product-image {
    transition: all 0.5s ease;
    border-radius: 16px;
    overflow: hidden;
}

/* ===== ZIP INPUT ===== */
.zip-input-container input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.zip-input-container input:focus {
    outline: none;
    border-color: var(--brand-pink);
}

/* ===== PRICING ===== */
.price-text {
    color: var(--brand-green);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.price-animate {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== SWIPER COMPONENTS ===== */
.category-slider .swiper-slide {
    transition: all 0.3s ease;
}

.testimonial-main-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: var(--brand-pink);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.testimonial-main-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

.testimonial-next,
.testimonial-prev {
    width: 44px;
    height: 44px;
    background: var(--brand-pink);
    border-radius: 50%;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.testimonial-next:hover,
.testimonial-prev:hover {
    background: var(--brand-pink-dark);
    transform: scale(1.1);
}

.testimonial-next:after,
.testimonial-prev:after {
    font-size: 16px;
    font-weight: bold;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--brand-pink);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--brand-pink-dark);
}

/* ===== FOOTER ===== */
.footer-heading {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ===== ADDITIONAL COMPONENTS ===== */
.filter-button {
    padding: 8px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: white;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.filter-button:hover,
.filter-button.active {
    border-color: var(--brand-pink);
    color: var(--brand-pink);
    background-color: var(--background-light);
}

.badge {
    font-family: var(--font-accent);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 4px;
}

.badge-new {
    background-color: var(--brand-green);
    color: white;
}

.badge-sale {
    background-color: var(--brand-pink);
    color: white;
}

.whatsapp-bubble {
    position: fixed;
    bottom: 100px;
    right: 24px;
    background: var(--brand-green);
    color: white;
    padding: 8px 14px;
    border-radius: 25px;
    font-size: 0.8rem;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 1000;
    font-family: var(--font-body);
}

/* ===== ANIMATIONS ===== */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    background: linear-gradient(45deg, var(--brand-green), var(--brand-green-light));
    color: white;
    padding: 14px;
    border-radius: 8px;
    text-align: center;
    margin-top: 14px;
    opacity: 0;
    animation: slideInUp 0.5s ease-out;
}

.success-message.show {
    opacity: 1;
}

.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

/* ===== SCROLLBAR HIDE ===== */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .cart-item {
        padding: 1rem;
    }

    .duration-toggle {
        flex-direction: column;
    }

    .duration-toggle label {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .duration-toggle label:last-child {
        border-bottom: none;
    }

    .testimonial-next,
    .testimonial-prev {
        display: none;
    }

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

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