/* Logo Styling - Compact Size */
.logo-header .logo {
    max-height: 55px;
    width: auto;
    object-fit: contain;
}

.footer-logo img {
    max-height: 108px;
    width: auto;
    object-fit: contain;
}

/* Mobile Logo Styling */
@media (max-width: 768px) {
    .logo-header .logo {
        max-height: 39px;
        width: auto;
        object-fit: contain;
    }
}

/* Search Functionality Styling */
.search-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.search-filters {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.search-filters .form-select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
}

.product-category {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.product-category a {
    color: #666;
    text-decoration: none;
}

.product-category a:hover {
    color: #000080;
}

.product-price {
    margin-top: 8px;
}

.price-old {
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
    font-size: 14px;
}

.price-new {
    color: #e74c3c;
    font-weight: 600;
    font-size: 16px;
}

.price {
    color: #000080;
    font-weight: 600;
    font-size: 16px;
}

.no-results {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 40px 20px;
}

.no-results h4 {
    color: #333;
    margin-bottom: 10px;
}

.no-results p {
    color: #666;
    margin-bottom: 20px;
}

/* Search Modal Enhancements */
.tf-search-content {
    max-height: 70vh;
    overflow-y: auto;
}

.tf-loop-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

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

.tf-loop-item .image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.tf-loop-item .content a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.tf-loop-item .content a:hover {
    color: #000080;
}

.product-category-small {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.product-category-small span {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
}

/* Enhanced Search Results Hover Effects */
.card-product {
    transition: all 0.3s ease;
}

.card-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-product .card-product-wrapper {
    position: relative;
    overflow: hidden;
}

.card-product .list-product-btn {
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.card-product:hover .list-product-btn {
    opacity: 1;
    transform: translateY(0);
}

.card-product .list-product-btn .box-icon {
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.card-product .list-product-btn .box-icon:hover {
    background: #000080;
    color: white;
    transform: scale(1.1);
}

.card-product .list-product-btn .tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.card-product .list-product-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Grid layout specific hover effects */
.card-product.grid .list-product-btn.absolute-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(10px);
}

.card-product.grid:hover .list-product-btn.absolute-2 {
    transform: translate(-50%, -50%) translateY(0);
}

/* List layout specific hover effects */
.card-product.list-layout .list-product-btn {
    margin-top: 10px;
}

/* Custom Packaging Guides Carousel Styles */
.custom-packaging-carousel {
    position: relative;
    padding: 20px 0;
    margin: 0 -15px;
}

.packaging-guide-card {
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.packaging-guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #000080;
}

.packaging-guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #000080 0%, #1a1a8c 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.packaging-guide-card:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    transition: all 0.3s ease-in-out;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.packaging-guide-card:hover .icon-wrapper {
    background: #000080 !important;
    transform: scale(1.1);
}

.packaging-guide-card:hover .icon-wrapper img {
    filter: brightness(0) invert(1);
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content p {
    flex: 1;
    margin-bottom: 1rem;
}

.learn-more-link {
    transition: all 0.3s ease-in-out;
    position: relative;
    margin-top: auto;
    display: inline-block;
}

.learn-more-link:hover {
    color: #000066 !important;
    transform: translateX(5px);
}

.learn-more-link:hover .icon {
    transform: translateX(3px);
    transition: transform 0.3s ease-in-out;
}

/* Navigation Buttons Styling */
.packaging-nav-buttons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    padding: 0 20px;
}

.packaging-nav-buttons .nav-sw {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 20;
}

.packaging-nav-buttons .nav-sw:hover {
    background: #000080 !important;
    border-color: #000080 !important;
    transform: scale(1.1);
}

.packaging-nav-buttons .nav-sw:hover .icon {
    color: var(--white) !important;
}

.packaging-nav-buttons .nav-sw.swiper-button-disabled {
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.8) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .packaging-nav-buttons {
        display: none !important;
    }

    .custom-packaging-carousel {
        padding: 10px 0;
        margin: 0;
    }

    .packaging-guide-card {
        margin-bottom: 15px;
    }

    .packaging-guide-card .card-content h5 {
        font-size: 1.1rem;
    }

    .packaging-guide-card .card-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .packaging-guide-card {
        padding: 1rem !important;
    }

    .icon-wrapper {
        width: 50px !important;
        height: 50px !important;
    }

    .icon-wrapper img {
        max-width: 25px !important;
    }
}

/* Animation Enhancements */
.packaging-guide-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Content Styling */
.card-content h5 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #333;
}

.card-content p {
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Icon Styling */
.card-icon img {
    transition: all 0.3s ease-in-out;
}

/* Pagination Dots Enhancement */
.sw-pagination-packaging-guides .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: all 0.3s ease-in-out;
}

.sw-pagination-packaging-guides .swiper-pagination-bullet-active {
    background: #000080;
    width: 30px;
    border-radius: 5px;
}

/* Swiper Container Enhancements */
.tf-sw-packaging-guides {
    padding: 0 15px;
}

.tf-sw-packaging-guides .swiper-slide {
    height: auto;
}
