/* Merchandise Category Page Styles */

.merchandise-page-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
}

/* Header Section */
.merchandise-header {
    text-align: center;
    margin-bottom: 60px;
}

.merchandise-page-title {
    font-size: 3rem;
    font-weight: bold;
    color: #003c71;
    margin: 0 0 15px 0;
    border-bottom: 3px solid #003c71;
    display: inline-block;
    padding: 0 30px 15px;
}

.merchandise-intro {
    font-size: 1.2rem;
    color: #666;
    margin: 20px 0 0 0;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #003c71;
    margin: 0 0 30px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Section 1: Categories Grid */
.merchandise-categories-section {
    margin-bottom: 80px;
}

.merchandise-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.merchandise-category-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.merchandise-category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.merchandise-category-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.merchandise-category-item:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(22, 65, 112, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.merchandise-category-item:hover .category-overlay {
    opacity: 1;
}

.view-products {
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-name {
    padding: 20px;
    margin: 0;
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.product-count {
    display: block;
    padding: 0 20px 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: -10px;
}

/* Section 2: Bestsellers Carousel */
.merchandise-bestsellers-section {
    margin-bottom: 80px;
    position: relative;
}

.carousel-controls {
    display: flex;
    gap: 10px;
}

.carousel-prev,
.carousel-next {
    width: 40px;
    height: 40px;
    border: 2px solid #003c71;
    background: white;
    color: #003c71;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #003c71;
    color: white;
}

.products-carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.products-carousel {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.carousel-product-item {
    flex: 0 0 calc(20% - 16px);
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.carousel-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.carousel-product-item a {
    text-decoration: none;
    color: inherit;
}

.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4444;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Product title link styling */
.product-title-link {
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.product-title-link:hover .product-title {
    color: #003c71;
}

.product-title {
    padding: 15px 15px 10px;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    min-height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.product-price {
    padding: 0 15px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #003c71;
}

.product-price del {
    color: #999;
    font-weight: normal;
    margin-right: 5px;
}

.product-price ins {
    text-decoration: none;
}

.product-rating {
    padding: 10px 15px;
    min-height: 30px;
}

.product-rating .star-rating {
    font-size: 0.9rem;
}

.product-actions {
    padding: 15px;
    border-top: 1px solid #eee;
}

.product-actions .button,
.product-actions .add_to_cart_button {
    width: 100%;
    background: #003c71;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.product-actions .button:hover,
.product-actions .add_to_cart_button:hover {
    background: #0f2f4f;
}

/* Section 3: Featured Product Banner */
.merchandise-featured-section {
    margin-bottom: 60px;
}

.featured-product-banner {
    position: relative;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(22, 65, 112, 0.9) 0%, rgba(22, 65, 112, 0.6) 100%);
}

.banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px;
    min-height: 400px;
}

.banner-text {
    flex: 1;
    color: white;
    max-width: 600px;
}

.banner-label {
    display: inline-block;
    background: #ff4444;
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 0 20px 0;
    color: white;
}

.banner-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.banner-price {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.banner-price del {
    color: rgba(255, 255, 255, 0.6);
    margin-right: 10px;
}

.banner-actions {
    display: flex;
    gap: 15px;
}

.btn-view-product,
.btn-add-to-cart {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-product {
    background: white;
    color: #003c71;
    border: 2px solid white;
}

.btn-view-product:hover {
    background: transparent;
    color: white;
}

.btn-add-to-cart {
    background: #ff4444;
    color: white;
    border: 2px solid #ff4444;
}

.btn-add-to-cart:hover {
    background: #e63333;
    border-color: #e63333;
}

.banner-image {
    flex: 0 0 400px;
    margin-left: 60px;
}

.banner-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Placeholder Styles */
.placeholder {
    opacity: 0.6;
    pointer-events: none;
}

.placeholder .category-overlay {
    opacity: 1;
    background: rgba(100, 100, 100, 0.8);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .carousel-product-item {
        flex: 0 0 calc(25% - 15px);
    }
}

@media (max-width: 992px) {
    .merchandise-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .carousel-product-item {
        flex: 0 0 calc(33.333% - 13px);
    }
    
    .banner-content {
        padding: 40px;
    }
    
    .banner-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .merchandise-page-title {
        font-size: 2rem;
    }
    
    .merchandise-categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .carousel-product-item {
        flex: 0 0 calc(50% - 10px);
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    
    .banner-image {
        margin-left: 0;
        margin-top: 30px;
        flex: 0 0 auto;
        max-width: 300px;
    }
    
    .banner-actions {
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .merchandise-page-container {
        padding: 20px 15px;
    }
    
    .carousel-product-item {
        flex: 0 0 calc(100% - 0px);
    }
    
    .banner-title {
        font-size: 1.5rem;
    }
    
    .banner-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-view-product,
    .btn-add-to-cart {
        width: 100%;
        text-align: center;
    }
}