Files
marketplaces/src/app/components/header/header.component.scss

1008 lines
17 KiB
SCSS
Raw Normal View History

2026-01-18 18:57:06 +04:00
.header {
background: white;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
position: sticky;
top: 0;
z-index: 1000;
}
.header-container {
max-width: 1200px;
margin: 0 auto;
padding: 16px 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
display: flex;
align-items: center;
gap: 8px;
text-decoration: none;
color: #333;
font-size: 1.5rem;
font-weight: 700;
transition: color 0.2s;
.logo-icon {
font-size: 2rem;
}
&:hover {
color: var(--primary-hover);
}
}
/* Shared badge styling for cart count */
.cart-badge {
background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
color: white;
font-weight: 700;
padding: 3px 7px;
border-radius: 12px;
min-width: 20px;
text-align: center;
box-shadow: 0 3px 8px rgba(255, 71, 87, 0.4);
border: 2px solid white;
display: inline-flex;
align-items: center;
justify-content: center;
}
.nav {
display: flex;
align-items: center;
gap: 32px;
a {
display: flex;
align-items: center;
gap: 6px;
text-decoration: none;
color: #333;
font-weight: 500;
transition: all 0.2s;
position: relative;
padding: 8px 12px;
border-radius: 6px;
.nav-icon {
font-size: 1.2rem;
line-height: 1;
}
.nav-text {
font-size: 1rem;
}
&:hover {
color: var(--primary-hover);
2026-02-14 02:34:11 +04:00
background: rgba(73, 118, 113, 0.05);
2026-01-18 18:57:06 +04:00
}
&.active {
color: var(--primary-hover);
2026-02-14 02:34:11 +04:00
background: rgba(73, 118, 113, 0.1);
2026-01-18 18:57:06 +04:00
font-weight: 600;
}
}
.cart-link {
.cart-badge {
position: absolute;
top: -6px;
right: -6px;
font-size: 0.75rem;
}
}
}
.cart-link {
display: flex;
align-items: center;
gap: 6px;
position: relative;
.cart-icon {
font-size: 1.3rem;
}
.cart-badge {
position: absolute;
top: -8px;
right: -12px;
font-size: 0.8rem;
}
}
.menu-toggle {
display: none;
flex-direction: column;
gap: 5px;
background: none;
border: none;
cursor: pointer;
padding: 8px;
span {
width: 25px;
height: 3px;
background: #333;
border-radius: 2px;
transition: all 0.3s;
}
&.active {
span:nth-child(1) {
transform: rotate(45deg) translate(7px, 4.5px);
}
span:nth-child(2) {
opacity: 0;
}
span:nth-child(3) {
transform: rotate(-45deg) translate(7px, -4.5px);
}
}
}
.cart-link-mobile {
display: none;
}
.header-actions {
display: flex;
align-items: center;
gap: 12px;
margin-right: 8px;
}
@media (max-width: 768px) {
.cart-link-mobile {
display: flex;
align-items: center;
position: relative;
text-decoration: none;
margin-right: 8px;
padding: 8px;
border-radius: 6px;
transition: background 0.2s;
.cart-icon {
font-size: 1.5rem;
color: #333;
}
.cart-badge {
position: absolute;
top: 2px;
right: 2px;
font-size: 0.75rem;
}
&:hover {
2026-02-14 02:34:11 +04:00
background: rgba(73, 118, 113, 0.05);
2026-01-18 18:57:06 +04:00
}
&.active {
2026-02-14 02:34:11 +04:00
background: rgba(73, 118, 113, 0.1);
2026-01-18 18:57:06 +04:00
}
}
.nav {
position: fixed;
top: 68px;
left: 0;
right: 0;
background: white;
flex-direction: column;
gap: 0;
padding: 0;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease;
&.nav-open {
max-height: 300px;
}
a {
width: 100%;
padding: 16px 20px;
border-bottom: 1px solid #f0f0f0;
&::after {
display: none;
}
&.active {
background: #f5f5f5;
}
}
.cart-link {
display: none;
}
}
.menu-toggle {
display: flex;
}
.logo-text {
font-size: 1.2rem;
}
}
// ========== novo HEADER STYLES ==========
.novo-header {
background: white;
border-bottom: 1px solid var(--border-color);
position: sticky;
top: 0;
z-index: 1000;
backdrop-filter: blur(10px);
background: rgba(255, 255, 255, 0.95);
}
.novo-header-container {
max-width: 1400px;
margin: 0 auto;
padding: 1rem 2rem;
display: flex;
align-items: center;
justify-content: space-between;
}
.novo-left {
flex: 1;
}
.novo-logo {
display: flex;
align-items: center;
gap: 0.75rem;
text-decoration: none;
.novo-brand {
font-size: 1.25rem;
font-weight: 600;
color: var(--text-primary);
transition: color 0.3s;
}
&:hover .novo-brand {
color: var(--primary-color);
}
}
.novo-nav {
flex: 2;
display: flex;
justify-content: center;
.novo-nav-links {
display: flex;
gap: 2.5rem;
}
.novo-link {
color: var(--text-secondary);
text-decoration: none;
font-weight: 500;
font-size: 0.95rem;
position: relative;
padding: 0.5rem 0;
transition: color 0.3s;
&::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background: var(--primary-color);
transition: width 0.3s;
}
&:hover,
&.novo-active {
color: var(--primary-color);
&::after {
width: 100%;
}
}
}
}
.novo-right {
flex: 1;
display: flex;
justify-content: flex-end;
align-items: center;
gap: 1.5rem;
}
2026-06-10 17:49:22 +04:00
.novo-mobile-controls {
display: none;
}
2026-01-18 18:57:06 +04:00
.novo-cart {
2026-06-20 14:00:28 +04:00
display: flex;
flex-direction: column;
align-items: center;
gap: 0.2rem;
2026-01-18 18:57:06 +04:00
color: var(--text-primary);
text-decoration: none;
padding: 0.5rem;
border-radius: var(--radius-md);
transition: all 0.3s;
&:hover,
&.novo-cart-active {
color: var(--primary-color);
background: var(--bg-secondary);
}
2026-06-20 14:00:28 +04:00
}
.novo-cart-icon {
position: relative;
display: flex;
align-items: center;
justify-content: center;
line-height: 0;
svg {
display: block;
2026-01-18 18:57:06 +04:00
}
}
2026-06-20 14:00:28 +04:00
.novo-cart-badge {
position: absolute;
top: -4px;
right: -4px;
background: var(--primary-color);
color: white;
font-size: 0.7rem;
font-weight: 700;
min-width: 18px;
height: 18px;
border-radius: 9px;
display: flex;
align-items: center;
justify-content: center;
padding: 0 5px;
box-shadow: var(--shadow-sm);
}
.novo-cart-total {
font-size: 0.68rem;
font-weight: 700;
line-height: 1;
white-space: nowrap;
}
2026-01-18 18:57:06 +04:00
.novo-menu-toggle {
display: none;
flex-direction: column;
gap: 5px;
background: none;
border: none;
cursor: pointer;
padding: 0.5rem;
span {
width: 24px;
height: 2px;
background: var(--text-primary);
border-radius: 2px;
transition: all 0.3s;
}
&.novo-active {
span:nth-child(1) {
transform: rotate(45deg) translate(6px, 6px);
}
span:nth-child(2) {
opacity: 0;
}
span:nth-child(3) {
transform: rotate(-45deg) translate(7px, -7px);
}
}
}
@media (max-width: 968px) {
.novo-nav {
position: fixed;
top: 65px;
left: 0;
right: 0;
background: white;
border-bottom: 1px solid var(--border-color);
box-shadow: var(--shadow-md);
max-height: 0;
overflow: hidden;
transition: max-height 0.3s;
&.novo-nav-open {
2026-06-10 17:49:22 +04:00
max-height: calc(100dvh - 65px);
overflow-y: auto;
2026-01-18 18:57:06 +04:00
}
.novo-nav-links {
width: 100%;
flex-direction: column;
gap: 0;
padding: 1rem 0;
}
.novo-link {
padding: 1rem 2rem;
border-bottom: 1px solid var(--border-color);
text-align: center;
&::after {
display: none;
}
&:hover,
&.novo-active {
background: var(--bg-secondary);
}
}
}
2026-06-10 17:49:22 +04:00
.novo-right {
flex: 0 0 auto;
gap: 0.75rem;
}
.novo-right > app-region-selector,
.novo-right > app-language-selector {
display: none;
}
.novo-mobile-controls {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
padding: 1rem 2rem 1.25rem;
border-top: 1px solid var(--border-color);
}
2026-01-18 18:57:06 +04:00
.novo-menu-toggle {
display: flex;
}
}
@media (max-width: 768px) {
.novo-header-container {
padding: 1rem;
}
.novo-logo .novo-brand {
font-size: 1.1rem;
}
}
2026-02-14 00:45:17 +04:00
// ========== DEXAR REDESIGN 2026 STYLES ==========
.dexar-header {
background: rgba(117, 121, 124, 0.1);
2026-02-14 01:28:08 +04:00
padding: 8px 0;
2026-02-14 00:45:17 +04:00
position: sticky;
top: 0;
z-index: 1000;
backdrop-filter: blur(10px);
2026-02-14 02:34:11 +04:00
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
2026-02-14 00:45:17 +04:00
}
.dexar-header-container {
max-width: 1440px;
margin: 0 auto;
2026-02-14 01:28:08 +04:00
padding: 0 40px;
2026-02-14 00:45:17 +04:00
display: flex;
align-items: center;
2026-02-14 01:28:08 +04:00
gap: 32px;
2026-06-20 14:00:28 +04:00
min-height: 48px;
2026-02-14 00:45:17 +04:00
}
.dexar-logo {
display: flex;
align-items: center;
text-decoration: none;
flex-shrink: 0;
::ng-deep .logo-img {
2026-02-14 01:28:08 +04:00
width: 120px;
height: 38px;
2026-02-14 00:45:17 +04:00
object-fit: contain;
}
}
// Navigation Buttons Group
.dexar-nav {
display: flex;
flex-shrink: 0;
}
.dexar-nav-group {
display: flex;
align-items: center;
}
.dexar-nav-btn {
display: inline-flex;
align-items: center;
justify-content: center;
2026-02-14 01:28:08 +04:00
padding: 6px 32px;
height: 38px;
2026-02-14 00:45:17 +04:00
border: 1px solid #d3dad9;
background: rgba(255, 255, 255, 0.74);
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-weight: 600;
2026-02-14 01:28:08 +04:00
font-size: 15px;
2026-02-14 00:45:17 +04:00
color: #1e3c38;
text-decoration: none;
cursor: pointer;
transition: background 0.3s ease;
white-space: nowrap;
&:hover {
background: #a1b4b5;
color: #1e3c38;
}
&.dexar-active {
background: #497671;
color: #ffffff;
}
}
.dexar-nav-btn-left {
2026-02-14 01:28:08 +04:00
border-radius: 10px 0 0 10px;
padding: 6px 32px;
2026-02-14 00:45:17 +04:00
}
.dexar-nav-btn-middle {
2026-02-14 01:28:08 +04:00
padding: 6px 40px;
2026-02-14 00:45:17 +04:00
border-left: none;
}
.dexar-nav-btn-right {
2026-02-14 01:28:08 +04:00
border-radius: 0 10px 10px 0;
padding: 6px 28px;
2026-02-14 00:45:17 +04:00
border-left: none;
}
// Search Box
.dexar-search-wrapper {
flex: 1;
2026-02-14 01:28:08 +04:00
max-width: 200px;
2026-02-14 00:45:17 +04:00
margin-left: auto;
}
.dexar-search-box {
position: relative;
width: 100%;
2026-02-14 01:28:08 +04:00
height: 38px;
2026-02-14 00:45:17 +04:00
background: rgba(255, 255, 255, 0.74);
border: 1px solid #d2dad9;
2026-02-14 01:28:08 +04:00
border-radius: 19px;
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12);
2026-02-14 00:45:17 +04:00
display: flex;
align-items: center;
2026-02-14 01:28:08 +04:00
padding: 0 14px;
gap: 8px;
2026-02-14 00:45:17 +04:00
}
.dexar-search-icon {
2026-02-14 01:28:08 +04:00
width: 20px;
height: 20px;
2026-02-14 00:45:17 +04:00
flex-shrink: 0;
}
.dexar-search-input {
flex: 1;
border: none;
background: transparent;
outline: none;
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-weight: 600;
2026-02-14 01:28:08 +04:00
font-size: 15px;
2026-02-14 00:45:17 +04:00
color: #828e8d;
cursor: pointer;
&::placeholder {
color: #828e8d;
}
}
// Actions
.dexar-actions {
display: flex;
align-items: center;
2026-02-14 02:34:11 +04:00
gap: 8px;
2026-02-14 00:45:17 +04:00
flex-shrink: 0;
}
.dexar-cart-btn {
display: flex;
2026-06-20 14:00:28 +04:00
flex-direction: column;
2026-02-14 00:45:17 +04:00
align-items: center;
justify-content: center;
2026-06-20 14:00:28 +04:00
min-width: 36px;
2026-02-14 00:45:17 +04:00
text-decoration: none;
cursor: pointer;
transition: opacity 0.3s ease;
2026-06-20 14:00:28 +04:00
gap: 2px;
2026-02-14 00:45:17 +04:00
svg {
2026-02-14 02:34:11 +04:00
width: 36px;
height: 28px;
2026-02-14 00:45:17 +04:00
}
&:hover {
opacity: 0.85;
}
&.dexar-cart-active {
opacity: 1;
}
}
2026-06-20 14:00:28 +04:00
.dexar-cart-icon {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 28px;
}
2026-02-14 00:45:17 +04:00
.dexar-cart-badge {
position: absolute;
2026-02-14 02:34:11 +04:00
top: -8px;
right: -10px;
background: #497671;
color: #ffffff;
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
2026-02-14 00:45:17 +04:00
font-weight: 700;
2026-02-14 02:34:11 +04:00
font-size: 10px;
line-height: 1;
width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
2026-02-14 00:45:17 +04:00
}
2026-06-20 14:00:28 +04:00
.dexar-cart-total {
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-weight: 700;
font-size: 10px;
line-height: 1;
color: #1e3c38;
white-space: nowrap;
}
2026-02-14 00:45:17 +04:00
.dexar-lang-selector {
display: flex;
align-items: center;
}
2026-02-14 02:59:26 +04:00
// Mobile Menu Backdrop
.dexar-menu-backdrop {
display: none;
}
// Mobile Menu Panel
.dexar-mobile-menu {
display: none;
}
// Mobile Menu Items
.dexar-mobile-item {
display: flex;
align-items: center;
gap: 14px;
width: 395px;
max-width: 100%;
height: 42px;
padding: 15px 26px;
background: #e9edf1;
border: 1px solid #d3dad9;
border-radius: 13px;
box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.15);
font-family: 'DM Sans', sans-serif;
font-size: 16px;
font-weight: 500;
color: #1e3c38;
text-decoration: none;
cursor: pointer;
transition: background 0.2s ease, transform 0.15s ease;
box-sizing: border-box;
&:hover {
background: #dce2e7;
transform: translateY(-1px);
}
&:active {
transform: translateY(0);
}
2026-02-26 22:00:12 +04:00
&.dexar-mobile-active {
background: #497671;
color: #ffffff;
border-color: #497671;
svg path {
fill: #ffffff;
}
.dexar-mobile-chevron path {
stroke: #ffffff;
}
}
2026-02-14 02:59:26 +04:00
svg:first-child {
flex-shrink: 0;
width: 24px;
height: 24px;
}
span {
flex: 1;
}
.dexar-mobile-chevron {
flex-shrink: 0;
margin-left: auto;
}
}
.dexar-mobile-lang {
display: flex;
align-items: center;
justify-content: center;
2026-06-10 17:49:22 +04:00
}
.dexar-mobile-controls {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
width: 100%;
margin-top: 4px;
2026-02-14 02:59:26 +04:00
}
2026-02-14 00:45:17 +04:00
.dexar-menu-toggle {
2026-06-10 17:49:22 +04:00
position: relative;
z-index: 1001;
2026-02-14 00:45:17 +04:00
display: none;
flex-direction: column;
gap: 5px;
background: none;
border: none;
cursor: pointer;
padding: 8px;
span {
width: 25px;
height: 3px;
background: #1e3c38;
border-radius: 2px;
transition: all 0.3s;
}
&.active {
span:nth-child(1) {
transform: rotate(45deg) translate(7px, 4.5px);
}
span:nth-child(2) {
opacity: 0;
}
span:nth-child(3) {
transform: rotate(-45deg) translate(7px, -4.5px);
}
}
}
2026-02-14 02:34:11 +04:00
// Mobile Search Icon
.dexar-search-mobile {
display: none;
align-items: center;
justify-content: center;
background: none;
border: none;
cursor: pointer;
padding: 6px;
margin-left: auto;
transition: opacity 0.2s ease;
&:hover {
opacity: 0.7;
}
}
2026-02-14 00:45:17 +04:00
// Responsive Design
@media (max-width: 1200px) {
.dexar-header-container {
padding: 0 32px;
gap: 32px;
}
.dexar-nav-btn {
font-size: 18px;
padding: 8px 32px !important;
}
.dexar-nav-btn-left {
padding: 8px 32px !important;
}
.dexar-nav-btn-middle {
padding: 8px 40px !important;
}
.dexar-nav-btn-right {
padding: 8px 28px !important;
}
}
@media (max-width: 992px) {
.dexar-header-container {
padding: 0 20px;
gap: 20px;
}
.dexar-logo ::ng-deep .logo-img {
width: 120px;
height: 40px;
}
.dexar-nav-btn {
font-size: 16px;
padding: 8px 24px !important;
}
.dexar-nav-btn-left {
padding: 8px 24px !important;
}
.dexar-nav-btn-middle {
padding: 8px 28px !important;
}
.dexar-nav-btn-right {
padding: 8px 20px !important;
}
.dexar-search-box {
height: 42px;
}
.dexar-search-input {
font-size: 18px;
}
}
@media (max-width: 768px) {
.dexar-header-container {
gap: 12px;
padding: 0 16px;
}
2026-02-14 02:59:26 +04:00
// Hide desktop nav
2026-02-14 00:45:17 +04:00
.dexar-nav {
2026-02-14 02:59:26 +04:00
display: none;
2026-02-14 00:45:17 +04:00
}
2026-02-14 02:59:26 +04:00
// Hide desktop language selector
.dexar-lang-desktop {
2026-06-10 17:49:22 +04:00
display: none !important;
2026-02-14 00:45:17 +04:00
}
.dexar-search-wrapper {
2026-02-14 02:34:11 +04:00
display: none;
2026-02-14 00:45:17 +04:00
}
2026-02-14 02:34:11 +04:00
.dexar-search-mobile {
display: flex;
2026-02-14 00:45:17 +04:00
}
.dexar-menu-toggle {
display: flex;
}
.dexar-logo ::ng-deep .logo-img {
width: 100px;
height: 32px;
}
2026-02-14 02:59:26 +04:00
// Mobile Menu Backdrop — full-screen, blurred, blocks interaction
.dexar-menu-backdrop {
display: block;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(255, 255, 255, 0.35);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
z-index: 998;
animation: dexar-fade-in 0.25s ease;
}
// Mobile Menu Panel
.dexar-mobile-menu {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
position: fixed;
top: 84px;
right: 0;
width: 485px;
max-width: 100vw;
padding: 28px 20px 32px;
background: rgba(245, 242, 249, 0.93);
border-radius: 0 0 13px 13px;
box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.25);
z-index: 999;
box-sizing: border-box;
// Hide by default, animate in
max-height: 0;
padding-top: 0;
padding-bottom: 0;
overflow: hidden;
opacity: 0;
transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
&.dexar-mobile-menu-open {
2026-06-10 17:49:22 +04:00
max-height: calc(100dvh - 84px);
2026-02-14 02:59:26 +04:00
padding: 28px 20px 32px;
opacity: 1;
2026-06-10 17:49:22 +04:00
overflow-y: auto;
2026-02-14 02:59:26 +04:00
}
}
.dexar-mobile-item {
width: 395px;
max-width: 100%;
}
2026-06-10 17:49:22 +04:00
.dexar-mobile-controls {
margin-top: 4px;
2026-02-14 02:59:26 +04:00
}
}
@media (max-width: 480px) {
.dexar-mobile-menu {
width: 100vw;
border-radius: 0 0 13px 13px;
}
.dexar-mobile-item {
width: 100%;
}
}
@keyframes dexar-fade-in {
from { opacity: 0; }
to { opacity: 1; }
2026-02-14 00:45:17 +04:00
}