/* ======================
   GLOBAL FONT SYSTEM
====================== */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f7f4f2;
    color: #2c7a7b;
    margin: 0;
    overflow-x: hidden;
}

/* Headings = bakery style */
h1, h2, h3, .navbar-brand {
    font-family: 'Pacifico', cursive;
    letter-spacing: 1px;
}

/* Clean text everywhere else */
p, .nav-link, .btn, input, textarea {
    font-family: 'Poppins', sans-serif;
}

/* ======================
   Navbar
====================== */
.custom-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #e3f0eb;
    /* light sage */
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: 0.3s;
}

.custom-navbar.scrolled {
    background: #cde4db;
    /* darker sage */
}

.navbar-brand {
    color: #2c7a7b !important;
    font-family: 'Pacifico', cursive;
}

.nav-link {
    color: #2c7a7b !important;
    font-weight: 500;
}

.nav-link:hover {
    color: #236666 !important;
}

.nav-social {
    color: #236666;
    font-size: 20px;
    margin: 0 10px;
    transition: 0.3s;
}

.nav-social:hover {
    color: #2c7a7b;
    transform: scale(1.2);
}

/* ---------- Navbar Cart ---------- */
#navCart {
    display: flex;
    align-items: center;
    color: #f7f4f2;
    background: #2c7a7b;
    padding: 8px 12px;
    border-radius: 50px;
    cursor: pointer;
    margin-left: 15px;
    transition: background 0.3s, transform 0.3s;
}

#navCart:hover {
    background: #236666;
    transform: scale(1.05);
}

#navCart span#navCartCount {
    margin-left: 6px;
    font-weight: bold;
}

.nav-social img {
    width: 20px;
    height: 20px;
    margin: 0 10px;
    transition: transform 0.2s ease;
}

.nav-social img:hover {
    transform: scale(1.2);
}

.cart-icon {
    width: 24px;
    height: 24px;
}

.cart-wrapper {
    position: relative;
    cursor: pointer;
}

#navCartCount {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #e27d60;
    color: white;
    font-size: 12px;
    border-radius: 50%;
    padding: 2px 6px;
}

/* Force your theme over Bootstrap */
.navbar-light .navbar-brand {
    color: #2c7a7b !important;
}

.navbar-light .nav-link {
    color: #2c7a7b !important;
}

.btn-pink {
    background: #2c7a7b !important;
    color: #f7f4f2 !important;
    border: none !important;
    padding: 10px 22px;
    border-radius: 25px;
    white-space: nowrap;   /* 🔥 prevents wrapping */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-pink:hover {
    background: #236666 !important;
}

#homeContainer {
    max-width: 700px;   /* increase overall width */
    margin: auto;
}

#home {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Menu section */
#home .card {
   width: 100%;
   background-color: #fffaf0;
   border-radius: 15px;
   box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
   transition: transform 0.3s;
   padding: 10px;
}

#home .card:hover {
    transform: translateY(-5px);
    overflow: visible;  
}

#home .card img {
    width: 100%;
    height: auto;              /* let image keep full proportions */
    max-height: none;          /* REMOVE any cap */
    object-fit: contain;       /* show full image, no cropping */
    border-radius: 15px 15px 0 0;
}

/* New Arrivals Cards */
#newArrivals .card {
    background-color: #fffaf0;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

#newArrivals .card:hover {
    transform: translateY(-5px);
}

/* Events Carousel */
#events img {
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

/* Reviews */
.review-card {
    background: #fffaf0;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* ======================
   Hero Section
====================== */
.header-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fdf6eb;
    /* soft cream */
    padding: 20px 0;
}

.header-banner video {
    width: 95%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 1.5s, transform 1.5s;
}

.header-banner video.loaded {
    opacity: 1;
    transform: scale(1);
}

/* ======================
   MENU DROPDOWN
====================== */

.menu-header {
    background: #e3f0eb;
    color: #2c7a7b;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    max-width: 400px;
    margin: 0 auto;
}

.menu-header:hover {
    background: #cde4db;
    transform: scale(1.02);
}

/* Hidden state */
.menu-body.hidden {
    display: none;
}

