37048-vm/assets/css/custom.css
2025-12-07 20:08:31 +00:00

333 lines
6.0 KiB
CSS

/* Resetting styles for the new theme. */
.about-us-list {
width: 80vw;
display: grid;
list-style: none;
padding: 0;
grid-template-columns: repeat(3, 1fr);
justify-items: center;
margin: 0 auto;
gap: 20px;
}
.about-us-item {
width: 20vw;
min-width: 200px;
border-radius: 20px;
text-align: center;
border: 1px solid #ebebeb;
}
.inner {
position: relative;
inset: 0px;
overflow: hidden;
transition: inherit;
}
.inner::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(-65deg, #0000 40%, #fff7 50%, #0000 70%);
background-size: 200% 100%;
background-repeat: no-repeat;
animation: thing 1.5s ease infinite;
border-radius: 20px;
}
@keyframes thing {
0% {
background-position: 130%;
opacity: 1;
}
to {
background-position: -166%;
opacity: 0;
}
}
@media (max-width: 768px) {
.about-us-list {
grid-template-columns: 1fr;
}
.about-us-item {
width: 80%;
}
}
/* --- Order Tracking Modal Styles --- */
.tracking-modal-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1050;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.tracking-modal-container.visible {
opacity: 1;
visibility: visible;
}
.modal-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
}
.modal-content {
position: relative;
background-color: #2c2c2c;
color: #f0f0f0;
border-radius: 15px;
width: 90%;
max-width: 800px;
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
border: 1px solid rgba(255, 255, 255, 0.1);
transform: scale(0.95);
transition: transform 0.3s ease;
}
.tracking-modal-container.visible .modal-content {
transform: scale(1);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-header h3 {
margin: 0;
font-size: 1.5rem;
font-weight: 500;
}
#modal-order-id {
font-weight: bold;
color: var(--bs-primary);
}
.modal-close-btn {
background: none;
border: none;
color: #f0f0f0;
font-size: 2rem;
line-height: 1;
cursor: pointer;
opacity: 0.7;
transition: opacity 0.2s;
}
.modal-close-btn:hover {
opacity: 1;
}
.modal-body {
padding: 1.5rem;
display: grid;
gap: 2rem;
}
.order-summary,
.shipping-details,
.products-list,
.status-details {
background-color: rgba(255, 255, 255, 0.05);
padding: 1.5rem;
border-radius: 10px;
}
.order-summary {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
}
.modal-body h4 {
margin-top: 0;
margin-bottom: 1rem;
font-weight: 500;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
padding-bottom: 0.5rem;
}
.detail-item {
font-size: 0.95rem;
}
.detail-item strong {
color: #a0a0a0;
margin-left: 8px;
}
/* --- Status Tracker --- */
.status-tracker {
position: relative;
display: flex;
justify-content: space-between;
padding: 20px 0;
margin-top: 20px;
}
.status-tracker::before {
content: '';
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 0;
width: calc(100% - 40px);
margin: 0 20px;
height: 4px;
background-color: #444;
z-index: 1;
}
.status-progress {
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 20px;
height: 4px;
background-color: var(--bs-primary);
z-index: 2;
transition: width 0.5s ease;
}
.status-step {
position: relative;
z-index: 3;
text-align: center;
width: 100px;
}
.status-step .dot {
width: 20px;
height: 20px;
border-radius: 50%;
background-color: #444;
border: 3px solid #2c2c2c;
margin: 0 auto;
transform: translateY(-8px);
transition: background-color 0.5s ease;
}
.status-step .label {
display: block;
margin-top: 10px;
font-size: 0.8rem;
color: #a0a0a0;
transition: color 0.5s ease;
}
/* State Styling */
.status-step.completed .dot {
background-color: var(--bs-primary);
}
.status-step.active .dot {
background-color: #fff;
box-shadow: 0 0 10px var(--bs-primary);
}
.status-step.completed .label {
color: #f0f0f0;
font-weight: 500;
}
.status-tracker.is-cancelled ~ .status-step:not([data-status="cancelled"]) {
opacity: 0.3;
}
.status-tracker.is-cancelled .status-step[data-status="cancelled"] .dot {
background-color: var(--bs-danger);
}
.status-tracker.is-cancelled .status-step[data-status="cancelled"] .label {
color: var(--bs-danger);
font-weight: bold;
}
/* --- Products List --- */
#modal-products-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.product-item {
display: flex;
align-items: center;
gap: 1rem;
background: rgba(255, 255, 255, 0.05);
padding: 10px;
border-radius: 8px;
}
.product-item img {
width: 60px;
height: 60px;
object-fit: cover;
border-radius: 6px;
}
.product-info {
flex-grow: 1;
}
.product-name {
display: block;
font-weight: 500;
}
.product-quantity {
font-size: 0.9rem;
color: #a0a0a0;
}
.product-price {
font-weight: bold;
}
/* --- Product Color Dot --- */
.product-meta {
display: flex;
align-items: center;
gap: 1rem;
font-size: 0.9rem;
color: #a0a0a0;
margin-top: 4px;
}
.product-color-wrapper {
display: inline-flex;
align-items: center;
gap: 0.5rem;
}
.product-color-dot {
width: 16px;
height: 16px;
border-radius: 50%;
border: 1px solid rgba(255, 255, 255, 0.2);
display: inline-block;
}