/* main page,  */
html {
    scroll-behavior: smooth;
}

main {
    max-width: 1200px;
    margin: auto;
}

nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

nav > #kategoria-wrap {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex: 1 1 600px;
    width: 50%;
}

.kategoria {
    color: white;
    text-decoration: none;
    text-shadow: 1px 1px black;
    width: 25%;
    min-width: 200px;
    max-width: 250px;
    height: 350px;
    margin: 20px 0;
    background-color: var(--bgTheme);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kategoria-hr {
    font-size: 3em;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    padding: 20px 30px;
    background-color: var(--bgTheme);
    scroll-margin-top: 80px;
}

/* nav a.kategoria.active {
  background: #111;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
} */

.produkty {
    display: flex;
    flex-direction: column;
    justify-content: center;
    list-style: none;
}

.produkty>li {
    margin: 30px 0;
}

.produkty>li:nth-child(even) {
    /* align-self: flex-end; */
    text-align: right;
}


.karta-produktu {
    position: relative;
    min-width: 250px;
    width: 100%;
    display: flex;
    flex-direction: row;
    background-color: white;
    height: 300px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    transition: ease-in-out 300ms;
}

.karta-produktu:hover {
    transform: scale(1.05);
    transform-origin: center;
}

.karta-produktu:hover .karta-produktu-highlight-brother {
    z-index: 4;
}

.karta-produktu:hover .karta-produktu-highlight {
    transform: translate(-50%,-50%) scale(1);
    z-index: 1;
}

.karta-produktu-highlight-brother {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    background-color: white;
    z-index: 2;
}

.karta-produktu>div>div>a {
    color: black;
    text-decoration: none;
}

.produkty>li:nth-child(even) .karta-produktu-highlight-brother {
    flex-direction: row-reverse;
}
.produkty>li:nth-child(even) .karta-produktu-highlight {
    clip-path: polygon(
        0% 10%,
        100% 0%,
        100% 100%,
        0% 90%
    );
}

.karta-produktu-zakup {
    height: 1%;
}

.karta-produktu-senior-wrap {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px;
}

.karta-produktu-wrapper {
    width: 100%;
    height: 99%;
}

.karta-produktu-highlight {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1300px;
    height: 400px;
    background: linear-gradient(135deg,var(--leadThemeDim),var(--leadTheme));
    clip-path: polygon(
        0% 0%,
        100% 10%,
        100% 90%,
        0% 100%
    );
    transform: translate(-50%,-50%) scale(0.5);
    transform-origin: center;
    transition: ease-out 300ms;
    z-index: -1;
    pointer-events: none;
}

.add_to_cart_button {
    position: relative;
    top: -140px;
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--leadTheme);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

.add_to_cart_button:hover {
    background-color: var(--leadThemeDim);
}

.add_to_cart_button:active {
    background-color: var(--leadThemeDark);
    transform: scale(0.97); 
}

.add_to_cart_button:focus {
    outline: 2px solid var(--leadThemeDark);
    outline-offset: 2px;
}

.image-wrapper {
    height: 300px;
    position: relative;
    display: block;
    overflow: hidden;
}

.image-wrapper img {
    display: block;
    height: 100%;
    width: auto;
}

.image-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, #f5f5f5 100%);
    pointer-events: none;
}

.produkty>li:nth-child(even) .image-wrapper::after {
    top: 0;
    bottom: 0;
    left: 0;
    width: 100px;
    background: linear-gradient(to left, rgba(0, 0, 0, 0) 0%, #f5f5f5 100%);
}

.karta-produktu-tytul {
    font-size: 2em;
}

