/**
 * BMS Collections Frontend Styles
 */

/* Collections Archive */
.collections-wrapper {
    margin: 0 auto;
    padding: 0 50px 0 50px;
    max-width: 1390px;
    width: 100%;
}

.collections-header {
    text-align: left;
    margin-bottom: 30px;
}

.breadcrumbs {
    margin: 16px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: #333;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #000;
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #999;
}

.collections-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.collections-description {
    max-width: 800px;
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: #666;
}

/* Collections Hero */
.collections-hero {
    margin-bottom: 80px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s ease-out 0.2s forwards;
}

.collections-hero__image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.collections-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Abstract Banner */
.collections-banner {
    display: flex;
    margin-bottom: 80px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s ease-out 0.2s forwards;
}

.banner-panel {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.banner-panel--left {
    background: #8B9A5B;
    color: white;
}

.banner-panel--center {
    background: #F5F5F5;
    position: relative;
}

.banner-panel--right {
    background: #F4E4BC;
    color: #333;
}

.banner-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.abstract-shapes {
    position: relative;
    width: 100px;
    height: 100px;
}

.shape {
    position: absolute;
    border-radius: 4px;
}

.shape--circle {
    width: 40px;
    height: 40px;
    background: #ddd;
    border-radius: 50%;
    top: 10px;
    left: 10px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

.shape--rectangle {
    width: 50px;
    height: 30px;
    background: #bbb;
    top: 30px;
    right: 20px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

.shape--triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 40px solid #999;
    bottom: 10px;
    left: 30px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

/* Section Titles */
.section-title {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    color: #333;
}


.section-title--left {
    text-align: left;
}

/* Collections Section Header */
.collections-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.collections-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-label {
    font-size: 14px;
    color: #333;
    font-weight: 700;
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 22px;
    display: inline-block;
}

.sort-dropdown {
    position: relative;
    display: inline-block;
}

.sort-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    color: #333;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.sort-dropdown-arrow {
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
    transition: transform 0.3s ease;
}

.sort-dropdown.open .sort-dropdown-arrow {
    transform: rotate(180deg);
}

.sort-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #4F4F4F;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 150px;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 8px 0;
}

.sort-dropdown.open .sort-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 12px;
    color: #fff;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.sort-dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sort-dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Featured Collections */
.featured-collections {
    margin-bottom: 80px;
}

/* Collections Grid - Scoped to BMS Collections Plugin */
.bms-collections .collections-grid,
.collections-wrapper .collections-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 60px;
}

.bms-collections .collections-grid--2-columns,
.collections-wrapper .collections-grid--2-columns {
    grid-template-columns: repeat(2, 1fr);
}

.bms-collections .collections-grid--3-columns,
.collections-wrapper .collections-grid--3-columns {
    grid-template-columns: repeat(3, 1fr);
}

.bms-collections .collections-grid--4-columns,
.collections-wrapper .collections-grid--4-columns {
    grid-template-columns: repeat(4, 1fr);
}

/* Coordinated Collections Slider - Scoped to BMS Collections Plugin */
.bms-collections .coordinated-collections-slider,
.collections-wrapper .coordinated-collections-slider {
    position: relative;
}

.bms-collections .slider-container,
.collections-wrapper .slider-container {
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    margin-bottom: 20px;
}

.bms-collections .slider-track,
.collections-wrapper .slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 30px;
}

.bms-collections .slider-track .collection-card,
.collections-wrapper .slider-track .collection-card {
    flex: 0 0 calc(50% - 15px);
    min-width: 0;
}

/* Faded Arrow Controls - Scoped to BMS Collections Plugin */
.bms-collections .slider-arrow,
.collections-wrapper .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.7;
}

.bms-collections .slider-arrow:hover,
.collections-wrapper .slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.bms-collections .slider-arrow:disabled,
.collections-wrapper .slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.bms-collections .slider-arrow--prev,
.collections-wrapper .slider-arrow--prev {
    left: 15px;
}