/* Image container */
.menu-body {
    margin-top: 15px;
    text-align: center;
}

/* Menu image */
.menu-img {
    max-width: 600px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* ======================
   Product Cards
====================== */
#productContainer .card {
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    background-color: #fffaf0;
    /* light beige */
}

#productContainer .card:hover {
    transform: translateY(-5px);
}

.form-control {
    height: auto;
    min-height: 38px;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card h5 {
    font-size: 1.3rem;
    font-weight: bold;
}

.card p {
    font-size: 1.1rem;
}

.card .add-to-cart,
.btn-pink {
    background: #2c7a7b;
    color: #f7f4f2;
    border: none;
}

.card .add-to-cart:hover,
.btn-pink:hover {
    background: #236666;
}

.category-header {
    background: #f8d7da;
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
}

.category-body.hidden {
    display: none;
}

.hidden {
    display: none;
}

/* ---------- Floating Cart ---------- */
#cartTab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2c7a7b;
    color: #f7f4f2;
    padding: 12px 16px;
    border-radius: 50px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(50px);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.floating-cart {
    position: fixed;
    bottom: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 60%;
    background: #e3f0eb;
    /* light sage */
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s;
}

.floating-cart.open {
    right: 20px;
}

.cart-header {
    padding: 15px;
    background: #2c7a7b;
    /* teal */
    color: #f7f4f2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.cart-item-name {
    font-weight: bold;
}

.cart-item-qty input {
    width: 50px;
    padding: 2px 5px;
    font-size: 1rem;
}

.cart-footer {
    padding: 15px;
    border-top: 1px solid #eee;
}

/* Toast styles */
.cart-toast {
    background: #c4e1d9;
    color: #2c7a7b;
    border-left: 4px solid #7da893;
    padding: 12px 18px;
    border-radius: 8px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    opacity: 0;
    z-index: 2000;
    transition: opacity 0.3s ease;
}

.cart-toast.show {
    opacity: 1;
}

.build-box-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.build-box-modal .modal-content {
    background: #fff;
    padding: 20px;
    width: 90%;
    max-width: 700px;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
}

.box-items-container .box-item select,
.box-items-container .box-item input {
    width: 100px;
}

/* ======================
   Reviews Upgrade
====================== */

.review-card {
    background: #fffaf0;
    padding: 30px;
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-card p {
    font-size: 1.2rem;
    margin: 15px 0;
}

.review-card strong {
    color: #2c7a7b;
}

.stars {
    font-size: 1.5rem;
    color: #f4b400;
    /* gold */
    letter-spacing: 3px;
}

/* ======================
   Owners Carousel
====================== */

.owner-card {
    background: #42bcbd;
    padding: 30px;
    border-radius: 20px;
    max-width: 400px;
    margin: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s;
}

.owner-card:hover {
    transform: translateY(-5px);
}

.owner-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ffffff;
}

/* Match carousel width to reviews */
#ownersCarousel {
    max-width: 600px;
    margin: auto;
}

/* Smooth carousel */
#reviewCarousel {
    max-width: 700px;
    margin: auto;
}

footer {
    background: #e3f0eb;
}

/* Responsive */
@media(max-width:768px) {
    .floating-cart {
        width: 90%;
        height: 70%;
    }

    #cartTab {
        bottom: 15px;
        right: 15px;
    }
}

/* ======================
   🔧 LAYOUT FIXES (NON-DESTRUCTIVE)
   Add this at the VERY END
====================== */

/* Fix container width on large screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1100px;
    }
}

/* Add consistent spacing to sections */
section {
    padding: 60px 0;
}

/* Prevent content from feeling stretched */
#home .container,
#products .container,
#newArrivals .container,
#events .container,
#reviews .container,
#contact .container {
    max-width: 1000px;
}

/* ======================
   NAVBAR FIX (DESKTOP)
====================== */

/* Better spacing/alignment */
.navbar-nav {
    align-items: center;
}

.nav-link {
    margin: 0 8px;
}

/* Fix social icons centering issue */
.social-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Stack properly on mobile */
@media (max-width: 991px) {
    .social-center {
        margin: 10px 0;
    }
}

