Untitled
unknown
plain_text
a year ago
4.8 kB
5
Indexable
/* Page Container */
.curtain-page {
padding: 40px 80px;
font-family: Arial, sans-serif;
}
/* Breadcrumb Section */
.breadcrumb {
font-size: 16px;
color: #555;
margin-bottom: 20px;
}
.breadcrumb .current-page {
font-weight: bold;
color: #000;
}
/* Flex Container */
.curtain-container {
display: flex;
gap: 40px;
}
/* Sidebar Styles */
.sidebar {
width: 250px;
padding-right: 20px;
border-right: 1px solid #ddd;
}
.sidebar h3 {
font-size: 24px;
font-weight: bold;
margin-bottom: 20px;
}
/* Filter Sections */
.filter-section {
margin-bottom: 20px;
}
.filter-header {
font-size: 18px;
font-weight: bold;
cursor: pointer;
padding: 10px 0;
border-bottom: 1px solid #ddd;
display: flex;
justify-content: space-between;
align-items: center;
}
.filter-header:hover {
color: #ff6600;
}
/* Size Filter Options */
.filter-options {
padding: 10px 0;
list-style: none;
}
.filter-options li {
font-size: 16px;
padding: 8px 0;
display: flex;
align-items: center;
}
.filter-options input {
margin-right: 10px;
}
/* Color Filter Options */
.color-options {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
margin-top: 10px;
}
.color-circle {
width: 30px;
height: 30px;
border-radius: 50%;
cursor: pointer;
border: 1px solid #ccc;
transition: transform 0.3s ease;
}
.color-circle:hover {
transform: scale(1.1);
}
.color-circle.selected {
border: 2px solid #000;
}
/* Price Filter */
.price-filter {
padding-top: 10px;
}
.price-filter input[type="range"] {
width: 100%;
cursor: pointer;
}
.price-filter p {
font-size: 16px;
color: #333;
margin-top: 5px;
}
/* Content Section */
.curtain-content {
flex: 1;
}
/* Content Header */
.content-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.content-header h2 {
font-size: 28px;
font-weight: bold;
}
.content-header .items-count {
font-size: 18px;
color: #888;
margin-left: 10px;
}
.sort-dropdown {
padding: 10px;
font-size: 16px;
border: 1px solid #ddd;
border-radius: 5px;
}
/* Curtain List - Flexbox Layout */
/* Curtain List - Flexbox Layout */
.curtain-list {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
/* Curtain Card Styling */
.curtain-card {
position: relative;
border: 1px solid #ddd;
border-radius: 8px;
overflow: hidden;
text-align: center;
width: calc(22.22% - 20px); /* Ensures 3 items per row */
background: #fff;
transition: transform 0.3s ease;
margin: 20px;
padding: 15px;
transition: box-shadow 0.3s ease;
}
.curtain-card:hover {
transform: scale(1.05);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.curtain-info {
display: flex;
justify-content: space-between; /* Aligns name to the left and price to the right */
align-items: center;
}
.curtain-info h3 {
margin: 0;
font-size: 1rem;
font-weight: 600;
color: #333;
}
.curtain-info .price {
margin: 0;
font-size: 1rem;
font-weight: 600;
color:#ff6600;
}
.curtain-card img {
width: 100%;
max-width: 100%;
height: auto;
object-fit: cover;
}
.curtain-card h3 {
font-size: 20px;
margin: 15px 0 5px;
font-weight: 500;
}
.hover-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
/* background: rgba(255, 255, 255, 0.9); */
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: center;
padding: 10px;
opacity: 0;
transition: opacity 0.3s ease;
}
.curtain-card:hover .hover-overlay {
opacity: 1;
}
.hover-buttons {
display: flex;
gap: 10px;
margin-bottom: 10px;
}
.btn-add-to-cart,
.btn-buy-now {
background-color: #333;
color: white;
border: none;
padding: 5px 10px;
margin-bottom: -15px;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s ease;
}
.btn-add-to-cart:hover,
.btn-buy-now:hover {
background-color: #555;
}
.hover-icon {
position: absolute;
font-size: 20px;
cursor: pointer;
color: #333;
right: 0;
bottom: 60px;
}
.hover-icon:hover {
color: #555;
}
/* Responsive Design for Smaller Screens */
@media (max-width: 992px) {
.curtain-card {
width: calc(50% - 20px);
}
.color-options {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 576px) {
.curtain-card {
width: 100%;
}
.curtain-card img {
height: 250px;
}
.sidebar {
width: 100%;
border-right: none;
}
.filter-header {
font-size: 16px;
}
}
Editor is loading...
Leave a Comment