/* ─────────────────────────────────────────────
   ESHOP – Piráti 44
───────────────────────────────────────────── */

.eshop-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}

.eshop-title {
    font-family: 'LumiosTypewriterNew', 'Courier New', monospace;
    font-size: 2rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 48px;
    color: #fff;
}

.eshop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

@media (max-width: 900px) {
    .eshop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .eshop-grid {
        grid-template-columns: 1fr;
    }
}

.eshop-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

.eshop-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eshop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eshop-card-name {
    font-family: 'LumiosTypewriterNew', 'Courier New', monospace;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}

.eshop-card-price {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.eshop-card-price .woocommerce-Price-amount { color: #fff; }

.eshop-card-btn {
    margin-top: auto;
    width: 100%;
    background: #54310c;
    border: 1px solid #6b3f10;
    color: #fff;
}

.eshop-card-btn:hover {
    background: #6b3f10;
}

/* ── Modal detailu produktu (vychází ze stylu .p44-modal-box) ── */
.eshop-product-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.eshop-product-modal.is-open {
    display: flex;
}

.eshop-modal-box {
    max-width: 760px;
}

.eshop-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.eshop-modal-close:hover { color: #fff; }

.eshop-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 24px 28px 28px;
}

@media (max-width: 640px) {
    .eshop-modal-body {
        grid-template-columns: 1fr;
    }
}

.eshop-modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eshop-modal-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.eshop-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eshop-modal-thumbs {
    display: flex;
    gap: 10px;
}

.eshop-modal-thumb {
    flex: 1;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

.eshop-modal-thumb:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.eshop-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Lightbox ── */
.eshop-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9700;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.eshop-lightbox.is-open {
    display: flex;
}

.eshop-lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.eshop-lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
}

.eshop-lightbox-close:hover {
    color: #fff;
}

.eshop-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    padding: 10px 16px;
}

.eshop-lightbox-nav:hover {
    color: #fff;
}

.eshop-lightbox-prev {
    left: 8px;
}

.eshop-lightbox-next {
    right: 8px;
}

.eshop-lightbox-nav[hidden] {
    display: none;
}

.eshop-modal-price {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 12px;
}

.eshop-modal-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
}

.eshop-size-select {
    margin-bottom: 18px;
}

.eshop-size-label,
.eshop-qty-label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.eshop-size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.eshop-size-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.eshop-size-option span {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.eshop-size-option input:checked + span {
    border-color: #fff;
    color: #000;
    background: #fff;
}

.eshop-qty-row {
    margin-bottom: 20px;
}

.eshop-qty-input {
    width: 80px;
    padding: 8px 10px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-family: 'LumiosTypewriterNew', 'Courier New', monospace;
}

.eshop-add-to-cart-btn {
    width: 100%;
    background: #54310c;
    border: 1px solid #6b3f10;
    color: #fff;
}

.eshop-add-to-cart-btn:hover {
    background: #6b3f10;
}

.eshop-add-to-cart-message {
    margin-top: 10px;
    font-size: 0.85rem;
    min-height: 1.2em;
}

.eshop-add-to-cart-message.is-success { color: #9be39b; }
.eshop-add-to-cart-message.is-error { color: #e38f8f; }

body.eshop-modal-open { overflow: hidden; }

/* ── Polish pro Košík / Pokladnu (výchozí WooCommerce markup) ── */
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-account .site-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}

.woocommerce-cart .home-hero-title,
.woocommerce-checkout .home-hero-title,
.woocommerce-account .home-hero-title {
    margin-bottom: 32px;
}

.woocommerce table.shop_table,
.woocommerce-checkout table.shop_table {
    border-collapse: collapse;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.woocommerce-cart .cart_totals h2 {
    text-align: right;
    padding-right: 12px;
}

.woocommerce-cart .cart_totals table.shop_table td {
    text-align: right;
}

.woocommerce-cart .cart_totals table.shop_table td .shipping-calculator-form {
    text-align: left;
}

.woocommerce-shipping-methods,
ul#shipping_method {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-cart table.shop_table td.product-thumbnail img {
    width: 240px;
    height: 240px;
    object-fit: cover;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    color: #fff;
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    font-family: 'LumiosTypewriterNew', 'Courier New', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #fff;
    border: 1px solid #fff;
    color: #000;
    padding: 12px 24px;
    border-radius: 0;
    cursor: pointer;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: rgba(255, 255, 255, 0.85);
}

.woocommerce #place_order {
    font-family: 'LumiosTypewriterNew', 'Courier New', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #54310c;
    border: 1px solid #6b3f10;
    color: #fff;
    padding: 14px 28px;
    border-radius: 0;
    cursor: pointer;
}

.woocommerce #place_order:hover {
    background: #6b3f10;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    padding: 10px 12px;
    width: 100%;
    box-sizing: border-box;
}

.woocommerce form .form-row label {
    display: block;
    text-align: left;
    margin-bottom: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

/* ── Moderní mřížkový formulář pokladny ── */
.home-hero-title {
    text-align: center;
}

.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields,
.woocommerce-checkout-review-order-table,
.woocommerce-checkout-payment,
#order_review_heading {
    text-align: left;
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 24px;
    align-items: start;
}

.woocommerce-billing-fields__field-wrapper .form-row,
.woocommerce-shipping-fields__field-wrapper .form-row {
    margin: 0;
}

