/* ========================================================================== 
   1. Variables & Global Settings
   ========================================================================== */
:root {
    --primary-color: #5C3D2E;
    /* Dark Brown */
    --accent-color: #b89b5e;
    /* Gold/Bronze */
    --accent-hover: #d1985a;
    /* Lighter Gold */
    --light-bg: #e7ddc9;
    /* Cream/Beige */
    --body-bg: #ece6e6;
    /* Light Grey */
    --text-color: #333;
    --white: #ffffff;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
    --font-accent: 'Satisfy', cursive;

    /* Fluid Typography Scaling Tokens */
    --font-size-h1: clamp(2.2rem, 5vw + 1rem, 3.8rem);
    --font-size-h2: clamp(1.8rem, 4vw + 1rem, 3rem);
    --font-size-h3: clamp(1.4rem, 3vw + 0.8rem, 2.2rem);
    --font-size-lead: clamp(1.1rem, 2vw + 0.5rem, 1.8rem);
}

html {
    overflow-x: hidden;
    /* Prevent horizontal scroll on any screen size */
}

body {
    font-family: var(--font-body);
    background-color: var(--body-bg);
    background-attachment: fixed;
    background-size: cover;
    color: var(--primary-color);
    padding-top: 70px;
    /* Space for fixed navbar */
    margin: 0;
    overflow-x: hidden;
}

section {
    padding: 80px 0;
}

/* ---- Utility: About image fluid scaling ---- */
.about-img-responsive {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---- Celebration page: hero content safe padding on all screens ---- */
.hero-content {
    padding: 1.5rem 1rem;
    max-width: 680px;
}

/* ========================================================================== 
   2. Typography
   ========================================================================== */
h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }

.custom-heading {
    font-family: var(--font-heading);
    font-size: var(--font-size-h1);
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
}

.custom-subheading {
    font-family: var(--font-accent);
    font-size: clamp(1rem, 2vw + 0.5rem, 1.5rem);
    color: #666;
}

.lead {
    font-family: var(--font-accent);
    color: var(--accent-hover);
    font-size: var(--font-size-lead);
}

.custom-justify {
    text-align: justify;
    max-width: 90%;
    margin: auto;
}

/* ========================================================================== 
   3. Navbar
   ========================================================================== */
.navbar {
    font-family: var(--font-body);
    background: rgba(231, 221, 201, 0.85);
    /* Semi-transparent cream */
    padding: 0 0;
    backdrop-filter: blur(12px);
    /* Glass effect */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: var(--font-body);
    color: var(--primary-color);
    letter-spacing: 1px;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.navbar-brand img {
    height: 70px;
    width: auto;
    transition: height 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-size: 1.15rem;
    /* Slightly larger text */
    font-weight: 500;
    color: var(--primary-color);
    padding: 10px 20px;
    /* More breathable click area */
    position: relative;
    transition: color 0.3s ease;
}

/* Animated Underline */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color);
}

.navbar-nav .nav-link:hover::after {
    width: 25px;
    /* Small centered dash style */
}

/* Header Text Adjustments */
body {
    padding-top: 75px;
    /* Adjusted for taller navbar */
}

/* ========================================================================== 
   4. Buttons & Forms
   ========================================================================== */
.btn-primary,
.custom-btn {
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.custom-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    color: var(--white);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Accent (Gold) Button */
.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 155, 94, 0.3);
}

/* Override Bootstrap Warning */
.btn-warning {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white) !important;
}

.btn-warning:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* Filter Button */
.filter-btn {
    height: 50px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: var(--accent-color);
    border: none;
    color: var(--white);
}

/* Premium Maps Button */
.btn-maps {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7d5a47 100%);
    color: var(--white) !important;
    border: 1.5px solid var(--accent-color);
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-maps:hover {
    background: linear-gradient(135deg, #7d5a47 0%, var(--primary-color) 100%);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 25px rgba(184, 155, 94, 0.3);
    border-color: var(--white);
}

.btn-maps i {
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.btn-maps:hover i {
    color: var(--white);
    transform: scale(1.2) rotate(10deg);
}

.filter-btn:hover {
    background-color: #7b5f36;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 95, 54, 0.3);
}

/* Search Input Group */
.search-group {
    position: relative;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    background: var(--white);
    overflow: hidden;
}

.search-input {
    height: 50px;
    border: none !important;
    box-shadow: none !important;
    padding-right: 45px;
}

.search-group:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(184, 155, 94, 0.2);
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #bbb;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding: 0;
}

.search-clear:hover {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

/* Category Select */
.category-select {
    height: 50px;
    border-radius: 50px !important;
    padding-left: 20px;
    padding-right: 40px;
    cursor: pointer;
    appearance: none;
    border: 1px solid #e0e0e0;
    background: var(--white);
    transition: all 0.3s ease;
}

.category-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(184, 155, 94, 0.2);
}

.select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--accent-color);
}

