307 lines
5.0 KiB
CSS
307 lines
5.0 KiB
CSS
/* Cart Page Styles */
|
|
.custom-dropdown {
|
|
position: relative;
|
|
width: 100%;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.dropdown-selected {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 10px;
|
|
border: 2px solid #e5e7eb;
|
|
border-radius: 12px;
|
|
background: white;
|
|
cursor: pointer !important;
|
|
transition: all 0.2s ease;
|
|
font-weight: 500;
|
|
user-select: none;
|
|
position: relative;
|
|
z-index: 1001;
|
|
}
|
|
|
|
.dropdown-selected:hover,
|
|
.dropdown-selected.active {
|
|
border-color: #f66d2f;
|
|
box-shadow: 0 0 0 3px rgba(246, 109, 47, 0.1);
|
|
}
|
|
|
|
.dropdown-options {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
background: white;
|
|
border: 2px solid #f66d2f;
|
|
border-radius: 12px;
|
|
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
|
|
z-index: 1002;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
margin-top: 4px;
|
|
display: none;
|
|
}
|
|
|
|
.dropdown-options.show {
|
|
display: block !important;
|
|
}
|
|
|
|
.dropdown-option {
|
|
padding: 12px 16px;
|
|
cursor: pointer !important;
|
|
transition: all 0.2s ease;
|
|
border-bottom: 1px solid #f3f4f6;
|
|
user-select: none;
|
|
}
|
|
|
|
.dropdown-option:hover {
|
|
background: #fff5f0;
|
|
color: #f66d2f;
|
|
}
|
|
|
|
.dropdown-option.selected {
|
|
background: #f66d2f;
|
|
color: white;
|
|
}
|
|
|
|
.dropdown-option:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.dropdown-arrow {
|
|
transition: transform 0.2s ease;
|
|
color: #6b7280;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.dropdown-selected.active .dropdown-arrow,
|
|
.dropdown-arrow.rotate-180 {
|
|
transform: rotate(180deg);
|
|
color: #f66d2f;
|
|
}
|
|
|
|
/* Product Feature Icons */
|
|
.product-feature {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.product-feature-icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.product-feature-content {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.product-feature-label {
|
|
font-weight: 600;
|
|
color: #374151;
|
|
}
|
|
|
|
.product-feature-value {
|
|
font-weight: 600;
|
|
color: #1e40af;
|
|
}
|
|
|
|
.product-feature-unit {
|
|
font-size: 12px;
|
|
color: #2563eb;
|
|
}
|
|
|
|
/* OS Selection */
|
|
.os-group {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.os-group-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.os-group-thumbnail {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.os-group-name {
|
|
font-weight: 500;
|
|
color: #374151;
|
|
}
|
|
|
|
.os-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.os-option {
|
|
position: relative;
|
|
border: 2px solid #e5e7eb;
|
|
border-radius: 12px;
|
|
padding: 12px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
transition: all 0.2s ease;
|
|
text-align: left;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
width: 100%;
|
|
background: white;
|
|
color: #374151;
|
|
}
|
|
|
|
.os-option:hover {
|
|
background: #f9fafb;
|
|
}
|
|
|
|
.os-option.selected {
|
|
border-color: #f66d2f;
|
|
background: #fff7ed;
|
|
color: #ea580c;
|
|
box-shadow: 0 0 0 3px rgba(246, 109, 47, 0.1);
|
|
}
|
|
|
|
.os-option-thumbnail {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 4px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.os-option-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.os-option-name {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.os-option-version {
|
|
font-size: 12px;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.os-option-check {
|
|
position: absolute;
|
|
top: 4px;
|
|
right: 4px;
|
|
background: #f66d2f;
|
|
color: white;
|
|
border-radius: 50%;
|
|
padding: 2px;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
/* Empty Cart */
|
|
.empty-cart {
|
|
text-align: center;
|
|
padding: 64px 16px;
|
|
}
|
|
|
|
.empty-cart-icon {
|
|
width: 96px;
|
|
height: 96px;
|
|
background: #f3f4f6;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0 auto 24px;
|
|
}
|
|
|
|
.empty-cart-icon svg {
|
|
width: 48px;
|
|
height: 48px;
|
|
color: #9ca3af;
|
|
}
|
|
|
|
.empty-cart-title {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
color: #1f2937;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.empty-cart-description {
|
|
color: #6b7280;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.empty-cart-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 12px 24px;
|
|
background: #2563eb;
|
|
color: white;
|
|
font-weight: 500;
|
|
border-radius: 8px;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.empty-cart-button:hover {
|
|
background: #1d4ed8;
|
|
}
|
|
|
|
.empty-cart-button svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
/* Skeleton Loading Animation */
|
|
@keyframes pulse {
|
|
0%, 100% {
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
opacity: .5;
|
|
}
|
|
}
|
|
|
|
.animate-pulse {
|
|
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.os-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.dropdown-options {
|
|
max-height: 150px;
|
|
}
|
|
|
|
.product-feature {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
}
|
|
}
|
|
|
|
/* Hide content until Alpine.js is ready */
|
|
[x-cloak] {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Skeleton loading states */
|
|
.skeleton-active {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.skeleton-active * {
|
|
pointer-events: none;
|
|
} |