Files
marketplaces/src/app/pages/item-detail/item-detail.component.scss

1422 lines
24 KiB
SCSS
Raw Normal View History

2026-02-14 02:34:11 +04:00
// ========== DEXAR ITEM DETAIL - Redesigned 2026 ==========
$dx-font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
$dx-dark: #1e3c38;
$dx-primary: #497671;
$dx-secondary: #a1b4b5;
$dx-muted: #697777;
$dx-border: #d3dad9;
$dx-card-bg: #f5f3f9;
.dx-item-container {
2026-01-18 18:57:06 +04:00
max-width: 1200px;
margin: 0 auto;
2026-02-14 02:34:11 +04:00
padding: 24px;
font-family: $dx-font;
2026-01-18 18:57:06 +04:00
}
2026-02-14 02:34:11 +04:00
// Loading & Error
.dx-loading,
.dx-error {
2026-01-18 18:57:06 +04:00
text-align: center;
2026-02-14 02:34:11 +04:00
padding: 80px 20px;
color: $dx-muted;
p { margin: 0; font-size: 1rem; }
2026-01-18 18:57:06 +04:00
}
2026-02-14 02:34:11 +04:00
.dx-spinner {
width: 48px;
height: 48px;
border: 4px solid $dx-border;
border-top-color: $dx-primary;
2026-01-18 18:57:06 +04:00
border-radius: 50%;
2026-02-14 02:34:11 +04:00
animation: dxSpin 0.8s linear infinite;
2026-01-18 18:57:06 +04:00
margin: 0 auto 20px;
}
2026-02-14 02:34:11 +04:00
@keyframes dxSpin {
to { transform: rotate(360deg); }
2026-01-18 18:57:06 +04:00
}
2026-02-14 02:34:11 +04:00
.dx-back-link {
2026-01-18 18:57:06 +04:00
display: inline-block;
margin-top: 20px;
2026-02-14 02:34:11 +04:00
padding: 12px 28px;
background: $dx-primary;
2026-01-18 18:57:06 +04:00
color: white;
text-decoration: none;
2026-02-14 02:34:11 +04:00
border-radius: 13px;
font-weight: 600;
transition: all 0.2s;
2026-01-18 18:57:06 +04:00
&:hover {
2026-02-14 02:34:11 +04:00
background: darken($dx-primary, 8%);
transform: translateY(-1px);
2026-01-18 18:57:06 +04:00
}
}
2026-02-14 02:34:11 +04:00
// Main Content Grid
.dx-item-content {
2026-01-18 18:57:06 +04:00
display: grid;
grid-template-columns: 1fr 1fr;
2026-02-14 02:34:11 +04:00
gap: 48px;
margin-bottom: 48px;
}
// Gallery: thumbnails left + main photo right
.dx-gallery {
display: flex;
gap: 16px;
}
.dx-thumbnails {
display: flex;
flex-direction: column;
gap: 10px;
flex-shrink: 0;
width: 80px;
max-height: 520px;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: $dx-border transparent;
2026-01-18 18:57:06 +04:00
}
2026-02-14 02:34:11 +04:00
.dx-thumb {
width: 80px;
height: 80px;
border: 2px solid $dx-border;
border-radius: 10px;
overflow: hidden;
cursor: pointer;
position: relative;
flex-shrink: 0;
transition: all 0.2s;
background: white;
img {
2026-01-18 18:57:06 +04:00
width: 100%;
2026-02-14 02:34:11 +04:00
height: 100%;
object-fit: contain;
background: white;
padding: 4px;
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
&:hover {
border-color: $dx-secondary;
2026-01-18 18:57:06 +04:00
}
2026-02-14 02:34:11 +04:00
&.active {
border-color: $dx-primary;
box-shadow: 0 0 0 1px $dx-primary;
2026-01-18 18:57:06 +04:00
}
2026-02-14 02:34:11 +04:00
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-video-badge {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 28px;
height: 28px;
background: rgba(0, 0, 0, 0.6);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 10px;
z-index: 1;
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-main-photo {
flex: 1;
aspect-ratio: 1;
background: white;
border: 1px solid $dx-border;
border-radius: 13px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.08);
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
img, video {
width: 100%;
height: 100%;
object-fit: contain;
background: white;
padding: 16px;
}
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-no-image {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
color: $dx-secondary;
font-size: 0.95rem;
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
// Item Info Panel
.dx-info {
display: flex;
flex-direction: column;
gap: 20px;
2026-01-18 18:57:06 +04:00
}
2026-02-14 02:34:11 +04:00
.dx-title {
font-family: $dx-font;
font-size: 1.75rem;
font-weight: 700;
color: $dx-dark;
margin: 0;
line-height: 1.3;
2026-01-18 18:57:06 +04:00
}
2026-02-14 02:34:11 +04:00
.dx-rating {
2026-01-18 18:57:06 +04:00
display: flex;
align-items: center;
2026-02-14 02:34:11 +04:00
gap: 10px;
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-stars {
display: flex;
gap: 3px;
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-rating-value {
font-weight: 700;
font-size: 1rem;
color: $dx-dark;
2026-01-18 18:57:06 +04:00
}
2026-02-14 02:34:11 +04:00
.dx-rating-count {
font-size: 0.9rem;
color: $dx-muted;
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-price-block {
display: flex;
flex-direction: column;
gap: 4px;
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-price-row {
display: flex;
align-items: center;
gap: 10px;
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-old-price {
text-decoration: line-through;
color: $dx-muted;
font-size: 1.1rem;
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-discount-tag {
background: #ef4444;
color: white;
padding: 3px 10px;
border-radius: 20px;
font-weight: 700;
font-size: 0.85rem;
2026-01-18 18:57:06 +04:00
}
2026-02-14 02:34:11 +04:00
.dx-current-price {
font-family: $dx-font;
font-size: 2.25rem;
font-weight: 800;
color: $dx-primary;
line-height: 1.1;
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-stock {
display: flex;
align-items: center;
gap: 10px;
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-stock-label {
font-size: 0.95rem;
color: $dx-muted;
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-stock-status {
display: flex;
align-items: center;
gap: 6px;
font-size: 0.95rem;
font-weight: 600;
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
&.high { color: #2ed573; }
&.medium { color: #ffa502; }
&.low { color: #ef4444; }
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-stock-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: currentColor;
2026-01-18 18:57:06 +04:00
}
2026-02-14 02:34:11 +04:00
.dx-add-cart {
2026-01-18 18:57:06 +04:00
width: 100%;
2026-02-14 02:34:11 +04:00
max-width: 400px;
padding: 16px 24px;
background: $dx-primary;
2026-01-18 18:57:06 +04:00
color: white;
border: none;
2026-02-14 02:34:11 +04:00
border-radius: 13px;
font-family: $dx-font;
font-size: 1.1rem;
font-weight: 700;
2026-01-18 18:57:06 +04:00
cursor: pointer;
2026-02-14 02:34:11 +04:00
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.15);
2026-01-18 18:57:06 +04:00
&:hover {
2026-02-14 02:34:11 +04:00
background: darken($dx-primary, 8%);
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(73, 118, 113, 0.3);
2026-01-18 18:57:06 +04:00
}
&:active {
2026-02-14 02:34:11 +04:00
transform: translateY(0);
2026-01-18 18:57:06 +04:00
}
}
2026-02-14 02:34:11 +04:00
.dx-description {
padding-top: 8px;
border-top: 1px solid $dx-border;
2026-01-18 18:57:06 +04:00
h2 {
2026-02-14 02:34:11 +04:00
font-family: $dx-font;
font-size: 1.3rem;
font-weight: 700;
color: $dx-dark;
margin: 0 0 12px 0;
2026-01-18 18:57:06 +04:00
}
2026-02-14 02:34:11 +04:00
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-description-text {
font-size: 0.95rem;
color: $dx-muted;
line-height: 1.7;
2026-01-18 18:57:06 +04:00
}
2026-02-14 02:34:11 +04:00
// Reviews Section
.dx-reviews-section {
margin-bottom: 48px;
2026-01-18 18:57:06 +04:00
h2 {
2026-02-14 02:34:11 +04:00
font-family: $dx-font;
font-size: 1.5rem;
font-weight: 700;
color: $dx-dark;
margin: 0 0 24px 0;
2026-01-18 18:57:06 +04:00
}
}
2026-02-14 02:34:11 +04:00
.dx-review-form {
background: $dx-card-bg;
border: 1px solid $dx-border;
border-radius: 13px;
2026-01-18 18:57:06 +04:00
padding: 24px;
margin-bottom: 24px;
h3 {
2026-02-14 02:34:11 +04:00
font-family: $dx-font;
2026-01-18 18:57:06 +04:00
margin: 0 0 20px 0;
2026-02-14 02:34:11 +04:00
color: $dx-dark;
font-size: 1.15rem;
font-weight: 700;
2026-01-18 18:57:06 +04:00
}
2026-02-14 02:34:11 +04:00
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-rating-input {
margin-bottom: 16px;
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
label {
display: block;
margin-bottom: 8px;
color: $dx-dark;
font-weight: 600;
font-size: 0.95rem;
}
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-star-selector {
display: flex;
gap: 6px;
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-star-pick {
font-size: 1.8rem;
cursor: pointer;
opacity: 0.25;
transition: all 0.15s;
user-select: none;
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
&.selected { opacity: 1; }
&:hover { opacity: 0.7; transform: scale(1.15); }
2026-01-18 18:57:06 +04:00
}
2026-02-14 02:34:11 +04:00
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-textarea {
width: 100%;
padding: 14px;
border: 1px solid $dx-border;
border-radius: 10px;
font-family: $dx-font;
font-size: 0.95rem;
resize: none;
margin-bottom: 16px;
background: white;
transition: border-color 0.2s;
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
&:focus {
outline: none;
border-color: $dx-primary;
box-shadow: 0 0 0 3px rgba(73, 118, 113, 0.1);
2026-01-18 18:57:06 +04:00
}
2026-02-14 02:34:11 +04:00
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-form-actions {
display: flex;
align-items: center;
gap: 16px;
flex-wrap: wrap;
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-anon-toggle {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
font-size: 0.9rem;
color: $dx-muted;
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
input[type="checkbox"] {
width: 18px;
height: 18px;
accent-color: $dx-primary;
cursor: pointer;
}
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-user-preview {
color: $dx-primary;
font-size: 0.85rem;
font-style: italic;
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-submit-btn {
margin-left: auto;
background: $dx-primary;
color: white;
border: none;
padding: 12px 28px;
border-radius: 13px;
font-family: $dx-font;
font-weight: 700;
font-size: 0.95rem;
cursor: pointer;
transition: all 0.2s;
display: inline-flex;
align-items: center;
gap: 8px;
min-width: 140px;
justify-content: center;
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
&:hover:not(:disabled) {
background: darken($dx-primary, 8%);
transform: translateY(-1px);
2026-01-18 18:57:06 +04:00
}
2026-02-14 02:34:11 +04:00
&:disabled {
background: $dx-border;
color: $dx-muted;
cursor: not-allowed;
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
&.submitting {
background: $dx-secondary;
}
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-spinner-sm {
width: 16px;
height: 16px;
border: 2px solid rgba(255, 255, 255, 0.3);
border-top-color: white;
border-radius: 50%;
animation: dxSpin 0.8s linear infinite;
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-status {
margin-top: 16px;
padding: 12px 16px;
border-radius: 10px;
display: flex;
align-items: center;
gap: 10px;
font-weight: 600;
font-size: 0.95rem;
animation: dxSlideIn 0.3s ease-out;
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
&.success {
background: #d1fae5;
color: #065f46;
border: 1px solid #6ee7b7;
2026-01-18 18:57:06 +04:00
}
2026-02-14 02:34:11 +04:00
&.error {
background: #fee2e2;
color: #991b1b;
border: 1px solid #fca5a5;
2026-01-18 18:57:06 +04:00
}
2026-02-14 02:34:11 +04:00
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
@keyframes dxSlideIn {
from { opacity: 0; transform: translateY(-8px); }
to { opacity: 1; transform: translateY(0); }
2026-01-18 18:57:06 +04:00
}
2026-02-14 02:34:11 +04:00
// Reviews List
.dx-reviews-list {
display: flex;
flex-direction: column;
gap: 16px;
}
.dx-review-card {
2026-01-18 18:57:06 +04:00
background: white;
2026-02-14 02:34:11 +04:00
border: 1px solid $dx-border;
border-radius: 13px;
2026-01-18 18:57:06 +04:00
padding: 20px;
2026-02-14 02:34:11 +04:00
transition: box-shadow 0.2s;
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
&:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-review-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-reviewer {
display: flex;
flex-direction: column;
gap: 2px;
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-reviewer-name {
font-weight: 600;
color: $dx-dark;
font-size: 0.95rem;
}
.dx-review-date {
color: $dx-muted;
font-size: 0.8rem;
}
.dx-review-stars {
display: flex;
gap: 2px;
}
.dx-review-text {
color: $dx-muted;
line-height: 1.6;
margin: 0;
font-size: 0.95rem;
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-no-reviews {
text-align: center;
color: $dx-muted;
padding: 40px;
font-size: 1rem;
}
// Q&A Section
.dx-qa-section {
margin-bottom: 48px;
h2 {
font-family: $dx-font;
font-size: 1.5rem;
font-weight: 700;
color: $dx-dark;
margin: 0 0 24px 0;
2026-01-18 18:57:06 +04:00
}
}
2026-02-14 02:34:11 +04:00
.dx-qa-list {
display: flex;
flex-direction: column;
2026-01-18 18:57:06 +04:00
gap: 16px;
}
2026-02-14 02:34:11 +04:00
.dx-qa-card {
2026-01-18 18:57:06 +04:00
background: white;
2026-02-14 02:34:11 +04:00
border: 1px solid $dx-border;
border-radius: 13px;
2026-01-18 18:57:06 +04:00
padding: 20px;
2026-02-14 02:34:11 +04:00
}
.dx-question,
.dx-answer {
display: flex;
gap: 10px;
margin-bottom: 12px;
line-height: 1.6;
color: $dx-muted;
font-size: 0.95rem;
}
.dx-qa-label {
flex-shrink: 0;
width: 28px;
height: 28px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 0.8rem;
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
&.q {
background: $dx-primary;
color: white;
2026-01-18 18:57:06 +04:00
}
2026-02-14 02:34:11 +04:00
&.a {
background: $dx-card-bg;
color: $dx-primary;
border: 1px solid $dx-border;
}
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-qa-votes {
display: flex;
gap: 12px;
padding-top: 8px;
border-top: 1px solid $dx-border;
}
2026-01-18 18:57:06 +04:00
2026-02-14 02:34:11 +04:00
.dx-vote {
display: flex;
align-items: center;
gap: 5px;
background: none;
border: 1px solid $dx-border;
border-radius: 8px;
padding: 6px 12px;
font-size: 0.85rem;
color: $dx-muted;
cursor: pointer;
transition: all 0.2s;
font-family: $dx-font;
&.up:hover {
border-color: #2ed573;
color: #2ed573;
background: rgba(46, 213, 115, 0.05);
}
&.down:hover {
border-color: #ef4444;
color: #ef4444;
background: rgba(239, 68, 68, 0.05);
2026-01-18 18:57:06 +04:00
}
}
2026-02-14 02:34:11 +04:00
// Responsive
@media (max-width: 992px) {
.dx-item-content {
grid-template-columns: 1fr;
gap: 32px;
}
2026-01-18 18:57:06 +04:00
}
@media (max-width: 768px) {
2026-02-14 02:34:11 +04:00
.dx-item-container {
padding: 16px;
2026-01-18 18:57:06 +04:00
}
2026-02-14 02:34:11 +04:00
// On mobile: thumbnails go below main photo
.dx-gallery {
flex-direction: column;
2026-01-18 18:57:06 +04:00
}
2026-02-14 02:34:11 +04:00
.dx-thumbnails {
flex-direction: row;
width: 100%;
max-height: none;
overflow-x: auto;
overflow-y: hidden;
order: 1; // put below main photo
scrollbar-width: none;
&::-webkit-scrollbar { display: none; }
}
.dx-main-photo {
order: 0; // main photo first
}
.dx-thumb {
width: 64px;
height: 64px;
min-width: 64px;
}
.dx-title {
font-size: 1.4rem;
}
.dx-current-price {
font-size: 1.8rem;
}
.dx-add-cart {
max-width: 100%;
}
.dx-review-form {
padding: 16px;
}
.dx-form-actions {
flex-direction: column;
align-items: stretch;
.dx-submit-btn {
margin-left: 0;
width: 100%;
}
}
}
@media (max-width: 480px) {
.dx-thumb {
width: 56px;
height: 56px;
min-width: 56px;
}
.dx-title {
font-size: 1.25rem;
}
.dx-current-price {
font-size: 1.6rem;
2026-01-18 18:57:06 +04:00
}
}
// ========== novo ITEM DETAIL STYLES ==========
.novo-item-container {
max-width: 1400px;
margin: 0 auto;
padding: 2rem;
}
.novo-loading,
.novo-error {
text-align: center;
padding: 4rem 1rem;
}
.novo-spinner {
width: 48px;
height: 48px;
border: 3px solid var(--border-color);
border-top-color: var(--primary-color);
border-radius: 50%;
animation: spin 0.8s linear infinite;
margin: 0 auto 1.5rem;
}
.novo-back-link {
display: inline-block;
margin-top: 1.5rem;
padding: 0.75rem 2rem;
background: var(--primary-color);
color: white;
text-decoration: none;
border-radius: var(--radius-lg);
font-weight: 600;
transition: all 0.3s;
&:hover {
background: var(--primary-hover);
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
}
}
.novo-item-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 3rem;
margin-bottom: 3rem;
}
.novo-gallery {
.novo-main-photo {
width: 100%;
aspect-ratio: 1;
background: var(--bg-secondary);
border-radius: var(--radius-xl);
overflow: hidden;
margin-bottom: 1rem;
border: 1px solid var(--border-color);
img,
video {
width: 100%;
height: 100%;
object-fit: contain;
background: white;
2026-01-18 18:57:06 +04:00
}
&.novo-no-image {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: var(--text-tertiary);
svg {
margin-bottom: 1rem;
stroke-width: 1;
}
p {
font-size: 0.9rem;
}
}
}
.novo-thumbnails {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
gap: 0.75rem;
}
.novo-thumb {
aspect-ratio: 1;
background: var(--bg-secondary);
border-radius: var(--radius-md);
overflow: hidden;
cursor: pointer;
border: 2px solid transparent;
transition: all 0.2s;
position: relative;
&:hover {
border-color: var(--primary-color);
transform: scale(1.05);
}
&.active {
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
img {
width: 100%;
height: 100%;
object-fit: contain;
background: white;
2026-01-18 18:57:06 +04:00
}
.video-indicator {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(0, 0, 0, 0.7);
color: white;
width: 28px;
height: 28px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 10px;
padding-left: 2px;
}
}
}
.novo-info {
.novo-title {
font-size: 2rem;
font-weight: 700;
color: var(--text-primary);
margin: 0 0 1rem 0;
line-height: 1.3;
}
.novo-rating {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 1.5rem;
.stars {
color: #fbbf24;
font-size: 1.1rem;
}
.value {
font-weight: 700;
color: var(--text-primary);
}
.reviews {
color: var(--text-secondary);
font-size: 0.9rem;
}
}
.novo-price-block {
background: var(--bg-secondary);
padding: 1.5rem;
border-radius: var(--radius-lg);
margin-bottom: 1.5rem;
.price-row {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 0.5rem;
}
.old-price {
text-decoration: line-through;
color: var(--text-tertiary);
font-size: 1.1rem;
}
.discount-badge {
background: #ef4444;
color: white;
padding: 0.25rem 0.75rem;
border-radius: var(--radius-md);
font-weight: 700;
font-size: 0.85rem;
}
.current-price {
font-size: 2.5rem;
font-weight: 800;
color: var(--primary-color);
line-height: 1;
}
}
.novo-stock {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1.5rem;
padding: 1rem;
background: white;
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
.stock-label {
font-weight: 600;
color: var(--text-secondary);
}
.stock-indicator {
display: flex;
align-items: center;
gap: 0.5rem;
font-weight: 600;
.dot {
width: 10px;
height: 10px;
border-radius: 50%;
display: block;
}
&.high {
color: #10b981;
.dot { background: #10b981; }
}
&.medium {
color: #f59e0b;
.dot { background: #f59e0b; }
}
&.low {
color: #ef4444;
.dot { background: #ef4444; }
}
}
}
.novo-add-cart {
width: 100%;
padding: 1.25rem 2rem;
background: var(--primary-color);
color: white;
border: none;
border-radius: var(--radius-lg);
font-size: 1.1rem;
font-weight: 700;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
transition: all 0.3s;
margin-bottom: 2rem;
&:hover {
background: var(--primary-hover);
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
}
&:active {
transform: translateY(0);
}
}
.novo-description {
h3 {
font-size: 1.25rem;
font-weight: 600;
color: var(--text-primary);
margin: 0 0 1rem 0;
}
::ng-deep {
p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.5rem; color: var(--text-secondary); }
strong { color: var(--text-primary); }
}
}
}
.novo-reviews {
margin-top: 3rem;
padding-top: 3rem;
border-top: 1px solid var(--border-color);
h2 {
font-size: 1.75rem;
font-weight: 700;
color: var(--text-primary);
margin: 0 0 2rem 0;
}
.novo-reviews-list {
display: grid;
gap: 1.5rem;
}
.novo-review-card {
background: white;
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
padding: 1.5rem;
transition: all 0.3s;
&:hover {
box-shadow: var(--shadow-md);
transform: translateY(-2px);
border-color: #10b981;
}
.review-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 1rem;
gap: 1rem;
.reviewer-info {
display: flex;
flex-direction: column;
gap: 0.25rem;
.reviewer-name {
font-weight: 600;
font-size: 1rem;
color: var(--text-primary);
}
.review-date {
font-size: 0.8rem;
color: var(--text-secondary);
}
}
.review-stars {
color: #fbbf24;
font-size: 1.125rem;
flex-shrink: 0;
}
}
.review-text {
color: var(--text-secondary);
line-height: 1.7;
margin: 0;
font-size: 0.95rem;
}
}
.novo-no-reviews {
text-align: center;
padding: 3rem 2rem;
color: var(--text-secondary);
font-size: 1rem;
background: var(--bg-secondary);
border-radius: var(--radius-lg);
}
}
/* novo Review Form */
.novo-review-form {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
padding: 2rem;
margin-bottom: 2rem;
h3 {
font-size: 1.25rem;
font-weight: 700;
color: var(--text-primary);
margin: 0 0 1.5rem 0;
}
.novo-rating-input {
margin-bottom: 1.5rem;
label {
display: block;
font-size: 0.95rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 0.75rem;
}
.novo-star-selector {
display: flex;
gap: 0.5rem;
.novo-star {
font-size: 2rem;
color: #d1d5db;
cursor: pointer;
transition: all 0.2s ease;
user-select: none;
&:hover, &.selected {
color: #fbbf24;
transform: scale(1.1);
}
&.selected {
text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}
}
}
}
.novo-textarea {
width: 100%;
padding: 1rem;
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
font-size: 0.95rem;
font-family: inherit;
color: var(--text-primary);
background: white;
2026-02-14 02:34:11 +04:00
resize: none;
2026-01-18 18:57:06 +04:00
min-height: 100px;
transition: all 0.2s ease;
&:focus {
outline: none;
border-color: #10b981;
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
&::placeholder {
color: var(--text-secondary);
opacity: 0.6;
}
}
.novo-form-actions {
display: flex;
align-items: center;
gap: 1rem;
margin-top: 1rem;
flex-wrap: wrap;
.novo-anonymous-toggle {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.9rem;
color: var(--text-secondary);
cursor: pointer;
input[type="checkbox"] {
cursor: pointer;
width: 18px;
height: 18px;
}
span {
user-select: none;
}
}
.novo-username-preview {
font-size: 0.875rem;
color: var(--text-secondary);
font-style: italic;
}
.novo-submit-review-btn {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1.5rem;
margin-left: auto;
background: linear-gradient(135deg, #10b981, #14b8a6, #06b6d4);
color: white;
border: none;
border-radius: var(--radius-md);
font-size: 0.95rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
svg {
width: 18px;
height: 18px;
}
&:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}
&:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
}
&.submitting {
pointer-events: none;
}
.novo-spinner-small {
width: 16px;
height: 16px;
border: 2px solid rgba(255, 255, 255, 0.3);
border-top-color: white;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
}
}
.novo-status-message {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 1rem;
margin-top: 1rem;
border-radius: var(--radius-md);
font-size: 0.95rem;
font-weight: 500;
animation: slideDown 0.3s ease;
svg {
flex-shrink: 0;
width: 20px;
height: 20px;
}
&.success {
background: rgba(16, 185, 129, 0.1);
color: #059669;
border: 1px solid rgba(16, 185, 129, 0.3);
svg {
stroke: #059669;
}
}
&.error {
background: rgba(239, 68, 68, 0.1);
color: #dc2626;
border: 1px solid rgba(239, 68, 68, 0.3);
svg {
stroke: #dc2626;
}
}
}
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 968px) {
.novo-item-content {
grid-template-columns: 1fr;
gap: 2rem;
}
.novo-info .novo-title {
font-size: 1.5rem;
}
.novo-info .novo-price-block .current-price {
font-size: 2rem;
}
.novo-review-form {
padding: 1.5rem;
.novo-form-actions {
flex-direction: column;
align-items: stretch;
.novo-submit-review-btn {
margin-left: 0;
justify-content: center;
}
}
}
}
2026-02-20 10:44:03 +04:00
// ========== BADGES, TAGS & SPECS (shared) ==========
// Badges
.novo-badges, .dx-badges {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin: 8px 0;
}
.item-badge {
display: inline-block;
padding: 3px 10px;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: #fff;
&.badge-new { background: #4caf50; }
&.badge-sale { background: #f44336; }
&.badge-exclusive { background: #9c27b0; }
&.badge-hot { background: #ff5722; }
&.badge-limited { background: #ff9800; }
&.badge-bestseller { background: #2196f3; }
&.badge-featured { background: #607d8b; }
&.badge-custom { background: #78909c; }
}
// Tags
.novo-tags, .dx-tags {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin: 6px 0 12px;
}
.item-tag {
display: inline-block;
padding: 2px 8px;
border-radius: 12px;
font-size: 0.75rem;
color: #497671;
background: rgba(73, 118, 113, 0.08);
border: 1px solid rgba(73, 118, 113, 0.15);
}
// Specs table
.novo-specs-table, .dx-specs-table {
width: 100%;
border-collapse: collapse;
margin: 12px 0;
tr {
border-bottom: 1px solid #e8ecec;
&:last-child { border-bottom: none; }
}
td {
padding: 10px 12px;
font-size: 0.9rem;
vertical-align: top;
}
.spec-key {
color: #697777;
font-weight: 500;
width: 40%;
white-space: nowrap;
}
.spec-value {
color: #1e3c38;
}
}
// Simple description
.novo-simple-desc, .dx-simple-desc {
font-size: 0.95rem;
color: #697777;
line-height: 1.6;
margin-bottom: 16px;
}
// Stock quantity
.stock-qty, .dx-stock-qty {
font-size: 0.8rem;
color: #697777;
margin-left: 8px;
}