.wshop-products {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 24px;
padding: 20px 0;
}
.wshop-product {
display: flex;
flex-direction: column;
height: 100%;
}
.wshop-product-image {
width: 100%;
aspect-ratio: 1 / 1;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
.wshop-product-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.wshop-product-info {
display: flex;
flex-direction: column;
flex-grow: 1;
}
.wshop-product-info h3 {
margin: 0 0 8px 0;
font-size: 18px;
}
.wshop-product-info h3 a {
text-decoration: none;
}
.wshop-product-description {
font-size: 14px;
line-height: 1.5;
margin: 8px 0;
flex-grow: 1;
}
.wshop-product-price {
display: block;
margin: 12px 0;
}
.wshop-add-to-cart {
width: 100%;
text-align: center;
text-decoration: none;
display: inline-block;
} .wshop-single-product {
max-width: 1200px;
margin: 0 auto;
padding: 40px 20px;
}
.wshop-single-product-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 40px;
}
.wshop-single-product-images {
position: sticky;
top: 20px;
height: fit-content;
}
.wshop-single-product-image {
width: 100%;
aspect-ratio: 1 / 1;
margin-bottom: 20px;
}
.wshop-single-product-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.wshop-product-gallery {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
}
.wshop-product-gallery-thumbnail {
cursor: pointer;
border: 2px solid transparent;
}
.wshop-product-gallery-thumbnail.active {
border-color: currentColor;
}
.wshop-product-gallery-thumbnail img {
width: 100%;
height: 100%;
object-fit: cover;
}
.wshop-single-product-info h1 {
margin: 0 0 16px 0;
font-size: 32px;
}
.wshop-single-product-price {
font-size: 28px;
font-weight: bold;
margin: 16px 0;
}
.wshop-single-product-description {
line-height: 1.6;
margin: 24px 0;
}
.wshop-quantity {
display: flex;
align-items: center;
gap: 10px;
margin: 20px 0;
}
.wshop-quantity input {
width: 60px;
text-align: center;
padding: 8px;
} .wshop-cart {
max-width: 1200px;
margin: 0 auto;
padding: 40px 20px;
}
.wshop-cart-table {
width: 100%;
margin-bottom: 30px;
}
.wshop-cart-item-image img {
width: 80px;
height: 80px;
object-fit: cover;
}
.wshop-cart-totals {
max-width: 400px;
margin-left: auto;
}
.wshop-cart-total {
display: flex;
justify-content: space-between;
padding: 10px 0;
font-size: 18px;
font-weight: bold;
} .wshop-checkout-form {
max-width: 1200px;
margin: 0 auto;
padding: 40px 20px;
}
.wshop-checkout-content {
display: grid;
grid-template-columns: 1fr 400px;
gap: 40px;
}
.wshop-checkout-fields {
display: grid;
gap: 20px;
}
.wshop-checkout-field {
display: flex;
flex-direction: column;
}
.wshop-checkout-field label {
margin-bottom: 8px;
}
.wshop-checkout-summary {
position: sticky;
top: 20px;
height: fit-content;
} .wshop-notifications-container {
position: fixed;
top: 20px;
right: 20px;
z-index: 10000;
max-width: 400px;
}
.wshop-notification {
padding: 16px 20px;
margin-bottom: 10px;
border-radius: 6px;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
animation: slideInRight 0.3s ease;
}
@keyframes slideInRight {
from {
opacity: 0;
transform: translateX(100%);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.wshop-notification.success {
background: #10b981;
color: white;
}
.wshop-notification.error {
background: #ef4444;
color: white;
} .wshop-modal {
display: none;
position: fixed;
z-index: 10000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
}
.wshop-modal-content {
position: relative;
background: white;
margin: 5% auto;
padding: 20px;
max-width: 800px;
border-radius: 8px;
}
.wshop-modal-close {
position: absolute;
top: 10px;
right: 15px;
font-size: 28px;
font-weight: bold;
cursor: pointer;
} @media (max-width: 768px) {
.wshop-products {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 16px;
}
.wshop-single-product-content,
.wshop-checkout-content {
grid-template-columns: 1fr;
}
.wshop-cart-table {
font-size: 14px;
}
.wshop-notifications-container {
left: 20px;
right: 20px;
max-width: none;
}
}