/**
 * WooCommerce Specific Styles
 * 
 * @package PinterestShop
 * @version 1.0.0
 */

/* ==========================================================================
   SHOP PAGE STYLES
   ========================================================================== */

.shop-container {
    padding: 40px 0;
}

.shop-header {
    text-align: center;
    margin-bottom: 40px;
}

.shop-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.shop-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* ==========================================================================
   SIDEBAR & FILTERS
   ========================================================================== */

.shop-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.product-search-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.product-search-form input:focus {
    outline: none;
    border-color: #e60023;
}

.category-filter {
    list-style: none;
}

.category-filter li {
    margin-bottom: 10px;
}

.category-filter label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.category-filter label:hover {
    color: #e60023;
}

.category-filter input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #e60023;
}

.category-filter .count {
    margin-left: auto;
    color: #999;
    font-size: 0.8rem;
}

.price-filter {
    margin-top: 15px;
}

.price-filter input[type="range"] {
    width: 100%;
    margin: 10px 0;
    accent-color: #e60023;
}

.price-display {
    text-align: center;
    font-weight: 600;
    color: #e60023;
}

.sort-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
    cursor: pointer;
}

.clear-filters {
    width: 100%;
    padding: 12px 20px;
    background: #f8f8f8;
    border: 2px solid #eee;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.clear-filters:hover {
    background: #e60023;
    color: #fff;
    border-color: #e60023;
}

/* ==========================================================================
   SHOP TOOLBAR
   ========================================================================== */

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.results-count {
    font-size: 0.9rem;
    color: #666;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-toggle button {
    padding: 8px 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-toggle button.active,
.view-toggle button:hover {
    background: #e60023;
    color: #fff;
    border-color: #e60023;
}

/* ==========================================================================
   PRODUCT CARDS ENHANCED
   ========================================================================== */

.product-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-card.added-to-cart {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(230, 0, 35, 0.2);
}

.product-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.7);
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card:hover .quick-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-quick-view,
.btn-add-cart,
.btn-save {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-quick-view {
    background: rgba(255,255,255,0.95);
    color: #333;
}

.btn-quick-view:hover {
    background: #fff;
    transform: translateY(-2px);
}

.btn-add-cart {
    background: #e60023;
    color: #fff;
}

.btn-add-cart:hover {
    background: #c8001f;
    transform: translateY(-2px);
}

.btn-add-cart.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-save {
    background: rgba(255,255,255,0.9);
    color: #333;
}

.btn-save:hover,
.btn-save.saved {
    background: #ff6b6b;
    color: #fff;
}

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 5px;
    margin-bottom: 5px;
}

.sale-badge {
    background: #ff4757;
    color: #fff;
}

.featured-badge {
    background: #ffa502;
    color: #fff;
}

.out-of-stock-badge {
    background: #747d8c;
    color: #fff;
}

.product-rating {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.star-rating {
    color: #ffc107;
}

.rating-count {
    font-size: 0.8rem;
    color: #999;
}

.product-categories {
    margin-top: 8px;
}

.product-categories a {
    font-size: 0.8rem;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-categories a:hover {
    color: #e60023;
}

.product-excerpt {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* ==========================================================================
   LOAD MORE BUTTON
   ========================================================================== */

.load-more-wrapper {
    text-align: center;
    margin: 50px 0;
}

.load-more-btn {
    padding: 15px 30px;
    background: #e60023;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #c8001f;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 0, 35, 0.3);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   QUICK VIEW MODAL
   ========================================================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(0,0,0,0.2);
}

.quick-view-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.quick-view-image img {
    width: 100%;
    border-radius: 12px;
}

.quick-view-details h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.quick-view-details .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e60023;
    margin-bottom: 15px;
}

.quick-view-description {
    margin-bottom: 25px;
    line-height: 1.6;
}

.quick-view-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #e60023;
    color: #fff;
}

.btn-primary:hover {
    background: #c8001f;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f8f8f8;
    color: #333;
    border: 2px solid #eee;
}

.btn-secondary:hover {
    background: #eee;
}

/* ==========================================================================
   LOADING SPINNER
   ========================================================================== */

.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

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

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

/* ==========================================================================
   NOTIFICATIONS
   ========================================================================== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: #27ae60;
}

.notification-error {
    background: #e74c3c;
}

.notification-info {
    background: #3498db;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
    .shop-content {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
    
    .quick-view-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .shop-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .shop-sidebar {
        position: static;
        order: 2;
    }
    
    .shop-toolbar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .view-toggle {
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .quick-view-content {
        padding: 20px;
    }
    
    .quick-view-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .shop-container {
        padding: 20px 0;
    }
    
    .shop-title {
        font-size: 2rem;
    }
    
    .quick-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .btn-quick-view span,
    .btn-add-cart span,
    .btn-save span {
        display: none;
    }
}
