/**
 * Gortex Product Catalog Frontend Styles
 */

/* Container */
.gortex-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Product Grid */
.gortex-product-grid {
    display: grid;
    gap: 30px;
}

.gortex-product-grid.gortex-columns-1 { grid-template-columns: 1fr; }
.gortex-product-grid.gortex-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gortex-product-grid.gortex-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gortex-product-grid.gortex-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gortex-product-grid.gortex-columns-6 { grid-template-columns: repeat(6, 1fr); }

@media screen and (max-width: 1200px) {
    .gortex-product-grid.gortex-columns-4 { grid-template-columns: repeat(3, 1fr); }
    .gortex-product-grid.gortex-columns-6 { grid-template-columns: repeat(4, 1fr); }
}

@media screen and (max-width: 992px) {
    .gortex-product-grid.gortex-columns-3,
    .gortex-product-grid.gortex-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .gortex-product-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Product Card */
.gortex-product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.gortex-product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.gortex-product-card__image {
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gortex-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gortex-product-card:hover .gortex-product-card__image img {
    transform: scale(1.05);
}

.gortex-product-card__content {
    padding: 20px;
}

.gortex-product-card__title {
    margin: 0 0 8px;
    font-size: 1.2em;
    line-height: 1.3;
}

.gortex-product-card__title a {
    color: #333;
    text-decoration: none;
}

.gortex-product-card__title a:hover {
    color: #0073aa;
}

.gortex-product-card__type {
    display: block;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.gortex-product-card__category {
    display: inline-block;
    font-size: 0.85em;
    color: #0073aa;
    margin-top: 8px;
}

.gortex-product-card__category a {
    color: inherit;
    text-decoration: none;
}

.gortex-product-card__category a:hover {
    text-decoration: underline;
}

.gortex-product-card__dimensions {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}

/* Single Product Page */
.gortex-single-product-page {
    padding: 40px 0;
}

.gortex-product-single__header {
    margin-bottom: 40px;
    text-align: center;
}

.gortex-product-single__type {
    display: inline-block;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 10px;
}

.gortex-product-single__title {
    font-size: 2.5em;
    margin: 0 0 15px;
    line-height: 1.2;
}

.gortex-product-single__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media screen and (max-width: 992px) {
    .gortex-product-single__content {
        grid-template-columns: 1fr;
    }
}

.gortex-product-single__gallery {
    position: relative;
}

.gortex-product-single__featured-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.gortex-product-single__featured-image img {
    width: 100%;
    height: auto;
}

.gortex-product-single__info {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.gortex-product-single__dimensions h3,
.gortex-product-single__descriptions h3 {
    font-size: 1.2em;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.gortex-dimensions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

@media screen and (max-width: 576px) {
    .gortex-dimensions-grid {
        grid-template-columns: 1fr;
    }
}

.gortex-dimension {
    text-align: center;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.gortex-dimension__label {
    display: block;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 5px;
}

.gortex-dimension__value {
    display: block;
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
}

.gortex-product-single__description {
    margin-top: 30px;
}

.gortex-product-single__description p {
    line-height: 1.7;
    color: #444;
}

/* Gallery Styles */
.gortex-gallery {
    position: relative;
}

.gortex-gallery--slider {
    overflow: hidden;
    border-radius: 8px;
}

.gortex-gallery-slide {
    position: relative;
}

.gortex-gallery-slide img,
.gortex-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gortex-gallery--grid,
.gortex-gallery--masonry {
    display: grid;
    gap: 10px;
}

.gortex-gallery--columns-2 { grid-template-columns: repeat(2, 1fr); }
.gortex-gallery--columns-3 { grid-template-columns: repeat(3, 1fr); }
.gortex-gallery--columns-4 { grid-template-columns: repeat(4, 1fr); }
.gortex-gallery--columns-5 { grid-template-columns: repeat(5, 1fr); }
.gortex-gallery--columns-6 { grid-template-columns: repeat(6, 1fr); }

@media screen and (max-width: 768px) {
    .gortex-gallery--columns-3,
    .gortex-gallery--columns-4,
    .gortex-gallery--columns-5,
    .gortex-gallery--columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .gortex-gallery--grid,
    .gortex-gallery--masonry {
        grid-template-columns: 1fr !important;
    }
}

.gortex-gallery-item {
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.gortex-gallery-item img {
    transition: transform 0.3s ease;
}

.gortex-gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
a.gortex-lightbox {
    display: block;
    cursor: zoom-in;
}

/* Attributes Table */
.gortex-attributes-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.gortex-attributes-table th,
.gortex-attributes-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.gortex-attributes-table th {
    font-weight: 600;
    background: #f5f5f5;
    width: 40%;
    color: #333;
}

.gortex-attributes-table td {
    color: #666;
}

.gortex-attributes-table tr:last-child th,
.gortex-attributes-table tr:last-child td {
    border-bottom: none;
}

.gortex-attributes-table tr:hover td {
    background: #fafafa;
}

/* Related Products */
.gortex-related-products {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.gortex-related-products h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
    text-align: center;
}

/* Categories List */
.gortex-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gortex-categories-list li {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.gortex-categories-list li:last-child {
    border-bottom: none;
}

.gortex-categories-list a {
    text-decoration: none;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gortex-categories-list a:hover {
    color: #0073aa;
}

.gortex-categories-list .count {
    color: #666;
    font-size: 0.9em;
}

/* Pagination */
.gortex-pagination {
    margin-top: 40px;
}

.gortex-pagination .page-numbers {
    display: flex;
    justify-content: center;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gortex-pagination .page-numbers li {
    display: inline-block;
}

.gortex-pagination .page-numbers a,
.gortex-pagination .page-numbers span {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.gortex-pagination .page-numbers a:hover {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.gortex-pagination .page-numbers .current {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

/* No Products */
.gortex-no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1em;
}

/* Utility Classes */
.gortex-product-title,
.gortex-product-type,
.gortex-product-dimensions,
.gortex-product-category,
.gortex-product-description,
.gortex-product-featured-image,
.gortex-product-width,
.gortex-product-height,
.gortex-product-depth,
.gortex-product-seat-height,
.gortex-product-sleeping-area,
.gortex-product-load-capacity,
.gortex-product-legs,
.gortex-product-sleeping-function,
.gortex-product-movable-headrests,
.gortex-product-leg-color {
    display: inline-block;
}

/* Archive Header */
.gortex-archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.gortex-archive-title {
    font-size: 2.5em;
    margin: 0 0 15px;
}

.gortex-archive-description {
    font-size: 1.1em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}
