motayeb/assets/css/woocommerce.css
Kazem Alghasi 5d0accae73 style(css): add dedicated WooCommerce stylesheets
Introduce a new dedicated stylesheet for WooCommerce components to manage product grids, single product layouts, and cart/checkout styling. This centralizes WooCommerce-specific CSS and improves maintainability.
2026-09-20 17:13:50 +03:30

131 lines
2.5 KiB
CSS

/* ============================================
استایل‌های اختصاصی ووکامرس
============================================ */
/* محصولات در صفحه فروشگاه */
.products {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 30px;
list-style: none;
}
.product {
background: var(--bg-color);
border: 1px solid var(--border-color);
border-radius: 10px;
overflow: hidden;
transition: var(--transition);
}
.product:hover {
transform: translateY(-5px);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.product img {
width: 100%;
height: 280px;
object-fit: cover;
}
.product-info {
padding: 15px;
text-align: center;
}
.product-title {
font-size: 18px;
margin-bottom: 10px;
}
.product-price {
color: var(--primary-color);
font-weight: bold;
font-size: 20px;
}
.add-to-cart-btn {
display: inline-block;
margin-top: 10px;
padding: 10px 25px;
background: var(--primary-color);
color: #fff;
border-radius: 50px;
transition: var(--transition);
}
.add-to-cart-btn:hover {
background: var(--primary-dark);
}
/* ============================================
صفحه محصول (Single Product)
============================================ */
.product-gallery {
display: flex;
gap: 30px;
margin-bottom: 40px;
}
.product-gallery .images {
flex: 1;
}
.product-gallery .summary {
flex: 1;
}
.product-gallery img {
width: 100%;
border-radius: 10px;
}
/* ============================================
سبد خرید و تسویه‌حساب
============================================ */
.cart-table {
width: 100%;
border-collapse: collapse;
}
.cart-table th,
.cart-table td {
padding: 12px;
border-bottom: 1px solid var(--border-color);
text-align: center;
}
.cart-table th {
background: var(--light-bg);
font-weight: bold;
}
.cart-actions {
margin-top: 20px;
display: flex;
justify-content: space-between;
}
/* ============================================
واکنش‌گرایی ووکامرس
============================================ */
@media (max-width: 768px) {
.products {
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
gap: 15px;
}
.product-gallery {
flex-direction: column;
}
.cart-table {
font-size: 14px;
}
.cart-table th,
.cart-table td {
padding: 8px;
}
}