/* ============================================
   THE CAPE TOWN FLORIST - Main Stylesheet
   ============================================ */

:root {
    --teal: #9CBDC9;
    --teal-dark: #7BA3B0;
    --teal-light: #D4E5EA;
    --cream: #FDF9F6;
    --blush: #F5E6E0;
    --charcoal: #3D3D3D;
    --warm-gray: #6B6B6B;
    --gold: #C9B896;
    --white: #FFFFFF;
    --border: #E8E8E8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CRITICAL: Prevent SVGs from exploding if CSS loads out of order */
svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

/* Constrain SVGs in common containers to sensible defaults */
.top-bar svg,
.trust-bar svg,
.main-header svg,
.header-action svg,
.search-bar svg {
    width: 14px !important;
    height: 14px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    flex-shrink: 0;
}

body {
    font-family: 'Libre Baskerville', Georgia, serif;
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.7;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* All links must be underlined */
a {
    text-decoration: underline;
    color: var(--teal-dark);
    transition: color 0.2s;
}

a:hover {
    color: var(--charcoal);
}

/* ============ TOP BAR ============ */
.top-bar {
    background: var(--charcoal);
    color: var(--white);
    padding: 10px 0;
    font-size: 12px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 25px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.top-bar-item svg {
    width: 14px;
    height: 14px;
}

.top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar-right a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.top-bar-right a:hover {
    text-decoration: underline;
}

/* ============ MAIN HEADER ============ */
.main-header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
}

.header-left {
    display: flex;
    align-items: center;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 25px;
    padding: 10px 18px;
    gap: 10px;
    width: 280px;
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    color: var(--warm-gray);
}

.search-bar svg {
    width: 18px;
    height: 18px;
    color: var(--warm-gray);
}

.logo-container {
    text-align: center;
}

.logo-container img {
    max-height: 70px;
    width: auto;
}

.logo-text {
    font-family: 'Tangerine', cursive;
    font-size: 42px;
    font-weight: 700;
    color: var(--charcoal);
    text-decoration: none;
}

.logo-text:hover {
    color: var(--teal-dark);
}

.header-right {
    display: flex;
    justify-content: flex-end;
    gap: 28px;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
    color: var(--charcoal);
}

.header-action svg {
    width: 22px;
    height: 22px;
    color: var(--teal-dark);
}

.header-action span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-icon {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--teal);
    color: white;
    font-size: 9px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
}

/* ============ TRUST BAR ============ */
.trust-bar {
    background: var(--teal-light);
    padding: 12px 0;
}

.trust-items {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--teal-dark);
    font-weight: 500;
}

.trust-item svg {
    width: 18px;
    height: 18px;
}

/* ============ MAIN NAVIGATION ============ */
.main-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-items {
    display: flex;
    justify-content: center;
    gap: 0;
    list-style: none;
}

.nav-item {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 18px 24px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.nav-item a {
    text-decoration: none;
    color: inherit;
}

.nav-item:hover {
    color: var(--teal-dark);
}

.nav-item.has-mega::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
}

/* Mega Menu styles are in menu.css */

/* ============ HERO SECTION ============ */
.hero {
    background: linear-gradient(135deg, var(--cream) 0%, var(--blush) 50%, var(--teal-light) 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
}

.hero-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--teal-dark);
    margin-bottom: 20px;
}

.hero-text h1 {
    font-family: 'Tangerine', cursive;
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.hero-text h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 14px;
    color: var(--warm-gray);
    margin-bottom: 30px;
    max-width: 400px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    display: inline-block;
    background: var(--teal);
    color: white;
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--teal-dark);
    color: white;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--charcoal);
    padding: 14px 35px;
    border: 1px solid var(--charcoal);
    border-radius: 30px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: inherit;
}

.btn-secondary:hover {
    background: var(--charcoal);
    color: white;
}

.hero-image {
    background: linear-gradient(45deg, var(--teal-light) 0%, var(--blush) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-placeholder {
    width: 80%;
    height: 80%;
    background: rgba(255,255,255,0.5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-dark);
    font-size: 14px;
    border: 2px dashed var(--teal);
}

/* ============ SECTIONS ============ */
.section {
    padding: 70px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 45px;
}

.section-header h2 {
    font-family: 'Tangerine', cursive;
    font-size: 52px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 5px;
}

.section-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--warm-gray);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.section-header .divider {
    width: 60px;
    height: 2px;
    background: var(--teal);
    margin: 20px auto 0;
}

/* ============ CATEGORY/OCCASION TILES ============ */
.occasion-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.occasion-tile {
    background: var(--white);
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    text-decoration: none;
    display: block;
}

.occasion-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: var(--teal);
}