/* ======================
   CARD GRID FIX (BIG ONE)
====================== */

/* Fix uneven product cards on desktop */
#productContainer .col-md-4 {
    display: flex;
}

#productContainer .card {
    width: 100%;
}

/* Same fix for new arrivals */
#newArrivals .col-md-4 {
    display: flex;
}

#newArrivals .card {
    width: 100%;
}

/* ======================
   CAROUSEL FIXES
====================== */

/* Prevent giant stretched images */
.carousel-inner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Mobile carousel fix */
@media (max-width: 768px) {
    .carousel-inner img {
        height: 250px;
    }
}

/* ======================
   OWNERS CAROUSEL POLISH
====================== */

#ownersCarousel {
    margin-top: 30px;
}

/* Slightly better scaling */
@media (max-width: 768px) {
    .owner-img {
        width: 120px;
        height: 120px;
    }
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 10px;
    font-size: 2rem;
}

/* ======================
   🔥 CAROUSEL CONTROLS UPGRADE
====================== */

/* Make clickable area bigger */
.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    opacity: 1;
}

/* Style the icons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(44, 122, 123, 0.8);
    /* your teal */
    background-size: 60% 60%;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Hover effect (desktop) */
.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: #236666;
    transform: scale(1.1);
}

/* Mobile: even bigger tap targets */
@media (max-width: 768px) {

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 65px;
        height: 65px;
    }
}

/* ======================
   🔵 CAROUSEL DOT INDICATORS
====================== */

.carousel-indicators li {
    background-color: rgba(44, 122, 123, 0.4);
    /* soft teal */
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Active dot */
.carousel-indicators .active {
    background-color: #2c7a7b;
    transform: scale(1.3);
}

/* Hover effect (desktop) */
.carousel-indicators li:hover {
    background-color: #236666;
}

.carousel-indicators {
    bottom: -10px;
}

/* ======================
   FACEBOOK EMBED FIX
====================== */

.fb-page {
    max-width: 100% !important;
    overflow: hidden;
}

/* ======================
   GENERAL DESKTOP POLISH
====================== */

/* Fix overly tight headings */
h1,
h2 {
    margin-bottom: 20px;
}

/* Improve button spacing */
.btn-pink {
    padding: 10px 18px;
    border-radius: 25px;
}

/* Fix search bar stretching */
#productSearch {
    max-width: 500px;
    margin: auto;
}

/* ======================
   🎉 EVENT CAROUSEL FIX
====================== */

/* Image sizing fix (LESS ZOOM) */
.event-img {
    width: 100%;
    height: 350px;
    object-fit: contain; 
    background: #f7f4f2; 
    border-radius: 15px;
}

/* Caption BELOW image */
.event-caption {
    background: #e3f0eb;
    color: #2c7a7b;
    padding: 14px 18px;
    border-radius: 12px;
    margin-top: 15px;
    display: inline-block;
    min-width: 220px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Make text nicer */
.event-caption p {
    margin: 0;
    font-weight: 500;
}
/* Move indicators BELOW everything */
#eventCarousel .carousel-indicators {
    position: relative;  /* break out of absolute positioning */
    bottom: auto;
    margin-top: -75px;
}

#eventCarousel .carousel-indicators li{
    height: 9px;
    width: 10
}

/* Desktop tweak */
@media (min-width: 992px) {
    .event-img {
        height: 400px;
    }
}

/* Mobile tweak */
@media (max-width: 768px) {
    .event-img {
        height: 250px;
    }
}

@media (max-width: 768px) {

    #home h1 {
        font-size: 1.8rem;
    }

    .event-caption {
        font-size: 0.9rem;
        padding: 10px;
    }

    #home .card img {
       width: 100%;
       height: auto;
    }
}
/* ======================
   MOBILE TUNING
====================== */

@media (max-width: 768px) {

    section {
        padding: 40px 0;
    }

    h1 {
        font-size: 2rem;
    }

    #events img {
        height: 250px;
    }
}

@media (max-width: 400px) {
    .btn-pink {
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .menu-img {
        max-width: 100%;
    }

    .menu-header {
        font-size: 0.95rem;
        padding: 10px;
    }
}
