/**
 * Frontend Styles
 * 
 * @package ProductCatalog
 */

/* Product Single */
.pc-product-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.pc-product-header {
    margin-bottom: 20px;
}

.pc-product-header h1 {
    display: inline-block;
    margin-right: 15px;
}

.pc-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.pc-badge-featured {
    background: #f0ad4e;
    color: #fff;
}

.pc-badge-recommended {
    background: #5cb85c;
    color: #fff;
}

.pc-product-excerpt {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.pc-product-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .pc-product-content {
        grid-template-columns: 1fr;
    }
}

.pc-product-sidebar {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

.pc-product-sidebar > div {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.pc-product-sidebar > div:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pc-product-price {
    text-align: center;
}

.pc-price-value {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    margin: 10px 0;
}

.pc-price-netto {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
}

.pc-product-categories ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.pc-product-categories li {
    margin-bottom: 5px;
}

/* Product Archive */
.pc-products-archive,
.pc-brands-archive,
.pc-categories-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Products Header */
.pc-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.pc-products-header h2 {
    margin: 0;
}

.pc-products-count {
    background: #f0f0f1;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: #50575e;
    font-weight: 600;
}

/* No Products Message */
.pc-no-products {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 5px;
    margin: 30px 0;
}

.pc-no-products p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

.pc-products-grid,
.pc-brands-grid,
.pc-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.pc-product-card,
.pc-brand-card,
.pc-category-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pc-product-card:hover,
.pc-brand-card:hover,
.pc-category-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #3498db;
    transform: translateY(-2px);
}

.pc-product-card .pc-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.pc-product-card h3,
.pc-brand-card h3,
.pc-category-card h3 {
    margin-top: 0;
    font-size: 18px;
    line-height: 1.4;
    min-height: 50px;
}

.pc-product-card h3 a,
.pc-brand-card h3 a,
.pc-category-card h3 a {
    text-decoration: none;
    color: #2c3e50;
}

.pc-product-card h3 a:hover,
.pc-brand-card h3 a:hover,
.pc-category-card h3 a:hover {
    color: #3498db;
}

/* Product Excerpt */
.pc-product-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 10px 0;
    flex-grow: 1;
}

/* Product Meta */
.pc-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
    font-size: 13px;
}

.pc-product-sku {
    background: #f0f0f1;
    padding: 3px 10px;
    border-radius: 3px;
    color: #50575e;
    font-weight: 600;
}

.pc-product-availability {
    padding: 3px 10px;
    border-radius: 3px;
    font-weight: 600;
}

.pc-product-price {
    font-size: 24px;
    color: #27ae60;
    margin: 15px 0;
}

.pc-product-card .pc-product-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pc-product-card .pc-product-price strong {
    font-size: 22px;
}

.pc-price-netto {
    font-size: 14px;
    color: #95a5a6;
    font-weight: normal;
}

.pc-product-card .button,
.pc-brand-card .button,
.pc-category-card .button {
    display: inline-block;
    padding: 10px 20px;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.pc-product-card .button:hover,
.pc-brand-card .button:hover,
.pc-category-card .button:hover {
    background: #2980b9;
}

/* Brand Specific */
.pc-brand-logo {
    text-align: center;
    margin-bottom: 20px;
}

.pc-brand-logo img {
    max-width: 200px;
    height: auto;
}

.pc-brand-card .pc-brand-logo img {
    max-width: 150px;
}

/* Attributes Table */
.pc-attributes-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.pc-attributes-table th,
.pc-attributes-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.pc-attributes-table th {
    background: #f9f9f9;
    font-weight: bold;
    width: 30%;
}

/* Pagination */
.pc-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pc-pagination a {
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: #2c3e50;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.pc-pagination a:hover,
.pc-pagination a.current {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* Availability Status */
.pc-availability-in_stock {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pc-availability-out_of_stock {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pc-availability-pre_order {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.pc-availability-discontinued {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* Product card badge positioning */
.pc-product-card .pc-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1;
}

/* Subcategories */
.pc-subcategories-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.pc-subcategories-list li a {
    display: block;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.pc-subcategories-list li a:hover {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* Product Gallery */
.pc-product-gallery {
    margin-bottom: 40px;
}

.pc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.pc-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    aspect-ratio: 1;
}

.pc-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pc-gallery-item:hover img {
    transform: scale(1.1);
}

.pc-gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Product Files */
.pc-product-files {
    margin: 40px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.pc-product-files h2 {
    margin-top: 0;
}

.pc-files-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.pc-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.pc-file-item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pc-file-item .dashicons {
    font-size: 24px;
    color: #666;
}

.pc-file-item a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
}

.pc-file-item a:hover {
    color: #3498db;
}

