Implement a complete overhaul of the theme templates to match the Kolli UI design, including enhanced WooCommerce support, dark mode functionality, and improved responsive layouts. - Redesign core templates: front-page, archive, single, and product pages - Implement dynamic WooCommerce templates for shop, single product, and checkout - Add comprehensive asset structure including fonts, images, and custom CSS/JS - Integrate Tailwind CSS via CDN with custom configuration for brand colors - Add dark mode support with local storage persistence - Refactor functions.php for better theme setup and script enqueuing - Implement custom product meta fields for ingredients and health benefits - Add responsive design improvements and custom animations
131 lines
2.5 KiB
CSS
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;
|
|
}
|
|
} |