.ptd-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.ptd-filters {
    margin-bottom: 20px;
}

.ptd-filters select {
    width: 100%;
    max-width: 300px;
    padding: 8px;
}

.ptd-grid-container {
    width: 100%;
}

#ptd-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.product-card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background: #fff;
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    margin-bottom: 15px;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.image-prev {
    left: 10px;
}

.image-next {
    right: 10px;
}

.product-title {
    font-size: 1.1em;
    margin-bottom: 10px;
    font-weight: bold;
}

.product-category {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.quantity-input {
    width: 60px;
    padding: 5px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.add-to-cart-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
}

.add-to-cart-btn:hover {
    background-color: #45a049;
}

#ptd-loading {
    text-align: center;
    padding: 20px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    #ptd-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-title {
        font-size: 1em;
    }
    
    .product-price {
        font-size: 1.1em;
    }
    
    .quantity-input {
        width: 40px;
    }
}

@media screen and (max-width: 480px) {
    #ptd-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .product-card {
        padding: 10px;
    }
    
    .image-nav {
        width: 25px;
        height: 25px;
        padding: 5px;
    }
} 