* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #080808;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

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

button {
    font-family: inherit;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    z-index: 1000;

    top: 0;
    left: 0;

    width: 100%;
    height: 86px;

    padding: 0 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(5,5,5,.97);

    border-bottom: 1px solid #242424;
}

.logo {
    display: flex;
    flex-direction: column;

    font-size: 22px;
    line-height: .85;

    font-weight: 900;
}

.logo span {
    color: #f26b21;

    font-size: 15px;

    margin-top: 5px;
}

nav {
    display: flex;
    align-items: center;

    gap: 42px;
}

nav a {
    position: relative;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 1px;

    padding: 32px 0;
}

nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 20px;

    width: 0;
    height: 3px;

    background: #f26b21;

    transition: .25s;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.cart {
    display: flex;
    align-items: center;

    gap: 8px;

    font-size: 13px;
    font-weight: bold;
}

.cart b {
    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f26b21;

    border-radius: 50%;

    font-size: 11px;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;

    min-height: 610px;

    margin-top: 86px;

    display: flex;
    align-items: center;

    padding: 80px 7%;

    background-image: url("../images/hero.jpg");
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.92) 0%,
            rgba(0,0,0,.68) 38%,
            rgba(0,0,0,.05) 75%
        ),
        linear-gradient(
            0deg,
            rgba(0,0,0,.55),
            transparent 50%
        );
}

.hero-content {
    position: relative;

    z-index: 2;

    max-width: 620px;
}

.eyebrow {
    color: #f26b21;

    font-size: 13px;

    font-weight: 900;

    letter-spacing: 4px;

    margin-bottom: 17px;
}

.hero h1 {
    font-size: clamp(58px, 7vw, 100px);

    line-height: .88;

    font-weight: 950;

    letter-spacing: -3px;

    text-transform: uppercase;
}

.hero h1 span {
    display: block;

    color: #f26b21;

    margin-top: 10px;
}

.hero p {
    max-width: 450px;

    margin-top: 28px;

    color: #ddd;

    font-size: 18px;

    line-height: 1.5;
}

.main-button {
    display: inline-block;

    margin-top: 32px;

    padding: 17px 30px;

    background: #f26b21;

    font-size: 13px;

    font-weight: 900;

    letter-spacing: .5px;

    transition: .25s;
}

.main-button:hover {
    background: #fff;

    color: #000;
}


/* =========================
   FEATURES
========================= */

.features {
    min-height: 95px;

    padding: 18px 7%;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 30px;

    background: #101010;

    border-bottom: 1px solid #242424;
}

.feature {
    display: flex;

    align-items: center;

    gap: 15px;
}

.feature-icon {
    color: #f26b21;

    font-size: 25px;
}

.feature strong {
    font-size: 12px;

    letter-spacing: .5px;
}

.feature p {
    color: #888;

    font-size: 11px;

    margin-top: 5px;
}


/* =========================
   SHOP
========================= */

.shop {
    padding: 100px 7%;
}

.section-heading {
    margin-bottom: 42px;
}

.section-heading h2 {
    font-size: 60px;

    line-height: 1;

    font-weight: 950;
}

.orange-line {
    width: 55px;
    height: 4px;

    margin-top: 15px;

    background: #f26b21;
}


/* PRODUCT */

.product-card {
    display: grid;

    grid-template-columns: 1.05fr 1fr;

    min-height: 500px;

    border: 1px solid #292929;

    background: #111;
}

.product-photo {
    min-height: 500px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at center,
            #303030,
            #111 65%
        );
}


.product-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}



.shirt {
    width: 280px;
    height: 350px;

    position: relative;

    background: #080808;

    border-radius: 25px 25px 10px 10px;

    box-shadow:
        0 30px 60px rgba(0,0,0,.7);

    display: flex;

    align-items: center;
    justify-content: center;
}

.shirt::before,
.shirt::after {
    content: "";

    position: absolute;

    top: 20px;

    width: 100px;
    height: 150px;

    background: #080808;

    z-index: -1;
}

.shirt::before {
    left: -80px;

    transform: rotate(25deg);
}

.shirt::after {
    right: -80px;

    transform: rotate(-25deg);
}

.shirt-logo {
    text-align: center;

    font-size: 25px;

    font-weight: 950;

    line-height: 1;
}

.shirt-logo span {
    display: block;

    color: #f26b21;

    margin-top: 7px;
}

