/**
 * BBWP Commerce - Professional Product Catalog CSS
 * Matching the exact design from the provided image
 */

/* Container and Layout */
.bbwp-commerce-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Archive Page Layout */
.bbwp-products-archive-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

.bbwp-archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
    letter-spacing: -0.025em;
}

/* Functional Filters Section - Professional and Clean */
.bbwp-product-filters-functional {
    margin: 20px 0;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
}

/* Search Row - Centered and Clean */
.bbwp-filter-search-row {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.bbwp-filter-search-row input {
    width: 100%;
    max-width: 400px;
    padding: 10px 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: white;
}

.bbwp-filter-search-row input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Filters Row - No View Toggle */
.bbwp-filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Filter Dropdowns */
.bbwp-filter-dropdowns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
}

.bbwp-filter-dropdown {
    position: relative;
}

.bbwp-category-filter {
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #495057;
    min-width: 140px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.bbwp-category-filter:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.bbwp-category-filter:hover {
    border-color: #007cba;
}

/* Filter Actions */
.bbwp-filter-actions {
    display: flex;
    align-items: center;
}

.bbwp-btn-clear-filters {
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.bbwp-btn-clear-filters:hover {
    background: #5a6268;
}

/* Results Count */
.bbwp-results-count {
    text-align: center;
    margin: 16px 0;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* Loading States */
.bbwp-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.bbwp-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bbwp-loading {
    position: relative;
    opacity: 0.7;
}

/* Error Messages */
.bbwp-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    margin: 16px 0;
    text-align: center;
}

.bbwp-error-message i {
    margin-right: 8px;
}

/* View Toggle - Professional Buttons */
.bbwp-view-toggle {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 24px 0;
    gap: 12px;
}

.bbwp-view-toggle span {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.bbwp-view-btn {
    padding: 10px 16px;
    border: 2px solid #e9ecef;
    background: white;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bbwp-view-btn:hover {
    background: #f8f9fa;
    border-color: #007cba;
    color: #007cba;
    text-decoration: none;
}

.bbwp-view-btn.active,
.bbwp-view-btn[class*="bg-blue"] {
    background: #007cba !important;
    border-color: #007cba !important;
    color: white !important;
}

/* Products Grid */
.bbwp-products-grid {
    display: grid;
    gap: 24px;
    margin: 32px 0;
}

.bbwp-products-grid.grid-view {
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
}

.bbwp-products-grid.list-view {
    grid-template-columns: 1fr;
}

/* Professional Product Cards - Exactly like the image */
.bbwp-product-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: fit-content;
    min-height: 300px;
}

.bbwp-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #007cba;
}

.bbwp-product-content {
    display: flex;
    align-items: stretch;
    min-height: 240px;
    padding: 20px;
}

/* Grid View - Horizontal Layout like the image */
.bbwp-products-grid.grid-view .bbwp-product-content {
    flex-direction: row;
}

.bbwp-products-grid.grid-view .bbwp-product-info {
    order: 1;
    flex: 1;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.bbwp-products-grid.grid-view .bbwp-product-image {
    order: 2;
    width: 200px;
    height: 200px;
    flex: 0 0 200px;
}

/* List View - Same as Grid for now */
.bbwp-products-grid.list-view .bbwp-product-content {
    flex-direction: row;
}

.bbwp-products-grid.list-view .bbwp-product-info {
    order: 1;
    flex: 1;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.bbwp-products-grid.list-view .bbwp-product-image {
    order: 2;
    width: 200px;
    height: 200px;
    flex: 0 0 200px;
}

/* Product Information Section - Dense layout with smaller elements */
.bbwp-product-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Product Title - Smaller but still prominent */
.bbwp-product-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #b91c1c;
    letter-spacing: 0.3px;
}

.bbwp-product-title a {
    color: #b91c1c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bbwp-product-title a:hover {
    color: #991b1b;
    text-decoration: none;
}

/* Product Description - Smaller */
.bbwp-product-description {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    font-weight: 400;
}

/* Product Details - Smaller, each category on separate line */
.bbwp-product-details {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.3;
    margin: 4px 0;
}

.bbwp-sku {
    font-weight: 500;
    margin-bottom: 2px;
}

.bbwp-category-line {
    font-weight: 500;
    margin-bottom: 1px;
}

/* Pack Information - Smaller */
.bbwp-pack-info {
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    margin: 6px 0;
}

/* Product Tags - Professional badges */
.bbwp-product-tags {
    margin: 8px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.bbwp-single-product-tags {
    margin: 16px 0;
    padding: 16px 0;
    border-bottom: 1px solid #e9ecef;
}

.bbwp-single-product-tags strong {
    color: #2c3e50;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.bbwp-tag-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    margin: 2px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

/* Marketing Tags - Red Theme */
.bbwp-tag-new,
.bbwp-tag-limited-edition,
.bbwp-tag-best-seller,
.bbwp-tag-staff-pick,
.bbwp-tag-featured,
.bbwp-tag-sale,
.bbwp-tag-clearance,
.bbwp-tag-exclusive {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.bbwp-tag-new:hover,
.bbwp-tag-limited-edition:hover,
.bbwp-tag-best-seller:hover,
.bbwp-tag-staff-pick:hover,
.bbwp-tag-featured:hover,
.bbwp-tag-sale:hover,
.bbwp-tag-clearance:hover,
.bbwp-tag-exclusive:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

/* Quality/Award Tags - Blue Theme */
.bbwp-tag-premium,
.bbwp-tag-award-winner,
.bbwp-tag-organic,
.bbwp-tag-vintage,
.bbwp-tag-rare,
.bbwp-tag-collectors-item {
    background: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}

.bbwp-tag-premium:hover,
.bbwp-tag-award-winner:hover,
.bbwp-tag-organic:hover,
.bbwp-tag-vintage:hover,
.bbwp-tag-rare:hover,
.bbwp-tag-collectors-item:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Availability Tags - Green Theme */
.bbwp-tag-in-stock,
.bbwp-tag-low-stock,
.bbwp-tag-pre-order,
.bbwp-tag-back-order,
.bbwp-tag-seasonal {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.bbwp-tag-in-stock:hover,
.bbwp-tag-low-stock:hover,
.bbwp-tag-pre-order:hover,
.bbwp-tag-back-order:hover,
.bbwp-tag-seasonal:hover {
    background: #16a34a;
    color: white;
    border-color: #16a34a;
}

/* Wine-Specific Tags - Purple Theme */
.bbwp-tag-estate-grown,
.bbwp-tag-single-vineyard,
.bbwp-tag-barrel-aged,
.bbwp-tag-unfiltered,
.bbwp-tag-biodynamic,
.bbwp-tag-small-batch {
    background: #f3e8ff;
    color: #7c2d12;
    border-color: #e9d5ff;
}

.bbwp-tag-estate-grown:hover,
.bbwp-tag-single-vineyard:hover,
.bbwp-tag-barrel-aged:hover,
.bbwp-tag-unfiltered:hover,
.bbwp-tag-biodynamic:hover,
.bbwp-tag-small-batch:hover {
    background: #9333ea;
    color: white;
    border-color: #9333ea;
}

/* Pricing Section - Smaller but still prominent */
.bbwp-product-pricing {
    margin: 8px 0;
}

.bbwp-case-price {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
}

.bbwp-unit-price {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 2px;
}

.bbwp-price-login {
    background: #fff3cd;
    color: #856404;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    border: 1px solid #ffeaa7;
}

/* Red View Product Button - Exactly like the image */
.bbwp-product-actions {
    margin-top: auto;
    padding-top: 16px;
}

.bbwp-btn-view-product {
    background: #b91c1c;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
    min-width: 140px;
}

.bbwp-btn-view-product:hover {
    background: #991b1b;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.3);
}

/* Product Image Section - Large image on the right */
.bbwp-product-image {
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-radius: 6px;
}

.bbwp-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 10px;
}

.bbwp-product-image:hover img {
    transform: scale(1.05);
}

.bbwp-product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.bbwp-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 14px;
    width: 100%;
    height: 100%;
}

.bbwp-no-image span {
    font-size: 48px;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* No Products Message */
.bbwp-no-products-message {
    text-align: center;
    padding: 48px 24px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 32px 0;
    border: 1px solid #e9ecef;
}

.bbwp-no-products-message p {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
}

/* Single Product Page */
.bbwp-single-product-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

.bbwp-product-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.2;
}

.bbwp-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    align-items: start;
}

.bbwp-product-image-section {
    text-align: center;
}

.bbwp-main-image-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

.bbwp-main-image {
    max-width: 100%;
    max-height: 500px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.bbwp-no-image-placeholder {
    width: 100%;
    height: 400px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #adb5bd;
    border: 1px solid #e9ecef;
}

.bbwp-no-image-placeholder span {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.bbwp-product-details-section {
    padding: 0;
}

.bbwp-price-section {
    margin: 1.5rem 0;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.bbwp-unit-price {
    font-size: 1rem;
    font-weight: 500;
    color: #6b757d;
    margin-bottom: 0.5rem;
}

.bbwp-case-price {
    font-size: 1.2rem;
    color:#28a745;
    font-weight: 700;
}

.bbwp-login-price {
    background: #fff3cd;
    color: #856404;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    display: inline-block;
    font-weight: 600;
    font-size: 16px;
}

.bbwp-short-description {
    margin: 1.5rem 0;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
    line-height: 1.6;
    color: #495057;
    font-size: 16px;
}

.bbwp-product-meta {
    margin: 1.5rem 0;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.bbwp-meta-item {
    margin: 0.75rem 0;
    font-size: 15px;
    color: #6c757d;
    line-height: 1.5;
}

.bbwp-meta-item strong {
    color: #2c3e50;
    font-weight: 600;
    display: inline-block;
    min-width: 100px;
}

.bbwp-in-stock {
    color: #28a745;
    font-weight: 600;
}

/* Pagination */
.bbwp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 48px 0;
    gap: 8px;
}

.bbwp-pagination a,
.bbwp-pagination span {
    padding: 10px 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: all 0.2s ease;
    background: white;
}

.bbwp-pagination a:hover {
    background: #007cba;
    color: white;
    border-color: #007cba;
    text-decoration: none;
}

.bbwp-pagination .current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bbwp-commerce-container {
        padding: 15px;
    }
    
    .bbwp-archive-title {
        font-size: 2rem;
    }
    
    .bbwp-product-filters {
        padding: 16px;
        margin: 16px auto;
    }
    
    .bbwp-filter-group {
        width: 100%;
        margin-right: 0;
        margin-bottom: 16px;
    }
    
    .bbwp-products-grid.grid-view {
        grid-template-columns: 1fr;
    }
    
    .bbwp-products-grid.grid-view .bbwp-product-content,
    .bbwp-products-grid.list-view .bbwp-product-content {
        flex-direction: column;
        padding: 20px;
    }
    
    .bbwp-products-grid.grid-view .bbwp-product-info,
    .bbwp-products-grid.list-view .bbwp-product-info {
        order: 2;
        padding-right: 0;
        padding-top: 20px;
    }
    
    .bbwp-products-grid.grid-view .bbwp-product-image,
    .bbwp-products-grid.list-view .bbwp-product-image {
        order: 1;
        width: 100%;
        height: 200px;
        margin-bottom: 20px;
    }
    
    .bbwp-product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .bbwp-product-title {
        font-size: 2rem;
    }
    
    .bbwp-unit-price {
        font-size: 2rem;
    }
    
    .bbwp-view-toggle {
        justify-content: center;
        margin: 16px 0;
    }
}

@media (max-width: 480px) {
    .bbwp-product-card {
        margin: 0 -5px;
    }
    
    .bbwp-product-content {
        min-height: auto;
        padding: 16px;
    }
    
    .bbwp-product-title {
        font-size: 18px;
    }
    
    .bbwp-unit-price,
    .bbwp-case-price {
        font-size: 18px;
    }
    
    .bbwp-view-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Print Styles */
@media print {
    .bbwp-view-toggle,
    .bbwp-product-filters,
    .bbwp-pagination {
        display: none !important;
    }
    
    .bbwp-products-grid {
        display: block !important;
    }
    
    .bbwp-product-card {
        break-inside: avoid !important;
        margin-bottom: 20px !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* Focus States for Accessibility */
.bbwp-view-btn:focus,
.bbwp-btn-view-product:focus,
.bbwp-filter-search input:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Loading States */
.bbwp-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.bbwp-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth Animations */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .bbwp-product-card {
        border-width: 2px;
    }
    
    .bbwp-view-btn,
    .bbwp-btn-view-product {
        border-width: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
    
    .bbwp-product-card:hover {
        transform: none;
    }
    
    .bbwp-product-image:hover img {
        transform: none;
    }
}

/* ===== CATEGORY LINKS ===== */
.bbwp-category-link {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.bbwp-category-link:hover {
    color: #005a87;
    text-decoration: none;
    border-bottom-color: #005a87;
}

.bbwp-category-link:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ===== LOGIN MODAL ===== */
.bbwp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bbwp-modal-overlay.bbwp-modal-show {
    opacity: 1;
    visibility: visible;
}

.bbwp-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
}

.bbwp-modal-show .bbwp-modal-content {
    transform: scale(1) translateY(0);
}

.bbwp-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bbwp-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.bbwp-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
}

.bbwp-modal-close:hover {
    color: #495057;
}

.bbwp-modal-body {
    padding: 24px;
}

.bbwp-modal-body p {
    margin: 0 0 24px;
    color: #6c757d;
    line-height: 1.5;
}

.bbwp-login-buttons {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.bbwp-btn-login,
.bbwp-btn-register {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    display: block;
}

.bbwp-btn-login {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.bbwp-btn-login:hover {
    background: #005a87;
    border-color: #005a87;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.bbwp-btn-register {
    background: white;
    color: #007cba;
    border-color: #007cba;
}

.bbwp-btn-register:hover {
    background: #007cba;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ===== CLICKABLE LOGIN PRICE ===== */
.bbwp-price-login-link {
    color: #856404;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.bbwp-price-login-link:hover {
    color: #664308;
    text-decoration: none;
    border-bottom-color: #664308;
}

.bbwp-price-login-link:focus {
    outline: 2px solid #856404;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Mobile responsiveness for modal */
@media (max-width: 480px) {
    .bbwp-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .bbwp-modal-header,
    .bbwp-modal-body {
        padding: 20px;
    }
    
    .bbwp-login-buttons {
        gap: 16px;
    }
}

/* ===== RELATED PRODUCTS SECTION ===== */
.bbwp-related-products-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #e9ecef;
}

.bbwp-related-products-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: -0.025em;
}

/* Related Products Grid - Maximum 2 columns */
.bbwp-related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ensure maximum of 2 columns for related products */
@media (min-width: 900px) {
    .bbwp-related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1200px;
    }
}

/* Tablet view - maximum 2 columns */
@media (max-width: 1024px) and (min-width: 768px) {
    .bbwp-related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile view - single column */
@media (max-width: 767px) {
    .bbwp-related-products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .bbwp-related-products-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .bbwp-related-products-section {
        margin-top: 32px;
        padding-top: 24px;
    }
}

/* Ensure related product cards maintain consistent styling */
.bbwp-related-products-grid .bbwp-product-card {
    width: 100%;
    max-width: none;
}

/* Single product special case - prevent stretching */
.bbwp-related-products-grid:has(.bbwp-product-card:only-child) {
    justify-content: center;
}

.bbwp-related-products-grid .bbwp-product-card:only-child {
    max-width: 500px;
    justify-self: center;
}

/* Two products - center them nicely */
.bbwp-related-products-grid:has(.bbwp-product-card:nth-child(2):last-child) {
    justify-content: center;
    gap: 32px;
}

@media (max-width: 767px) {
    .bbwp-related-products-grid .bbwp-product-card:only-child {
        max-width: 100%;
    }
}