/* ========================================================================== 
   5. Hero / Carousel
   ========================================================================== */
#heroCarousel {
    position: relative;
    z-index: 3;
}

.carousel-item img,
.hero-carousel-item img {
    height: 50vh;
    /* Reduced height */
    object-fit: cover;
    width: 100vw;
    filter: brightness(0.9);
}

/* Hero Overlay */
.hero-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.hero-overlay-content {
    z-index: 2 !important;
}

/* ========================================================================== 
   6. Cards (Categories & Products)
   ========================================================================== */
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.08);
    /* slightly stronger shadow for glass */
    overflow: hidden;
}

.card:hover,
.card.hover-scale:hover {
    transform: translateY(-8px) scale(1.02);
    /* Slight scale on the card */
    box-shadow: 0 15px 40px rgba(184, 155, 94, 0.4);
    /* Golden Glow */
    z-index: 10;
    border-color: var(--accent-color);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Micro-interaction: Scale inner image on card hover */
.card:hover .card-img-top {
    transform: scale(1.08);
}

.product-img-custom {
    width: 300px;
    height: 300px;
    max-width: 90%;
    object-fit: cover;
    border-radius: 12px;
}



.card-title {
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 2vw + 1rem, 1.25rem);
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Specialty Cards (Home) */
.specialty-card {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 15px;
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.specialty-card h3 {
    font-family: var(--font-accent);
    font-size: 27px;
    color: #333;
    margin-bottom: 5px;
}

.icon {
    width: auto;
    height: auto;
    margin-bottom: 15px;
}

/* ========================================================================== 
   7. About Section
   ========================================================================== */
#about {
    background-color: var(--white);
    /* Pure white contrast block */
    position: relative;
    overflow: hidden;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

#about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover), var(--accent-color));
}

#about img {
    transition: transform 0.5s ease;
    border-radius: 10px;
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* --- Portal Diorama (3D Centerpiece) --- */
.portal-diorama {
    perspective: 1200px;
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Background Ring */
.portal-ring {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 2px solid rgba(184, 155, 94, 0.2);
    background: radial-gradient(circle, rgba(255, 222, 89, 0.05) 0%, transparent 80%);
    z-index: 0;
    transition: transform 0.2s ease-out;
}

.portal-ring::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 1px dashed rgba(184, 155, 94, 0.3);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.portal-mask {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 45px rgba(92, 61, 46, 0.25);
    border: 8px solid #fff;
    z-index: 2;
    background: #fff;
}

.portal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 0.5s ease;
}

.tilt-card__inner {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    z-index: 2;
}

.tilt-card__glare {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.4) 0%, transparent 70%);
    z-index: 3;
}

/* Floating Accent */
.portal-accent {
    position: absolute;
    bottom: 20%;
    right: 5%;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 8px 16px rgba(184, 155, 94, 0.4);
    z-index: 4;
    transition: transform 0.2s ease-out;
}

.tilt-card__shadow {
    position: absolute;
    bottom: 10px;
    width: 200px;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, transparent 70%);
    filter: blur(10px);
    z-index: -1;
}

/* Breakpoint Fixes for New Portal */
@media (max-width: 768px) {
    .portal-mask, .portal-ring {
        width: 250px;
        height: 250px;
    }
    .portal-diorama {
        max-width: 300px;
    }
}

/* ========================================================================== 
   8. Pagination
   ========================================================================== */
.pagination {
    margin-top: 20px;
    gap: 0.5rem;
    flex-wrap: wrap;
    --bs-pagination-active-bg: var(--accent-color);
    --bs-pagination-active-border-color: var(--accent-color);
}