#billing_state_field,
#shipping_state_field {
    grid-column: 1 / -1;
}

.woocommerce-billing-fields__field-wrapper input.input-text,
.woocommerce-billing-fields__field-wrapper select,
.woocommerce-shipping-fields__field-wrapper input.input-text,
.woocommerce-shipping-fields__field-wrapper select {
    height: 44px;
    line-height: 22px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#billing_address_2_field,
#shipping_address_2_field {
    padding-top: 21px;
}

.woocommerce-billing-fields__field-wrapper .select2-container,
.woocommerce-shipping-fields__field-wrapper .select2-container {
    width: 100% !important;
}

.woocommerce-billing-fields__field-wrapper .select2-selection--single,
.woocommerce-shipping-fields__field-wrapper .select2-selection--single {
    height: 44px !important;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0;
}

.woocommerce-billing-fields__field-wrapper .select2-selection__rendered,
.woocommerce-shipping-fields__field-wrapper .select2-selection__rendered {
    line-height: 44px !important;
    color: #fff !important;
    padding-left: 12px;
}

.woocommerce-billing-fields__field-wrapper .select2-selection__arrow,
.woocommerce-shipping-fields__field-wrapper .select2-selection__arrow {
    height: 42px !important;
}

#ship-to-different-address {
    margin-top: 24px;
    margin-bottom: 8px;
}

.woocommerce-checkout #payment .form-row.place-order {
    text-align: right;
}

@media (max-width: 900px) {
    .woocommerce-billing-fields__field-wrapper,
    .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .woocommerce-billing-fields__field-wrapper,
    .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: 1fr;
    }
}

#order_review_heading {
    margin-top: 32px;
    margin-bottom: 16px;
}

.woocommerce-checkout-review-order-table th.product-name,
.woocommerce-checkout-review-order-table td.product-name,
.woocommerce-checkout-review-order-table tr.cart-subtotal th,
.woocommerce-checkout-review-order-table tr.shipping th,
.woocommerce-checkout-review-order-table tr.order-total th {
    text-align: left;
}

.woocommerce-checkout-review-order-table th.product-total,
.woocommerce-checkout-review-order-table td.product-total,
.woocommerce-checkout-review-order-table tr.cart-subtotal td,
.woocommerce-checkout-review-order-table tr.shipping td,
.woocommerce-checkout-review-order-table tr.order-total td {
    text-align: right;
}

.woocommerce-checkout-payment .payment_box p {
    text-align: left;
}

.woocommerce-checkout-payment ul.payment_methods,
.woocommerce-checkout-payment ul.wc_payment_methods {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-privacy-policy-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

/* ── Zarovnání akčních tlačítek v košíku ── */
.woocommerce-cart table.shop_table td.actions {
    text-align: right;
}

.woocommerce-cart table.shop_table td.actions button[name="update_cart"] {
    margin: 0;
}

.woocommerce-cart .wc-proceed-to-checkout,
.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
    text-align: right;
    display: block;
    margin-top: 20px;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background: #54310c;
    border: 1px solid #6b3f10;
    color: #fff;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: #6b3f10;
}

.woocommerce-checkout #payment ul.payment_methods,
.woocommerce-checkout #payment div.payment_box {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 14px 18px;
    list-style: none;
}

/* ── Mobilní responzivní tabulka košíku (karty místo sloupců) ── */
@media (max-width: 700px) {
    .woocommerce-cart-form__contents thead {
        display: none !important;
    }

    .woocommerce-cart-form__contents tr {
        display: block !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
        padding: 18px 0 !important;
    }

    .woocommerce-cart-form__contents td {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        border: none !important;
        padding: 6px 0 !important;
        text-align: right;
    }

    .woocommerce-cart-form__contents td.product-thumbnail {
        justify-content: center;
        padding: 0 0 14px !important;
    }

    .woocommerce-cart-form__contents td.product-thumbnail img {
        width: 160px !important;
        height: 160px !important;
    }

    .woocommerce-cart-form__contents td.product-remove {
        justify-content: flex-end;
    }

    .woocommerce-cart-form__contents td[data-title]::before {
        content: attr(data-title);
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.7rem;
        letter-spacing: 0.05em;
        color: rgba(255, 255, 255, 0.55);
        margin-right: 12px;
        text-align: left;
    }

    .woocommerce-cart-form__contents .quantity {
        justify-content: flex-end;
    }

    .woocommerce-cart-form__contents input.qty {
        width: 70px !important;
        text-align: center;
    }

    .woocommerce-cart table.shop_table td.actions {
        display: block !important;
        text-align: right;
    }

    /* Souhrnné tabulky (Celkem k platbě / přehled objednávky) → stohované řádky */
    .cart_totals table.shop_table tr,
    .woocommerce-checkout-review-order-table tr {
        display: block !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
        padding: 10px 0 !important;
    }

    .cart_totals table.shop_table th,
    .cart_totals table.shop_table td,
    .woocommerce-checkout-review-order-table th,
    .woocommerce-checkout-review-order-table td {
        display: block !important;
        border: none !important;
        padding: 2px 0 !important;
        text-align: left !important;
    }

    .cart_totals table.shop_table td,
    .woocommerce-checkout-review-order-table td {
        text-align: right !important;
        margin-top: 4px;
    }

    .woocommerce-checkout-review-order-table td.product-name {
        text-align: left !important;
    }
}
