/* WowPlatter Shop Styles */

/* Full Width Layout Override for WordPress Themes */
body.wowplatter-full-width .site-content,
body.wowplatter-full-width .content-area,
body.wowplatter-full-width .main-content,
body.wowplatter-full-width .container,
body.wowplatter-full-width .container-fluid,
body.wowplatter-full-width .page-wrapper,
body.wowplatter-full-width .entry-content,
body.wowplatter-full-width .post-content,
body.wowplatter-full-width .page-content {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Enhanced Flatsome Theme Specific Overrides */
body.wowplatter-full-width .page-wrapper,
body.wowplatter-full-width .container,
body.wowplatter-full-width .row-container,
body.wowplatter-full-width .section-content,
body.wowplatter-full-width #main .container,
body.wowplatter-full-width .main-content .container,
body.wowplatter-full-width .page-inner,
body.wowplatter-full-width .page-content .container,
body.wowplatter-full-width .entry-content .container,
body.wowplatter-full-width .row,
body.wowplatter-full-width .row-inner,
body.wowplatter-full-width .section-content .container {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Force full width on Flatsome's main content areas */
body.wowplatter-full-width #main,
body.wowplatter-full-width .main-content,
body.wowplatter-full-width .page-inner,
body.wowplatter-full-width .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove any theme padding/margins on full width pages */
body.wowplatter-full-width .page,
body.wowplatter-full-width .single,
body.wowplatter-full-width .archive {
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure WowPlatter content takes full width */
body.wowplatter-full-width .wowplatter-items-component,
body.wowplatter-full-width .wowplatter-header,
body.wowplatter-full-width .items-container {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Override Flatsome's default container constraints with higher specificity */
body.wowplatter-full-width.wowplatter-records-page .container,
body.wowplatter-full-width.wowplatter-records-page .row,
body.wowplatter-full-width.wowplatter-records-page .section-content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Force viewport width for ultimate override */
body.wowplatter-full-width .wowplatter-items-component {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Ensure content within the component has proper spacing */
body.wowplatter-full-width .wowplatter-items-component > * {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Exception for elements that should truly be full width */
body.wowplatter-full-width .wowplatter-items-component .items-grid,
body.wowplatter-full-width .wowplatter-items-component .items-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Legacy Shop Page Layout - merged from wowplatter-shop.css */
.wowplatter-shop-page {
    padding: 2rem 0;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.wowplatter-page-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Legacy Search and Filters */
.wowplatter-search-filters {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
}

/* Legacy item card styles removed - now handled by items.css */

/* Legacy Buttons */
.btn-wantlist {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border: none;
    color: white;
    transition: transform 0.2s ease;
}

.btn-wantlist:hover {
    transform: translateY(-2px);
    color: white;
}

/* Pagination styles moved to items.css for centralization */
.wowplatter-shop-compact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.wowplatter-shop-compact .container-fluid {
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
}

.shop-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.shop-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.user-welcome {
    color: #666;
    margin: 5px 0 0 0;
    font-size: 0.95rem;
}

.action-buttons .btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 25px;
    color: white;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.filters-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.search-section {
    display: flex;
    gap: 10px;
    align-items: end;
    margin-bottom: 15px;
}

.search-input-group {
    flex: 2;
}

.search-input-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
    display: block;
}

.search-input-group input {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
}

.search-input-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.filter-dropdowns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 6px;
    margin-bottom: 12px;
}

.filter-dropdown {
    position: relative;
    min-width: 110px;
}

.filter-dropdown select {
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    width: 100%;
    background: white;
    cursor: pointer;
    height: 32px;
}

.filter-dropdown select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    min-height: 16px;
}

.filter-bubble {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: fadeIn 0.3s ease;
    height: 24px;
}

.filter-bubble .remove-filter {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    transition: background 0.2s ease;
}

.filter-bubble .remove-filter:hover {
    background: rgba(255, 255, 255, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .filters-panel {
        padding: 10px;
    }
    
    .filter-dropdowns {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 4px;
    }
    
    .filter-dropdown select {
        font-size: 0.7rem;
        padding: 3px 6px;
        height: 28px;
    }
    
    .sort-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    
    .sort-controls select {
        min-width: auto;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .clear-filters-btn {
        height: 28px;
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    
    .vinyl-table th,
    .vinyl-table td {
        padding: 6px 4px;
        font-size: 0.65rem;
    }
    
    .vinyl-table .thumbnail {
        width: 40px;
        height: 40px;
    }
    
    .vinyl-text-table {
        min-width: 600px;
    }
    
    .vinyl-text-table thead th {
        padding: 6px 4px;
        font-size: 0.65rem;
    }
    
    .vinyl-text-table tbody td {
        padding: 4px 3px;
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .filter-dropdowns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vinyl-text-table {
        min-width: 500px;
    }
}

.filter-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Sort controls and search button styles moved to items.css for centralization */

.view-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

/* View button styles moved to items.css for centralization */

/* Vinyl table styles moved to items.css for centralization */

/* Text view specific styles moved to items.css for centralization */

/* Table Container for Responsive Design */
.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Text View Table Styles */
.vinyl-text-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    table-layout: auto;
}

.vinyl-text-table thead th {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: normal;
    word-wrap: break-word;
}

.vinyl-text-table thead th:hover {
    background: linear-gradient(135deg, #5855f7 0%, #7c3aed 100%);
    transform: translateY(-1px);
}

.vinyl-text-table thead th a {
    color: white;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

.vinyl-text-table thead th a:hover {
    color: white;
    text-decoration: underline;
}

.vinyl-text-table tbody td {
    padding: 8px 6px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
    font-size: 0.7rem;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
}

.vinyl-text-table tbody tr:hover {
    background: #f8f9ff;
}

.vinyl-text-table .text-title {
    font-weight: 600;
    color: #333;
    width: 20%;
    min-width: 150px;
}

.vinyl-text-table .text-title a {
    color: #333;
    text-decoration: none;
}

.vinyl-text-table .text-title a:hover {
    color: #667eea;
    text-decoration: underline;
}

.vinyl-text-table .text-artist {
    width: 18%;
    min-width: 120px;
}

.vinyl-text-table .text-artist a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.vinyl-text-table .text-artist a:hover {
    color: #764ba2;
}

.vinyl-text-table .text-genre {
    width: 15%;
    min-width: 100px;
}

.vinyl-text-table .text-style {
    width: 15%;
    min-width: 100px;
}

.vinyl-text-table .text-label {
    width: 12%;
    min-width: 80px;
}

.vinyl-text-table .text-year {
    width: 8%;
    min-width: 60px;
}

.vinyl-text-table .text-country {
    width: 8%;
    min-width: 60px;
}

.vinyl-text-table .text-format {
    width: 10%;
    min-width: 80px;
}

.vinyl-text-table .text-condition {
    width: 10%;
    min-width: 80px;
}

.vinyl-text-table .text-action {
    width: 8%;
    min-width: 60px;
}

.vinyl-text-table .text-price {
    font-weight: 600;
    color: #667eea;
    text-align: right;
}

.vinyl-text-table .condition-badge {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 500;
}

.vinyl-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.vinyl-list-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
    min-height: 40px;
    gap: 6px;
    flex-wrap: nowrap;
    width: 100%;
    overflow: hidden;
}

.vinyl-list-item:hover {
    background: #f8f9ff;
}

.vinyl-list-item:last-child {
    border-bottom: none;
}

.list-separator {
    color: #9ca3af;
    font-size: 10px;
    margin: 0 6px;
    flex-shrink: 0;
}

.list-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 180px;
    flex-shrink: 0;
}

.list-artist {
    color: #667eea;
    font-weight: 500;
    margin: 0;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 140px;
    flex-shrink: 0;
}

.list-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.list-meta {
    font-size: 0.65rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100px;
    flex-shrink: 0;
}

.list-meta a {
     color: #007bff;
     text-decoration: none;
 }
 
 .list-meta a:hover {
     text-decoration: underline;
 }
 
 .list-title a {
     color: #333;
     text-decoration: none;
     font-weight: bold;
 }
 
 .list-title a:hover {
     color: #007bff;
     text-decoration: underline;
 }

 .artist-link {
     color: #667eea;
     text-decoration: none;
     font-weight: 500;
     transition: color 0.2s ease;
 }
 
 .artist-link:hover {
     color: #764ba2;
     text-decoration: underline;
 }

.list-price {
    font-weight: 600;
    color: #667eea;
    font-size: 0.75rem;
    white-space: nowrap;
    width: 80px;
    flex-shrink: 0;
    text-align: right;
}

/* View mode display controls moved to items.css for centralization */

.results-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Wall view styles moved to items.css for centralization */

/* Vinyl grid and card styles moved to items.css for centralization */

@media (max-width: 768px) {
    .shop-header {
        text-align: center;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .vinyl-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .shop-title {
        font-size: 2rem;
    }
}