/* Global Variables */
:root {
    /* Color Theme */
    --color-primary-white: #FFFFFF;
    --color-soft-pink: #FFB6C1;
    --color-light-pink: #FFF0F5;
    --color-dark-green: #2E8B57;
    --color-light-green: #E8F5E9;
    --color-text-main: #333333;
    --color-text-light: #666666;
    --color-border: #EAEAEA;
    --color-bg-gray: #FAFAFA;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-cta: 'Poppins', sans-serif;

    /* Spacing & Sizes */
    --border-radius: 8px;
    --transition-fast: 0.3s ease;
}

/* Reset & Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: #fafafa;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark-green);
    margin-bottom: 1rem;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    image-orientation: from-image; /* Respect EXIF rotation data */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Utility */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-soft-pink);
}

/* Background Utility */
.bg-light-pink {
    background-color: var(--color-light-pink);
}
.bg-light-green {
    background-color: var(--color-light-green);
}
.bg-white { 
    background-color: var(--color-primary-white); 
}

/* Layout Grid Utilities */
/* .grid styling removed as per request */

/* Fade-in Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Home Specific Sections */
.home-section {
    padding: 80px 0;
}

/* Category Grid Layout */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

.hero-section {
    padding: 120px 0 80px;
    background-color: var(--color-light-pink);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(68,72)' opacity='0.09'%3E%3Ccircle cx='0' cy='0' r='6' stroke='%23c8a0b0' stroke-width='1.2'/%3E%3Cellipse cx='0' cy='-18' rx='6' ry='10' stroke='%23d4b0be' stroke-width='1.1'/%3E%3Cellipse cx='0' cy='-18' rx='6' ry='10' stroke='%23d4b0be' stroke-width='1.1' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-18' rx='6' ry='10' stroke='%23d4b0be' stroke-width='1.1' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-18' rx='6' ry='10' stroke='%23d4b0be' stroke-width='1.1' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-18' rx='6' ry='10' stroke='%23d4b0be' stroke-width='1.1' transform='rotate(288)'/%3E%3Cline x1='0' y1='7' x2='0' y2='32' stroke='%2390c4a8' stroke-width='1.1'/%3E%3Cpath d='M0,22 Q10,14 18,16' stroke='%2390c4a8' stroke-width='1' fill='none'/%3E%3C/g%3E%3Cg transform='translate(338,55)' opacity='0.08'%3E%3Cpath d='M0,30 Q-12,0 0,-20 Q12,0 0,30Z' stroke='%2390c4a8' stroke-width='1.2'/%3E%3Cpath d='M0,30 Q16,4 28,0 Q20,18 0,30Z' stroke='%2399c9b0' stroke-width='1.1'/%3E%3Cpath d='M0,30 Q-16,4 -28,0 Q-20,18 0,30Z' stroke='%2399c9b0' stroke-width='1.1'/%3E%3Cline x1='0' y1='30' x2='0' y2='52' stroke='%2390c4a8' stroke-width='1.2'/%3E%3C/g%3E%3Cg transform='translate(55,338)' opacity='0.08'%3E%3Ccircle cx='0' cy='0' r='5' stroke='%23c8a0b0' stroke-width='1.2'/%3E%3Cline x1='0' y1='-8' x2='0' y2='-20' stroke='%23d4b0be' stroke-width='1.1'/%3E%3Cline x1='0' y1='-8' x2='0' y2='-20' stroke='%23d4b0be' stroke-width='1.1' transform='rotate(45)'/%3E%3Cline x1='0' y1='-8' x2='0' y2='-20' stroke='%23d4b0be' stroke-width='1.1' transform='rotate(90)'/%3E%3Cline x1='0' y1='-8' x2='0' y2='-20' stroke='%23d4b0be' stroke-width='1.1' transform='rotate(135)'/%3E%3Cline x1='0' y1='-8' x2='0' y2='-20' stroke='%23d4b0be' stroke-width='1.1' transform='rotate(180)'/%3E%3Cline x1='0' y1='-8' x2='0' y2='-20' stroke='%23d4b0be' stroke-width='1.1' transform='rotate(225)'/%3E%3Cline x1='0' y1='-8' x2='0' y2='-20' stroke='%23d4b0be' stroke-width='1.1' transform='rotate(270)'/%3E%3Cline x1='0' y1='-8' x2='0' y2='-20' stroke='%23d4b0be' stroke-width='1.1' transform='rotate(315)'/%3E%3Cline x1='0' y1='6' x2='4' y2='30' stroke='%2390c4a8' stroke-width='1.1'/%3E%3Cpath d='M4,18 Q16,12 22,16' stroke='%2390c4a8' stroke-width='1' fill='none'/%3E%3C/g%3E%3Cg transform='translate(348,355)' opacity='0.09'%3E%3Ccircle cx='0' cy='0' r='4' stroke='%23c8a0b0' stroke-width='1.2'/%3E%3Ccircle cx='0' cy='-14' r='6' stroke='%23d4b0be' stroke-width='1.1'/%3E%3Ccircle cx='13' cy='-5' r='6' stroke='%23d4b0be' stroke-width='1.1'/%3E%3Ccircle cx='8' cy='11' r='6' stroke='%23d4b0be' stroke-width='1.1'/%3E%3Ccircle cx='-8' cy='11' r='6' stroke='%23d4b0be' stroke-width='1.1'/%3E%3Ccircle cx='-13' cy='-5' r='6' stroke='%23d4b0be' stroke-width='1.1'/%3E%3Cline x1='0' y1='4' x2='-4' y2='28' stroke='%2390c4a8' stroke-width='1.1'/%3E%3Cpath d='M-4,16 Q-16,10 -20,14' stroke='%2390c4a8' stroke-width='1' fill='none'/%3E%3C/g%3E%3Cg transform='translate(210,200)' opacity='0.07'%3E%3Cline x1='0' y1='20' x2='0' y2='-20' stroke='%2390c4a8' stroke-width='1.1'/%3E%3Cpath d='M0,6 Q12,-2 18,2' stroke='%2399c9b0' stroke-width='1' fill='none'/%3E%3Cpath d='M0,6 Q-12,-2 -18,2' stroke='%2399c9b0' stroke-width='1' fill='none'/%3E%3Cpath d='M0,-8 Q10,-16 15,-14' stroke='%2399c9b0' stroke-width='1' fill='none'/%3E%3Ccircle cx='0' cy='-22' r='4' stroke='%23d4b0be' stroke-width='1.1'/%3E%3C/g%3E%3Ccircle cx='160' cy='90' r='2.5' stroke='%23d4b0be' stroke-width='1' opacity='0.1'/%3E%3Ccircle cx='280' cy='160' r='2' stroke='%2390c4a8' stroke-width='1' opacity='0.09'/%3E%3Ccircle cx='120' cy='260' r='2.5' stroke='%23d4b0be' stroke-width='1' opacity='0.09'/%3E%3Ccircle cx='300' cy='310' r='2' stroke='%2390c4a8' stroke-width='1' opacity='0.09'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 420px 420px;
    overflow: hidden;
    position: relative; /* Ensure relative for floating elements */
}

