/* ================================================================================
   WeddingBook Front Styles
   ================================================================================ */

/* Header */
.header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-top {
    background-color: var(--bg-light);
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    color: var(--gray-color);
}

.header-top-right a {
    color: var(--gray-color);
    margin-left: 1rem;
}

.header-top-right a:hover {
    color: var(--primary-color);
}

.header-main {
    padding: 1rem 0;
}

.logo {
    display: inline-block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
}

.search-form .form-control {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.search-form .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
}

.header-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--dark-color);
    font-size: 0.75rem;
    position: relative;
}

.header-action-item i {
    font-size: 1.25rem;
    margin-bottom: 0.125rem;
}

.header-action-item:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.625rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-nav {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 1rem 1.5rem;
    font-weight: 500;
    color: var(--dark-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--primary-color);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px 2px 0 0;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    z-index: 2000;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    padding: 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
}

.mobile-menu-body {
    padding: 1rem;
}

.mobile-nav-menu li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    color: var(--dark-color);
}

/* Main Banner */
.main-banner {
    position: relative;
}

.main-banner .swiper-slide {
    height: 400px;
}

.main-banner .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-banner .swiper-pagination-bullet {
    background-color: var(--white);
    opacity: 0.5;
}

.main-banner .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Category Icons */
.category-icons {
    padding: 2rem 0;
    background-color: var(--white);
}

.category-icon-item {
    text-align: center;
    padding: 1rem;
    transition: var(--transition);
}

.category-icon-item:hover {
    transform: translateY(-5px);
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.75rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.category-icon-item:hover .category-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.category-name {
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.9375rem;
}

/* Vendor Card */
.vendor-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    background-color: var(--white);
    height: 100%;
}

.vendor-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.vendor-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.vendor-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.vendor-card:hover .vendor-card-image img {
    transform: scale(1.05);
}

.vendor-card-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.vendor-card-wishlist:hover,
.vendor-card-wishlist.active {
    color: var(--primary-color);
}

.vendor-card-wishlist.active i {
    font-weight: 900;
}

.vendor-card-body {
    padding: 1rem;
}

.vendor-card-category {
    font-size: 0.75rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.vendor-card-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.vendor-card-info {
    font-size: 0.8125rem;
    color: var(--gray-color);
    margin-bottom: 0.5rem;
}

.vendor-card-tags {
    margin-bottom: 0.75rem;
}

.vendor-card-price {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--dark-color);
}

.vendor-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.vendor-card-actions .btn {
    flex: 1;
    font-size: 0.8125rem;
    padding: 0.5rem;
}

/* Package Card */
.package-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--white);
    transition: var(--transition);
}

.package-card:hover {
    box-shadow: var(--shadow-md);
}

.package-card-image {
    height: 180px;
    overflow: hidden;
}

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

.package-card-body {
    padding: 1.25rem;
}

.package-card-title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.package-card-vendors {
    font-size: 0.8125rem;
    color: var(--gray-color);
    margin-bottom: 0.75rem;
}

.package-card-price {
    margin-bottom: 1rem;
}

/* Review Item */
.review-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.review-vendor {
    font-weight: 600;
    color: var(--dark-color);
}

.review-rating {
    color: #ffc107;
}

.review-content {
    color: var(--gray-color);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.review-footer {
    font-size: 0.8125rem;
    color: var(--light-gray);
}

/* Magazine Card */
.magazine-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.magazine-card:hover {
    transform: translateY(-3px);
}

.magazine-card-image {
    height: 200px;
    overflow: hidden;
}

.magazine-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.magazine-card:hover .magazine-card-image img {
    transform: scale(1.05);
}

.magazine-card-body {
    padding: 1rem 0;
}

.magazine-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.magazine-card-meta {
    font-size: 0.8125rem;
    color: var(--light-gray);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
}

.footer-main {
    padding: 3rem 0;
}

.footer-title {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-info li {
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Back to Top Button */
.btn-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.btn-top.visible {
    opacity: 1;
    visibility: visible;
}

.btn-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 991px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-nav .container {
        display: flex;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .header-main {
        padding: 0.75rem 0;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .header-actions {
        gap: 1rem;
    }

    .header-action-item span {
        display: none;
    }

    .main-banner .swiper-slide {
        height: 250px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .vendor-card-image {
        height: 150px;
    }

    .footer-main {
        padding: 2rem 0;
    }

    .btn-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}