.page-link {
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 8px !important;
    color: var(--primary-color);
    border: 1px solid #e0d6c2;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-item.active .page-link {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 8px rgba(184, 155, 94, 0.3);
}

/* ========================================================================== 
   9. Footer
   ========================================================================== */
.footer {
    background: var(--light-bg);
    color: var(--primary-color);
    text-align: center;
    padding: 40px 20px;
    font-family: var(--font-body);
}


/* Featured Section */
.featured-section {
    background-image: url('../img/gold_tiles_background.png');
    background-size: 300px auto;
    /* Reasonable tile size */
    background-repeat: repeat;
}

.overlay-white {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Custom Buttons */

.btn-outline-gold {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    color: var(--white);
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(184, 155, 94, 0.3);
}

/* ==========================================================================
   Trust Strip
   ========================================================================== */
.trust-strip {
    position: relative;
}

.trust-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.trust-strip h6 {
    color: #ffffff;
    letter-spacing: 0.5px;
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.95;
}

.trust-strip .text-highlight {
    color: #ffde59;
}

.trust-strip .marquee-item {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.trust-strip .marquee-item+.marquee-item {
    margin-left: 8px;
}

.trust-strip .marquee-item:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.trust-icon-circle {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 222, 89, 0.15);
    border: 1.5px solid rgba(255, 222, 89, 0.5);
    border-radius: 50%;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.trust-icon-circle i {
    color: #ffde59;
    font-size: 0.8rem;
}


/* ========================================================================== 
   10. Consolidated Responsive Design
   ========================================================================== */

/* ---- Large desktops (≤1200px) ---- */
@media (max-width: 1200px) {
    /* Fluid scale handles this automatically */
}

/* ---- Tablets / small laptops (≤992px) ---- */
@media (max-width: 992px) {

    /* Navbar */
    .navbar-brand img {
        height: 55px;
    }

    body {
        padding-top: 65px;
    }

    /* Cards */
    .card {
        margin-bottom: 20px;
    }

    /* About section: stack image below text on tablet */
    #about .col-lg-6 {
        text-align: center;
    }

    #about img {
        width: 100%;
        height: 300px;
        margin-bottom: 1.5rem;
    }

    /* Trust strip: tighten for 3-col layout */
    .trust-strip h6 {
        font-size: 0.8rem;
    }

    .trust-strip .marquee-item {
        padding: 4px 8px;
    }

    /* Featured section: 2 col on tablet */
    .product-img-custom {
        width: 260px;
        height: 260px;
    }

    /* Celebration hero */
    .celebration-hero {
        height: 70vh;
        background-attachment: scroll;
        /* Disable parallax on tablet – avoids iOS glitch */
    }

    /* Category banners: reduce height */
    .category-banner {
        height: 380px;
    }
}