/* Scrolling Bouquet Background */
.hero-photo-scroll {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;  /* above floral sketch (z-index 1) */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    pointer-events: none;
}

.scroll-track {
    display: flex;
    gap: 20px;
    width: max-content;
}

/* Row 1: Left to Right */
.row-1 {
    animation: scrollLeftToRight 80s linear infinite;
}

/* Row 2: Right to Left (Inverse animation) */
.row-2 {
    animation: scrollLeftToRight 90s linear infinite reverse;
}

.scroll-track img {
    height: 320px; /* Pre-rotation height */
    width: 180px;  /* Pre-rotation width */
    object-fit: cover;
    transform: rotate(270deg); /* Rotate 270deg to adjust landscape orientation */
    margin: -60px 70px; /* Reduced negative margin to increase row spacing */
    opacity: 0.4; /* Increased visibility as requested */
    border-radius: 12px;
    filter: grayscale(10%) brightness(1.05);
    flex-shrink: 0;
}

@keyframes scrollLeftToRight {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move by exactly half the container width (since we duplicated set) */
        transform: translateX(-50%);
    }
}

/* Ensure content stays above the background */
.hero-container {
    position: relative;
    z-index: 2;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .float-item {
        width: 30px;
        height: 30px;
        opacity: 0.1;
    }
    .flower-4, .leaf-1 {
        display: none; /* Fewer elements on mobile */
    }
}

.hero-section {
    padding: 120px 0 80px;
    background-color: #f8e6ea;
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 3;  /* above floral sketch (1) and floating images (2) */
}

.hero-text {
    flex: 1;
    animation: fadeInUp 1s ease-out both;
}

.hero-text h1 {
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 600;
    color: var(--color-dark-green);
    margin-bottom: 0;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.hero-text p {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: #2f6f4f;
    line-height: 1.8;
    letter-spacing: 0.5px;
    max-width: 480px;
    margin-top: 16px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-image {
    flex: 1;
    position: relative;
    z-index: 5;
}

.slideshow-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background-color: var(--color-light-pink);
}

/* Overlay removed */

.slideshow-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out; /* Snappier, faster transition */
    visibility: hidden;
}

.slideshow-container img.active {
    opacity: 1;
    visibility: visible;
}

/* Float animation removed from .hero-image */

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-text h1 { font-size: 3rem; }
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
}

/* Tablet — 768px */
@media (max-width: 768px) {
    .hero-text h1 { font-size: 2.5rem; }
    .hero-container { gap: 30px; }
    .scroll-track img {
        height: 250px;
        width: 140px;
        margin: -45px 55px;
    }
}

/* Deals Banner */
.deals-banner {
    background: linear-gradient(135deg, var(--color-soft-pink), var(--color-light-pink));
    padding: 60px 40px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.deals-banner h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    .section-title { font-size: 2rem; }
    .grid-2 { grid-template-columns: 1fr; }
}
