257 lines
4.3 KiB
CSS
257 lines
4.3 KiB
CSS
|
|
/* ================ Header ================ */
|
||
|
|
|
||
|
|
header {
|
||
|
|
background-color: var(--white);
|
||
|
|
}
|
||
|
|
|
||
|
|
.site-header__container {
|
||
|
|
width: 90%;
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
padding: 20px 0px;
|
||
|
|
margin: auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
.logo {
|
||
|
|
width: 130px;
|
||
|
|
height: 60px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.logo img {
|
||
|
|
width: 100%;
|
||
|
|
height: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
.site-header__utils {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 36px;
|
||
|
|
color: var(--white);
|
||
|
|
}
|
||
|
|
|
||
|
|
.site-header__utils a {
|
||
|
|
text-decoration: none;
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
.site-header__search {
|
||
|
|
display: none;
|
||
|
|
flex: 1;
|
||
|
|
max-width: 400px;
|
||
|
|
background: #F5F5F5;
|
||
|
|
border-radius: 10px;
|
||
|
|
overflow: hidden;
|
||
|
|
border: 1px solid #D6E9EE;
|
||
|
|
}
|
||
|
|
|
||
|
|
.site-header__search-input {
|
||
|
|
flex: 1;
|
||
|
|
border: none;
|
||
|
|
padding: 12px 0px;
|
||
|
|
font-size: 1rem;
|
||
|
|
background: #F5F5F5;
|
||
|
|
color: var(--button-color);
|
||
|
|
}
|
||
|
|
|
||
|
|
.site-header__search-input::placeholder {
|
||
|
|
color: var(--button-color);
|
||
|
|
}
|
||
|
|
|
||
|
|
.site-header__search-button {
|
||
|
|
display: flex;
|
||
|
|
justify-content: center;
|
||
|
|
align-items: center;
|
||
|
|
border: none;
|
||
|
|
background: transparent;
|
||
|
|
padding: 0 16px;
|
||
|
|
cursor: pointer;
|
||
|
|
font-size: 1.1rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.site-header__dropcat,
|
||
|
|
.site-header__shop {
|
||
|
|
display: none;
|
||
|
|
padding: 16px 26px;
|
||
|
|
border-radius: 10px;
|
||
|
|
white-space: nowrap;
|
||
|
|
font-weight: 500;
|
||
|
|
cursor: pointer;
|
||
|
|
user-select: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.site-header__dropcat { background-color: var(--button-color); }
|
||
|
|
.site-header__shop { background-color: var(--secondary); }
|
||
|
|
|
||
|
|
.site-header__info {
|
||
|
|
display: flex;
|
||
|
|
gap: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.site-header__info-account,
|
||
|
|
.site-header__info-cart {
|
||
|
|
position: relative;
|
||
|
|
width: 56px;
|
||
|
|
height: 56px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
border-radius: 10px;
|
||
|
|
background-color: var(--button-color);
|
||
|
|
padding: 16px 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.info-cart__count {
|
||
|
|
width: 32px;
|
||
|
|
height: 32px;
|
||
|
|
position: absolute;
|
||
|
|
display: flex;
|
||
|
|
justify-content: center;
|
||
|
|
align-items: center;
|
||
|
|
top: 0;
|
||
|
|
right: 0;
|
||
|
|
transform: translateY(-45%) translateX(45%);
|
||
|
|
background-color: var(--secondary);
|
||
|
|
padding: 8px;
|
||
|
|
border-radius: 50%;
|
||
|
|
}
|
||
|
|
|
||
|
|
.site-header__search-suggestions {
|
||
|
|
position: absolute;
|
||
|
|
background: #fff;
|
||
|
|
border: 1px solid #ddd;
|
||
|
|
width: 100%;
|
||
|
|
max-width: 300px;
|
||
|
|
z-index: 999;
|
||
|
|
list-style: none;
|
||
|
|
margin: 0;
|
||
|
|
padding: 0;
|
||
|
|
display: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.site-header__search-suggestions li {
|
||
|
|
color: var(--button-color);
|
||
|
|
padding: .5em;
|
||
|
|
}
|
||
|
|
.site-header__search-suggestions li a {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
text-decoration: none;
|
||
|
|
color: inherit;
|
||
|
|
}
|
||
|
|
.site-header__search-suggestions img {
|
||
|
|
width: 30px;
|
||
|
|
height: auto;
|
||
|
|
margin-right: .5em;
|
||
|
|
}
|
||
|
|
.site-header__search-suggestions li:hover {
|
||
|
|
background: #f5f5f5;
|
||
|
|
}
|
||
|
|
|
||
|
|
.site-header__cats {
|
||
|
|
display: none;
|
||
|
|
justify-content: center;
|
||
|
|
background-color: var(--primary);
|
||
|
|
padding-top: 10px;
|
||
|
|
padding-bottom: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.site-header__cats-list {
|
||
|
|
width: 90%;
|
||
|
|
display: flex;
|
||
|
|
padding: 0;
|
||
|
|
justify-content: space-around;
|
||
|
|
}
|
||
|
|
|
||
|
|
.site-header__cats-item {
|
||
|
|
list-style-type: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.site-header__cats-link {
|
||
|
|
color: var(--white);
|
||
|
|
text-decoration: none;
|
||
|
|
font-size: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.site-header__cats-separator {
|
||
|
|
color: var(--white);
|
||
|
|
opacity: 20%;
|
||
|
|
}
|
||
|
|
|
||
|
|
.site-header__cats-list .site-header__cats-separator:last-child {
|
||
|
|
display: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.dropcats {
|
||
|
|
max-height: 0;
|
||
|
|
opacity: 0;
|
||
|
|
overflow: hidden;
|
||
|
|
transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
|
||
|
|
position: absolute;
|
||
|
|
right: 0;
|
||
|
|
width: 70%;
|
||
|
|
background-color: #F5F5F5;
|
||
|
|
padding: 0 30px;
|
||
|
|
border-radius: 0 0 12px 12px;
|
||
|
|
justify-content: space-around;
|
||
|
|
z-index: 9999;
|
||
|
|
display: flex;
|
||
|
|
}
|
||
|
|
|
||
|
|
.dropcats.dropcats_active {
|
||
|
|
max-height: 1000px;
|
||
|
|
opacity: 1;
|
||
|
|
padding: 30px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.dropcats__categories {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: repeat(2, 1fr); /* 2 kolumny o równej szerokości */
|
||
|
|
grid-auto-rows: auto;
|
||
|
|
list-style: none;
|
||
|
|
padding: 0;
|
||
|
|
margin: 0;
|
||
|
|
gap: 10px 100px;
|
||
|
|
color: #053C45;
|
||
|
|
}
|
||
|
|
|
||
|
|
.dropcats__categories li a{
|
||
|
|
display: flex;
|
||
|
|
gap: 5px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.dropcats__close svg {
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
@media (min-width: 768px) {
|
||
|
|
.logo {
|
||
|
|
width: 170px;
|
||
|
|
height: 80px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.site-header__cats {
|
||
|
|
display: flex;
|
||
|
|
}
|
||
|
|
|
||
|
|
.site-header__search {
|
||
|
|
display: flex;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (min-width: 1024px) {
|
||
|
|
.site-header_navigation {
|
||
|
|
display: flex;
|
||
|
|
gap: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.site-header__dropcat,
|
||
|
|
.site-header__shop {
|
||
|
|
display: block;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|