/* Product Cards Styles */

.products-section {
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

/* Background elements */
.products-bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.products-bg-circle-1 {
    width: 300px;
    height: 300px;
    background-color: var(--primary-200);
    top: -100px;
    left: -100px;
}

.products-bg-circle-2 {
    width: 200px;
    height: 200px;
    background-color: var(--accent-200);
    bottom: -50px;
    right: -50px;
}

.products-bg-circle-3 {
    width: 150px;
    height: 150px;
    background-color: var(--primary-100);
    top: 50%;
    right: 10%;
}

.products-bg-wave {
    position: absolute;
    width: 100%;
    height: 100px;
    background-image: url('../svg/wave-pattern.svg');
    background-size: contain;
    background-repeat: repeat-x;
    opacity: 0.05;
    z-index: 0;
}

.products-bg-wave-1 {
    top: 20%;
    left: 0;
}

.products-bg-wave-2 {
    bottom: 10%;
    left: 0;
    transform: scaleY(-1);
}

/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

/* Product card */
.product-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    background-color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Card header with icon */
.product-card-header {
    padding: 2rem 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.product-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-icon {
    transform: scale(1.1);
}

.product-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: transform 0.3s ease;
}

/* Different gradient overlays for each product type */
.product-card.beachflag .product-card-overlay {
    background: linear-gradient(135deg, var(--primary-200), var(--primary-100));
}

.product-card.flag .product-card-overlay {
    background: linear-gradient(135deg, var(--accent-200), var(--accent-100));
}

.product-card.banner .product-card-overlay {
    background: linear-gradient(135deg, #71c4ef, #4fa8d8);
}

.product-card.special .product-card-overlay {
    background: linear-gradient(135deg, #FF7F50, #FF9F70);
}

.product-card.pillow .product-card-overlay {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
}

.product-card.frame .product-card-overlay {
    background: linear-gradient(135deg, #9C27B0, #BA68C8);
}

/* Card content */
.product-card-content {
    padding: 1rem 2rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-100);
    position: relative;
    z-index: 2;
}

.product-card-description {
    color: var(--text-200);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

/* Card link */
.product-card-link-wrapper {
    margin-top: auto;
}

.product-card-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-200);
    font-weight: 600;
    transition: transform 0.2s ease, color 0.2s ease;
}

.product-card:hover .product-card-link {
    color: var(--accent-200);
}

.product-card-link:hover {
    transform: translateX(5px);
}

.product-card-link i {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.product-card-link:hover i {
    transform: translateX(3px);
}

/* Decorative elements inside cards */
.product-card-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.product-card-circle-1 {
    width: 80px;
    height: 80px;
    background-color: white;
    top: -20px;
    right: -20px;
}

.product-card-circle-2 {
    width: 40px;
    height: 40px;
    background-color: white;
    bottom: 20px;
    left: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

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