/* ==========================================================================
   Product Showcase Plugin - Featured + Grid Layout
   Brushed Metal Theme
   ========================================================================== */

:root {
    --metal-lightest: #f5f5f5;
    --metal-light: #e8e8e8;
    --metal-mid: #d0d0d0;
    --metal-dark: #a8a8a8;
    --metal-darkest: #707070;
    --metal-text: #2d2d2d;
    --metal-text-muted: #5a5a5a;
    
    --accent-red: #c41e3a;
    
    --metal-gradient: linear-gradient(
        135deg,
        #e8e8e8 0%,
        #f5f5f5 25%,
        #d8d8d8 50%,
        #f0f0f0 75%,
        #e0e0e0 100%
    );
    --metal-shine: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    --card-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    --card-shadow-hover: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    
    --radius: 6px;
    --transition: 0.3s ease;
}

/* ==========================================================================
   Section Container & Backgrounds
   ========================================================================== */

.product-showcase {
    padding: 3rem 2rem;
}

.product-showcase--white {
    background: #ffffff;
}

.product-showcase--light {
    background: var(--metal-lightest);
}

.product-showcase--brushed {
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 1px,
            rgba(0, 0, 0, 0.03) 1px,
            rgba(0, 0, 0, 0.03) 2px
        ),
        linear-gradient(
            135deg,
            #c8c8c8 0%,
            #d8d8d8 25%,
            #b8b8b8 50%,
            #d0d0d0 75%,
            #c0c0c0 100%
        );
    border-top: 1px solid #a0a0a0;
    border-bottom: 1px solid #888;
}

/* ==========================================================================
   Header
   ========================================================================== */

.product-showcase__header {
    text-align: center;
    margin-bottom: 2rem;
}

.product-showcase__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--metal-text);
    margin: 0 0 0.5rem;
}

.product-showcase__subtitle {
    font-size: 1rem;
    color: var(--metal-text-muted);
    margin: 0;
}

.product-showcase__empty {
    text-align: center;
    padding: 3rem;
    color: var(--metal-text-muted);
}

/* ==========================================================================
   Featured + Grid Layout
   ========================================================================== */

.product-showcase__layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-featured {
    grid-row: span 2;
}

@media (max-width: 768px) {
    .product-showcase__layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .product-featured {
        grid-row: auto;
    }
}

/* ==========================================================================
   Featured Product (Large Card)
   ========================================================================== */

.product-featured {
    display: flex;
    flex-direction: column;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #fafafa 50%,
        #f5f5f5 100%
    );
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--metal-mid);
    transition: 
        transform var(--transition),
        box-shadow var(--transition);
    position: relative;
}

/* Brushed texture */
.product-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    pointer-events: none;
    z-index: 1;
}

.product-featured:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

/* Shine effect */
.product-featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--metal-shine);
    transition: left 0.5s ease;
    pointer-events: none;
    z-index: 2;
}

.product-featured:hover::after {
    left: 100%;
}

.product-featured__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.product-featured__image-wrapper {
    position: relative;
    flex: 1;
    min-height: 200px;
    background: #ffffff;
    border-bottom: 1px solid var(--metal-mid);
    overflow: hidden;
}

.product-featured__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.product-featured:hover .product-featured__image {
    transform: scale(1.03);
}

.product-featured__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    position: relative;
    z-index: 3;
}

.product-featured__label {
    display: inline-block;
    align-self: flex-start;
    padding: 0.25rem 0.75rem;
    background: var(--accent-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 3px;
    margin-bottom: 0.75rem;
}

.product-featured__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--metal-text);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.product-featured__description {
    font-size: 1rem;
    color: var(--metal-text-muted);
    margin: 0 0 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-featured__price {
    margin-top: auto;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-red);
}

.product-featured__price--sold-out {
    color: var(--metal-darkest);
    font-weight: 600;
    font-size: 1rem;
}

.product-featured__actions {
    padding: 0 1.25rem 1.25rem;
    position: relative;
    z-index: 3;
}

/* Sold out state */
.product-featured--sold-out .product-card__btn {
    border-color: var(--metal-dark);
    color: var(--metal-dark);
    cursor: not-allowed;
}

.product-featured--sold-out .product-card__btn:hover {
    background: transparent;
    border-color: var(--metal-dark);
    color: var(--metal-dark);
}

/* ==========================================================================
   Grid Products (now direct children of layout)
   ========================================================================== */

.product-showcase__grid {
    display: contents;
}

/* ==========================================================================
   Product Card (Grid Items)
   ========================================================================== */

.product-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #fafafa 50%,
        #f5f5f5 100%
    );
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--metal-mid);
    transition: 
        transform var(--transition),
        box-shadow var(--transition);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    pointer-events: none;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--metal-shine);
    transition: left 0.5s ease;
    pointer-events: none;
    z-index: 2;
}

.product-card:hover::after {
    left: 100%;
}

.product-card__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.product-card-featured__image-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    background: #ffffff;
    border-bottom: 1px solid var(--metal-mid);
    overflow: hidden;
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.product-card:hover .product-card__image {
    transform: scale(1.03);
}

/* Badges */
.product-card__badge {
    position: absolute;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border-radius: 3px;
    z-index: 3;
}

.product-card__badge--sold-out {
    top: 0.75rem;
    left: 0.75rem;
    background: var(--accent-red);
    color: white;
}

.product-card__badge--low-stock {
    top: 0.75rem;
    left: 0.75rem;
    background: #f0ad4e;
    color: #333;
}

.product-card__badge--free-delivery {
    bottom: 0.75rem;
    left: 0.75rem;
    background: var(--metal-text);
    color: white;
}

/* Content */
.product-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    position: relative;
    z-index: 3;
}

.product-card__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--metal-text);
    margin: 0 0 0.5rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(0.875rem * 1.35 * 2);
}

.product-card__price {
    margin-top: auto;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-red);
}

.product-card__price--sold-out {
    color: var(--metal-darkest);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Actions */
.product-card__actions {
    padding: 0 1rem 1rem;
    position: relative;
    z-index: 3;
}

/* ==========================================================================
   CTA Button - Outline Style
   ========================================================================== */

.product-card__btn {
    display: block;
    width: 100%;
    padding: 0.625rem 1rem;
    background: transparent;
    color: var(--metal-text);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid var(--metal-text);
    cursor: pointer;
    transition: all var(--transition);
}

.product-card__btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

/* Sold out state */
.product-card--sold-out .product-card__btn {
    border-color: var(--metal-dark);
    color: var(--metal-dark);
    cursor: not-allowed;
}

.product-card--sold-out .product-card__btn:hover {
    background: transparent;
    border-color: var(--metal-dark);
    color: var(--metal-dark);
}

/* ==========================================================================
   Footer / View All
   ========================================================================== */

.product-showcase__footer {
    text-align: center;
    margin-top: 2rem;
}

.product-showcase__view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--metal-text);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--metal-text);
    transition: all var(--transition);
}

.product-showcase__view-all:hover {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}