/* Delikatny styl dla napisu Created by MK w stopce */
.footer-credit {
    display: block;
    font-size: 0.85em;
    color: #888;
    margin-top: 2px;
    font-weight: 400;
}
.footer-credit-link {
    color: #aaa;
    text-decoration: underline dotted;
    transition: color 0.2s;
}
.footer-credit-link:hover {
    color: #555;
}

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap');
body { background: #fff; color: #111; font-family: 'Space Grotesk', sans-serif; }
.border-strong { border-top: 2px solid #111; border-bottom: 2px solid #111; }
.menu-link { text-decoration: none; color: #111; font-weight: 600; letter-spacing: .08em; font-size: .9rem; }
.menu-link:hover { text-decoration: underline; }
.terms-inline-link { color: inherit; text-decoration: underline; }
.terms-inline-link:hover,
.terms-inline-link:focus { color: inherit; text-decoration: underline; }
.hero {
    min-height: 650px;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    width: 100%;
    transition: min-height 0.3s;
}
.card, .form-control, .form-select, .btn { border-radius: 0 !important; }
.input-group .form-select { max-width: 140px; }
#phone-country {
    max-width: 120px;
    flex: 0 0 120px;
}
.tab-content-box { border: 1px solid #111; padding: 1rem; margin-top: -1px; }
#variant-description { white-space: pre-line; }
.tracklist-block {
    border: 1px solid #dddddd;
    background: #fafafa;
    padding: .9rem 1rem;
}
.tracklist-text {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.7;
    color: #1f1f1f;
    font-size: .97rem;
    letter-spacing: 0;
}
@media (max-width: 575.98px) {
    .tracklist-block {
        padding: .8rem .85rem;
    }
    .tracklist-text {
        font-size: .95rem;
        line-height: 1.65;
    }
}
.product-tabs { gap: 0; border-bottom: 0; }
.product-tabs .nav-item { margin-right: .35rem; }
.product-tabs .nav-link {
    border: 0;
    border-radius: 0 !important;
    color: #111;
    background: #f3f3f3;
    padding: .45rem .75rem;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0;
}
.product-tabs .nav-link:hover { background: #e9e9e9; }
.product-tabs .nav-link.active {
    background: #111;
    color: #fff;
    border: 1px solid #111;
    border-bottom-color: #fff;
    position: relative;
    z-index: 2;
}
.product-meta-grid {
    display: grid;
    gap: .5rem;
}
.product-meta-row {
    display: grid;
    grid-template-columns: minmax(130px, 170px) 1fr;
    align-items: start;
    column-gap: 1rem;
    row-gap: .2rem;
    padding-bottom: .2rem;
}
.product-meta-row-title {
    margin-bottom: .25rem;
}
.product-meta-label {
    color: #555;
    font-weight: 600;
    letter-spacing: .01em;
}
.product-meta-label::after {
    content: ':';
    margin-left: .25rem;
}
.product-meta-value {
    color: #111;
    min-width: 0;
    word-break: break-word;
}
@media (max-width: 575.98px) {
    .product-meta-row {
        grid-template-columns: 1fr;
        row-gap: .1rem;
    }
    .product-meta-row-title {
        margin-bottom: .4rem;
    }
}
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.product-thumb { aspect-ratio: 1 / 1; background: #f5f5f5; overflow: hidden; }
.navbar-toggler { border: 2px solid #111; }
.navbar-toggler:focus { outline: none; box-shadow: none; }
.mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .5rem .65rem;
    height: 40px;
}
.mobile-menu-label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.2;
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.mobile-menu-icon {
    font-size: 1.35rem;
    line-height: 1;
    display: flex;
    align-items: center;
}
.offcanvas { background: #fff; }
.offcanvas-header { border-bottom: 2px solid #111; }
.offcanvas-body .menu-link { display: block; margin-bottom: 1rem; }
.breadcrumb-chevron { --bs-breadcrumb-divider: '/'; }
.stock-status-available { color: #198754; }
.stock-status-low { color: #fd7e14; }
.stock-status-soldout { color: #dc3545; }
.cart-qty-control {
    display: inline-grid;
    grid-template-columns: 32px 56px 32px;
    align-items: stretch;
    border: 1px solid #111;
}
.cart-table .cart-qty-input {
    max-width: none;
    width: 56px;
    height: 34px;
    text-align: center;
    padding-left: .35rem;
    padding-right: .35rem;
    border: 0 !important;
}
.cart-qty-btn {
    width: 32px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-weight: 700;
    line-height: 1;
    border: 0 !important;
}
.cart-qty-control .cart-qty-btn:first-child {
    border-right: 1px solid #111 !important;
}
.cart-qty-control .cart-qty-btn:last-child {
    border-left: 1px solid #111 !important;
}
.cart-qty-input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}
.cart-qty-input[type="number"]::-webkit-outer-spin-button,
.cart-qty-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.cart-product-cell {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}
.cart-item-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border: 1px solid #111;
    background: #f5f5f5;
    flex-shrink: 0;
}
.cart-product-title {
    display: block;
    min-width: 0;
    line-height: 1.25;
    word-break: break-word;
}
.cart-product-link {
    color: inherit;
    text-decoration: none;
}
.cart-product-link:hover,
.cart-product-link:focus-visible {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: #111;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.cart-total-from {
    font-size: 1.12rem;
}
.cart-shipping-progress {
    display: inline-block;
    width: min(320px, 100%);
    text-align: left;
}
.cart-shipping-progress-track {
    width: 100%;
    height: 4px;
    background: #e7e7e7;
    border-radius: 999px;
    overflow: hidden;
}
.cart-shipping-progress-bar {
    display: block;
    height: 100%;
    background: #198754;
    transition: width .6s ease;
}
.cart-shipping-progress-success {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .4rem;
    color: #198754;
    text-align: right;
}
.product-purchase-card {
    background: #fff;
}
.product-purchase-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 230px);
    gap: 1.5rem;
    align-items: flex-end;
}
.product-purchase-summary {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}
.product-purchase-row {
    line-height: 1.45;
}
.product-purchase-price {
    margin-top: .45rem;
    font-size: 1.2rem;
    line-height: 1.2;
}
.product-purchase-badges {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.badge-item {
    font-size: .75rem;
    color: #a0a0a0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.badge-item i {
    font-size: .85rem;
    opacity: 0.7;
}
.product-purchase-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 240px;
}
.product-qty-group {
    max-width: 140px;
    margin-left: auto;
}
.product-purchase-actions .form-label,
.product-purchase-actions .btn {
    align-self: flex-end;
}
.product-purchase-actions .btn.w-100 {
    max-width: 240px;
}
.product-card-footer {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: 1rem;
}
.product-card-footer .fw-semibold {
    font-size: 1.05rem;
    line-height: 1.3;
    margin: .2rem 0;
}
.opis-video-frame {
    max-width: 600px;
    margin: 1.5rem auto;
}
.product-image-stage { overflow: hidden; }
.product-image-nav {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 0;
    background: rgba(20, 20, 20, .45);
    backdrop-filter: blur(8px);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(.92);
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}
.product-image-nav:hover { background: rgba(20, 20, 20, .75); }
.product-image-nav:focus-visible {
    opacity: 1;
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.product-image-stage:hover .product-image-nav,
.product-image-stage:focus-within .product-image-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
}
.product-image-stage.nav-clicked .product-image-nav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(.92);
}
@media (hover: none) {
    .product-image-nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(-50%) scale(1);
    }
}
@media (max-width: 767.98px) {
    .hero {
        min-height: 650px;
        height: auto;
        width: 100%;
        background-size: cover;
        background-position: center;
        color: #fff;
        display: flex;
        align-items: flex-end;
        box-sizing: border-box;
        font-size: .72rem;
        letter-spacing: .06em;
    }
    .mobile-menu-icon {
        font-size: 1.2rem;
    }
    .product-purchase-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .product-purchase-actions {
        display: flex;
        flex-direction: column;
        gap: .55rem;
        align-items: flex-end;
        margin-left: auto;
        margin-top: 0;
        max-width: 100%;
        width: fit-content;
    }
    .product-purchase-actions .form-label,
    .product-purchase-actions .btn {
        align-self: flex-end;
        max-width: none;
        margin-left: 0;
    }
    .product-purchase-actions .form-label {
        margin-bottom: 0;
        align-self: flex-end;
        text-align: right;
    }
    .product-qty-group {
        width: 118px;
        max-width: 118px;
        align-self: flex-end;
        margin-left: auto;
        margin-bottom: 0 !important;
    }
    .product-purchase-actions .btn.w-100 {
        width: auto !important;
        min-width: 180px;
        max-width: 220px;
        margin-left: 0;
        margin-bottom: 0;
    }
    .opis-video-frame {
        width: 100%;
    }
    #opis #variant-description {
        padding: 0;
    }
    .product-tabs .nav-item { margin-right: .25rem; }
    .cart-table thead {
        display: none;
    }
    .cart-table tbody tr {
        display: block;
        border: 1px solid #111;
        margin-bottom: .75rem;
        padding: .7rem .75rem;
        background: #fff;
    }
    .cart-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: .75rem;
        border: 0;
        padding: .35rem 0;
        text-align: right;
    }
    .cart-table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .03em;
        font-size: .72rem;
        color: #555;
        text-align: left;
    }
    .cart-table tbody td[data-label="Produkt"] {
        display: block;
        text-align: left;
        padding-top: .2rem;
    }
    .cart-table tbody td[data-label="Produkt"]::before {
        display: block;
        margin-bottom: .1rem;
    }
    .cart-table .cart-cell-remove {
        justify-content: flex-end;
        padding-top: .2rem;
    }
    .cart-table .cart-cell-remove::before {
        display: none;
    }
    .cart-table .cart-qty-input {
        width: 56px;
        margin-left: 0;
    }
    .cart-table .cart-item-thumb {
        width: 48px;
        height: 48px;
    }
    .discount-row {
        flex-direction: row;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    .discount-row-active {
        flex-direction: row;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    .discount-row .form-control,
    .discount-row-active .form-control {
        width: 100%;
        max-width: 100%;
        flex: 1;
    }
    .discount-row .btn {
        width: auto;
        white-space: nowrap;
        flex: 0 0 auto;
    }
    .cart-discount-block {
        margin-bottom: 1.2rem !important;
    }
    .cart-summary-row {
        flex-direction: column;
        align-items: stretch !important;
        gap: .9rem;
    }
    .cart-summary-actions {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: .55rem;
        width: 100%;
    }
    .cart-summary-actions .btn {
        width: 100%;
    }
}

.inventory-products-table > :not(caption) > * > *,
.inventory-history-table > :not(caption) > * > * {
    padding: .65rem .8rem;
    line-height: 1.35;
    vertical-align: middle;
}

.inventory-products-table thead th,
.inventory-history-table thead th {
    white-space: nowrap;
}

.inventory-products-table td:nth-child(2) {
    min-width: 220px;
}

/* Cookie Modal (Blocking Overlay) */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.cookie-modal-box {
    width: min(960px, 100%);
    background: #fff;
    color: #111;
    border: 1px solid #111;
    padding: 1.5rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.cookie-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111;
}

.cookie-modal-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
}

.cookie-modal-links {
    margin-bottom: 1.5rem;
}

.cookie-modal-link {
    color: #111;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.cookie-modal-link:hover {
    opacity: 0.7;
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
}

.cookie-modal-btn {
    background: #111;
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 0;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.9rem;
    white-space: nowrap;
}

.cookie-modal-btn:hover {
    background: #333;
}

.cookie-modal-btn-reject {
    color: #111;
    text-decoration: none;
    border: 1px solid #111;
    padding: 0.6rem 1.5rem;
    border-radius: 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    display: inline-block;
    white-space: nowrap;
}

.cookie-modal-btn-reject:hover {
    background: #f5f5f5;
    color: #111;
    text-decoration: none;
}

.cookie-policy-content {
    display: none;
    background: #f8f8f8;
    border: 1px solid #ddd;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 2px;
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333;
}

.cookie-policy-content.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.cookie-policy-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111;
}

.cookie-policy-content p {
    margin-bottom: 0.75rem;
}

.cookie-policy-content strong {
    color: #111;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 300px;
    }
}

