/* Camptime.ca Commerce Styles */

/* Gear Section */
.gear-section {
    background: linear-gradient(135deg, #f8f9fa, #e8f5e8);
    border: 2px solid #4caf50;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.gear-section h4 {
    color: #1b5e20;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gear-intro {
    margin-bottom: 1.5rem;
}

.gear-intro p {
    color: #2e7d32;
    font-size: 1rem;
    margin: 0;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
}

.product-card.urgent {
    border-color: #ff5722;
    background: linear-gradient(135deg, #fff8f5, #ffffff);
}

.product-card.urgent:hover {
    border-color: #d84315;
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.2);
}

/* Urgent Badge */
.urgent-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff5722, #d84315);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.3);
}

/* Product Image */
.product-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-rating {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Product Info */
.product-info {
    padding: 1rem;
}

.product-info h5 {
    color: #1b5e20;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.product-category {
    color: #4caf50;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.5rem 0;
}

.product-why {
    color: #2e7d32;
    font-size: 0.9rem;
    font-style: italic;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

/* Feature Tags */
.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    color: #1b5e20;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #a5d6a7;
}

/* Product Footer */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
}

.product-price {
    flex: 1;
}

.product-price .price {
    color: #1b5e20;
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.2rem;
}

.product-price .retailer {
    color: #666;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Buy Button */
.btn-buy {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    border: none;
    cursor: pointer;
}

.btn-buy:hover {
    background: linear-gradient(135deg, #388e3c, #4caf50);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    text-decoration: none;
    color: white;
}

.btn-buy.urgent {
    background: linear-gradient(135deg, #ff5722, #f4511e);
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.3);
}

.btn-buy.urgent:hover {
    background: linear-gradient(135deg, #d84315, #ff5722);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

/* Gear Disclaimer */
.gear-disclaimer {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin-top: 1rem;
}

.gear-disclaimer small {
    color: #2e7d32;
    font-size: 0.85rem;
    line-height: 1.4;
}

.gear-disclaimer strong {
    color: #1b5e20;
    font-weight: 700;
}

/* Gear Placeholder */
.gear-placeholder {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

.gear-placeholder p {
    margin: 0;
    font-size: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-card {
        margin-bottom: 0;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-info {
        padding: 0.8rem;
    }
    
    .product-info h5 {
        font-size: 1rem;
    }
    
    .product-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    
    .btn-buy {
        width: 100%;
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    .feature-tag {
        font-size: 0.7rem;
    }
    
    .gear-section {
        padding: 1rem;
        margin: 1rem 0;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .product-features {
        gap: 0.3rem;
    }
    
    .feature-tag {
        padding: 0.15rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .product-price .price {
        font-size: 1.1rem;
    }
    
    .urgent-badge {
        padding: 0.25rem 0.6rem;
        font-size: 0.7rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .gear-section {
        background: linear-gradient(135deg, #2d2d2d, #1e3a1e);
        border-color: #4caf50;
    }
    
    .gear-intro p {
        color: #81c784;
    }
    
    .product-card {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .product-card.urgent {
        background: linear-gradient(135deg, #3d2d2d, #2d2d2d);
    }
    
    .product-info h5 {
        color: #81c784;
    }
    
    .product-category {
        color: #a5d6a7;
    }
    
    .product-why {
        color: #c8e6c9;
    }
    
    .feature-tag {
        background: rgba(76, 175, 80, 0.2);
        color: #a5d6a7;
        border-color: #4caf50;
    }
    
    .product-price .price {
        color: #81c784;
    }
    
    .product-price .retailer {
        color: #bbb;
    }
    
    .gear-disclaimer {
        background: rgba(76, 175, 80, 0.1);
        border-color: #4caf50;
        color: #a5d6a7;
    }
    
    .gear-disclaimer strong {
        color: #81c784;
    }
}

/* Animation for product cards appearing */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: slideInUp 0.6s ease-out forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }