* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Alfa Slab One', cursive;
    background: url('images/backgroundcatalog.png') no-repeat center top;
    background-size: cover;
    color: #000;
}

.header {
    background: #fff;
    border-bottom: 1.5px solid #000;
    padding: 0 40px;
    height: 140px;
    display: flex;
    align-items: center;
}

.header-inner {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    margin-left: 220px;
}

.logo {
    font-size: 64px;
    color: #000;
    text-decoration: none;
}

.nav {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

.nav a {
    font-size: 32px;
    text-decoration: none;
    color: #000;
    transition: opacity 0.2s;
}

.nav a:hover {
    opacity: 0.6;
}

.header-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-right: 220px;
}

.login {
    font-size: 32px;
    color: #000;
    text-decoration: none;
    transition: opacity 0.2s;
}

.login:hover {
    opacity: 0.6;
}

.btn-register {
    font-family: 'Alfa Slab One', cursive;
    width: 241px;
    height: 48px;
    background: #000;
    color: #fff;
    border-radius: 8px;
    font-size: 32px;
    border: 1.5px solid #000;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s, color 0.2s;
}

.btn-register:hover {
    background: #fff;
    color: #000;
}

.filter-bar {
    max-width: 1360px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 30px;
}

.btn-filter {
    font-family: 'Alfa Slab One', cursive;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.btn-filter:hover,
.btn-filter.active {
    opacity: 1;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 306px);
    grid-auto-rows: 427px;
    gap: 40px;
    justify-content: center;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px 60px;
}


.product {
    width: 306px;
    height: 427px;
    border: 1px solid #000;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    display: grid;
    grid-template-rows: 214px 213px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.product-img {
    width: 306px;
    height: 214px;
    object-fit: cover;
    display: block;
}

.info {
    border-top: 1px solid #000;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.info h3 {
    font-size: 22px;
    margin: 0;
    line-height: 1.2;
}

.info p {
    font-size: 18px;
    margin: 4px 0;
    color: #000;
}

.stars {
    width: 90px;
    margin-top: 4px;
    display: block;
}

.info hr {
    width: 100%;
    border: none;
    border-top: 1px solid #000;
    margin: 6px 0;
}

.price-box {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 141px;
    height: 38px;
    background: #BF47DD;
    border: 1px solid #000;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price {
    font-size: 16px;
    color: #000;
}

.footer {
    max-width: 1360px;
    margin: 60px auto 80px;
    border: 1.5px solid #000;
    border-radius: 16px;
    padding: 40px;
    background: #fff;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-left h3 {
    font-size: 24px;
    max-width: 400px;
    line-height: 1.4;
}

.email-box {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.email-box input {
    font-family: 'Alfa Slab One', cursive;
    width: 280px;
    height: 34px;
    border: 1.5px solid #000;
    border-radius: 5px;
    padding: 0 10px;
    font-size: 14px;
    outline: none;
}

.send-btn {
    width: 34px;
    height: 34px;
    background: #BF47DD;
    border: 1.5px solid #000;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.send-btn:hover {
    opacity: 0.8;
}

.footer-brand {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.copyright {
    font-size: 28px;
}

.footer-logo {
    font-size: 32px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: center;
}

.footer-nav a {
    font-size: 24px;
    text-decoration: none;
    color: #000;
    transition: opacity 0.2s;
}

.footer-nav a:hover {
    opacity: 0.6;
}

.socials {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.socials img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}