361 lines
5.9 KiB
CSS
361 lines
5.9 KiB
CSS
.item-detail-page {
|
|
background-color: var(--surface);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.detail-header-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 10;
|
|
}
|
|
|
|
.detail-header-overlay .app-header {
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
.detail-header-overlay .back-button {
|
|
background-color: #ffffff;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.item-hero {
|
|
width: 100%;
|
|
height: 260px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
background-color: var(--primary-light);
|
|
}
|
|
|
|
.item-hero-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.item-hero-placeholder {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.placeholder-emoji {
|
|
font-size: 4rem;
|
|
}
|
|
|
|
.item-details-content {
|
|
margin-top: -30px;
|
|
background-color: var(--surface);
|
|
border-radius: 32px 32px 0 0;
|
|
padding: 24px 20px;
|
|
position: relative;
|
|
z-index: 2;
|
|
box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
.item-title-section {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 16px;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.title-left {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.item-name-large {
|
|
font-size: 22px;
|
|
font-weight: 850;
|
|
color: var(--text-dark);
|
|
line-height: 1.2;
|
|
letter-spacing: -0.5px;
|
|
}
|
|
|
|
.item-subtitle {
|
|
font-size: 13px;
|
|
color: var(--text-mid);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.title-right {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.detail-quantity-pill {
|
|
display: flex;
|
|
align-items: center;
|
|
background-color: #f1f3f1;
|
|
border-radius: 30px;
|
|
padding: 3px;
|
|
gap: 10px;
|
|
border: 1px solid rgba(92, 110, 88, 0.05);
|
|
}
|
|
|
|
.qty-btn {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
background-color: #ffffff;
|
|
color: var(--text-dark);
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
|
|
transition: transform 0.15s ease;
|
|
}
|
|
|
|
.qty-btn:active {
|
|
transform: scale(0.9);
|
|
}
|
|
|
|
.qty-btn:disabled {
|
|
opacity: 0.3;
|
|
cursor: not-allowed;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.qty-val {
|
|
font-size: 13px;
|
|
font-weight: 750;
|
|
min-width: 14px;
|
|
text-align: center;
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
.detail-badges-row {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 20px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.badge-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
border: 1px solid var(--border);
|
|
padding: 6px 12px;
|
|
border-radius: 20px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
color: var(--text-mid);
|
|
}
|
|
|
|
.badge-item.star svg {
|
|
color: var(--star);
|
|
fill: var(--star);
|
|
}
|
|
|
|
.badge-item.time svg {
|
|
color: var(--text-mid);
|
|
}
|
|
|
|
.badge-item.kcal svg {
|
|
color: #ff4d4f;
|
|
fill: #ff4d4f;
|
|
}
|
|
|
|
.item-description-section {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.item-long-description {
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
color: var(--text-mid);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.customize-trigger {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: var(--primary);
|
|
background: transparent;
|
|
padding: 0;
|
|
border: none;
|
|
}
|
|
|
|
.item-extra-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
border-top: 1px solid var(--border);
|
|
padding-top: 16px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.info-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.info-label {
|
|
font-size: 12px;
|
|
color: var(--text-mid);
|
|
}
|
|
|
|
.info-value {
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
.info-value.green { color: var(--green); }
|
|
.info-value.red { color: var(--red); }
|
|
|
|
.item-footer {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 80px;
|
|
background-color: var(--surface);
|
|
padding: 12px 20px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
box-shadow: 0 -4px 15px rgba(92, 110, 88, 0.05);
|
|
border-top: 1px solid var(--border);
|
|
z-index: 101;
|
|
gap: 16px;
|
|
}
|
|
|
|
.footer-price-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
}
|
|
|
|
.total-label {
|
|
font-size: 10px;
|
|
color: var(--text-light);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.total-value {
|
|
font-size: 18px;
|
|
font-weight: 850;
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
.footer-action {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.primary-action-button {
|
|
background-color: var(--primary);
|
|
color: white;
|
|
padding: 12px 28px;
|
|
border-radius: 30px;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
border: none;
|
|
width: 150px;
|
|
text-align: center;
|
|
transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.1);
|
|
box-shadow: 0 4px 12px rgba(92, 110, 88, 0.15);
|
|
}
|
|
|
|
.primary-action-button:active {
|
|
transform: scale(0.96);
|
|
}
|
|
|
|
.primary-action-button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.limit-reached-info {
|
|
background-color: #fef2f2;
|
|
border: 1px solid #fee2e2;
|
|
padding: 10px 12px;
|
|
border-radius: 12px;
|
|
margin-top: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: #ef4444;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* Loading & Not Found States */
|
|
.item-loading-wrapper, .item-not-found-wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
background: var(--bg);
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.loading-spinner-wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 16px;
|
|
color: var(--text-mid);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.loading-spinner {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 3px solid var(--border);
|
|
border-top-color: var(--primary);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.not-found-content {
|
|
padding: 40px 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.not-found-icon {
|
|
color: var(--text-light);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.not-found-content h2 {
|
|
font-size: 1.5rem;
|
|
font-weight: 800;
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
.not-found-content p {
|
|
color: var(--text-mid);
|
|
max-width: 250px;
|
|
}
|
|
|
|
.back-home-btn {
|
|
margin-top: 12px;
|
|
padding: 12px 24px;
|
|
background: var(--primary);
|
|
color: white;
|
|
border-radius: 12px;
|
|
font-weight: 700;
|
|
border: none;
|
|
}
|