.product-details {
    padding: 55px 60px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.product-type {
    color: #f26b21;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 2px;
}

.product-details h3 {
    margin-top: 8px;

    font-size: 34px;

    font-weight: 950;
}

.product-description {
    color: #999;

    margin-top: 12px;

    line-height: 1.6;
}

.separator {
    height: 1px;

    background: #292929;

    margin: 30px 0;
}

.product-details label {
    font-size: 11px;

    font-weight: bold;

    margin-bottom: 10px;
}

.sizes {
    display: flex;

    gap: 8px;

    margin-bottom: 25px;
}

.sizes button,
.quantity button {
    min-width: 48px;
    height: 42px;

    border: 1px solid #444;

    background: transparent;

    color: white;

    cursor: pointer;

    font-weight: bold;
}

.sizes button:hover,
.sizes button.selected {
    border-color: #f26b21;

    background: #f26b21;

    color: white;
}

.quantity {
    display: flex;

    align-items: center;

    margin-bottom: 25px;
}

.quantity span {
    width: 45px;

    text-align: center;
}

.purchase {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}

.price {
    font-size: 32px;

    font-weight: 950;
}

.delivery {
    color: #f26b21;

    font-size: 11px;

    margin-top: 5px;
}

.add-button {
    border: 0;

    padding: 17px 25px;

    background: #f26b21;

    color: white;

    font-weight: 900;

    cursor: pointer;

    transition: .25s;
}

.add-button:hover {
    background: white;

    color: black;
}


/* =========================
   ABOUT
========================= */

.about {
    display: grid;

    grid-template-columns: 1fr 1fr;

    min-height: 500px;

    background: #111;
}

.about-image {
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(0,0,0,.5)
        ),
        url("../images/about.jpg");

    background-size: cover;

    background-position: center;
}

.about-content {
    padding: 80px;

    display: flex;

    justify-content: center;

    flex-direction: column;
}

.about-content h2 {
    font-size: clamp(45px, 5vw, 70px);

    line-height: .95;

    font-weight: 950;
}

.about-content p {
    color: #aaa;

    max-width: 550px;

    margin-top: 22px;

    line-height: 1.7;
}

.outline-button {
    width: fit-content;

    margin-top: 30px;

    padding: 14px 23px;

    border: 1px solid #777;

    font-size: 11px;

    font-weight: bold;

    transition: .25s;
}

.outline-button:hover {
    background: #f26b21;

    border-color: #f26b21;
}


/* =========================
   SOCIAL
========================= */

.social {
    text-align: center;

    padding: 100px 20px;
}

.social h2 {
    font-size: clamp(42px, 5vw, 65px);

    font-weight: 950;
}

.social p {
    color: #888;

    margin-top: 12px;
}

.social-buttons {
    display: flex;

    justify-content: center;

    gap: 15px;

    margin-top: 35px;
}

.social-buttons a {
    padding: 14px 24px;

    border: 1px solid #444;

    font-size: 12px;

    font-weight: bold;

    transition: .25s;
}

.social-buttons a:hover {
    background: #f26b21;

    border-color: #f26b21;
}


/* =========================
   FOOTER
========================= */

footer {
    min-height: 85px;

    padding: 20px 7%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    border-top: 1px solid #222;

    color: #666;

    font-size: 11px;
}

.footer-logo {
    color: white;

    font-weight: 900;
}

.footer-logo span {
    color: #f26b21;
}

.footer-links {
    display: flex;

    gap: 25px;
}

.footer-links a:hover {
    color: white;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .navbar {
        height: 75px;

        padding: 0 25px;
    }

    nav {
        gap: 18px;
    }

    nav a {
        font-size: 10px;
    }

    .cart span {
        display: none;
    }

    .hero {
        margin-top: 75px;

        min-height: 650px;

        padding: 60px 25px;
    }

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

        padding: 25px;
    }

    .shop {
        padding: 70px 25px;
    }

    .product-card {
        grid-template-columns: 1fr;
    }

    .product-photo {
        min-height: 400px;
    }

    .product-details {
        padding: 40px 25px;
    }

    .about {
        grid-template-columns: 1fr;
    }

    .about-image {
        min-height: 350px;
    }

    .about-content {
        padding: 60px 25px;
    }

    footer {
        flex-direction: column;

        text-align: center;

        padding: 30px 20px;
    }
}


