/* Florist City Global - Theme: Pink, Blue, Black */

:root {
    --primary-pink: #e91e8c;
    --primary-pink-dark: #c2185b;
    --primary-blue: #1e88e5;
    --primary-blue-dark: #1565c0;
    --black: #1a1a1a;
    --dark: #2d2d2d;
    --light-bg: #faf7f9;
    --text-muted: #6c757d;
    --gradient-primary: linear-gradient(135deg, #e91e8c 0%, #1e88e5 100%);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--black);
    background-color: #fff;
}

h1, h2, h3, h4, h5, .brand-text, .footer-brand {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Top Bar */
.top-bar {
    background: var(--black);
    color: #fff;
    font-size: 0.85rem;
}
.top-bar a { color: #fff; }
.top-bar a:hover { color: var(--primary-pink); }

/* Navbar */
.navbar-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    padding: 0.5rem 1rem !important;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-pink) !important;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    font-weight: 500;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #c2185b 0%, #1565c0 100%);
    border: none;
}

.btn-outline-primary {
    color: var(--primary-pink);
    border-color: var(--primary-pink);
}
.btn-outline-primary:hover {
    background: var(--primary-pink);
    border-color: var(--primary-pink);
    color: #fff;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(233, 30, 140, 0.15);
}
.product-card .card-img-top {
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .card-img-top {
    transform: scale(1.05);
}
.product-card .card-body {
    padding: 1.25rem;
}
.product-card .price {
    font-weight: 600;
    color: var(--primary-pink);
    font-size: 1.15rem;
}
.product-card .old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* Category Pills */
.category-pill {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    background: #fff;
    border: 1px solid #eee;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    margin: 0.25rem;
}
.category-pill:hover, .category-pill.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Trust Badges */
.trust-badge {
    text-align: center;
    padding: 1.5rem 1rem;
}
.trust-badge i {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
}

/* Footer - all text white */
.site-footer {
    background: var(--black);
    color: #ffffff;
}
.site-footer p,
.site-footer small,
.site-footer li,
.site-footer span,
.site-footer .text-muted {
    color: #ffffff !important;
}
.footer-brand {
    color: #ffffff;
    font-size: 1.4rem;
}
.footer-heading {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 0.25rem 0;
}
.footer-links a:hover {
    color: var(--primary-pink);
}
.site-footer a {
    color: #ffffff;
    text-decoration: none;
}
.site-footer a:hover {
    color: var(--primary-pink);
}
.site-footer .text-primary,
.site-footer .text-success {
    color: #ffffff !important;
}
.site-footer .border-top {
    border-color: rgba(255,255,255,0.25) !important;
}

/* Cart & Checkout */
.cart-table img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}
.checkout-section {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.checkout-section h5 {
    border-bottom: 2px solid var(--primary-pink);
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
}

/* Product Detail */
.product-gallery img {
    border-radius: 12px;
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}
.qty-input {
    width: 80px;
    text-align: center;
}

/* Admin styles */
.admin-sidebar {
    min-height: 100vh;
    background: var(--black);
    color: #fff;
}
.admin-sidebar .nav-link {
    color: #bbb !important;
    border-radius: 8px;
    margin-bottom: 0.25rem;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--primary-pink);
    color: #fff !important;
}
.admin-content {
    background: #f5f5f7;
    min-height: 100vh;
}

/* Status badges */
.badge-pending { background: #ffc107; color: #000; }
.badge-paid { background: #28a745; }
.badge-processing { background: #17a2b8; }
.badge-shipped { background: #6f42c1; }
.badge-delivered { background: #20c997; }
.badge-cancelled { background: #dc3545; }

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-section { min-height: 400px; }
    .product-card .card-img-top { height: 200px; }
}

/* Utility */
.bg-light-pink { background-color: #fdf2f8; }
.text-pink { color: var(--primary-pink); }
.text-blue { color: var(--primary-blue); }
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
    color: #fff;
}

/* ========== Mobile Hero - semi-transparent text box (left) ========== */
@media (max-width: 767.98px) {
    .hero-section {
        min-height: 520px;
        align-items: center;
        background-position: center right;
    }
    .hero-content {
        text-align: left !important;
        padding: 1.25rem 0;
    }
    .hero-content .row > div {
        max-width: 100%;
    }
    .hero-text-box {
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border-radius: 12px;
        padding: 1.25rem 1rem;
        margin-right: auto;
        margin-left: 0;
        box-shadow: 0 8px 32px rgba(0,0,0,0.12);
        color: #1a1a1a;
        max-width: 60%;
        width: 60%;
    }
    .hero-text-box .hero-title {
        color: #1a1a1a !important;
        font-size: 1.75rem;
        text-shadow: none;
        margin-bottom: 0.75rem;
    }
    .hero-text-box .hero-subtitle {
        color: #333 !important;
        font-size: 0.95rem;
        opacity: 1;
        margin-bottom: 1.25rem;
    }
    .hero-text-box .btn-outline-light {
        color: var(--primary-pink);
        border-color: var(--primary-pink);
        background: transparent;
    }
    .hero-text-box .btn-outline-light:hover {
        background: var(--primary-pink);
        color: #fff;
    }
    /* Hide full-screen dark overlay intensity on mobile so photo shows beside box */
    .hero-section .hero-overlay {
        background: transparent !important;
    }
}

/* Desktop: keep classic hero, no white box */
@media (min-width: 768px) {
    .hero-text-box {
        background: transparent;
        padding: 0;
        box-shadow: none;
        max-width: none;
        color: inherit;
    }
}

/* ========== Category tiles (mobile: 2 per row) ========== */
.category-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}
.category-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 88px;
    padding: 1rem 0.75rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #fdf2f8 0%, #e3f2fd 100%);
    border: 1px solid rgba(233, 30, 140, 0.12);
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.category-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(233, 30, 140, 0.15);
    color: var(--primary-pink);
}
@media (min-width: 768px) {
    .category-tiles {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    .category-tile {
        min-height: auto;
        padding: 0.5rem 1.25rem;
        border-radius: 50px;
        background: #fff;
        border: 1px solid #eee;
        font-weight: 500;
        min-width: auto;
    }
}

/* Homepage search */
.home-search-wrap {
    max-width: 360px;
}
.home-search-wrap .form-control:focus {
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 0.2rem rgba(233, 30, 140, 0.15);
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}
@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1;
    background: #f5f5f5;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.gallery-item:hover img {
    transform: scale(1.06);
}
.gallery-item .gallery-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff;
    font-size: 0.85rem;
}


/* Mobile top bar - show address/contact */
@media (max-width: 767.98px) {
    .top-bar {
        font-size: 0.72rem;
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
    }
    .top-bar .row > div {
        text-align: center !important;
        line-height: 1.4;
    }
    .top-bar .row > div + div {
        margin-top: 0.15rem;
    }
}

/* Testimonials */
.testimonials-section {
    background: linear-gradient(180deg, #faf7f9 0%, #fff 100%);
}
.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(233, 30, 140, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(233, 30, 140, 0.12);
}
.testimonial-stars {
    color: #f5a623;
    font-size: 0.95rem;
    letter-spacing: 1px;
}
.testimonial-text {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 0;
    font-style: italic;
}
.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fce4ec;
}
.testimonial-avatar-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fce4ec, #e3f2fd);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-pink);
    font-size: 1.25rem;
}