/* ---- Tablets portrait (≤768px) ---- */
@media (max-width: 768px) {

    /* Global section padding */
    section {
        padding: 55px 0;
    }

    /* Hero Carousel */
    .carousel-item img,
    .hero-carousel-item img {
        height: 42vh;
        object-position: center;
    }

    /* Navbar */
    .navbar-brand img {
        height: 50px;
    }

    body {
        padding-top: 60px;
    }

    .navbar-nav {
        text-align: center;
        padding: 10px 0 16px;
        gap: 4px !important;
    }

    .navbar-nav .nav-link {
        padding: 8px 12px;
    }

    /* Trust strip */
    .trust-strip h6 {
        font-size: 0.75rem;
    }

    .trust-strip i {
        font-size: 1.2rem;
    }

    .trust-strip .marquee-item {
        padding: 3px 6px;
    }

    .trust-icon-circle {
        width: 26px;
        height: 26px;
    }

    .trust-icon-circle i {
        font-size: 0.7rem;
    }

    /* Typography handled by fluid tokens */

    /* About Section */
    #about {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    #about img {
        width: 100%;
        height: 240px;
    }

    /* Remove fixed blockquote small font on mobile */
    #about blockquote {
        font-size: 0.88rem;
    }

    /* Forms (all_products) */
    .search-input,
    .category-select,
    .filter-btn {
        height: 46px;
    }

    /* Contact section: stack map + info */
    #contact .col-lg-6,
    #contact .col-lg-5 {
        width: 100%;
    }

    /* Celebration hero */
    .celebration-hero {
        height: 55vh;
        background-attachment: scroll;
        margin-top: -68px;
    }

    .celebration-hero .hero-content h1 {
        font-size: 1.9rem;
    }

    .celebration-hero .hero-content .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem !important;
    }

    .celebration-hero .d-flex.gap-3 {
        flex-wrap: wrap;
        gap: 10px !important;
    }

    .celebration-hero .btn {
        width: auto;
        flex: 1 1 140px;
    }

    /* Gallery items */
    .gallery-item-wrapper {
        height: 280px;
    }

    /* Category banners */
    .category-banner {
        height: 320px;
    }

    /* Product cards */
    .product-img-custom {
        width: 220px;
        height: 220px;
    }

    /* Featured favourites */
    .card-img-top {
        height: 180px;
    }

    /* Trust Marquee Animation */
    .marquee-container {
        overflow: hidden;
        white-space: nowrap;
        position: relative;
    }

    .trust-marquee-track {
        display: flex;
        flex-wrap: nowrap !important;
        width: 500%; /* 10 items at 50% each */
    }

    .marquee-item {
        flex: 0 0 10%; /* 10% of 500% track = 50% of viewport */
        padding: 8px 5px 0 5px;
    }

    @keyframes scrollMarquee {
        0% {
            transform: translateX(0);
        }

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

/* ---- Phones (≤576px) ---- */
@media (max-width: 576px) {

    /* Global */
    section {
        padding: 44px 0;
    }

    /* Hero Carousel */
    .carousel-item img,
    .hero-carousel-item img {
        height: 34vh;
    }

    /* Navbar */
    .navbar-brand img {
        height: 45px;
    }

    body {
        padding-top: 55px;
    }

    /* Trust strip: tighter 2-col on phone */
    .trust-strip {
        padding-top: 0.15rem !important;
        padding-bottom: 0.15rem !important;
    }

    .trust-strip h6 {
        font-size: 0.72rem;
        letter-spacing: 0;
    }

    .trust-strip .marquee-item {
        padding: 2px 10px;
        max-width: 150px;
        margin: 1 auto;
    }

    .trust-icon-circle {
        width: 24px;
        height: 24px;
    }

    .trust-icon-circle i {
        font-size: 0.65rem;
    }


/* Movido para bloco mobile */


/* Typography handled by fluid tokens */

/* About section */
#about .d-flex.flex-wrap {
    flex-direction: column;
    align-items: stretch;
}

#about .btn {
    width: 100%;
    margin-bottom: 8px;
}

#about img {
    width: 100%;
    height: 200px;
}

/* Cards: full width */
.card {
    max-width: 100%;
    margin: 8px 0;
}

/* Featured product cards */
.card-img-top {
    height: 160px;
}

.product-img-custom {
    width: 170px;
    height: 170px;
}

/* Buttons: avoid full-width override on hero/CTA */
.celebration-hero .btn,
.cta-section .btn {
    width: auto;
}

/* Featured section tiles */
.featured-section {
    background-size: 120px auto;
}

/* Celebration hero */
.celebration-hero {
    height: 50vh;
    margin-top: -62px;
}

.celebration-hero .hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem !important;
}

.celebration-hero .hero-content .lead {
    font-size: 0.9rem;
    margin-bottom: 1.2rem !important;
}

.celebration-hero .d-flex {
    flex-wrap: wrap;
    gap: 8px !important;
}

/* Gallery items */
.gallery-item-wrapper {
    height: 220px;
}

/* Category banners */
.category-banner {
    height: 260px;
}

/* Pagination */
.page-link {
    min-width: 38px;
    height: 38px;
    font-size: 0.85rem;
}

/* Contact section */
#contact .col-lg-6,
#contact .col-lg-5 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* CTA section */
.cta-section .d-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 12px !important;
}

.cta-section .btn {
    width: 100%;
}

}


/* ---- Very small phones (≤400px) ---- */
@media (max-width: 400px) {
    /* Fluid typography handles these naturally */

    .carousel-item img,
    .hero-carousel-item img {
        height: 28vh;
    }

    .celebration-hero {
        height: 46vh;
    }

    .celebration-hero .hero-content h1 {
        font-size: 1.3rem;
    }

    .gallery-item-wrapper {
        height: 180px;
    }

    .category-banner {
        height: 220px;
    }

    .trust-strip h6 {
        font-size: 0.68rem;
    }

    .trust-strip .marquee-item {
        padding: 2px 8px;
        max-width: 130px;
        margin: 0 auto;
    }
}

