/**
 * Shop Custom Styles - Laço & Fita
 * Mantém identidade visual com cores #FFA500 (laranja) e #FF69B4 (rosa)
 */

/* ========================================
   1. HERO BANNER
======================================== */
.shop-hero {
    min-height: 40vh;
    background: linear-gradient(135deg, rgba(255,165,0,0.1) 0%, rgba(255,105,180,0.1) 100%);
}

.shop-hero .min-vh-40 {
    min-height: 40vh;
}

.shop-hero .form-control:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 0.25rem rgba(255, 165, 0, 0.25);
}

/* ========================================
   2. CATEGORY CARDS
======================================== */
.category-card-inner {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover .category-card-inner {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.15) !important;
}

.category-card:hover .category-overlay {
    opacity: 1 !important;
}

.category-image-wrapper img {
    transition: transform 0.5s ease;
    object-fit: cover;
}

.category-card:hover .category-image-wrapper img {
    transform: scale(1.1);
}

/* ========================================
   3. PRODUCT CARDS
======================================== */
.product-card {
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
}

.product-card:hover .quick-view-btn {
    opacity: 1 !important;
}

.product-card .card {
    transition: box-shadow 0.3s ease;
}

.product-card:hover .card {
    box-shadow: 0 0.75rem 2rem rgba(0,0,0,0.12) !important;
}

.product-image-link img {
    transition: transform 0.4s ease;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.product-card:hover .product-image-link img {
    transform: scale(1.05);
}

/* Product Badges */
.product-badges .badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.6rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Product Title */
.product-title a:hover {
    color: var(--brand-orange) !important;
}

/* Product Price */
.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-orange);
}

.product-price del {
    color: #999;
    font-size: 0.9rem;
    font-weight: 400;
}

.product-price ins {
    text-decoration: none;
    color: var(--brand-pink);
}

/* Add to Cart Button */
.product-card .button {
    width: 100%;
    background: var(--brand-orange);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-card .button:hover {
    background: var(--brand-pink);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,105,180,0.3);
}

.product-card .added_to_cart {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--brand-orange);
    font-size: 0.85rem;
    text-decoration: none;
}

/* ========================================
   4. SIDEBAR FILTERS
======================================== */
.shop-filters {
    position: sticky;
    top: 100px;
}

.filter-widget h3 {
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #333;
}

.filter-widget a {
    transition: all 0.2s ease;
    padding: 0.25rem 0;
    display: block;
}

.filter-widget a:hover {
    color: var(--brand-orange) !important;
    transform: translateX(3px);
}

/* Color Swatches */
.color-swatch {
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.color-swatch:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.color-swatch.active {
    border-color: var(--brand-orange) !important;
    box-shadow: 0 0 0 3px rgba(255,165,0,0.3);
}

/* Price Filter */
.price-filter-form input[type="number"] {
    border-radius: 0.375rem;
}

.price-filter-form input[type="number"]:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 0.2rem rgba(255,165,0,0.15);
}

/* Custom Checkboxes */
.form-check-input:checked {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
}

.form-check-input:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 0.2rem rgba(255,165,0,0.15);
}

/* ========================================
   5. SORTING & FILTERING BAR
======================================== */
.shop-ordering select {
    border-radius: 0.5rem;
    border-color: #ddd;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.shop-ordering select:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 0.2rem rgba(255,165,0,0.15);
}

/* Result Count */
.woocommerce-result-count {
    font-size: 0.9rem;
    color: #666;
}

/* ========================================
   6. PAGINATION
======================================== */
.woocommerce-pagination {
    text-align: center;
}

.woocommerce-pagination ul {
    list-style: none;
    padding: 0;
    display: inline-flex;
    gap: 0.5rem;
    margin: 0;
}

.woocommerce-pagination li {
    display: inline-block;
}

.woocommerce-pagination a,
.woocommerce-pagination span {
    display: block;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.woocommerce-pagination a:hover {
    background: var(--brand-orange);
    color: white;
    border-color: var(--brand-orange);
}

.woocommerce-pagination .current {
    background: var(--brand-orange);
    color: white;
    border-color: var(--brand-orange);
}

/* ========================================
   7. QUICK VIEW MODAL
======================================== */
#quickViewModal .modal-content {
    border-radius: 1rem;
    border: none;
}

#quickViewModal .modal-header {
    padding: 1.5rem;
}

#quickViewModal .modal-body {
    padding: 2rem;
}

.quick-view-product {
    display: flex;
    gap: 2rem;
}

.quick-view-image {
    flex: 0 0 45%;
}

.quick-view-image img {
    width: 100%;
    border-radius: 0.75rem;
}

.quick-view-details {
    flex: 1;
}

.quick-view-details .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-orange);
    margin: 1rem 0;
}

.quick-view-details .price del {
    color: #999;
    font-size: 1.2rem;
}

.quick-view-details .price ins {
    text-decoration: none;
    color: var(--brand-pink);
}

/* ========================================
   8. MOBILE OFFCANVAS FILTERS
======================================== */
.offcanvas {
    max-width: 320px;
}

.offcanvas-header {
    background: linear-gradient(135deg, rgba(255,165,0,0.1) 0%, rgba(255,105,180,0.1) 100%);
}

/* ========================================
   9. LOADING STATES
======================================== */
.products-loading {
    position: relative;
}

.products-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

/* ========================================
   10. RESPONSIVE
======================================== */
@media (max-width: 991px) {
    .shop-filters {
        position: static;
    }
    
    .quick-view-product {
        flex-direction: column;
    }
    
    .quick-view-image {
        flex: 0 0 100%;
    }
}

@media (max-width: 576px) {
    .shop-hero {
        min-height: 50vh;
    }
    
    .shop-hero h1 {
        font-size: 2rem;
    }
    
    .product-badges {
        gap: 0.25rem !important;
    }
    
    .product-badges .badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.4rem;
    }
}

/* ========================================
   11. ANIMATIONS
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.5s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }

/* ========================================
   12. UTILITIES
======================================== */
.object-fit-cover {
    object-fit: cover !important;
}

.text-break {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