/* Modal Footer - Buttons always beside each other */
.modal-footer {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem;
}

.modal-footer .btn {
    white-space: nowrap;
}

@media (max-width: 576px) {
    .cookie-modal {
        padding: .75rem;
    }

    .cookie-modal-box {
        max-width: 100%;
        width: 100%;
        padding: 1rem;
    }

    .cookie-modal-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: .5rem;
    }

    .cookie-modal-btn,
    .cookie-modal-btn-reject {
        width: 100%;
        text-align: center;
        white-space: normal;
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: unset;
        height: auto;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 !important;
        aspect-ratio: 16 / 9;
        display: block;
        background-size: contain !important;
        background-repeat: no-repeat;
        background-position: center center;
        background-color: transparent;
    }
}

.inventory-products-table td:nth-child(7) {
    min-width: 120px;
}

.history-table-offset {
    margin: .35rem;
}

.order-success-check {
    margin: 0 auto .9rem;
    color: #119c57;
    font-size: 2rem;
    line-height: 1;
}

.add-to-cart-modal-content {
    overflow: hidden;
}

.add-to-cart-modal-body {
    padding: 2rem 1.5rem 1.35rem;
}

.add-to-cart-modal-icon {
    margin: 0 auto .7rem;
    color: #119c57;
    font-size: 3rem;
    line-height: 1;
    animation: addToCartPop .42s ease-out;
}

