/* =========================================
   FC Woo Shop — Public Shortcode
   v0.2.0 — Dark sidebar + product grid
   ========================================= */

.fcws-public-shop.fcws-public-shop {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0;
    box-sizing: border-box;
}

/* -----------------------------------------
   Sidebar + Grid Layout
   ----------------------------------------- */
.fcws-public-shop .fcws-shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

.fcws-public-shop .fcws-shop-main {
    min-width: 0;
}

/* -----------------------------------------
   Sidebar — Dark glassmorphism
   ----------------------------------------- */
.fcws-public-shop .fcws-sidebar {
    position: sticky;
    top: 100px;
    background: linear-gradient(145deg, #1e1b2e, #2a2540);
    border-radius: 16px;
    padding: 24px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.fcws-public-shop .fcws-sidebar-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 12px 12px;
    padding: 0;
}

.fcws-public-shop .fcws-filter-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fcws-public-shop a.fcws-filter-link,
.fcws-public-shop a.fcws-filter-link:visited {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 10px;
    border: none;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s ease;
    cursor: pointer;
    line-height: 1.3;
    box-sizing: border-box;
}

.fcws-public-shop a.fcws-filter-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none !important;
}

.fcws-public-shop a.fcws-filter-link.active {
    background: rgba(245, 130, 32, 0.15);
    color: #f58220;
    font-weight: 600;
}

.fcws-public-shop .fcws-filter-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    opacity: 0.5;
}

.fcws-public-shop a.fcws-filter-link.active .fcws-filter-icon {
    opacity: 1;
}

.fcws-public-shop .fcws-filter-icon svg {
    display: block;
}

.fcws-public-shop .fcws-filter-label {
    flex: 1;
}

.fcws-public-shop .fcws-filter-count {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 100px;
    flex-shrink: 0;
    min-width: 24px;
    text-align: center;
}

.fcws-public-shop a.fcws-filter-link.active .fcws-filter-count {
    background: #f58220;
    color: #ffffff;
}

/* Sidebar CTA */
.fcws-public-shop .fcws-sidebar-cta {
    margin-top: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.fcws-public-shop .fcws-sidebar-cta-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.fcws-public-shop a.fcws-sidebar-cta-btn {
    display: inline-block;
    padding: 9px 20px;
    border: 1.5px solid #f58220;
    border-radius: 100px;
    color: #f58220 !important;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.fcws-public-shop a.fcws-sidebar-cta-btn:hover {
    background: #f58220;
    color: #ffffff !important;
}

/* Sidebar Divider */
.fcws-public-shop .fcws-sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 20px 0;
}

/* ZiomUp Promo */
.fcws-public-shop .fcws-sidebar-promo {
    padding: 16px;
    background: linear-gradient(135deg, rgba(245, 130, 32, 0.12), rgba(245, 130, 32, 0.04));
    border-radius: 12px;
    border: 1px solid rgba(245, 130, 32, 0.2);
    text-align: center;
    margin-bottom: 16px;
}

.fcws-public-shop .fcws-sidebar-promo-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #f58220;
    background: rgba(245, 130, 32, 0.15);
    padding: 3px 10px;
    border-radius: 100px;
    margin: 0 0 8px 0;
}

.fcws-public-shop .fcws-sidebar-promo-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.fcws-public-shop .fcws-sidebar-promo-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 14px 0;
    line-height: 1.4;
}

.fcws-public-shop a.fcws-sidebar-promo-btn {
    display: inline-block;
    padding: 9px 20px;
    background: #f58220;
    border-radius: 100px;
    color: #ffffff !important;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: none;
}

.fcws-public-shop a.fcws-sidebar-promo-btn:hover {
    background: #e06d0f;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 130, 32, 0.3);
}

/* -----------------------------------------
   Grid Layout
   ----------------------------------------- */
.fcws-public-shop .fcws-shop-grid {
    display: grid;
    gap: 24px;
}

.fcws-public-shop .fcws-grid-2 { grid-template-columns: repeat(2, 1fr); }
.fcws-public-shop .fcws-grid-3 { grid-template-columns: repeat(3, 1fr); }
.fcws-public-shop .fcws-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* -----------------------------------------
   Product Card
   ----------------------------------------- */