@media (max-width: 600px) {

    nav {
        display: none;
    }

    .hero h1 {
        font-size: 55px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .section-heading h2 {
        font-size: 50px;
    }

    .purchase {
        flex-direction: column;

        align-items: stretch;
    }

    .add-button {
        width: 100%;
    }

    .social-buttons {
        flex-direction: column;
    }
}
/* =========================
   CART
========================= */

.cart-page {
    padding: 150px 7% 100px;
    min-height: 80vh;
}

.empty-cart {
    padding: 80px 20px;
    text-align: center;
    background: #111;
    border: 1px solid #292929;
}

.empty-cart h3 {
    font-size: 30px;
}

.empty-cart p {
    color: #888;
    margin: 15px 0 25px;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: grid;
    grid-template-columns: 110px 1fr auto auto;
    align-items: center;
    gap: 25px;

    padding: 20px;

    background: #111;
    border: 1px solid #292929;
}

.cart-shirt {
    height: 130px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    background: #080808;

    font-size: 13px;
    font-weight: 900;

    text-align: center;
}

.cart-shirt strong {
    color: #f26b21;
}

.cart-info h3 {
    font-size: 18px;
}

.cart-info p {
    margin-top: 8px;
    color: #888;
    font-size: 13px;
}

.cart-price {
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.remove {
    color: #888;
    font-size: 10px;
    font-weight: bold;
}

.remove:hover {
    color: #f26b21;
}

.cart-summary {
    padding: 30px;

    background: #111;

    border: 1px solid #292929;

    height: fit-content;
}

.cart-summary h3 {
    font-size: 20px;
    margin-bottom: 25px;
}

.summary-row,
.summary-total {
    display: flex;
    justify-content: space-between;

    padding: 15px 0;

    border-bottom: 1px solid #292929;
}

.summary-row span {
    color: #888;
}

.summary-total {
    margin-top: 10px;
    border-bottom: 0;
    font-size: 20px;
}

.summary-total strong {
    color: #f26b21;
}

.delivery-note {
    color: #f26b21;
    font-size: 12px;
    margin-bottom: 20px;
}

.checkout-button {
    display: block;

    padding: 17px;

    text-align: center;

    background: #f26b21;

    font-size: 12px;
    font-weight: 900;
}

.checkout-button:hover {
    background: #fff;
    color: #000;
}


@media (max-width: 800px) {

    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
    }

    .cart-price,
    .remove {
        grid-column: 2;
    }

}
/* =========================
   CHECKOUT
========================= */

.checkout-page {
    padding: 150px 7% 100px;
    min-height: 80vh;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkout-section {
    padding: 30px;
    background: #111;
    border: 1px solid #292929;
}

.checkout-section h3 {
    margin-bottom: 25px;
    font-size: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 14px;

    border: 1px solid #3a3a3a;

    background: #080808;

    color: white;

    outline: none;

    font-family: inherit;
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #f26b21;
}

.shipping-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.shipping-option {
    display: flex;
    gap: 12px;
    align-items: center;

    padding: 18px;

    border: 1px solid #3a3a3a;

    cursor: pointer;
}

.shipping-option:hover {
    border-color: #f26b21;
}

.shipping-option input {
    accent-color: #f26b21;
}

.shipping-option span {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.shipping-option small {
    color: #888;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    color: #999;

    font-size: 12px;

    line-height: 1.5;
}

.consent input {
    margin-top: 3px;
    accent-color: #f26b21;
}

.checkout-submit {
    width: 100%;

    padding: 19px;

    border: 0;

    background: #f26b21;

    color: white;

    font-weight: 900;

    cursor: pointer;

    transition: .25s;
}

.checkout-submit:hover {
    background: white;
    color: black;
}

.checkout-summary {
    padding: 30px;

    background: #111;

    border: 1px solid #292929;

    position: sticky;
    top: 110px;
}

.checkout-summary h3 {
    font-size: 18px;
    margin-bottom: 25px;
}

.checkout-product {
    display: flex;
    justify-content: space-between;
    gap: 15px;

    padding: 15px 0;

    border-bottom: 1px solid #292929;
}

.checkout-product div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkout-product span {
    color: #888;
    font-size: 12px;
}

.checkout-errors {
    margin-bottom: 25px;

    padding: 20px;

    background: #24120b;

    border: 1px solid #8d3c15;
}

.checkout-errors p {
    color: #ff9a65;
    margin: 5px 0;
}


@media (max-width: 900px) {

    .checkout-container {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

}


@media (max-width: 600px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .shipping-options {
        grid-template-columns: 1fr;
    }

    .checkout-page {
        padding-left: 20px;
        padding-right: 20px;
    }

}
/* =========================
   ORDER SUCCESS
========================= */

.success-page {
    min-height: 80vh;

    padding: 150px 20px 100px;

    display: flex;

    align-items: center;
    justify-content: center;
}

.success-box {
    width: 100%;
    max-width: 700px;

    padding: 60px 40px;

    text-align: center;

    background: #111;

    border: 1px solid #292929;
}

.success-icon {
    width: 65px;
    height: 65px;

    margin: 0 auto 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f26b21;

    font-size: 30px;
    font-weight: bold;
}

.success-box h1 {
    font-size: clamp(35px, 5vw, 60px);

    line-height: 1;

    margin-top: 10px;
}

.order-number {
    display: block;

    margin-top: 12px;

    color: #f26b21;

    font-size: 28px;
}

.success-info {
    max-width: 500px;

    margin: 25px auto;

    color: #888;

    line-height: 1.6;
}
/* =========================
   ADMIN PANEL
========================= */

.admin-page {
    background: #090909;
    color: #fff;
    min-height: 100vh;
}

.admin-header {
    min-height: 90px;

    padding: 20px 5%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #111;

    border-bottom: 1px solid #292929;
}

.admin-brand {
    font-size: 22px;
    font-weight: 900;
}

.admin-brand span {
    color: #f26b21;
}

.admin-title {
    margin-top: 5px;

    color: #777;

    font-size: 10px;
    letter-spacing: 2px;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 25px;

    font-size: 12px;
}

.admin-user span {
    color: #888;
}

.admin-user strong {
    color: white;
}

.admin-user a {
    padding: 10px 15px;

    border: 1px solid #333;

    color: #aaa;

    font-size: 10px;
    font-weight: 900;
}

.admin-user a:hover {
    border-color: #f26b21;
    color: #f26b21;
}

.admin-content {
    padding: 60px 5%;
}

.admin-heading h1 {
    margin-top: 10px;

    font-size: 45px;
}

.admin-stats {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

    margin: 40px 0;
}

.admin-stat {
    padding: 25px;

    background: #111;

    border: 1px solid #292929;
}

.admin-stat span {
    display: block;

    color: #777;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1px;
}

.admin-stat strong {
    display: block;

    margin-top: 10px;

    font-size: 38px;
}

.admin-stat.pending strong {
    color: #f26b21;
}

.admin-stat.paid strong {
    color: #6fdc8c;
}

.admin-stat.shipped strong {
    color: #66aaff;
}

.orders-table {
    background: #111;

    border: 1px solid #292929;
}

.orders-header,
.order-row {
    display: grid;

    grid-template-columns:
        1.1fr
        1.5fr
        1fr
        .8fr
        1.4fr
        .8fr;

    gap: 20px;

    align-items: center;
}

.orders-header {
    padding: 15px 20px;

    color: #666;

    font-size: 9px;
    font-weight: 900;

    border-bottom: 1px solid #292929;
}

.order-row {
    padding: 20px;

    border-bottom: 1px solid #222;

    font-size: 13px;
}

.order-row:last-child {
    border-bottom: 0;
}

.order-row small {
    display: block;

    margin-top: 5px;

    color: #666;

    font-size: 10px;
}

.order-status {
    display: inline-block;

    padding: 7px 10px;

    font-size: 9px;
    font-weight: 900;
}

.status-pending {
    background: #38200f;
    color: #f26b21;
}

.status-paid {
    background: #102a18;
    color: #6fdc8c;
}

.status-preparing {
    background: #29250d;
    color: #e5d85c;
}

.status-shipped {
    background: #10233a;
    color: #66aaff;
}

.status-completed {
    background: #142b20;
    color: #76e0a0;
}

.status-cancelled {
    background: #321414;
    color: #ff7777;
}

.admin-button {
    display: inline-block;

    padding: 9px 12px;

    background: #f26b21;

    color: white;

    font-size: 9px;
    font-weight: 900;
}

.admin-button:hover {
    background: white;
    color: black;
}

.no-orders {
    padding: 50px;

    text-align: center;

    color: #777;
}


@media (max-width: 1000px) {

    .admin-stats {
        grid-template-columns: 1fr 1fr;
    }

    .orders-table {
        overflow-x: auto;
    }

    .orders-header,
    .order-row {
        min-width: 900px;
    }

}


@media (max-width: 600px) {

    .admin-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 20px;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

}
/* =========================
   ADMIN ORDER DETAILS
========================= */

.order-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 40px;
}

.order-top h1 {
    margin-top: 10px;

    font-size: 50px;
}

.back-button {
    display: inline-block;

    margin-bottom: 30px;

    color: #777;

    font-size: 10px;
    font-weight: 900;
}

.back-button:hover {
    color: #f26b21;
}

.order-layout {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}

.admin-card {
    padding: 30px;

    background: #111;

    border: 1px solid #292929;
}

.admin-card h2 {
    margin-bottom: 25px;

    font-size: 17px;
}

.detail-row {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 15px 0;

    border-bottom: 1px solid #292929;
}

.detail-row:last-child {
    border-bottom: 0;
}

.detail-row span,
.shipping-address > span {
    color: #666;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1px;
}

.detail-row strong {
    text-align: right;

    font-size: 13px;
}

.shipping-address {
    padding-top: 20px;
}

.shipping-address p {
    margin-top: 10px;

    padding: 15px;

    background: #090909;

    border: 1px solid #292929;

    color: #bbb;

    line-height: 1.6;

    font-size: 13px;
}

.admin-product {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 18px 0;

    border-bottom: 1px solid #292929;
}

.admin-product div {
    display: flex;

    flex-direction: column;

    gap: 6px;
}

.admin-product span {
    color: #777;

    font-size: 11px;
}

.admin-product > strong {
    white-space: nowrap;
}

.admin-total {
    display: flex;

    justify-content: space-between;

    margin-top: 20px;

    padding-top: 20px;

    border-top: 1px solid #444;

    font-size: 20px;
}

.admin-total strong {
    color: #f26b21;
}


@media (max-width: 800px) {

    .order-layout {
        grid-template-columns: 1fr;
    }

    .order-top {
        align-items: flex-start;

        flex-direction: column;

        gap: 20px;
    }

    .order-top h1 {
        font-size: 38px;
    }

}
/* =========================
   STATUS MANAGEMENT
========================= */

.status-management {
    grid-column: 1 / -1;
}

.status-management select {
    width: 100%;

    padding: 14px;

    background: #080808;

    border: 1px solid #3a3a3a;

    color: white;

    font-family: inherit;

    outline: none;
}

.status-management select:focus {
    border-color: #f26b21;
}

.status-management .form-field {
    margin-bottom: 20px;
}

.status-management .checkout-submit {
    max-width: 300px;
}
/* =========================
   PRODUCTS GRID
========================= */

.products-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 30px;

    align-items: stretch;
}

.products-grid .product-card {
    height: 100%;
}


@media (max-width: 900px) {

    .products-grid {
        grid-template-columns: 1fr;
    }

}
/* =========================
   DWA PRODUKTY
========================= */

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
}

.products-grid .product-card {
    width: 100%;
    box-sizing: border-box;
}


@media (max-width: 900px) {

    .products-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   FINAL RESPONSIVE FIX
   Układ dopasowuje się do szerokości okna bez nachodzenia
   elementów na siebie.
========================================================= */

/* Średnie ekrany / mniejsze okna laptopów */
@media (max-width: 1200px) {

    .navbar {
        padding-left: 3%;
        padding-right: 3%;
    }

    nav {
        gap: 22px;
    }

    nav a {
        font-size: 11px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .product-card {
        min-width: 0;
    }

    .product-details {
        min-width: 0;
        padding: 45px;
    }

    .product-details h3 {
        font-size: clamp(26px, 3vw, 34px);
    }

    .about-content {
        padding: 60px;
    }

    .cart-container {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .checkout-container {
        grid-template-columns: minmax(0, 1fr) 340px;
    }

    .checkout-section,
    .checkout-summary {
        min-width: 0;
    }
}


/* Małe laptopy / tablet poziomo */
@media (max-width: 950px) {

    .navbar {
        height: 75px;
        padding: 0 25px;
        gap: 15px;
    }

    .logo {
        flex-shrink: 0;
        font-size: 19px;
    }

    .logo span {
        font-size: 13px;
    }

    nav {
        gap: 14px;
        min-width: 0;
    }

    nav a {
        font-size: 9px;
        letter-spacing: .6px;
    }

    .cart {
        flex-shrink: 0;
    }

    .hero {
        margin-top: 75px;
        padding-left: 35px;
        padding-right: 35px;
    }

    .features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-left: 35px;
        padding-right: 35px;
        gap: 20px;
    }

    .shop {
        padding-left: 35px;
        padding-right: 35px;
    }

    .product-card {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    }

    .product-photo {
        min-width: 0;
    }

    .product-details {
        min-width: 0;
        padding: 35px;
    }

    .product-details h3,
    .product-description {
        overflow-wrap: anywhere;
    }

    .about {
        grid-template-columns: 1fr;
    }

    .about-image {
        min-height: 350px;
    }

    .about-content {
        padding: 55px 35px;
    }

    .cart-container,
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

    .cart-summary {
        width: 100%;
    }
}


/* Tablet pionowo / małe okno */
@media (max-width: 800px) {

    .navbar {
        padding: 0 20px;
    }

    /* Przy tej szerokości menu nie ma już miejsca obok logo i koszyka. */
    nav {
        display: none;
    }

    .hero {
        min-height: 600px;
        padding: 55px 25px;
    }

    .hero h1 {
        font-size: clamp(48px, 10vw, 70px);
        letter-spacing: -2px;
    }

    .hero p {
        max-width: 520px;
        font-size: 16px;
    }

    .features {
        grid-template-columns: 1fr 1fr;
        padding: 22px 20px;
    }

    .shop {
        padding: 65px 20px;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .section-heading h2 {
        font-size: 50px;
    }

    /* Karta produktu przechodzi w pion,
       dzięki czemu zdjęcie i formularz nie ściskają się. */
    .product-card {
        grid-template-columns: 1fr;
    }

   .product-photo {
    min-height: 360px;
    height: auto;
    overflow: hidden;
}

.product-photo img {
    width: 100%;
    height: auto !important;
    max-height: 100%;
    object-fit: contain !important;
    display: block;
}

    .product-details {
        padding: 35px 25px;
    }

    .shirt {
        width: min(280px, 70vw);
        height: min(350px, 87vw);
    }

    .cart-page,
    .checkout-page {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cart-item {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 18px;
    }

    .cart-shirt {
        height: 110px;
    }

    .cart-price,
    .remove {
        grid-column: 2;
    }

    .form-grid,
    .shipping-options {
        grid-template-columns: 1fr;
    }

    .checkout-section,
    .checkout-summary {
        padding: 25px;
    }

    .purchase {
        flex-wrap: wrap;
    }

    .add-button {
        max-width: 100%;
    }

    .social-buttons {
        flex-wrap: wrap;
    }

    .admin-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .admin-user {
        flex-wrap: wrap;
        gap: 10px;
    }

    .order-layout {
        grid-template-columns: 1fr;
    }

    .order-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }
}


/* Telefon */
@media (max-width: 600px) {

    .navbar {
        height: 70px;
        padding: 0 15px;
    }

    .logo {
        font-size: 17px;
    }

    .logo span {
        font-size: 11px;
        margin-top: 4px;
    }

    .cart {
        font-size: 12px;
    }

    .hero {
        margin-top: 70px;
        min-height: 560px;
        padding: 45px 20px;
    }

    .hero h1 {
        font-size: clamp(43px, 13vw, 58px);
    }

    .hero p {
        font-size: 15px;
        margin-top: 22px;
    }

    .main-button {
        padding: 15px 22px;
    }

    .features {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 18px;
    }

    .shop {
        padding: 55px 15px;
    }

    .section-heading h2 {
        font-size: 44px;
    }

    .product-photo {
    min-height: 310px;
    height: auto;
    overflow: hidden;
}

    .product-details {
        padding: 28px 20px;
    }

    .product-details h3 {
        font-size: 25px;
        line-height: 1.05;
    }

    .sizes {
        flex-wrap: wrap;
    }

    .purchase {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .add-button {
        width: 100%;
    }

    .about-image {
        min-height: 280px;
    }

    .about-content {
        padding: 45px 20px;
    }

    .social {
        padding: 70px 20px;
    }

    .social-buttons {
        flex-direction: column;
    }

    .social-buttons a {
        width: 100%;
    }

    .cart-page,
    .checkout-page {
        padding-top: 120px;
        padding-bottom: 70px;
    }

    .cart-item {
        grid-template-columns: 65px minmax(0, 1fr);
        padding: 15px;
        gap: 14px;
    }

    .cart-shirt {
        height: 95px;
        font-size: 11px;
    }

    .cart-info h3 {
        font-size: 15px;
        overflow-wrap: anywhere;
    }

    .cart-price {
        font-size: 16px;
    }

    .cart-summary,
    .checkout-section,
    .checkout-summary {
        padding: 20px;
    }

    .checkout-product {
        gap: 10px;
    }

    .checkout-product strong {
        overflow-wrap: anywhere;
    }

    .success-box {
        padding: 45px 20px;
    }

    .admin-content {
        padding: 45px 20px;
    }

    .admin-heading h1 {
        font-size: 38px;
    }

    .admin-card {
        padding: 22px;
    }

    .detail-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .detail-row strong {
        text-align: left;
        overflow-wrap: anywhere;
    }

    footer {
        padding: 30px 20px;
    }
}


/* Bardzo wąskie telefony */
@media (max-width: 400px) {

    .hero h1 {
        font-size: 40px;
    }

    .section-heading h2 {
        font-size: 38px;
    }

    .product-photo {
        min-height: 280px;
    }

    .shirt {
        transform: scale(.82);
    }

    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-price,
    .remove {
        grid-column: auto;
    }

    .cart-shirt {
        width: 100%;
        max-width: 120px;
    }
}

/* =========================================================
   POPRAWKA KART PRODUKTÓW NA MAŁYCH EKRANACH
========================================================= */

@media (max-width: 900px) {

    .products-grid {
        grid-template-columns: 1fr !important;
    }

    .products-grid .product-card {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .products-grid .product-photo {
        width: 100% !important;
        height: auto !important;
        min-height: 320px;
        overflow: hidden;
    }

    .products-grid .product-photo img {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
        max-height: 500px;
        object-fit: contain !important;
        display: block;
    }

    .products-grid .product-details {
        width: 100% !important;
        min-width: 0 !important;
        padding: 35px 25px;
    }

}


@media (max-width: 600px) {

    .products-grid {
        grid-template-columns: 1fr !important;
    }

    .products-grid .product-card {
        grid-template-columns: 1fr !important;
    }

    .products-grid .product-photo {
        min-height: 280px;
    }

    .products-grid .product-photo img {
        width: 100% !important;
        height: auto !important;
        max-height: 400px;
        object-fit: contain !important;
    }

    .products-grid .product-details {
        padding: 25px 20px;
    }

}



/* =========================================================
   KONTO KLIENTA — NAGŁÓWEK
   ========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.account-link,
.logout-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.account-link {
    color: inherit;
}

.logout-link {
    color: inherit;
    opacity: 0.75;
}

.account-link:hover,
.logout-link:hover {
    opacity: 1;
}


/* =========================================================
   TELEFON
   ========================================================= */

@media (max-width: 800px) {

    .header-actions {
        gap: 8px;
    }

    .account-link span {
        display: none;
    }

    .logout-link {
        font-size: 11px;
    }

    .cart span {
        display: none;
    }

}



/* =========================================================
   STATUSY ZAMÓWIEŃ
   ========================================================= */

.order-status {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-paid {
    background: #dbeafe;
    color: #1e40af;
}

.status-preparing {
    background: #fef3c7;
    color: #92400e;
}

.status-shipped {
    background: #dcfce7;
    color: #166534;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}


/* =========================================================
   KOLOROWE STATUSY ZAMÓWIEŃ
   ========================================================= */

.order-status {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 9px 15px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap;
    border: 1px solid transparent;
}


/* KROPKA */

.order-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}


/* OCZEKUJE */

.order-status.status-pending {
    background: #fff3cd !important;
    color: #856404 !important;
    border-color: #ffe69c !important;
}

.order-status.status-pending::before {
    background: #f0ad00;
}


/* OPŁACONE */

.order-status.status-paid {
    background: #dbeafe !important;
    color: #1e40af !important;
    border-color: #93c5fd !important;
}

.order-status.status-paid::before {
    background: #2563eb;
}


/* W PRZYGOTOWANIU */

.order-status.status-preparing {
    background: #fef3c7 !important;
    color: #92400e !important;
    border-color: #fcd34d !important;
}

.order-status.status-preparing::before {
    background: #f59e0b;
}


/* WYSŁANE */

.order-status.status-shipped {
    background: #dcfce7 !important;
    color: #166534 !important;
    border-color: #86efac !important;
}

.order-status.status-shipped::before {
    background: #22c55e;
}


/* ZAKOŃCZONE */

.order-status.status-completed {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border-color: #6ee7b7 !important;
}

.order-status.status-completed::before {
    background: #10b981;
}


/* ANULOWANE */

.order-status.status-cancelled {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border-color: #fca5a5 !important;
}

.order-status.status-cancelled::before {
    background: #ef4444;
}



/* =========================================================
   GALERIA PRODUKTU - POWIĘKSZENIE
   ========================================================= */

.product-gallery {
    width: 100%;
    height: 100%;
}

.product-main-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    overflow: hidden;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gallery-zoom {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    pointer-events: none;
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.product-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    align-items: center;
    justify-content: center;
}

.product-lightbox.active {
    display: flex;
}

.lightbox-content {
    width: calc(100% - 160px);
    height: calc(100% - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}


/* PRZYCISKI */

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    z-index: 2;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    top: 20px;
    right: 25px;
    width: 50px;
    height: 50px;
    font-size: 36px;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 80px;
    font-size: 55px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* TELEFON */

@media (max-width: 900px) {

    .product-main-image {
        min-height: 310px;
    }

    .lightbox-content {
        width: calc(100% - 100px);
        height: calc(100% - 80px);
    }

    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 65px;
        font-size: 42px;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }

}

/* =========================================================
   KOLORY I ROZMIARY W KARCIE PRODUKTU — KOMPUTER
   Kolory układają się w dwa rzędy (6 + 5), a rozmiary
   mogą zawijać się do następnego wiersza.
   ========================================================= */
@media (min-width: 901px) {
    .products-grid .product-card {
        min-width: 0;
        overflow: hidden;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    }

    .products-grid .product-details {
        min-width: 0;
        padding: 35px 28px;
        overflow: hidden;
    }

    .products-grid .product-details form {
        min-width: 0;
        width: 100%;
    }

    .products-grid .product-colors {
        display: grid !important;
        grid-template-columns: repeat(6, 34px);
        gap: 7px !important;
        width: 100%;
        max-width: 100%;
        margin-bottom: 12px;
        align-items: center;
    }

    .products-grid .product-colors .color-button {
        min-width: 34px !important;
        width: 34px !important;
        max-width: 34px;
        height: 34px !important;
        padding: 0 !important;
        flex: none;
    }

    .products-grid .sizes:not(.product-colors) {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
        max-width: 100%;
    }

    .products-grid .sizes:not(.product-colors) button {
        min-width: 40px;
        height: 38px;
        padding: 0 7px;
        flex: 0 0 auto;
    }

    .products-grid .purchase {
        min-width: 0;
        flex-wrap: wrap;
        gap: 14px;
    }

    .products-grid .purchase > div {
        min-width: 0;
    }

    .products-grid .price {
        font-size: clamp(22px, 1.8vw, 32px);
        overflow-wrap: anywhere;
    }

    .products-grid .add-button {
        max-width: 100%;
        padding: 14px 16px;
        white-space: normal;
    }
}



/* =========================================================
   POPRAWKA KOLORÓW I ROZMIARÓW — DESKTOP
   Dopasowana do klas z aktualnego index.php:
   .product-card, .product-details, .product-colors, .product-size
   ========================================================= */
@media (min-width: 901px) {
    .products-grid .product-card {
        display: grid !important;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) !important;
        min-width: 0 !important;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .products-grid .product-photo,
    .products-grid .product-details {
        min-width: 0 !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    .products-grid .product-details {
        overflow: hidden;
    }

    .products-grid .product-details form {
        display: block;
        width: 100%;
        min-width: 0 !important;
        max-width: 100%;
    }

    .products-grid .product-colors {
        display: grid !important;
        grid-template-columns: repeat(6, 34px) !important;
        grid-auto-flow: row;
        gap: 7px !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-bottom: 12px;
    }

    .products-grid .product-colors .color-button {
        display: block;
        flex: none !important;
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        height: 34px !important;
        min-height: 34px;
        padding: 0 !important;
        box-sizing: border-box;
    }

    .products-grid .product-details .sizes:not(.product-colors) {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start;
        gap: 7px !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .products-grid .product-details .sizes:not(.product-colors) .product-size {
        flex: 0 0 auto !important;
        min-width: 40px;
        max-width: 100%;
        height: 38px;
        padding: 0 7px;
        box-sizing: border-box;
    }

    .products-grid .purchase {
        min-width: 0;
        max-width: 100%;
        flex-wrap: wrap;
        gap: 14px;
    }

    .products-grid .purchase > div {
        min-width: 0;
        max-width: 100%;
    }

    .products-grid .price {
        font-size: clamp(22px, 1.8vw, 32px);
        overflow-wrap: anywhere;
    }

    .products-grid .add-button {
        max-width: 100%;
        white-space: normal;
        box-sizing: border-box;
    }
}
