@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --secondary-text: #666666;
    --placeholder-bg: #e0e0e0;
    --border-color: #eeeeee;
    --font-main: 'Josefin Sans', sans-serif;
    --max-width: 1400px;
    --spacing: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-color);
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
}

#logoImg {
    height: 120px;
}

.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    transition: ease-in-out 0.2s;
}

.hero {
    width: 100%;
    height: 70vh;
    background-image: url('images/header-img.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    overflow: hidden;
    position: relative;
}

.hero::after {
    display: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--placeholder-bg);
    transition: opacity 0.2s ease;
}

.product-card:hover .product-image img {
    opacity: 0.8;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-info p {
    font-size: 14px;
    color: var(--secondary-text);
}

@media (max-width: 768px) {
    header {
        height: 60px;
    }

    .logo {
        font-size: 20px;
    }

    .hero {
        height: 40vh;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

.product-detail {
    padding: 60px 0;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.detail-info {
    padding-top: 20px;
}

.detail-info h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.detail-info .price {
    font-size: 20px;
    margin-bottom: 20px;
}

.detail-info .description {
    margin-bottom: 30px;
    color: var(--secondary-text);
}

.buy-form {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.qty-input {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.qty-input input {
    width: 70px;
    padding: 10px;
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 16px;
}

.buy-btn {
    flex-grow: 1;
    background-color: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.2s;
}

.buy-btn:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
    }

    .buy-form {
        flex-direction: column;
        align-items: stretch;
    }

    .qty-input input {
        width: 100%;
    }
}

.menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: #ffffff;
    padding-top: 60px;
    z-index: 10001;
    transition: left 0.3s ease;
    border: #000000 solid 1px;
}

.menu.active {
    left: 0;
}

.menu a {
    display: block;
    padding: 15px;
    color: rgb(0, 0, 0);
    text-decoration: none;
}

.menu a:hover {
    background: #dadada;
}

#closeBtn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgb(0, 0, 0);
    font-size: 22px;
    cursor: pointer;
}

.cartMenu {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background: #ffffff;
    padding-top: 60px;
    z-index: 10001;
    transition: right 0.3s ease;
    border: #000000 solid 1px;
}

.cartMenu.active {
    right: 0;
}

.cartMenu a {
    display: block;
    padding: 15px;
    color: rgb(0, 0, 0);
    text-decoration: none;
}

.cartMenu a:hover {
    background: #dadada;
}

#cartCloseBtn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: rgb(0, 0, 0);
    font-size: 22px;
    cursor: pointer;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cart-table th,
.cart-table td {
    padding: 8px 4px;
    border-bottom: 1px solid #ddd;
}

.cart-col-qty,
.cart-col-price,
.cart-qty,
.cart-price {
    text-align: center;
}

.cart-qty input {
    width: 45px;
}

.checkout-btn {
    margin-top: 20px;
    text-align: center;
}

#checkoutBtn {
    background-color: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
}

.tackSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 20px;
    text-align: center;
}

.OmOssSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 20px;
    text-align: center;
}

.kontaktSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 20px;
    text-align: center;
}

.fragorSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 40px 20px;
    text-align: center;
}

.fragorSection h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.fragorSection p {
    margin-bottom: 16px;
}