/* Product Cards - Modern Design with Hexagonal Badges */

/* Import Bricolage Grotesque font */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: var(--store-width, 1600px);
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
}

/* Product Card */
.product-card {
    background: var(--surface100, #141414);
    border: 1px solid var(--border-color, #333333);
    border-radius: var(--base-border-radius, 15px);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
    position: relative;
    font-family: 'Bricolage Grotesque', sans-serif;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Product Image Section - Image with black space around */
.product-image {
    width: 100%;
    height: 50%;
    min-height: 180px;
    max-height: 200px;
    background: #000000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.product-image img {
    width: 85%;
    height: 85%;
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 8px;
}

.product-placeholder {
    width: 85%;
    height: 85%;
    max-width: 85%;
    max-height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px;
    font-weight: 500;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 30%, #d2691e 60%, #8b4513 100%);
    border-radius: 8px;
}

/* Product Info Section */
.product-info {
    padding: 20px;
    background: #1a1a1a;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.4;
    text-decoration: none;
}

.product-description {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 16px 0;
    line-height: 1.5;
    flex-grow: 1;
}

/* Product Footer */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.product-price {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ff4141;
    text-decoration: none;
}

.compare-price {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    margin-left: 8px;
}

/* Buy Now Button */
.btn-buy-now {
    font-family: 'Bricolage Grotesque', sans-serif;
    background: linear-gradient(to bottom, var(--button-primary-bg, #ff3f19), var(--button-primary-bg-accent, #ff3f19));
    color: var(--button-primary-text, #ffffff);
    border: 1px solid var(--button-primary-border, transparent);
    padding: 12px 24px;
    border-radius: var(--button-border-radius, 15px);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: var(--button-height, 40px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.btn-buy-now:hover {
    background: linear-gradient(to bottom, var(--button-primary-bg-hover, #ff3f19), var(--button-primary-bg-hover-accent, #ff3f19));
    color: var(--button-primary-text-hover, #ffffff);
    border-color: var(--button-primary-border-hover, transparent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
        padding: 20px 16px;
    }
    
    .product-image {
        min-height: 150px;
        max-height: 160px;
        padding: 12px;
    }
    
    .product-image img,
    .product-placeholder {
        width: 80%;
        height: 80%;
        max-width: 80%;
        max-height: 80%;
    }
    
    .product-card {
        min-height: 350px;
    }
    
    .product-info {
        padding: 16px;
    }
    
    .product-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .btn-buy-now {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