/* ========================================================================== 
   11. Celebration cakes Page
   ========================================================================== */
.celebration-hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1535141192574-5d4897c12636?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    /* 'fixed' breaks on iOS Safari */
    margin-top: -85px;
    /* Pull up to hide space above navbar since it's transparent */
}

.feature-card {
    background: var(--white);
    transition: all 0.3s ease;
    border: 1px solid rgba(184, 155, 94, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--accent-color);
}

.gallery-item-wrapper {
    height: 350px;
    cursor: pointer;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(92, 61, 46, 0.8);
    /* Primary color with transparency */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(20px);
}

.gallery-item-wrapper:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item-wrapper img {
    transition: transform 0.6s ease;
}

.gallery-item-wrapper:hover img {
    transform: scale(1.1);
}

.category-banner {
    height: 450px;
}

.category-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    transition: all 0.3s ease;
}

.w-max {
    width: max-content;
}

/* Celebration-cakes responsive breakpoints are consolidated in Section 10 above */

/* ==========================================================================
   12. Allergen Icons
   ========================================================================== */
.allergen-icons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px 0;
}

.allergen-wrapper {
    cursor: help;
    transition: transform 0.2s ease;
}

.allergen-wrapper:hover {
    transform: scale(1.15);
}

.allergen-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Specific Allergen Colors */
.allergen-gluten {
    background-color: #a08050;
}

/* Brownish */
.allergen-peanuts {
    background-color: #ea4335;
}

/* Red */
.allergen-tree-nuts {
    background-color: #794a28;
}

/* Dark Brown */
.allergen-celery {
    background-color: #9acd32;
}

/* Light Green */
.allergen-mustard {
    background-color: #e5d627;
}

/* Mustard Yellow */
.allergen-eggs {
    background-color: #fccd28;
}

/* Yellow */
.allergen-milk {
    background-color: #9bc7e2;
}

/* Light Blue */
.allergen-sesame {
    background-color: #ead29c;
}

/* Beige */
.allergen-fish {
    background-color: #55babb;
}

/* Teal */
.allergen-crustaceans {
    background-color: #f28e95;
}

/* Pink */
.allergen-molluscs {
    background-color: #5b669d;
}

/* Dark Blue/Purple */
.allergen-soya {
    background-color: #5c9d55;
}

/* Green */
.allergen-sulphites {
    background-color: #f59b22;
}

/* Orange */
.allergen-lupin {
    background-color: #707070;
}

/* Grey */

/* Default fallback */
.allergen-circle i {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

/* Product ID Badge */
.product-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background-color: #faf7f2;
    color: var(--primary-color);
    border: 1px solid #e7ddc9;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.product-id-badge:hover {
    background-color: var(--white);
    border-color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(184, 155, 94, 0.15);
    transform: translateY(-2px);
}

/* Allergen Labels under Icons */
.allergen-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0;
}

.allergen-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s ease;
}

.allergen-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   Category Section — Premium Redesign (home.php)
   ========================================================================== */

/* --- Section Wrapper --- */
.categories-section {
    padding: 90px 0 100px;
    background-color: #faf6f0;
    background-image:
        radial-gradient(ellipse at 10% 20%, rgba(184, 155, 94, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse at 90% 80%, rgba(92, 61, 46, 0.06) 0%, transparent 55%);
    border-top: 1px solid #ede4d4;
    border-bottom: 1px solid #ede4d4;
    position: relative;
}

/* --- Section Header --- */
.categories-header {
    margin-bottom: 56px;
}

.categories-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.categories-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    line-height: 1.15;
}

.categories-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
}

.categories-divider span {
    display: block;
    width: 60px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.categories-divider i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.categories-subheading {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: #7a6654;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- CSS Grid Layout --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

/* --- Individual Card --- */
.category-card {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    text-decoration: none;
    box-shadow:
        0 4px 16px rgba(92, 61, 46, 0.10),
        0 1px 4px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.38s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.38s ease;
    cursor: pointer;
    background-color: #c4b29a;
    /* fallback while image loads */
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 20px 50px rgba(92, 61, 46, 0.22),
        0 4px 12px rgba(184, 155, 94, 0.25);
}

/* --- Image --- */
.category-card__img-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.category-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.category-card:hover .category-card__img {
    transform: scale(1.08);
}

/* --- Gradient Overlay --- */
.category-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(40, 22, 12, 0.88) 0%,
            rgba(40, 22, 12, 0.30) 45%,
            rgba(40, 22, 12, 0.05) 75%,
            transparent 100%);
    transition: background 0.4s ease;
}

