/**
 * Single vinyl pattern detail page styles.
 * Scoped under .poolwebs-vinyl-detail to avoid Flatsome .container conflicts.
 */

.poolwebs-vinyl-detail {
    padding: 40px 0;
    background: #f9f9f9;
}

.poolwebs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumbs */
.poolwebs-breadcrumbs {
    margin-bottom: 30px;
    font-size: 0.9em;
    color: #666;
}

.poolwebs-breadcrumbs a {
    color: #0073aa;
    text-decoration: none;
}

.poolwebs-breadcrumbs a:hover {
    text-decoration: underline;
}

.poolwebs-breadcrumbs .separator {
    margin: 0 10px;
    color: #ccc;
}

.poolwebs-breadcrumbs .current {
    color: #333;
}

/* Main Content */
.poolwebs-vinyl-detail .pattern-detail-content {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.poolwebs-vinyl-detail .pattern-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

@media (max-width: 968px) {
    .poolwebs-vinyl-detail .pattern-main {
        grid-template-columns: 1fr;
    }
}

/* Images Section */
.poolwebs-vinyl-detail .pattern-images {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.poolwebs-vinyl-detail .main-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.poolwebs-vinyl-detail .main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.poolwebs-vinyl-detail .no-image-placeholder {
    color: #999;
    font-size: 1.2em;
    padding: 60px;
}

/* Gallery */
.poolwebs-vinyl-detail .pattern-gallery h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #333;
}

.poolwebs-vinyl-detail .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.poolwebs-vinyl-detail .gallery-item {
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.poolwebs-vinyl-detail .gallery-item:hover {
    transform: scale(1.05);
}

.poolwebs-vinyl-detail .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pattern Details */
.poolwebs-vinyl-detail .pattern-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.poolwebs-vinyl-detail .pattern-title {
    font-size: 2.5em;
    margin: 0;
    color: #333;
    line-height: 1.2;
}

.poolwebs-vinyl-detail .pattern-tile-name,
.poolwebs-vinyl-detail .pattern-floor-name {
    display: block;
}

.poolwebs-vinyl-detail .pattern-specs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 25px;
    background: #f8f8f8;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

/* Cancel the parent flex gap so the toggle sits right under the specs table. */
.poolwebs-vinyl-detail .pattern-specs-more {
    margin-top: -22px;
}

.poolwebs-vinyl-detail .pattern-specs-more summary {
    display: inline-block;
    cursor: pointer;
    font-weight: 600;
    color: #0073aa;
    list-style: none;
}

.poolwebs-vinyl-detail .pattern-specs-more summary::-webkit-details-marker {
    display: none;
}

.poolwebs-vinyl-detail .pattern-specs-more summary::after {
    content: " \25BE";
    font-size: 0.9em;
}

.poolwebs-vinyl-detail .pattern-specs-more[open] summary::after {
    content: " \25B4";
}

.poolwebs-vinyl-detail .pattern-specs-more summary:hover {
    color: #005a87;
}

.poolwebs-vinyl-detail .pattern-specs-more[open] .more-label-closed {
    display: none;
}

.poolwebs-vinyl-detail .pattern-specs-more:not([open]) .more-label-open {
    display: none;
}

.poolwebs-vinyl-detail .pattern-specs-additional {
    margin-top: 12px;
}

.poolwebs-vinyl-detail .spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.poolwebs-vinyl-detail .spec-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.poolwebs-vinyl-detail .spec-label {
    font-weight: 600;
    color: #555;
    font-size: 1em;
}

.poolwebs-vinyl-detail .spec-value {
    font-size: 1.1em;
    color: #333;
}

.poolwebs-vinyl-detail .stock-status {
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

.poolwebs-vinyl-detail .stock-in-stock {
    background: #d4edda;
    color: #155724;
}

.poolwebs-vinyl-detail .stock-out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

.poolwebs-vinyl-detail .stock-limited,
.poolwebs-vinyl-detail .stock-2-weeks {
    background: #ff9900;
    color: #fff;
}

.poolwebs-vinyl-detail .stock-4-weeks {
    background: #ff00ff;
    color: #fff;
}

.poolwebs-vinyl-detail .stock-4-weeks-1 {
    background: #d83131;
    color: #fff;
}

/* Description */
.poolwebs-vinyl-detail .pattern-description {
    line-height: 1.8;
}

.poolwebs-vinyl-detail .pattern-description h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
}

/* Call to Action */
.poolwebs-vinyl-detail .pattern-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.poolwebs-vinyl-detail .btn {
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
}

.poolwebs-vinyl-detail .btn-primary {
    background: #0073aa;
    color: white;
}

.poolwebs-vinyl-detail .btn-primary:hover {
    background: #005a87;
}

.poolwebs-vinyl-detail .btn-secondary {
    background: white;
    color: #0073aa;
    border: 2px solid #0073aa;
}

.poolwebs-vinyl-detail .btn-secondary:hover {
    background: #0073aa;
    color: white;
}

.poolwebs-vinyl-detail .btn-visualizer {
    border: 2px solid;
    transition: opacity 0.2s;
}

.poolwebs-vinyl-detail .btn-visualizer:hover {
    opacity: 0.85;
}

/* Detail Page Text */
.poolwebs-vinyl-detail .detail-page-text {
    padding: 40px;
    border-top: 1px solid #e0e0e0;
    font-size: 1.15em;
    line-height: 1.8;
    color: #555;
}

.poolwebs-vinyl-detail .detail-page-text h2,
.poolwebs-vinyl-detail .detail-page-text h3 {
    color: #333;
}

.poolwebs-vinyl-detail .detail-page-text img {
    max-width: 100%;
    height: auto;
}

