/* Single Look Styles - New Layout */
.fstl-single-look {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Header Styles */
.fstl-look-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 20px;
}

.fstl-header-left h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    color: #333;
}

.fstl-look-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fstl-look-category-tag {
    background: #f5f5f5;
    padding: 5px 15px;
    border-radius: 25px;
    font-size: 0.9em;
    color: #666;
}

/* Social Share */
.fstl-social-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fstl-share-label {
    font-weight: bold;
    color: #666;
}

.fstl-share-buttons {
    display: flex;
    gap: 10px;
}

.fstl-share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
}

.fstl-share-button:hover {
    transform: translateY(-3px);
    opacity: 0.9;
    color: #fff;
}

.fstl-share-email { background: #666; }
.fstl-share-whatsapp { background: #25D366; }
.fstl-share-facebook { background: #1877F2; }
.fstl-share-instagram { background: linear-gradient(45deg, #f09433, #d62976, #962fbf, #4f5bd5); }

.fstl-share-button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Main Layout - 2 Columns */
.fstl-look-main {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* Left Column - Media */
.fstl-look-media {
    background: #fff;
}

.fstl-main-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.fstl-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.fstl-gallery-section,
.fstl-video-section,
.fstl-description-section {
    margin-bottom: 40px;
}

.fstl-gallery-section h3,
.fstl-video-section h3,
.fstl-description-section h3 {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
    border-left: 4px solid #e44d26;
    padding-left: 15px;
}

.fstl-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.fstl-gallery-item {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.fstl-gallery-item:hover {
    transform: scale(1.05);
}

.fstl-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.fstl-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.fstl-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.fstl-description {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    line-height: 1.8;
    color: #555;
}

/* Right Column - Products */
.fstl-look-products {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 30px;
}

.fstl-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.fstl-products-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}

.fstl-product-count {
    background: #e44d26;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.9em;
}

.fstl-products-list {
    max-height: 600px;
    overflow-y: auto;
    margin-bottom: 25px;
    padding-right: 10px;
}

.fstl-products-list::-webkit-scrollbar {
    width: 6px;
}

.fstl-products-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.fstl-products-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.fstl-products-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.fstl-product-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: box-shadow 0.3s;
}

.fstl-product-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.fstl-product-card-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

.fstl-product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fstl-product-card-details {
    flex: 1;
}

.fstl-product-card-name {
    margin: 0 0 5px 0;
    font-size: 1em;
    font-weight: bold;
    color: #333;
}

.fstl-product-card-price {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.fstl-product-card-price del {
    color: #999;
    font-size: 0.9em;
    margin-right: 5px;
}

.fstl-product-card-price ins {
    text-decoration: none;
    color: #e44d26;
    font-weight: bold;
}

.fstl-product-card-variations {
    margin-top: 10px;
}

.fstl-variation-field {
    margin-bottom: 8px;
}

.fstl-variation-field label {
    display: block;
    margin-bottom: 3px;
    font-size: 0.85em;
    color: #666;
    font-weight: 600;
}

.fstl-variation-select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
    background: #fff;
}

/* Totals & Add to Cart */
.fstl-products-footer {
    border-top: 2px solid #f0f0f0;
    padding-top: 20px;
}

.fstl-totals-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.fstl-total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
    font-size: 0.95em;
}

.fstl-total-row:last-child {
    border-bottom: none;
}

.fstl-total-row.fstl-total-final {
    font-weight: bold;
    font-size: 1.2em;
    color: #e44d26;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid #ddd;
}

.fstl-add-all-to-cart {
    display: block;
    width: 100%;
    padding: 16px;
    background: #e44d26;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.fstl-add-all-to-cart:hover {
    background: #c73e1d;
    transform: translateY(-2px);
}

.fstl-add-all-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .fstl-look-main {
        grid-template-columns: 1fr;
    }
    
    .fstl-look-products {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .fstl-look-header {
        flex-direction: column;
        text-align: center;
    }
    
    .fstl-header-left h1 {
        font-size: 2em;
    }
    
    .fstl-look-categories {
        justify-content: center;
    }
    
    .fstl-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .fstl-product-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .fstl-product-card-image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .fstl-single-look {
        padding: 0 15px;
    }
    
    .fstl-look-header h1 {
        font-size: 1.5em;
    }
    
    .fstl-share-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .fstl-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* ====================================
   FASHION LOOK GRID - MODERN LAYOUT
   ==================================== */

/* Container principale */
.fstl-look-grid-modern {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Layout a 2 colonne */
.fstl-grid-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 30px;
}

/* ====================================
   FILTRI LATERALI - STILE MODERNO
   ==================================== */
.fstl-filters-sidebar {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.fstl-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f5f5f5;
}

.fstl-filters-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fstl-filters-header h3 .dashicons {
    color: #e44d26;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.fstl-clear-filters {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s;
}

.fstl-clear-filters:hover {
    background: #f5f5f5;
    color: #e44d26;
}

.fstl-clear-filters .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Lista categorie */
.fstl-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fstl-category-item {
    margin-bottom: 10px;
}

.fstl-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f9f9f9;
    border-radius: 12px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.fstl-category-link:hover {
    background: #fff0ec;
    color: #e44d26;
    transform: translateX(5px);
}

.fstl-category-link.active {
    background: #e44d26;
    color: #fff;
    border-color: #e44d26;
    box-shadow: 0 10px 20px rgba(228,77,38,0.15);
}

.fstl-category-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fstl-category-info .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.fstl-category-name {
    font-weight: 500;
}

.fstl-category-count {
    background: rgba(0,0,0,0.05);
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.fstl-category-link.active .fstl-category-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* ====================================
   GALLERIA LOOK - DESIGN ACCATTIVANTE
   ==================================== */
.fstl-looks-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.fstl-look-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid #f5f5f5;
}

.fstl-look-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(228,77,38,0.15);
    border-color: #e44d26;
}

/* Badge categoria */
.fstl-card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.fstl-card-badge span {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(5px);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.8em;
    font-weight: 600;
    color: #e44d26;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 5px;
}

.fstl-card-badge span .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Immagine */
.fstl-card-image {
    position: relative;
    height: 380px;
    overflow: hidden;
}

.fstl-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.fstl-look-card:hover .fstl-card-image img {
    transform: scale(1.1);
}

/* Overlay hover */
.fstl-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fstl-look-card:hover .fstl-card-overlay {
    opacity: 1;
}

.fstl-card-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.fstl-view-details {
    flex: 1;
    background: #e44d26;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.9em;
}

.fstl-view-details:hover {
    background: #c73e1d;
    transform: scale(1.05);
}

.fstl-quick-view {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.fstl-quick-view:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

/* Info card */
.fstl-card-info {
    padding: 20px;
}

.fstl-card-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

.fstl-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 0.9em;
}

.fstl-products-count {
    display: flex;
    align-items: center;
    gap: 5px;
}

.fstl-products-count .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #e44d26;
}

.fstl-card-price {
    font-weight: 600;
    color: #e44d26;
    font-size: 1.1em;
}

/* ====================================
   STATI DI CARICAMENTO
   ==================================== */
.fstl-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
}

.fstl-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid #f0f0f0;
    border-top-color: #e44d26;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fstl-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    background: #f9f9f9;
    border-radius: 20px;
}

.fstl-no-results .dashicons {
    font-size: 60px;
    width: 60px;
    height: 60px;
    color: #ccc;
    margin-bottom: 20px;
}

.fstl-no-results h3 {
    margin: 0 0 10px 0;
    color: #666;
}

.fstl-no-results p {
    color: #999;
    margin: 0;
}

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 1024px) {
    .fstl-grid-layout {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .fstl-grid-layout {
        grid-template-columns: 1fr;
    }
    
    .fstl-filters-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .fstl-category-link:hover {
        transform: none;
    }
    
    .fstl-card-image {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .fstl-looks-gallery {
        grid-template-columns: 1fr;
    }
    
    .fstl-filters-sidebar {
        padding: 20px;
    }
}

/* Hero Section */
.fstl-hero-section {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.fstl-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(228,77,38,0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.fstl-hero-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(228,77,38,0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.fstl-hero-section h1 {
    position: relative;
    z-index: 1;
    font-size: 3.5em;
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 700;
    letter-spacing: -1px;
}

.fstl-hero-section p {
    position: relative;
    z-index: 1;
    font-size: 1.2em;
    color: #666;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive hero */
@media (max-width: 768px) {
    .fstl-hero-section h1 {
        font-size: 2.5em;
    }
    
    .fstl-hero-section p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .fstl-hero-section h1 {
        font-size: 1.8em;
    }
    
    .fstl-hero-section {
        padding: 30px 15px;
    }
}