.bms-collections .slider-arrow--next,
.collections-wrapper .slider-arrow--next {
    right: 15px;
}

/* Slider Dots - Scoped to BMS Collections Plugin */
.bms-collections .slider-dots,
.collections-wrapper .slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.bms-collections .slider-dot,
.collections-wrapper .slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bms-collections .slider-dot.active,
.collections-wrapper .slider-dot.active {
    background: #333;
    transform: scale(1.3);
}

.bms-collections .slider-dot:hover,
.collections-wrapper .slider-dot:hover {
    background: #999;
    transform: scale(1.1);
}

/* Responsive Slider */
@media (max-width: 768px) {
    .slider-track .collection-card {
        flex: 0 0 100%;
    }
    
    .slider-arrow {
        width: 36px;
        height: 36px;
    }
    
    .slider-arrow--prev {
        left: 10px;
    }
    
    .slider-arrow--next {
        right: 10px;
    }
}

/* Featured Collections Grid - Responsive */
.featured-collections .collections-grid {
    display: grid;
    gap: 30px;
}

/* Dynamic grid based on number of items */
.featured-collections .collections-grid[data-count="1"] {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0;
}

.featured-collections .collections-grid[data-count="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.featured-collections .collections-grid[data-count="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.featured-collections .collections-grid[data-count="4"] {
    grid-template-columns: repeat(2, 1fr);
}

.featured-collections .collections-grid[data-count="5"] {
    grid-template-columns: repeat(3, 1fr);
}

.featured-collections .collections-grid[data-count="6"] {
    grid-template-columns: repeat(3, 1fr);
}

/* Responsive adjustments for featured collections */
@media (max-width: 768px) {
    .featured-collections .collections-grid[data-count="3"],
    .featured-collections .collections-grid[data-count="4"],
    .featured-collections .collections-grid[data-count="5"],
    .featured-collections .collections-grid[data-count="6"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .featured-collections .collections-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Single Collection Fade-in Effects */
.collection-hero.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 2s ease-out forwards;
}

.gallery-item-enhanced.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.8s ease, transform 1.8s ease;
}

.gallery-item-enhanced.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.collection-video.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.8s ease, transform 1.8s ease;
}

.collection-video.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.coordinated-collections.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.8s ease, transform 1.8s ease;
}

.coordinated-collections.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Collection Gallery */
.collection-gallery-enhanced {
    margin: 0;
}

.gallery-item-enhanced {
    margin-bottom: 0;
}

.gallery-item-enhanced:last-child {
    margin-bottom: 0;
}

.gallery-content {
    display: flex;
    align-items: center;
    min-height: 60vh;
}

.gallery-item-enhanced.text-left .gallery-content {
    flex-direction: row;
}

.gallery-item-enhanced.text-right .gallery-content {
    flex-direction: row-reverse;
}