.occasion-icon {
    width: 70px;
    height: 70px;
    background: var(--teal-light);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.occasion-icon svg {
    width: 30px;
    height: 30px;
    color: var(--teal-dark);
}

.occasion-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.occasion-tile h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--charcoal);
}

/* ============ PRODUCT GRID ============ */
.bestsellers {
    background: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: var(--cream);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}

.product-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.product-image {
    height: 250px;
    background: linear-gradient(135deg, var(--teal-light), var(--blush));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-dark);
    font-size: 12px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--teal);
    color: white;
    font-size: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}

.product-wishlist svg {
    width: 18px;
    height: 18px;
    color: var(--warm-gray);
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--charcoal);
}

.product-desc {
    font-size: 12px;
    color: var(--warm-gray);
    margin-bottom: 12px;
}

.product-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--charcoal);
}

.product-price .old {
    font-size: 13px;
    color: var(--warm-gray);
    font-weight: 400;
    margin-left: 8px;
    text-decoration: line-through;
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

/* ============ CATEGORY PAGE HERO ============ */
.category-hero {
    background: linear-gradient(135deg, var(--cream) 0%, var(--blush) 50%, var(--teal-light) 100%);
    padding: 60px 0;
    text-align: center;
}

.category-hero h1 {
    font-family: 'Tangerine', cursive;
    font-size: 64px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.category-hero p {
    font-size: 16px;
    color: var(--warm-gray);
    max-width: 600px;
    margin: 0 auto 20px;
}

.category-hero .product-count {
    font-size: 14px;
    color: var(--teal-dark);
}

/* ============ CATEGORY HERO WITH IMAGE BANNER ============ */
.category-hero-banner {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.category-hero-banner > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.category-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.category-hero-overlay .container {
    max-width: 800px;
}

.category-hero-overlay h1 {
    font-family: 'Tangerine', cursive;
    font-size: 72px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.category-hero-overlay p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto 15px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

.category-hero-overlay .product-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .category-hero-banner {
        height: 300px;
    }

    .category-hero-overlay h1 {
        font-size: 48px;
    }

    .category-hero-overlay p {
        font-size: 15px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .category-hero-banner {
        height: 250px;
    }

    .category-hero-overlay h1 {
        font-size: 40px;
    }

    .category-hero-overlay p {
        font-size: 14px;
    }
}

/* ============ BREADCRUMBS ============ */
.breadcrumbs {
    padding: 15px 0;
    font-size: 13px;
    color: var(--warm-gray);
}

.breadcrumbs a {
    color: var(--teal-dark);
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 8px;
}

/* ============ PRODUCT PAGE ============ */
.product-detail {
    padding: 50px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.product-main-image {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    position: relative;
}

.product-main-image:hover {
    box-shadow: 0 15px 50px rgba(233, 30, 140, 0.2), 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.product-main-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.product-main-image:hover img {
    transform: scale(1.05);
}

.product-details h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--charcoal);
}

.product-details .price {
    font-size: 28px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 20px;
}

.product-details .description {
    font-size: 15px;
    color: var(--warm-gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.order-btn {
    display: inline-block;
    background: linear-gradient(135deg, #E91E8C 0%, #FF4D9D 100%);
    color: white;
    padding: 18px 45px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.35), 0 3px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.order-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.order-btn:hover::before {
    left: 100%;
}

.order-btn:hover {
    background: linear-gradient(135deg, #FF4D9D 0%, #FF69B4 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(233, 30, 140, 0.45), 0 5px 15px rgba(0, 0, 0, 0.15);
}

.order-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.4);
}

/* ============ DELIVERY CHECKER ============ */
.delivery-section {
    background: var(--teal);
    padding: 55px 0;
}

.delivery-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.delivery-content h3 {
    font-family: 'Tangerine', cursive;
    font-size: 42px;
    color: white;
}

.delivery-form {
    display: flex;
    gap: 12px;
}

.delivery-form input {
    padding: 15px 25px;
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-size: 14px;
    width: 280px;
    outline: none;
}

.delivery-form button {
    background: var(--charcoal);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}

.delivery-form button:hover {
    background: #2a2a2a;
}

/* ============ HOW IT WORKS ============ */
.how-it-works {
    background: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.step {
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--teal);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    margin: 0 auto 20px;
}

.step h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    margin-bottom: 10px;
}

.step p {
    font-size: 13px;
    color: var(--warm-gray);
}

.step-arrow {
    position: absolute;
    top: 25px;
    right: -20px;
    color: var(--teal-light);
    font-size: 24px;
}

.step:last-child .step-arrow {
    display: none;
}

/* ============ TESTIMONIALS ============ */
.testimonials {
    background: var(--cream);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.testimonial-stars {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 16px;
}

.testimonial-text {
    font-style: italic;
    font-size: 14px;
    margin-bottom: 20px;
    color: var(--warm-gray);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    background: var(--teal-light);
    border-radius: 50%;
}

.testimonial-author h5 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    margin-bottom: 2px;
}

.testimonial-author span {
    font-size: 11px;
    color: var(--warm-gray);
}

/* ============ NEWSLETTER ============ */
.newsletter {
    background: var(--charcoal);
    padding: 60px 0;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.newsletter-text h2 {
    font-family: 'Tangerine', cursive;
    font-size: 42px;
    color: white;
    margin-bottom: 10px;
}

.newsletter-text p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 25px;
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.newsletter-form button {
    background: var(--teal);
    color: white;
    border: none;
    padding: 16px 35px;
    border-radius: 30px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--charcoal);
    color: white;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-logo {
    font-family: 'Tangerine', cursive;
    font-size: 36px;
    color: white;
    margin-bottom: 20px;
    display: block;
    text-decoration: none;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.footer-social a:hover {
    background: var(--teal);
}

.footer-column h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--teal);
    text-decoration: underline;
}

.footer-affiliate {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-affiliate p {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
}

.payment-icons {
    display: flex;
    gap: 10px;
}

.payment-icon {
    width: 40px;
    height: 25px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .mega-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .occasion-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* Hide non-essential bars on mobile to maximize above-fold flower imagery */
    .top-bar {
        display: none;
    }

    .trust-bar {
        display: none;
    }

    /* Compact header on mobile */
    .main-header {
        padding: 8px 0;
    }

    .logo-container img {
        max-height: 50px;
    }

    /* Hide search bar on mobile - use menu instead */
    .header-left {
        display: none;
    }

    /* Minimal header: just logo and cart icon */
    .header-content {
        grid-template-columns: 1fr auto 1fr;
        text-align: center;
        gap: 10px;
    }

    .header-right {
        justify-content: flex-end;
    }

    /* Hide Account and Wishlist on mobile, show only Cart */
    .header-right .header-action {
        display: none;
    }

    .header-right .header-action:last-child {
        display: flex;
    }

    /* Make cart icon more compact on mobile */
    .header-right .header-action span:not(.cart-badge) {
        display: none;
    }

    .search-bar {
        display: none;
    }

    .nav-items {
        flex-wrap: wrap;
    }

    .nav-item {
        padding: 12px 16px;
        font-size: 11px;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text {
        text-align: center;
        padding: 40px 20px;
    }

    .hero-text h1 {
        font-size: 52px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        min-height: 300px;
    }

    .occasion-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* CRITICAL: Disable sticky on mobile - causes scroll blocking */
    .product-detail-grid {
        display: block !important;
    }

    .product-gallery {
        position: relative !important;
        -webkit-position: relative !important;
        top: auto !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .product-main-image {
        position: relative !important;
        max-height: 50vh !important;
        height: auto !important;
        overflow: hidden !important;
    }

    .product-main-image img {
        position: relative !important;
        max-height: 50vh !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .product-details {
        position: relative !important;
        display: block !important;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .step-arrow {
        display: none;
    }

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

    .newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .delivery-content {
        flex-direction: column;
        text-align: center;
    }

    .delivery-form {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .delivery-form input {
        width: 100%;
    }
}

/* ============ PAGINATION ============ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--charcoal);
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--teal-light);
    border-color: var(--teal);
}

.pagination .active {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
}

/* ============ RELATED PRODUCTS ============ */
.related-products {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--border);
}

.related-products h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
}

/* ============ CATEGORY CARDS ============ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.category-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    border: 1px solid var(--border);
}

.category-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.category-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--teal-light), var(--blush));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-info {
    padding: 20px;
    text-align: center;
}

.category-card-info h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    color: var(--charcoal);
    margin-bottom: 5px;
}

.category-card-info p {
    font-size: 12px;
    color: var(--warm-gray);
}

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

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

/* ============ HERO BANNER (Full-Width Image) ============ */
.hero-banner {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hero-banner > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
    display: flex;
    align-items: center;
}

.hero-banner-content {
    max-width: 600px;
    padding: 40px 60px;
    color: white;
}

.hero-banner-content .hero-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.hero-banner-content h1 {
    font-family: 'Tangerine', cursive;
    font-size: 80px;
    font-weight: 700;
    line-height: 0.9;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-banner-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 400;
    color: white;
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-banner-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-banner-content .hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-secondary-light {
    border-color: white;
    color: white;
}

.btn-secondary-light:hover {
    background: white;
    color: var(--charcoal);
}

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

    .hero-banner-content h1 {
        font-size: 64px;
    }

    .hero-banner-content h2 {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 75vh;
        min-height: 500px;
    }

    .hero-banner-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(0, 0, 0, 0.5) 100%
        );
        align-items: flex-end;
    }

    .hero-banner-content {
        padding: 30px 20px;
        max-width: 100%;
        text-align: center;
    }

    .hero-banner-content h1 {
        font-size: 42px;
    }

    .hero-banner-content h2 {
        font-size: 20px;
    }

    .hero-banner-content p {
        font-size: 14px;
    }

    .hero-banner-content .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ============ IMAGE TILES (Category/Occasion Tiles) ============ */
.image-tile-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.image-tile {
    position: relative;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.image-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.image-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-tile:hover img {
    transform: scale(1.1);
}

.image-tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    transition: background 0.3s ease;
}

.image-tile:hover .image-tile-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

.image-tile-overlay h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 500;
    color: white;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.image-tile:hover .image-tile-overlay h4 {
    transform: translateY(-5px);
}

@media (max-width: 1200px) {
    .image-tile-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .image-tile {
        height: 180px;
    }
}

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

    .image-tile {
        height: 150px;
    }

    .image-tile-overlay h4 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .image-tile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .image-tile {
        height: 130px;
    }

    .image-tile-overlay {
        padding: 15px;
    }

    .image-tile-overlay h4 {
        font-size: 16px;
    }
}

/* ============ DELIVERY SECTION WITH HERO IMAGE ============ */
.delivery-section-hero {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.delivery-section-hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.delivery-section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(156, 189, 201, 0.95) 0%,
        rgba(156, 189, 201, 0.8) 50%,
        rgba(156, 189, 201, 0.6) 100%
    );
    display: flex;
    align-items: center;
}

.delivery-hero-content {
    max-width: 600px;
    padding: 40px;
}

.delivery-hero-content h3 {
    font-family: 'Tangerine', cursive;
    font-size: 48px;
    color: white;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.delivery-hero-content p {
    font-size: 16px;
    color: white;
    margin-bottom: 25px;
    line-height: 1.7;
}

.delivery-hero-content .btn-primary {
    background: var(--charcoal);
}

.delivery-hero-content .btn-primary:hover {
    background: #2a2a2a;
}

@media (max-width: 768px) {
    .delivery-section-hero {
        height: 300px;
    }

    .delivery-section-overlay {
        background: rgba(156, 189, 201, 0.9);
        text-align: center;
        justify-content: center;
    }

    .delivery-hero-content {
        padding: 30px 20px;
    }

    .delivery-hero-content h3 {
        font-size: 36px;
    }

    .delivery-hero-content p {
        font-size: 14px;
    }
}

/* ============================================
   DELIVERY DATE WIDGET - Compact Version
   ============================================ */

#delivery-widget {
    margin: 15px 0;
}

.delivery-widget-compact {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 16px;
    background: var(--teal-light);
    border-radius: 8px;
    font-size: 15px;
}

.delivery-widget-compact.delivery-same-day {
    background: linear-gradient(135deg, #fff8e6 0%, #fff3d1 100%);
    border: 1px solid #e6c84a;
}

.delivery-widget-compact .delivery-label {
    color: var(--warm-gray);
    font-weight: 400;
}

.delivery-widget-compact .delivery-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--charcoal);
}

.delivery-widget-compact.delivery-same-day .delivery-date {
    color: #b8860b;
}

.delivery-widget-compact .delivery-countdown {
    font-size: 12px;
    color: #2d8f4e;
    background: rgba(45, 143, 78, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.delivery-widget-compact.delivery-same-day .delivery-countdown {
    color: #b8860b;
    background: rgba(212, 160, 18, 0.15);
}

@media (max-width: 768px) {
    .delivery-widget-compact {
        font-size: 14px;
        padding: 8px 12px;
    }

    .delivery-widget-compact .delivery-date {
        font-size: 16px;
    }
}
