/* Product Mockup Preview Styles - Layout matching reference image */
.pmp-mockup-container {
    margin: 30px 0;
    background: #fff;
}

/* Main content wrapper - side by side layout */
.pmp-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Left side - Mockup preview */
.pmp-mockup-section {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
}

.pmp-mockup-wrapper {
    position: relative;
    max-width: 90%;
    width: 100%;
    background: transparent;
}

.pmp-mockup-skin {
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1;
}

.pmp-mockup-base {
    position: relative;
    z-index: 2;
    /* Remove any background to allow transparency */
    background: transparent;
}

/* Right side - Selection area */
.pmp-selection-section {
    flex: 1;
    min-width: 300px;
}

.pmp-section-title {
    margin: 0 0 20px 0;
    font-size: 1.8em;
    font-weight: 400;
    color: #333;
    line-height: 1.2;
}

/* Textures label */
.pmp-selected-label {
    margin-bottom: 15px;
    font-size: 16px;
    color: #666;
}

#pmp-current-selection {
    color: #333;
}

/* Skin fit controls */
.pmp-fit-controls {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.pmp-fit-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.pmp-fit-select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.pmp-fit-select:focus {
    outline: none;
    border-color: #333;
}

.pmp-fit-select:hover {
    border-color: #999;
}

/* All categories container */
.pmp-all-categories {
    margin-bottom: 25px;
}

.pmp-category-section {
    margin-bottom: 25px;
}

.pmp-category-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
}

/* Category skins grid */
.pmp-category-skins {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 12px;
    max-width: 400px;
}

.pmp-skin-item {
    aspect-ratio: 1;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
}

.pmp-skin-item:hover {
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pmp-skin-item.selected {
    border-color: #333;
    box-shadow: 0 0 0 2px #333;
}

.pmp-skin-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pmp-skin-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px;
    font-size: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pmp-skin-item:hover .pmp-skin-name {
    opacity: 1;
}

/* Loading and empty states */
.pmp-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

#pmp-initial-loading {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.pmp-empty {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
    grid-column: 1 / -1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pmp-content-wrapper {
        flex-direction: column;
        gap: 25px;
    }
    
    .pmp-mockup-section {
        flex: none;
        align-self: center;
    }
    
    .pmp-mockup-wrapper {
        max-width: 250px;
    }
    
    .pmp-selection-section {
        min-width: auto;
    }
    
    .pmp-section-title {
        font-size: 1.5em;
        text-align: center;
    }
    
    .pmp-category-skins {
        grid-template-columns: repeat(5, 1fr);
        max-width: none;
    }
}

@media (max-width: 480px) {
    .pmp-mockup-wrapper {
        max-width: 200px;
    }
    
    .pmp-category-skins {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .pmp-section-title {
        font-size: 1.3em;
    }
}