/*
Theme Name: Futgol Shop
Description: Prosty motyw sklepu z butami piłkarskimi, odwzorowujący wygląd futgol-shop.pl. Działa z WooCommerce.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: futgol-shop
*/

:root {
    --color-black: #000;
    --color-white: #fff;
    --color-text: #000;
    --color-muted: #6b6b6b;
    --color-border: #e5e5e5;
    --font-main: "Lato", sans-serif;
    --font-logo: "Rock Salt", cursive;
    --container-width: 1140px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em;
    font-weight: 700;
    line-height: 1.2;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.button-light,
.button-dark {
    display: inline-block;
    padding: 16px 28px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.2s;
}

.button-light {
    color: var(--color-black);
    background: var(--color-white);
    border: 2px solid var(--color-white);
}

.button-light--small {
    padding: 13px 20px;
    border-color: #ccc;
}

.button-light--wide {
    padding: 20px 90px;
}

.button-dark {
    color: var(--color-white);
    background: var(--color-black);
}

.button-light:hover,
.button-dark:hover {
    opacity: 0.85;
}

.site-header {
    position: relative;
    z-index: 10;
    background: var(--color-black);
    color: var(--color-white);
}

.site-header__bar {
    display: flex;
    align-items: center;
    gap: 32px;
    min-height: 103px;
    padding: 0 34px;
}

.site-logo {
    font-family: var(--font-logo);
    font-size: 20px;
    white-space: nowrap;
}

.site-navigation {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
}

.site-navigation__primary,
.site-navigation__secondary {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-navigation .menu {
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-navigation .menu a {
    text-transform: uppercase;
    transition: color 0.2s;
}

.site-navigation .menu a:hover,
.site-navigation .current-menu-item > a {
    color: #0274be;
}

.site-navigation__primary .menu a {
    font-size: 14.4px;
    font-weight: 700;
}

.site-navigation__secondary .menu a {
    font-size: 13px;
    font-weight: 500;
}

.header-icon {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    color: var(--color-white);
    background: none;
    border: 0;
    cursor: pointer;
}

.menu-toggle {
    display: none;
}

.cart-link {
    position: relative;
}

.cart-link__count {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    color: var(--color-black);
    background: var(--color-white);
    border-radius: 50%;
}

.header-search {
    display: none;
    padding: 16px 34px 24px;
}

.header-search.is-open {
    display: block;
}

.header-search form {
    display: flex;
    max-width: 600px;
    margin-left: auto;
    gap: 8px;
}

.header-search input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    font: inherit;
    border: 0;
}

.header-search button,
.header-search input[type="submit"] {
    padding: 10px 18px;
    font: inherit;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-black);
    background: var(--color-white);
    border: 0;
    cursor: pointer;
}

.hero {
    display: flex;
    align-items: center;
    min-height: 527px;
    padding: 40px 70px;
    background-color: #9a9a9a;
    background-position: center;
    background-size: cover;
    color: var(--color-white);
}

.hero__title {
    margin-bottom: 30px;
    font-size: 66px;
}

.hero__subtitle {
    margin: 0 0 40px;
    font-size: 26px;
    font-weight: 700;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.category-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 90px 40px 0;
}

.category-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 640px;
    padding: 40px;
    color: var(--color-white);
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.category-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    transition: background 0.3s;
}

.category-tile:hover::before {
    background: rgba(0, 0, 0, 0.15);
}

.category-tile > * {
    position: relative;
}

.category-tile__title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.category-tile__description {
    margin-bottom: 20px;
    font-size: 14px;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1440px;
    padding-top: 110px;
    padding-bottom: 40px;
    text-align: center;
}

.benefit__icon {
    width: 61px;
    height: 61px;
    object-fit: contain;
}

.benefit__title {
    margin: 12px 0 8px;
    font-size: 18px;
}

.benefit__description {
    margin: 0;
    font-size: 14px;
}

.section-title {
    margin-bottom: 50px;
    font-size: 42px;
    text-align: center;
}

.section-title--underlined::after {
    content: "";
    display: block;
    width: 100px;
    height: 2px;
    margin: 30px auto 0;
    background: var(--color-black);
}

.popular-products {
    max-width: 1380px;
}

.brands {
    max-width: 1440px;
    padding-top: 40px;
    padding-bottom: 60px;
}

.brands__logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    align-items: center;
}

.brands__logos img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.cta-banner {
    display: flex;
    align-items: center;
    min-height: 600px;
    max-width: 1410px;
    margin: 0 auto;
    padding: 60px 100px;
    color: var(--color-white);
    background-color: #eee;
    background-position: center 65%;
    background-size: cover;
    position: relative;
}

.cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0) 100%);
}

.cta-banner__content {
    position: relative;
}

.cta-banner__kicker {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
}

.cta-banner__title {
    margin-bottom: 12px;
    font-size: 42px;
}

.cta-banner__text {
    margin: 0 0 30px;
    font-size: 14px;
}

.deal-bar {
    display: block;
    margin: 120px 0 60px;
    padding: 16px 28px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: var(--color-white);
    background: var(--color-black);
}

.site-footer {
    font-size: 14px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-top: 50px;
    padding-bottom: 50px;
}

.footer-column__title {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-company {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 40px;
}

.footer-company p {
    margin: 0 0 10px;
}

.footer-company__name {
    margin-bottom: 24px !important;
    font-size: 18px;
    font-weight: 700;
}

.footer-payments {
    width: 300px;
    height: 150px;
}

.footer-bottom {
    padding: 30px 0;
    font-size: 13px;
    border-top: 1px solid var(--color-border);
}

.footer-bottom__inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.page-content {
    padding-top: 60px;
    padding-bottom: 60px;
}

.entry__title {
    margin-bottom: 30px;
    font-size: 42px;
}

.shop-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    padding-top: 60px;
    padding-bottom: 80px;
}

.shop-layout--with-filters {
    grid-template-columns: 1fr 260px;
}

.shop-layout__main {
    min-width: 0;
}

.shop-layout__filters-title,
.shop-filter__title {
    font-size: 20px;
}

.shop-filter {
    margin-bottom: 30px;
    font-size: 13px;
}

.woocommerce .woocommerce-breadcrumb {
    font-size: 13px;
    color: var(--color-muted);
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering select {
    font-size: 14px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-black);
}

.woocommerce ul.products li.product .product-category-label {
    display: block;
    margin: 4px 0;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--color-muted);
}

.woocommerce ul.products li.product .price {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-black);
}

.woocommerce span.onsale {
    min-width: 0;
    min-height: 0;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.4;
    background: var(--color-black);
    border-radius: 0;
}

.woocommerce div.product .product_title {
    font-size: 28px;
    text-transform: uppercase;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-black);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.wc-block-components-button:not(.is-link) {
    padding: 14px 28px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-white);
    background: var(--color-black);
    border-radius: 0;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    color: var(--color-white);
    background: #333;
}

.woocommerce .quantity .qty {
    width: 4em;
    min-height: 44px;
    font: inherit;
    border: 1px solid var(--color-border);
}

.woocommerce div.product form.cart .button {
    min-height: 44px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: none;
    border: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    border-top: 2px solid var(--color-black);
}

.woocommerce .related > h2 {
    font-size: 32px;
}

@media (max-width: 1100px) {
    .site-header__bar {
        gap: 20px;
        padding: 0 20px;
    }

    .site-navigation .menu,
    .site-navigation__primary,
    .site-navigation__secondary {
        gap: 16px;
    }
}

@media (max-width: 921px) {
    .site-header__bar {
        flex-wrap: wrap;
        justify-content: space-between;
        min-height: 70px;
    }

    .site-logo {
        font-size: 16px;
    }

    .menu-toggle {
        display: inline-flex;
        order: 2;
    }

    .cart-link {
        order: 1;
        margin-left: auto;
    }

    .site-navigation {
        display: none;
        order: 3;
        flex-basis: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-bottom: 20px;
    }

    .site-navigation.is-open {
        display: flex;
    }

    .site-navigation__primary,
    .site-navigation__secondary,
    .site-navigation .menu {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-toggle {
        order: 2;
    }

    .hero {
        min-height: 420px;
        padding: 40px 24px;
    }

    .hero__title {
        font-size: 40px;
    }

    .hero__subtitle {
        font-size: 20px;
    }

    .category-tiles {
        grid-template-columns: 1fr;
        padding: 40px 20px 0;
    }

    .category-tile {
        min-height: 460px;
    }

    .benefits {
        grid-template-columns: repeat(2, 1fr);
        padding-top: 60px;
    }

    .brands__logos {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .cta-banner {
        min-height: 420px;
        padding: 40px 24px;
        background-size: cover;
    }

    .section-title,
    .cta-banner__title {
        font-size: 30px;
    }

    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-company,
    .footer-bottom__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .shop-layout--with-filters {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 544px) {
    .button-light--wide {
        padding: 18px 50px;
    }

    .benefits,
    .footer-columns {
        grid-template-columns: 1fr;
    }
}
