/* cw-products.css - ONLY product browsing UI */
.cw-product-card {
flex: 0 0 calc(25% - 18px);
background: #fff;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0,0,0,0.08);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
flex-direction: column;
max-width: 100%;
}
.cw-product-card:hover {
transform: translateY(-8px);
box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.cw-product-image-wrap {
position: relative;
height: 280px;
background: linear-gradient(180deg, #fafafa 0%, #f2f2f2 100%);
display: flex;
align-items: center;
justify-content: center;
padding: 12px;
overflow: hidden;
}
.cw-product-image-wrap > a {
display: flex;
width: 100%;
height: 100%;
align-items: center;
justify-content: center;
text-decoration: none;
flex: 1;
}
.cw-product-image-wrap > a img {
width: 100%;
height: 100%;
display: block;
object-fit: contain;
}
.cw-product-image-wrap img {
width: 100%;
height: 100%;
object-fit: contain;
transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cw-product-card:hover .cw-product-image-wrap img {
transform: scale(1.04);
}
.cw-view-demo-overlay {
position: absolute;
top: 12px;
right: 12px;
background: rgba(255,255,255,0.95);
color: #1a73e8;
padding: 6px 14px;
border-radius: 30px;
font-size: 13px;
font-weight: 600;
text-decoration: none;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
opacity: 0;
transition: all 0.3s ease;
z-index: 2;
}
.cw-product-card:hover .cw-view-demo-overlay {
opacity: 1;
transform: translateY(0);
}
.cw-product-content {
padding: 16px;
flex: 1;
display: flex;
flex-direction: column;
}
.cw-product-title {
margin: 0 0 8px 0;
font-size: 17px;
line-height: 1.35;
font-weight: 600;
color: #1a1a1a;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.cw-product-short-desc {
font-size: 13.5px;
color: #333;
margin: 4px 0 16px 0;
line-height: 1.6;
flex: 1;
padding: 12px 14px;
background: linear-gradient(135deg, #fdfdfd 0%, #f4f7fb 100%);
border-radius: 12px;
border: 1px solid #eef2f7;
border-left: 4px solid #1a73e8;
box-shadow: 0 2px 6px rgba(0,0,0,0.02);
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
transition: all 0.3s ease;
}
.cw-product-card:hover .cw-product-short-desc {
border-left-color: #0d47a1;
box-shadow: 0 4px 10px rgba(26, 115, 232, 0.1);
}
.cw-product-price-wrap {
margin-bottom: 14px;
}
.cw-old-price {
text-decoration: line-through;
color: #888;
font-size: 14px;
margin-right: 8px;
}
.cw-current-price {
font-size: 20px;
font-weight: 700;
color: #e60023;
}
.cw-view-details-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
width: 100%;
padding: 12px 16px;
margin-bottom: 10px;
text-align: center;
background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
color: #1a73e8;
border-radius: 12px;
text-decoration: none;
font-weight: 600;
font-size: 14px;
border: 1px solid #d1e0ff;
box-shadow: 0 2px 4px rgba(0,0,0,0.04);
transition: all 0.25s ease;
}
.cw-view-details-btn:hover {
background: linear-gradient(180deg, #f8faff 0%, #f0f4ff 100%);
border-color: #a8c5ff;
transform: translateY(-2px);
box-shadow: 0 4px 10px rgba(26, 115, 232, 0.15);
}
.cw-buy-card-btn {
width: 100%;
padding: 12px 20px;
background: linear-gradient(135deg, #00e676, #00c853);
color: #fff;
border: none;
border-radius: 10px;
font-weight: 700;
font-size: 15px;
cursor: pointer;
box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
transition: all 0.2s ease;
}
.cw-buy-card-btn:hover {
transform: translateY(-1px);
box-shadow: 0 8px 20px rgba(0, 200, 83, 0.4);
}
.cw-products-container {
position: relative;
max-width: 100%;
margin: 0 auto;
}
.cw-product-grid {
display: flex;
flex-wrap: wrap;
gap: 24px;
justify-content: flex-start;
}
.cw-product-slider .cw-slider-wrapper {
overflow: hidden;
border-radius: 12px;
padding: 4px;
}
.cw-slider-track {
display: flex;
gap: 24px;
transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
will-change: transform;
}
.cw-slider-prev,
.cw-slider-next {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 48px;
height: 48px;
background: #fff;
border: 1px solid #e0e0e0;
border-radius: 50%;
font-size: 22px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
z-index: 10;
color: #333;
transition: all 0.2s ease;
user-select: none;
}
.cw-slider-prev:hover,
.cw-slider-next:hover {
background: #f8f9fa;
transform: translateY(-50%) scale(1.05);
box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.cw-slider-prev { left: -20px; }
.cw-slider-next { right: -20px; }
.cw-slider-prev:focus,
.cw-slider-next:focus,
.cw-view-demo-btn:focus,
.cw-view-details-btn:focus,
.cw-buy-card-btn:focus {
outline: 3px solid #1a73e8;
outline-offset: 3px;
}
[dir="rtl"] .cw-slider-prev { left: auto; right: -20px; }
[dir="rtl"] .cw-slider-next { right: auto; left: -20px; }
@media (max-width: 1024px) {
.cw-product-card,
.cw-product-grid .cw-product-card {
flex: 0 0 calc(50% - 12px);
}
}
@media (max-width: 640px) {
.cw-product-card,
.cw-product-grid .cw-product-card {
flex: 0 0 100%;
}
.cw-slider-prev { left: 10px; }
.cw-slider-next { right: 10px; }
}
