/* WP Product Catalog Frontend Styles */

.wpc-catalog {
    margin: 20px 0;
    padding: 20px 0;
}

.wpc-filters {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.wpc-filters h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.wpc-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.wpc-filter-btn {
    display: inline-block;
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.wpc-filter-btn:hover {
    background: #f0f0f0;
    border-color: #999;
    color: #333;
    text-decoration: none;
}

.wpc-filter-btn.active {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.wpc-sub-filter {
    font-size: 12px;
    padding: 4px 10px;
    margin-left: 20px;
}

.wpc-subcategory-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.wpc-products-grid {
    display: grid;
    gap: 0; /* Remove gap for gallery effect */
    margin-top: 20px;
}

.wpc-products-grid[data-columns="1"] { grid-template-columns: repeat(1, 1fr); }
.wpc-products-grid[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.wpc-products-grid[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.wpc-products-grid[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
.wpc-products-grid[data-columns="5"] { grid-template-columns: repeat(5, 1fr); }
.wpc-products-grid[data-columns="6"] { grid-template-columns: repeat(6, 1fr); }

/* Center items when row has fewer items than columns */
.wpc-products-grid { align-items: start; }
.wpc-products-grid > .wpc-product-card { justify-self: stretch; }

/* Force maximum 6 equal columns for product gallery layout (gapless) */
.wpc-products-fixed-cols,
.wpc-products-gallery {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 0 !important; /* No gaps between images */
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

/* Responsive: gradually reduce columns; mobile uses 2 columns per request */
@media (max-width: 1200px) {
    .wpc-products-fixed-cols,
    .wpc-products-gallery { grid-template-columns: repeat(4, 1fr) !important; }
}

@media (max-width: 992px) {
    .wpc-products-fixed-cols,
    .wpc-products-gallery { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 768px) {
    /* Mobile/tablet: 2 columns (as requested) */
    .wpc-products-fixed-cols,
    .wpc-products-gallery { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
    .wpc-products-fixed-cols,
    .wpc-products-gallery { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Gallery-specific card adjustments to eliminate gaps/rounding and ensure full-bleed images */
.wpc-products-gallery .wpc-product-card {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
}

/* Clean CSS Grid: 4 columns desktop, 2 mobile, no breaking */
.wpc-clean-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 20px 0;
    width: 100%;
}

.wpc-clean-grid .wpc-product-card {
    display: block;
    width: 100%;
    margin: 8px; /* 8px margin as requested */
    padding: 6px; /* 6px padding as requested */
    border: 1px solid #f0f0f0; /* Soft border as requested */
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.wpc-clean-grid .wpc-product-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #e0e0e0;
}

.wpc-clean-grid .wpc-product-image {
    width: 100%;
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}

.wpc-clean-grid .wpc-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
}

.wpc-clean-grid .wpc-product-card:hover .wpc-product-image img {
    transform: scale(1.05);
}

/* Product title overlay - hidden by default, shown on hover */
.wpc-clean-grid .wpc-product-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.wpc-clean-grid .wpc-product-card:hover .wpc-product-title-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile: 2 columns */
@media (max-width: 768px) {
    .wpc-clean-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wpc-clean-grid .wpc-product-card {
        margin: 4px; /* Reduced margin on mobile */
        padding: 4px; /* Reduced padding on mobile */
    }
}

.wpc-products-gallery .wpc-product-image {
    padding-top: 100% !important; /* enforce 1:1 */
    height: 0; /* rely on padding-top trick */
    margin: 0 !important;
}

.wpc-products-gallery .wpc-product-image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Compact product card: max 25% width, title overlay on image */
.wpc-product-compact {
    max-width: 25%;
    box-shadow: none;
    border: none;
}

.wpc-product-image-compact {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.wpc-product-image-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.wpc-product-title-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.95);
    font-weight: 700;
    text-align: center;
    padding: 10px;
    opacity: 0;
    background: rgba(0,0,0,0.35);
    transition: opacity 0.25s ease, background 0.25s ease;
}

.wpc-product-title-overlay.no-image {
    background: rgba(0,0,0,0.7);
    color: #fff;
    opacity: 1;
}

.wpc-product-compact:hover .wpc-product-image-compact img {
    transform: scale(1.05);
}

.wpc-product-compact:hover .wpc-product-title-overlay {
    opacity: 1;
    background: rgba(0,0,0,0.5);
}

/* Remove product description and action styles when compact */
.wpc-product-compact .wpc-product-content,
.wpc-product-compact .wpc-product-excerpt,
.wpc-product-compact .wpc-product-actions {
    display: none !important;
}

@media (max-width: 1024px) {
    .wpc-product-compact { max-width: 33.3333%; }
}

@media (max-width: 768px) {
    .wpc-product-compact { max-width: 100%; }
}

.wpc-product-card {
    background: #fff;
    border: none; /* Remove border as requested */
    border-radius: 0; /* Remove border radius for gallery effect */
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: unset; /* Remove fixed height for gallery */
    margin: 0; /* Remove margins */
    padding: 0; /* Remove padding */
}

.wpc-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(16,24,40,0.08);
}

.wpc-product-card .wpc-product-image {
    width: 100%;
    /* Change from 3:4 to 1:1 aspect ratio as requested */
    aspect-ratio: 1 / 1;
    /* Fallback for older browsers: padding-top = (height/width)*100% = (1/1)*100% = 100% */
    position: relative;
    padding-top: 100%;
    display: block;
    overflow: hidden;
    background: #fafafa;
    margin: 0; /* Remove margins */
    padding: 0; /* Remove padding for the container */
}

/* Gallery mode - hide content for pure image grid */
.wpc-products-gallery .wpc-product-card .wpc-product-content,
.wpc-products-gallery .wpc-product-card .wpc-product-title,
.wpc-products-gallery .wpc-product-card .wpc-product-excerpt,
.wpc-products-gallery .wpc-product-card .wpc-product-actions {
    display: none !important;
}

.wpc-products-gallery .wpc-product-card .wpc-product-image {
    padding-top: 100% !important; /* Ensure 1:1 ratio */
    margin: 0 !important;
}

.wpc-product-card .wpc-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* hide product content completely in gallery layout */
.wpc-products-gallery .wpc-product-card .wpc-product-content {
    display: none !important;
}

.wpc-product-card .wpc-product-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    text-align: center;
}

.wpc-product-card .wpc-product-excerpt {
    color: #6b7280;
    font-size: 14px;
    text-align: center;
}

.wpc-product-actions { margin-top: 12px; }

/* Ensure buttons span nicely inside card */
.wpc-view-product, .wpc-view-details { width: 100%; }

/* Category / Subcategory photo block */
.wpc-item-photo {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpc-item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wpc-product-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.wpc-product-category {
    background: #0073aa;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}

.wpc-product-subcategory {
    font-style: italic;
    margin-left: 5px;
}

.wpc-product-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

    /* RFQ full-width row under product detail */
    .wpc-rfq-full {
        margin-top: 20px;
        padding: 16px;
        border: 1px solid #e6e6e6;
        background: #fff;
        border-radius: 6px;
    }

    .wpc-rfq-full h3 {
        margin-top: 0;
        margin-bottom: 12px;
    }

    .wpc-rfq-row {
        display: flex;
        gap: 12px;
        margin-bottom: 12px;
    }

    .wpc-rfq-row input[type="text"],
    .wpc-rfq-row input[type="email"],
    .wpc-rfq-row input[type="tel"],
    .wpc-rfq-row input[type="number"] {
        flex: 1 1 0;
        padding: 8px 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    .wpc-rfq-full textarea {
        width: 100%;
        padding: 8px 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        resize: vertical;
        margin-bottom: 12px;
    }

    .wpc-rfq-submit {
        background: #0073aa;
        color: #fff;
        border: none;
        padding: 10px 16px;
        border-radius: 4px;
        cursor: pointer;
    }

    @media (max-width: 768px) {
        .wpc-product-detail {
            flex-direction: column;
        }
        .wpc-rfq-row {
            flex-direction: column;
        }
    }

.wpc-view-details {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    width: 100%;
}

.wpc-view-details:hover {
    background: #005a87;
}

.wpc-no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Modal Styles */
.wpc-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s ease;
}

.wpc-modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

.wpc-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.wpc-modal-close:hover {
    color: #333;
}

.wpc-modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.wpc-product-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
}

.wpc-product-detail-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.wpc-product-detail-content h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 24px;
}

.wpc-product-detail-meta {
    margin-bottom: 20px;
    font-size: 14px;
}

.wpc-category {
    background: #0073aa;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.wpc-subcategory {
    color: #666;
    font-style: italic;
    margin-left: 5px;
}

.wpc-product-detail-description {
    color: #555;
    line-height: 1.6;
    font-size: 15px;
}

.wpc-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hierarchical View Styles */
.wpc-catalog.hierarchical {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Add consistent page margins for all main sections */
.wpc-section-header,
.wpc-grid,
.wpc-products-grid,
.wpc-products-container,
.wpc-filters {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Ensure all page containers have consistent spacing */
.wrap .wpc-catalog,
.wpc-catalog-wrapper {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Add consistent spacing for product detail pages */
.wpc-product-detail {
    margin-top: 20px;
    margin-bottom: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Ensure modal content has consistent spacing */
.wpc-modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Ensure RFQ sections maintain spacing */
.wpc-rfq-section {
    margin-top: 20px;
    margin-bottom: 20px;
}

.wpc-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.wpc-section-header h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
    color: #333;
}

.wpc-section-header p {
    font-size: 1.1em;
    color: #666;
    margin: 0;
}

.wpc-grid {
    display: grid;
    gap: 25px;
    margin: 20px 0;
}

.wpc-grid[data-columns="3"] {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.wpc-grid[data-columns="4"] {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.wpc-grid[data-columns="5"] {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.wpc-grid-item {
    background: #fff;
    border: none; /* Remove border for products */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    cursor: pointer;
}

.wpc-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #0073aa;
}

.wpc-item-photo {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.wpc-item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wpc-grid-item:hover .wpc-item-photo img {
    transform: scale(1.05);
}

.wpc-item-content {
    padding: 20px;
}

.wpc-item-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.3;
}

.wpc-item-description {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 15px;
}

.wpc-item-meta {
    margin-bottom: 15px;
    font-size: 0.85em;
}

.wpc-count {
    background: #e3f2fd;
    color: #1976d2;
    padding: 3px 8px;
    border-radius: 12px;
    margin-right: 8px;
    font-weight: 500;
}

.wpc-view-btn {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.wpc-view-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #004766 100%);
    transform: translateY(-1px);
}

.wpc-view-btn .dashicons {
    font-size: 16px;
}

/* Products List Layout */
.wpc-products-container {
    max-width: 1200px;
    margin: 0 auto;
}

.wpc-product-row {
    background: #fff;
    border: none; /* Remove border for products */
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 200px;
}

.wpc-product-left {
    background: #f8f9fa;
}

.wpc-product-photo {
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.wpc-product-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wpc-product-right {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
}

.wpc-product-title {
    font-size: 1.6em;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #333;
}

.wpc-product-meta {
    margin-bottom: 20px;
    font-size: 0.9em;
}

.wpc-category {
    background: #0073aa;
    color: #fff;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 500;
    font-size: 0.85em;
}

.wpc-subcategory {
    color: #666;
    margin-left: 8px;
    font-style: italic;
}

.wpc-product-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.wpc-product-description h1,
.wpc-product-description h2,
.wpc-product-description h3,
.wpc-product-description h4,
.wpc-product-description h5,
.wpc-product-description h6 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* RFQ Form Styles */
.wpc-rfq-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.wpc-rfq-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.wpc-rfq-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpc-rfq-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wpc-rfq-form input,
.wpc-rfq-form textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.wpc-rfq-form input:focus,
.wpc-rfq-form textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

.wpc-rfq-submit {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.wpc-rfq-submit:hover {
    background: #218838;
    transform: translateY(-1px);
}

.wpc-rfq-submit:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.wpc-rfq-loading .spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Direct products item */
.wpc-direct-products {
    border: 2px dashed #0073aa;
    background: linear-gradient(135deg, rgba(0,115,170,0.05) 0%, rgba(0,115,170,0.1) 100%);
}

.wpc-direct-products .wpc-item-content {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wpc-filters {
        padding: 15px;
    }
    
    .wpc-category-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wpc-filter-btn {
        text-align: center;
    }
    
    .wpc-sub-filter {
        margin-left: 0;
    }
    
    .wpc-products-grid {
        grid-template-columns: 1fr !important;
    }
    
    .wpc-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .wpc-product-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wpc-product-detail-content h2 {
        font-size: 20px;
    }
    
    /* Hierarchical mobile responsive */
    .wpc-catalog.hierarchical {
        padding: 15px;
    }
    
    .wpc-section-header h2 {
        font-size: 1.8em;
    }
    
    .wpc-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .wpc-product-row {
        grid-template-columns: 1fr;
    }
    
    .wpc-product-left {
        min-height: 200px;
    }
    
    .wpc-product-right {
        padding: 20px;
    }
    
    .wpc-product-title {
        font-size: 1.3em;
    }
    
    .wpc-rfq-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .wpc-rfq-section {
        padding: 15px;
    }
}

/* Product Card Styles for Grid View */
.wpc-product-card {
    background: #fff;
    border: none; /* Remove border as requested */
    border-radius: 0; /* Remove border radius for gallery */
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0; /* Remove margins */
    padding: 0; /* Remove padding */
}

.wpc-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.wpc-product-card .wpc-product-image {
    width: 100%;
    height: auto; /* Changed from fixed 200px */
    overflow: hidden;
    background: #f5f5f5;
    /* Change to 1:1 aspect ratio for consistency */
    aspect-ratio: 1 / 1;
    position: relative;
    margin: 0;
    padding: 0;
}

.wpc-product-card .wpc-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wpc-product-card:hover .wpc-product-image img {
    transform: scale(1.05);
}

.wpc-product-card .wpc-product-content {
    padding: 15px;
}

.wpc-product-card .wpc-product-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    line-height: 1.3;
}

.wpc-product-card .wpc-product-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.wpc-product-card .wpc-product-actions {
    margin-top: 15px;
}

.wpc-view-product {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.wpc-view-product:hover {
    background: #005a87;
}

/* Product Detail View Styles */
.wpc-product-detail {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.wpc-product-detail-left {
    flex: 1;
    max-width: 500px;
}

.wpc-product-detail-right {
    flex: 1;
    min-width: 300px;
}

.wpc-product-image-large {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.wpc-product-image-large img {
    width: 100%;
    height: auto;
    display: block;
}

.wpc-product-detail .wpc-product-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #333;
}

/* Adjust product detail layout for centered look and spacing */
.wpc-product-detail-left { display:flex; align-items:flex-start; }
.wpc-product-detail-right { display:flex; flex-direction:column; }

/* RFQ form inputs styling inside detail */
.wpc-product-detail .wpc-rfq-form input,
.wpc-product-detail .wpc-rfq-form textarea { border: 1px solid #e5e7eb; }

.wpc-product-detail .wpc-product-meta {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.wpc-product-detail .wpc-product-description {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #444;
}

.wpc-product-detail .wpc-rfq-section {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.wpc-product-detail .wpc-rfq-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
}

.wpc-product-not-found {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.wpc-product-not-found h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

/* Enhanced RFQ Form Styles for Product Detail */
.wpc-product-detail .wpc-rfq-form .wpc-rfq-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.wpc-product-detail .wpc-rfq-form input,
.wpc-product-detail .wpc-rfq-form textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.wpc-product-detail .wpc-rfq-form textarea {
    resize: vertical;
    min-height: 100px;
}

.wpc-product-detail .wpc-rfq-submit {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.wpc-product-detail .wpc-rfq-submit:hover {
    background: #005a87;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wpc-product-detail {
        flex-direction: column;
        gap: 20px;
    }
    
    .wpc-product-detail-left,
    .wpc-product-detail-right {
        flex: none;
        max-width: none;
    }
    
    .wpc-product-detail .wpc-product-title {
        font-size: 24px;
    }
    
    .wpc-product-detail .wpc-rfq-form .wpc-rfq-row {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .wpc-modal-content {
        width: 98%;
        margin: 5% auto;
    }
    
    .wpc-modal-body {
        padding: 15px;
    }
    
    .wpc-product-content {
        padding: 12px;
    }
    
    .wpc-product-title {
        font-size: 16px;
    }
    
    .wpc-product-detail .wpc-rfq-section {
        padding: 15px;
    }
}