.collection-page {
    background: #fff;
    color: #111;
    padding: 40px 0 80px;
}

.collection-container {
    width: 100%;
    margin: 0 auto;
    /* Horizontal padding comes from `.page-padding` */
    padding: 0;
}

.collection-hero {
    padding:96px 0;
}

.collection-title {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 500;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}


.collection-category-block {
    margin-bottom: 60px;
}

.collection-category-block .title-32 {
	font-weight:700;
}

/* Prevent double-spacing: the widget CSS already adds margin-bottom to `.category-section .products`. */
.collection-page .category-section .products {
    margin-bottom: 0;
}

.collection-category-header {
    margin-bottom: 20px;
}

.collection-category-title {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 500;
    margin: 0;
}

/* Swatch styling for collection page
   Your widget CSS targets `span`, but this page renders `label.swatch` elements.
   Without these rules, labels contain only hidden inputs and collapse (so palette appears missing). */
.collection-page .category-section .product-colors {
    display: flex;
    gap: 4px;
    margin-top: -10px;
}

.collection-page .category-section .product-colors .swatch {
    width: 35px;
    height: 35px;
    margin: 5px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.collection-page .category-section .product-colors .swatch.selected {
    outline: 1px solid #000;
    outline-offset: 4px;
}

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

.collection-product-card {
    background: #fff;
}

.collection-product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.collection-product-image-wrap {
    background: #f5f5f5;
    aspect-ratio: 1 / 1.15;
    overflow: hidden;
    margin-bottom: 14px;
}

.collection-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.collection-product-content {
    padding: 0 4px;
}

.collection-product-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.collection-product-title {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.collection-product-price {
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
    white-space: nowrap;
}

.collection-product-excerpt {
    font-size: 12px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 12px;
}

.collection-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.collection-product-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border: 1px solid #dcdcdc;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    color: #333;
}

/* Tablet */

@media(max-width:1199px){
    .collection-hero {
    padding:60px 0;
}

}


@media (max-width: 1024px) {
    .collection-title {
        font-size: 34px;
    }

    .collection-category-title {
        font-size: 24px;
    }

    .collection-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

}

/* Mobile */
@media (max-width: 767px) {
    .collection-page {
        padding: 24px 0 50px;
    }

    .collection-container {
        padding: 0 16px;
    }

    .collection-hero {
        padding: 40px 0;
    }

    .collection-title {
        font-size: 28px;
    }

    .collection-description {
        font-size: 13px;
    }

    .collection-category-block {
        margin-bottom: 42px;
    }

    .collection-category-title {
        font-size: 20px;
    }

    .collection-products-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .collection-product-top {
        flex-direction: column;
        gap: 4px;
    }

    .collection-product-price {
        white-space: normal;
    }
}

/* Product grid responsiveness comes from `custom.css` (widget styles). */