.fcws-public-shop .fcws-product-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fcws-public-shop .fcws-product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.fcws-public-shop .fcws-product-card.fcws-hidden {
    display: none;
}

/* -----------------------------------------
   Product Image
   ----------------------------------------- */
.fcws-public-shop .fcws-product-image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fcws-public-shop img.fcws-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.3s ease;
}

.fcws-public-shop .fcws-product-card:hover img.fcws-product-image {
    transform: scale(1.05);
}

/* -----------------------------------------
   Sale Badge
   ----------------------------------------- */
.fcws-public-shop .fcws-sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    line-height: 1;
    z-index: 1;
}

/* -----------------------------------------
   Product Info
   ----------------------------------------- */
.fcws-public-shop .fcws-product-info {
    flex: 1;
    padding: 16px;
}

.fcws-public-shop .fcws-product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.fcws-public-shop .fcws-product-desc {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0 0 10px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fcws-public-shop .fcws-product-price {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.fcws-public-shop .fcws-product-price del {
    color: #9ca3af;
    font-weight: 400;
    font-size: 0.9em;
}

.fcws-public-shop .fcws-product-price ins {
    text-decoration: none;
    color: #ef4444;
}

/* -----------------------------------------
   Product Actions — fix overflow
   ----------------------------------------- */
.fcws-public-shop .fcws-product-actions {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
}

.fcws-public-shop .fcws-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    font-family: inherit;
    white-space: nowrap;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fcws-public-shop .fcws-btn-cart {
    flex: 1;
    background: #f58220;
    color: #ffffff !important;
}

.fcws-public-shop .fcws-btn-cart:hover:not(.fcws-btn-adding):not(.fcws-btn-added) {
    background: #e06d0f;
    color: #ffffff !important;
}

.fcws-public-shop .fcws-btn-cart.fcws-btn-adding {
    opacity: 0.7;
    cursor: wait;
}

.fcws-public-shop .fcws-btn-cart.fcws-btn-added {
    background: #22c55e;
    color: #ffffff !important;
    animation: fcws-pop 0.3s ease;
}

.fcws-public-shop .fcws-btn-details {
    flex: 1;
    background: transparent;
    color: #374151 !important;
    border: 1px solid #d1d5db;
}

.fcws-public-shop .fcws-btn-details:hover {
    background: #f3f4f6;
    color: #374151 !important;
}

.fcws-public-shop .fcws-btn-full {
    flex: 1;
    width: 100%;
}

.fcws-public-shop .fcws-btn-disabled {
    flex: 1;
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    line-height: 1;
    border: none;
}

/* -----------------------------------------
   No Products State
   ----------------------------------------- */
.fcws-public-shop .fcws-no-products {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #9ca3af;
}

.fcws-public-shop .fcws-no-products svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.fcws-public-shop .fcws-no-products p {
    margin: 0;
    font-size: 1rem;
}

/* -----------------------------------------
   Animation
   ----------------------------------------- */
@keyframes fcws-pop {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* -----------------------------------------
   Responsive
   ----------------------------------------- */
@media (max-width: 992px) {
    .fcws-public-shop .fcws-shop-layout {
        grid-template-columns: 200px 1fr;
        gap: 20px;
    }

    .fcws-public-shop .fcws-grid-3,
    .fcws-public-shop .fcws-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .fcws-public-shop .fcws-shop-layout {
        grid-template-columns: 1fr;
    }

    .fcws-public-shop .fcws-sidebar {
        position: static;
        border-radius: 12px;
    }

    .fcws-public-shop .fcws-filter-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .fcws-public-shop a.fcws-filter-link,
    .fcws-public-shop a.fcws-filter-link:visited {
        padding: 8px 16px;
        border-radius: 100px;
        font-size: 0.8rem;
    }

    .fcws-public-shop .fcws-sidebar-cta {
        display: none;
    }

    .fcws-public-shop .fcws-sidebar-label {
        display: none;
    }
}

@media (max-width: 640px) {
    .fcws-public-shop.fcws-public-shop {
        padding: 16px 0;
    }

    .fcws-public-shop .fcws-shop-grid {
        grid-template-columns: 1fr !important;
    }

    .fcws-public-shop .fcws-product-actions {
        flex-direction: column;
    }
}