.add-to-cart-modal-text {
    font-size: 1.05rem;
    font-weight: 500;
}

@media (max-width: 576px) {
    .add-to-cart-modal-footer {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: .5rem;
    }

    .add-to-cart-modal-footer .btn {
        width: 100%;
        padding-left: .5rem;
        padding-right: .5rem;
        font-size: .92rem;
        white-space: normal;
    }
}

@keyframes addToCartPop {
    0% {
        opacity: 0;
        transform: scale(.7);
    }
    65% {
        opacity: 1;
        transform: scale(1.12);
    }
    100% {
        transform: scale(1);
    }
}

/* Checkout Timeline Styles */
.checkout-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    margin-bottom: 2rem;
    padding: 0;
    list-style: none;
}

.timeline-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
}

.timeline-step-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 3;
}

.timeline-step-link:hover .timeline-step-label,
.timeline-step-link:focus-visible .timeline-step-label {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #ddd;
    z-index: 0;
    pointer-events: none;
}

.timeline-step.active:not(:last-child)::after,
.timeline-step.completed:not(:last-child)::after {
    background: #111;
    z-index: 1;
}

.timeline-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    color: #999;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-step.active .timeline-step-circle,
.timeline-step.completed .timeline-step-circle {
    background: #111;
    color: #fff;
    border-color: #111;
}

.timeline-step-label {
    margin-top: 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #999;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.timeline-step.active .timeline-step-label,
.timeline-step.completed .timeline-step-label {
    color: #111;
    font-weight: 700;
}

.timeline-step.completed .timeline-step-label::after {
    content: ' ✓';
    font-weight: 700;
}

@media (max-width: 576px) {
    .checkout-timeline {
        margin-bottom: 1.5rem;
        gap: 0.5rem;
    }

    .timeline-step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }

    .timeline-step-label {
        font-size: 0.65rem;
        margin-top: 0.4rem;
        min-height: 2.1em;
    }

    .timeline-step-label::after {
        content: ' ✓';
        display: block;
        margin-top: 0.15rem;
        visibility: hidden;
    }

    .timeline-step.completed .timeline-step-label::after {
        visibility: visible;
    }

    .timeline-step:not(:last-child)::after {
        width: calc(100% - 8px);
        left: calc(50% + 4px);
    }
}