.gallery-image {
    flex: 1;
    height: 60vh;
    overflow: hidden;
    position: relative;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.gallery-image-zoom {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-image-zoom:hover {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    transform: scale(1.1);
}

.zoom-icon {
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
}

.gallery-text {
    flex: 1;
    padding: 80px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-content {
    max-width: 500px;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Coordinated Collections Grid (for 2 or fewer items) */
.coordinated-collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .coordinated-collections-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.text-content p {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    margin: 0;
    font-weight: 400;
}

/* Responsive adjustments for gallery */
@media (max-width: 1024px) {
    .gallery-text {
        padding: 60px 40px;
    }
    
    .text-content p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .gallery-content {
        flex-direction: column !important;
        min-height: auto;
    }
    
    .gallery-image {
        height: 50vh;
        flex: none;
    }
    
    .gallery-text {
        padding: 40px 20px;
        flex: none;
    }
    
    .text-content {
        max-width: 100%;
    }
    
    .text-content p {
        font-size: 15px;
    }
}

/* Collection Products Section */
.collection-products {
    margin: 80px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.8s ease, transform 1.8s ease;
}

.collection-products.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.bms-collections .products-header,
.collections-wrapper .products-header {
    margin-bottom: 0;
    text-align: left !important;
}

.bms-collections .products-title,
.collections-wrapper .products-title {
    font-size: 36px !important;
    font-weight: 300 !important;
    color: #333 !important;
    margin: 0 !important;
    text-align: left !important;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Product Cards */
.bms-collections .product-card,
.collections-wrapper .product-card {
    background: white;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.bms-collections .product-card.fade-in,
.collections-wrapper .product-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #999;
    font-size: 14px;
}

.product-card__content {
    padding: 20px 20px 20px 30px !important;
    text-align: left !important;
}

.product-card__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: left !important;
}

.product-card__title a {
    color: #333;
    text-decoration: none;
    text-align: left !important;
}

.product-card__title a:hover {
    color: #000;
    text-decoration: underline;
}

.product-card__price {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    margin-bottom: 15px;
    text-align: left !important;
}

.product-card__actions {
    margin-top: 15px;
    text-align: left !important;
}

.product-card__link {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-align: left !important;
}

.product-card__link:hover {
    color: #000;
    text-decoration: underline;
}

/* Responsive Product Grid */
@media (max-width: 768px) {
    .bms-collections .products-title,
    .collections-wrapper .products-title {
        font-size: 28px !important;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .product-card__content {
        padding: 15px;
    }
    
    .product-card__title {
        font-size: 16px;
    }
}

/* Coordinated Collections Section */
.coordinated-collections {
    margin: 80px 0;
}

.coordinated-collections-header {
    margin: 0;
    text-align: left;
}

.coordinated-title {
    font-size: 36px;
    font-weight: 300;
    color: #333;
    margin: 0;
}

/* Responsive adjustments for coordinated collections */
@media (max-width: 768px) {
    .coordinated-title {
        font-size: 28px;
    }
}

/* View All Collections Button */
.collections-view-all {
    text-align: center;
    margin: 60px 0;
}

.collections-view-all .view-more-btn {
    color: white !important;
    text-decoration: none !important;
}

.collections-view-all .view-more-btn:hover {
    color: white !important;
    text-decoration: none !important;
}

/* Image Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
    overflow: hidden;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 10000;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: #333;
    color: white;
    transform: scale(1.1);
}

.close-icon {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

.lightbox-image-container {
    position: relative;
    max-width: 100%;
    max-height: 100%;
}

#lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Responsive adjustments for lightbox */
@media (max-width: 768px) {
    .lightbox-close {
        top: -40px;
        width: 35px;
        height: 35px;
    }
    
    .close-icon {
        font-size: 18px;
    }
    
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }
}

/* View More Button */
.collections-load-more {
    text-align: center;
    margin: 60px 0;
}

.view-more-btn {
    display: inline-block;
    padding: 12px 40px;
    border: none;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #7C7D7F;
    color: white;
    min-width: 150px;
}

.view-more-btn:hover {
    background: #6C6D6F;
    color: white;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.view-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loading-spinner {
    margin-top: 20px;
    color: #666;
    font-style: italic;
}

.loading-spinner::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Collection Cards - Scoped to BMS Collections Plugin */
.bms-collections .collection-card,
.collections-wrapper .collection-card {
    background: white;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 1.8s ease;
    opacity: 0;
    transform: translateY(20px);
}

.bms-collections .collection-card.fade-in,
.collections-wrapper .collection-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Featured collections start visible with fade-in effect */
.bms-collections .collection-card--featured,
.collections-wrapper .collection-card--featured {
    opacity: 1;
    transform: translateY(0);
    animation: featuredFadeIn 2s ease-out;
}

@keyframes featuredFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.collection-card--featured {
    /* Featured collections styling */
}

.collection-card__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 389px;
    gap: 2px;
}

.collection-card__image {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

.collection-card__image--single {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}

.collection-card__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.collection-card:hover .collection-card__image img {
    transform: scale(1.05);
}

.collection-card__content {
    padding: 20px;
}


.collection-card__title a {
    color: #333;
    text-decoration: none;
}

.collection-card .collection-card__title a:hover {
    color: #000 !important;
    text-decoration: underline !important;
}

.collection-card__excerpt {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.collection-card__actions {
    margin-top: 15px;
}

.collection-card__link {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.collection-card .collection-card__link:hover {
    color: #000 !important;
    text-decoration: underline !important;
}

/* Single Collection */
.collection-single {
    /* padding: 40px 0; */
}

.collection-single .collections-wrapper {
    margin: 0 auto;
    padding: 0 15px 0 50px;
    max-width: 1390px;
    width: 100%;
}

.collection-header {
    margin-bottom: 40px;
}

.collection-title {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #333;
}

/* Collection Hero */
.collection-hero {
    margin-bottom: 60px;
}

.collection-hero__image {
    margin-bottom: 30px;
}

.collection-hero__image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.collection-narrative {
    max-width: 800px;
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    text-align: left;
}

/* Video Section */
.collection-video {
    margin-bottom: 60px;
}

.video-container {
    width: 100%;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.video-container iframe,
.video-container video {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    border: none;
    display: block;
    object-fit: cover;
}

.video-container video {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Design Philosophy */
.collection-philosophy {
    margin-bottom: 60px;
}

.philosophy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.philosophy-text h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.product-applications {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.application-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.application-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.application-image:hover .image-overlay {
    opacity: 1;
}

.plus-icon {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

/* Products Section */
.collection-products {
    margin-bottom: 60px;
}

.collection-products h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    text-align: center;
}

.product-image {
    margin-bottom: 15px;
}

.placeholder-image {
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 500;
}

.product-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

/* Related Collections */
.related-collections {
    margin-bottom: 60px;
}

.related-collections h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}

.view-all-collections {
    text-align: center;
    margin-top: 40px;
}


/* Pagination */
.collections-pagination {
    text-align: center;
    margin-top: 40px;
}

.collections-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.collections-pagination .page-numbers:hover,
.collections-pagination .page-numbers.current {
    background: #0073aa;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .collections-grid--2-columns,
    .collections-grid--3-columns,
    .collections-grid--4-columns {
        grid-template-columns: 1fr;
    }
    
    .collections-banner {
        flex-direction: column;
    }
    
    .banner-panel {
        min-height: 150px;
        padding: 40px 20px;
    }
    
    .philosophy-content {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .collections-title,
    .collection-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .collections-title,
    .collection-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .collections-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .collections-sort {
        align-self: flex-end;
    }
}

/* Collection Post Content */
.collection-content {
    margin: 40px 0;
    padding: 0;
}

.collection-content-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.collection-content-wrapper h1,
.collection-content-wrapper h2,
.collection-content-wrapper h3,
.collection-content-wrapper h4,
.collection-content-wrapper h5,
.collection-content-wrapper h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.collection-content-wrapper h1:first-child,
.collection-content-wrapper h2:first-child,
.collection-content-wrapper h3:first-child,
.collection-content-wrapper h4:first-child,
.collection-content-wrapper h5:first-child,
.collection-content-wrapper h6:first-child {
    margin-top: 0;
}

.collection-content-wrapper p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.collection-content-wrapper ul,
.collection-content-wrapper ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.collection-content-wrapper li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.collection-content-wrapper img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.collection-content-wrapper blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    border-left: 4px solid #ccc;
    background: #f9f9f9;
    font-style: italic;
}

.collection-content-wrapper a {
    color: #0073aa;
    text-decoration: underline;
}

.collection-content-wrapper a:hover {
    color: #005a87;
}
