.shop-page { padding: 40px 24px 80px; min-height: 60vh; } .shop-card { background: #fff; border-radius: 16px; padding: 32px; border: 1px solid #e5e7eb; max-width: 480px; margin: 0 auto; } .shop-card h1 { font-size: 1.75rem; margin-bottom: 24px; } .shop-card--empty, .shop-card--success { text-align: center; } .shop-card--success h1 { color: #059669; } .shop-form { display: flex; flex-direction: column; gap: 16px; } .shop-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.875rem; font-weight: 500; } .shop-form input, .shop-form textarea { padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 10px; font-family: inherit; font-size: 1rem; } .shop-form input:focus, .shop-form textarea:focus { outline: none; border-color: #4f46e5; } .shop-alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 0.9rem; } .shop-alert--error { background: #fef2f2; color: #b91c1c; } .shop-alert--ok { background: #d1fae5; color: #065f46; } .shop-hint { font-size: 0.875rem; color: #6b7280; margin-top: 16px; } .shop-hint a { color: #4f46e5; } .shop-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; } .cart-layout, .checkout-layout, .account-layout { display: grid; gap: 24px; margin-top: 24px; } .cart-layout { grid-template-columns: 1fr 300px; } .checkout-layout { grid-template-columns: 1fr 320px; } .account-layout { grid-template-columns: 1fr 1fr; max-width: 1000px; } .account-layout .shop-card { max-width: none; margin: 0; } .account-header { display: flex; justify-content: space-between; align-items: center; } .cart-items { display: flex; flex-direction: column; gap: 16px; } .cart-item { display: flex; align-items: center; gap: 16px; background: #fff; padding: 16px; border-radius: 12px; border: 1px solid #e5e7eb; } .cart-item__img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; } .cart-item__info { flex: 1; } .cart-item__info h3 { font-size: 1rem; margin-bottom: 4px; } .cart-item__price { color: #4f46e5; font-weight: 600; } .cart-item__qty { display: flex; gap: 8px; align-items: center; } .cart-item__qty input { width: 60px; padding: 8px; border: 1px solid #e5e7eb; border-radius: 8px; } .cart-summary { background: #fff; padding: 24px; border-radius: 16px; border: 1px solid #e5e7eb; height: fit-content; position: sticky; top: 88px; } .cart-summary h2 { font-size: 1.1rem; margin-bottom: 16px; } .cart-summary__total { font-size: 1.5rem; font-weight: 700; margin: 16px 0; color: #1a1a2e; } .checkout-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f3f4f6; font-size: 0.9rem; } .order-card { border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; margin-bottom: 12px; } .order-card__head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; font-size: 0.9rem; } .order-card__items { list-style: none; font-size: 0.875rem; color: #6b7280; margin-bottom: 8px; } .order-card__total { font-weight: 600; } .order-card .admin-badge, .order-badge { display: inline-block; padding: 4px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; background: #d1fae5; color: #065f46; } .btn--danger { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; } .product-card__footer form { margin: 0; } /* Цены со скидкой */ .price-block { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } .price-block__old { text-decoration: line-through; color: #9ca3af; font-size: 0.9rem; } .price-block__sale, .price-block__current { font-size: 1.25rem; font-weight: 700; color: #ef4444; } .price-block--lg .price-block__sale, .price-block--lg .price-block__current { font-size: 2rem; } .price-block__badge { background: #fef2f2; color: #b91c1c; padding: 4px 10px; border-radius: 100px; font-size: 0.85rem; font-weight: 600; } /* Страница товара */ .breadcrumb { display: flex; gap: 8px; font-size: 0.875rem; color: #6b7280; margin-bottom: 24px; flex-wrap: wrap; } .breadcrumb a { color: #4f46e5; text-decoration: none; } .product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; } .product-detail__main { width: 100%; border-radius: 16px; border: 1px solid #e5e7eb; } .product-detail__thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; } .product-detail__thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid #e5e7eb; cursor: pointer; } .product-detail__cat { color: #4f46e5; text-decoration: none; font-size: 0.875rem; font-weight: 600; } .product-detail__info h1 { font-size: 2rem; margin: 12px 0 20px; } .product-detail__short { color: #6b7280; margin: 20px 0; line-height: 1.6; } .product-detail__buy { display: flex; gap: 12px; align-items: center; } .qty-input { width: 72px; padding: 12px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 1rem; } .product-detail__html { line-height: 1.7; color: #374151; } .product-detail__html h1, .product-detail__html h2, .product-detail__html h3 { margin: 1em 0 0.5em; } /* Статусы заказов */ .order-card__head { justify-content: space-between; } .order-card__date { display: block; font-size: 0.8rem; color: #9ca3af; margin-top: 2px; } .order-status { padding: 6px 14px; border-radius: 100px; font-size: 0.8rem; font-weight: 600; } .status--new { background: #dbeafe; color: #1d4ed8; } .status--confirmed { background: #e0e7ff; color: #4338ca; } .status--processing { background: #ede9fe; color: #6d28d9; } .status--shipped { background: #ffedd5; color: #c2410c; } .status--delivered { background: #d1fae5; color: #065f46; } .status--cancelled { background: #f3f4f6; color: #6b7280; } .order-timeline { display: flex; gap: 4px; margin: 16px 0; padding: 16px 0; overflow-x: auto; } .order-timeline__step { flex: 1; min-width: 80px; text-align: center; position: relative; opacity: 0.35; } .order-timeline__step--done, .order-timeline__step--current { opacity: 1; } .order-timeline__dot { display: block; width: 12px; height: 12px; border-radius: 50%; background: #d1d5db; margin: 0 auto 8px; } .order-timeline__step--done .order-timeline__dot { background: #10b981; } .order-timeline__step--current .order-timeline__dot { background: #4f46e5; box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2); } .order-timeline__label { font-size: 0.7rem; color: #6b7280; line-height: 1.2; } .admin-form--row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; } @media (max-width: 768px) { .product-detail { grid-template-columns: 1fr; } } .cart-layout, .checkout-layout, .account-layout { grid-template-columns: 1fr; } .cart-item { flex-wrap: wrap; } }