/********** Template CSS **********/
:root {
    --primary: #06BBCC;
    --light: #F0FBFC;
    --dark: #181d38;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 0px;
}

/*** Navbar ***/
.navbar .dropdown-toggle::after {
    display: none;
}

.navbar .dropdown-arrow::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 6px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--dark);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

.nav-item .dropdown-arrow {
    margin-left: -25px !important;
    padding-left: 0 !important;
}

@media (max-width: 767px) {
    .nav-item .dropdown-arrow {
        margin-left: 1px !important;
        padding-left: 4px !important;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }
    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }
    .navbar .dropdown-menu.fade-down {
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
    }
    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 40px !important;
    }
    .navbar-brand h2 {
        font-size: 18px !important;
        margin: 0;
    }
    .navbar-brand {
        gap: 6px;
    }
}

/*** Products Section ***/
.products-section {
    padding: 80px 20px;
    background: var(--light);
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Product Card - Modern Bootstrap Style */
.product-card-modern {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.product-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.product-card-modern .product-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card-modern:hover .product-img {
    transform: scale(1.07);
}

.product-card-modern .card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-category {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.product-category i {
    margin-right: 6px;
    font-size: 0.9rem;
}

/* Favorite Icon Overlay */
.favorite-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.favorite-overlay:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.favorite-icon {
    font-size: 1.1rem;
    color: #ccc;
    transition: all 0.3s ease;
}

.favorite-icon.active,
.favorite-overlay:hover .favorite-icon {
    color: #fff;
}

.favorite-icon.active {
    animation: heartBeat 0.6s ease;
}

/* Button */
.btn-view-details {
    margin-top: auto;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-view-details:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Loading & Empty State */
#loadingMsg {
    font-style: italic;
    color: #666;
    margin: 20px 0;
}

/* Animations */
@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .product-card-modern .product-img {
        height: 180px;
    }
    .product-title {
        font-size: 1.05rem;
    }
}

@media (max-width: 576px) {
    .products-section {
        padding: 60px 15px;
    }
    .section-title {
        font-size: 2rem;
    }
    .product-card-modern {
        border-radius: 12px;
    }
    .product-card-modern .product-img {
        height: 160px;
    }
}

/* Footer - Updated */
.footer {
    background: #4169e1;
    color: #fff;
    padding: 80px 20px 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--primary);
    clip-path: polygon(0 100%, 100% 0%, 100% 100%);
    animation: wave 6s infinite linear;
}

@keyframes wave {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.footer-col h3 {
    margin-bottom: 18px;
    font-size: 1.3rem;
    color: #fff;
    position: relative;
    font-weight: 700;
}

.footer-col h3::after {
    content: "";
    width: 50px;
    height: 3px;
    background: var(--primary);
    position: absolute;
    left: 0;
    bottom: -8px;
    border-radius: 2px;
}

.footer-col p,
.footer-col ul,
.footer-col form {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #f1f1f1;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin: 8px 0;
}

.footer-col ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-logo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    padding: 6px;
    border: 3px solid var(--primary);
    margin: 0 auto 20px;
    display: block;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.social-icons a {
    display: inline-block;
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: #fff;
    text-align: center;
    line-height: 38px;
    border-radius: 50%;
    margin: 5px;
    font-size: 1rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-3px) scale(1.1);
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 11px;
    margin-bottom: 12px;
    border: none;
    border-radius: 8px;
    outline: none;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(5px);
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
    color: #ddd;
}

.footer-form button {
    width: 100%;
    padding: 13px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.footer-form button:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    color: #ddd;
}

@media (max-width: 600px) {
    .footer-logo {
        width: 130px;
        height: 130px;
    }
}