.category-card:hover .category-card__overlay {
    background: linear-gradient(to top,
            rgba(40, 22, 12, 0.92) 0%,
            rgba(40, 22, 12, 0.45) 50%,
            rgba(40, 22, 12, 0.15) 80%,
            transparent 100%);
}

/* --- Text Content --- */
.category-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 22px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    transform: translateY(4px);
    transition: transform 0.38s ease;
}

.category-card:hover .category-card__content {
    transform: translateY(0);
}

.category-card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.3px;
}

.category-card__cta {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease 0.05s, transform 0.35s ease 0.05s;
    gap: 6px;
}

.category-card:hover .category-card__cta {
    opacity: 1;
    transform: translateY(0);
}

/* --- Shimmer Sweep --- */
.category-card__shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg,
            transparent 30%,
            rgba(255, 255, 255, 0.10) 50%,
            transparent 70%);
    background-size: 250% 100%;
    background-position: -100% 0;
    transition: background-position 0.7s ease;
    pointer-events: none;
}

.category-card:hover .category-card__shimmer {
    background-position: 200% 0;
}

/* Gold top-border accent on hover */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover), var(--accent-color));
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 10;
}

.category-card:hover::before {
    opacity: 1;
}

/* --- Responsive Tweaks --- */
@media (max-width: 768px) {
    .categories-section {
        padding: 60px 0 70px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .category-card {
        aspect-ratio: 3 / 3.5;
        border-radius: 14px;
    }

    .category-card__title {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .category-card {
        aspect-ratio: 3 / 4;
        border-radius: 12px;
    }

    .category-card__title {
        font-size: 0.95rem;
    }
}

/* Instagram Section */
.instagram-section {
    padding: 80px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.instagram-title {
    font-family: 'Satisfy', cursive;
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.instagram-reel-container {
    max-width: 350px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: #000;
    border: 8px solid var(--white);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.instagram-reel-container:hover {
    transform: rotate(0deg) scale(1.02);
}

.instagram-reel-container iframe {
    display: block;
    max-width: 100%;
}

@media (max-width: 480px) {
    .instagram-reel-container {
        max-width: 280px;
    }
}

.instagram-cta {
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .instagram-title {
        font-size: 2rem;
    }
}

/* Category Hover Interactions */
.category-card:hover .category-card__img {
    transform: scale(1.12);
}

.category-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.category-card__title {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Navbar Scrolled State */
.navbar.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(184, 155, 94, 0.2);
    padding: 0.5rem 0;
}

/* Trust Marquee Animation */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 10px 0;
}

.trust-marquee-track {
    display: flex;
    flex-wrap: nowrap !important;
    animation: scrollMarquee 20s linear infinite;
    width: 200%;
}

.marquee-item {
    flex: 0 0 auto;
    text-align: center;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

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

@media (min-width: 992px) {
    .trust-marquee-track {
        animation: none;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap !important;
    }

    .marquee-item {
        flex: 1;
    }
}

/* Hero Section Mobile Enhancements */
@media (max-width: 768px) {
    .hero-overlay-content {
        padding: 0 20px;
    }

    .hero-overlay-content h1 {
        font-size: 1.8rem !important;
        line-height: 1.3;
        margin-bottom: 2rem !important;
    }

    /* Taller hero for mobile to show the image behind text/buttons */
    .carousel,
    .carousel-inner,
    .carousel-item,
    .carousel-item img {
        height: 550px !important;
        min-height: 550px !important;
        object-fit: cover;
    }

    .hero-overlay-content .d-flex {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .hero-overlay-content .btn-lg {
        width: 100%;
        font-size: 1.1rem;
        padding: 15px 24px;
    }
}
/* Footer Signature (User Customization) */
.footer-signature {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

.signature-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px dotted transparent;
}

.signature-link:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
    opacity: 1;
}
