/* ============================================
   SHOP — /trgovina/ in stran izdelka
   Vedno svetla ploskev: <main class="shop-main" data-theme="light">
   uporabi svetle žetone teme tudi, ko je obiskovalec v temni temi.
   Motion level 0: samo hover, focus, press.
   ============================================ */

.shop-main {
    --shop-input-line: #8a8a92;
    --shop-radius: 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    margin-top: var(--nav-height);
    padding: 40px 0 96px;
    font-variant-numeric: tabular-nums;
}

.shop-main a { color: inherit; }
.shop-main :focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* ---------- Drobtinice ---------- */
.shop-main .shop-crumbs {
    margin: 0 0 32px;
    font-size: 14px;
    color: var(--text-secondary);
}
.shop-main .shop-crumbs a { text-decoration: none; }
.shop-main .shop-crumbs a:hover { color: var(--text-primary); text-decoration: underline; }
.shop-main .shop-crumb-sep { margin: 0 8px; color: var(--text-tertiary); }

/* ---------- Glava arhiva ---------- */
.shop-main .shop-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}
.shop-main .term-description,
.shop-main .page-description {
    max-width: 640px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
}
.shop-main .shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 32px 0;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.shop-main .shop-toolbar .woocommerce-notices-wrapper { flex-basis: 100%; }
.shop-main .shop-toolbar .woocommerce-notices-wrapper:empty { display: none; }
.woocommerce .shop-main .woocommerce-result-count,
.woocommerce .shop-main .woocommerce-ordering {
    float: none;
    margin: 0;
    font-size: 15px;
    color: var(--text-secondary);
}

/* ---------- Polja ---------- */
.shop-main select,
.shop-main input[type="text"],
.shop-main input[type="number"],
.shop-main input[type="email"],
.shop-main textarea {
    font: inherit;
    font-size: 15px;
    color: var(--text-primary);
    background: #ffffff;
    border: 1px solid var(--shop-input-line);
    border-radius: 12px;
    min-height: 44px;
    padding: 8px 16px;
}
.shop-main select { cursor: pointer; padding-right: 40px; }

/* ---------- Gumbi ---------- */
.woocommerce .shop-main a.button,
.woocommerce .shop-main button.button,
.woocommerce .shop-main input.button,
.woocommerce .shop-main .button.alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 28px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    color: #ffffff;
    background: var(--text-primary);
    border: 1px solid var(--text-primary);
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 0.18s ease-out, color 0.18s ease-out, border-color 0.18s ease-out;
}
.woocommerce .shop-main a.button:hover,
.woocommerce .shop-main button.button:hover,
.woocommerce .shop-main .button.alt:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}
.woocommerce .shop-main .button:active { transform: translateY(1px); }
.woocommerce .shop-main .button.loading { opacity: 0.6; pointer-events: none; }
.woocommerce .shop-main .button.loading::after { display: none; }
.woocommerce .shop-main .button:disabled,
.woocommerce .shop-main .button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--text-primary);
    color: #ffffff;
}
.woocommerce .shop-main a.added_to_cart {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Mreža izdelkov ---------- */
.woocommerce .shop-main ul.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 32px;
    margin: 0;
    padding: 0;
}
.woocommerce .shop-main ul.products::before,
.woocommerce .shop-main ul.products::after { display: none; }
.woocommerce .shop-main ul.products li.product {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
}
.woocommerce .shop-main ul.products li.product a.woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
}
.woocommerce .shop-main ul.products li.product a img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0 0 20px;
    border-radius: var(--shop-radius);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: none;
}
.woocommerce .shop-main ul.products li.product a:hover img { border-color: var(--border-hover); }
.woocommerce .shop-main ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.015em;
    padding: 0;
    margin: 0 0 8px;
}
.woocommerce .shop-main ul.products li.product a:hover .woocommerce-loop-product__title {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
.woocommerce .shop-main ul.products li.product .price {
    display: block;
    margin: 0 0 20px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}
.woocommerce .shop-main ul.products li.product .button {
    align-self: flex-start;
    margin-top: auto;
}

/* Cene: stara cena + akcijska */
.woocommerce .shop-main .price del {
    opacity: 1;
    color: var(--text-tertiary);
    font-weight: 400;
    margin-right: 8px;
}
.woocommerce .shop-main .price ins { text-decoration: none; }

/* Akcija */
.woocommerce .shop-main span.onsale {
    min-width: 0;
    min-height: 0;
    line-height: 1;
    padding: 8px 12px;
    border-radius: 100px;
    background: var(--text-primary);
    color: #ffffff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    top: 12px;
    left: 12px;
    right: auto;
    margin: 0;
}

/* Paginacija */
.woocommerce .shop-main nav.woocommerce-pagination { margin-top: 64px; }
.woocommerce .shop-main nav.woocommerce-pagination ul { border: 0; display: flex; gap: 8px; justify-content: center; }
.woocommerce .shop-main nav.woocommerce-pagination ul li { border: 0; }
.woocommerce .shop-main nav.woocommerce-pagination ul li a,
.woocommerce .shop-main nav.woocommerce-pagination ul li span {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-weight: 600;
    color: var(--text-primary);
}
.woocommerce .shop-main nav.woocommerce-pagination ul li span.current,
.woocommerce .shop-main nav.woocommerce-pagination ul li a:hover {
    background: var(--text-primary);
    color: #ffffff;
    border-color: var(--text-primary);
}

/* ---------- Obvestila ---------- */
.woocommerce .shop-main .woocommerce-message,
.woocommerce .shop-main .woocommerce-info,
.woocommerce .shop-main .woocommerce-error {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 32px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--text-primary);
    border-radius: 12px;
    list-style: none;
}
.woocommerce .shop-main .woocommerce-error { border-left-color: #b42318; }
.woocommerce .shop-main .woocommerce-message::before,
.woocommerce .shop-main .woocommerce-info::before,
.woocommerce .shop-main .woocommerce-error::before,
.woocommerce .shop-main .woocommerce-message::after,
.woocommerce .shop-main .woocommerce-info::after { display: none; }
.woocommerce .shop-main .woocommerce-message .button,
.woocommerce .shop-main .woocommerce-info .button {
    order: 2;
    float: none;
    min-height: 40px;
    padding: 8px 20px;
}
.woocommerce .shop-main .woocommerce-info.woocommerce-no-products-found { border-left-color: var(--border-hover); }

/* ============================================
   STRAN IZDELKA
   ============================================ */
.woocommerce .shop-main div.product {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: clamp(32px, 5vw, 80px);
    align-items: start;
    position: relative;
}
.woocommerce .shop-main div.product > * { grid-column: 1 / -1; }
.woocommerce .shop-main div.product > span.onsale { grid-column: 1; grid-row: 1; z-index: 2; position: absolute; }

/* Galerija */
.woocommerce .shop-main div.product div.images {
    grid-column: 1;
    grid-row: 1;
    float: none;
    width: auto;
    margin: 0;
}
.woocommerce .shop-main div.product div.images .woocommerce-product-gallery__wrapper {
    margin: 0;
}
.woocommerce .shop-main div.product div.images .woocommerce-product-gallery__image,
.woocommerce .shop-main div.product div.images .woocommerce-product-gallery__image--placeholder {
    border-radius: var(--shop-radius);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}
.woocommerce .shop-main div.product div.images img {
    width: 100%;
    height: auto;
    display: block;
}
.woocommerce .shop-main div.product div.images .flex-control-thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0 0;
}
.woocommerce .shop-main div.product div.images .flex-control-thumbs li {
    width: auto;
    float: none;
    margin: 0;
}
.woocommerce .shop-main div.product div.images .flex-control-thumbs li img {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.18s ease-out;
}
.woocommerce .shop-main div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce .shop-main div.product div.images .flex-control-thumbs li img:hover {
    opacity: 1;
    border-color: var(--text-primary);
}
.woocommerce .shop-main div.product div.images .woocommerce-product-gallery__trigger {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1px solid var(--border-color);
}

/* Povzetek / nakupni blok */
.woocommerce .shop-main div.product div.summary {
    grid-column: 2;
    grid-row: 1;
    float: none;
    width: auto;
    margin: 0;
    padding-top: 8px;
}
.woocommerce .shop-main div.product .product_title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(34px, 4.2vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin: 0 0 24px;
}
/* Podpis: cena v display velikosti nad gumbom */
.woocommerce .shop-main div.product p.price,
.woocommerce .shop-main div.product span.price {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(32px, 3.4vw, 44px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 24px;
}
.woocommerce .shop-main div.product p.price del { font-size: 0.55em; vertical-align: middle; }
.woocommerce .shop-main div.product .woocommerce-product-details__short-description {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0 0 32px;
}
.woocommerce .shop-main div.product .woocommerce-product-details__short-description p { margin: 0 0 1em; }
.woocommerce .shop-main div.product .woocommerce-product-details__short-description ul {
    margin: 0 0 1em;
    padding-left: 1.2em;
}

.woocommerce .shop-main div.product form.cart {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin: 0 0 32px;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.woocommerce .shop-main div.product form.cart::before,
.woocommerce .shop-main div.product form.cart::after { display: none; }
.woocommerce .shop-main div.product form.cart div.quantity {
    float: none;
    margin: 0;
}
.woocommerce .shop-main .quantity .qty {
    width: 88px;
    height: 100%;
    min-height: 52px;
    text-align: center;
    border-radius: 100px;
    font-size: 17px;
    font-weight: 600;
}
.woocommerce .shop-main div.product form.cart .single_add_to_cart_button {
    float: none;
    flex: 1;
    min-height: 52px;
    font-size: 16px;
}
.woocommerce .shop-main div.product form.variations_form { display: block; }
.woocommerce .shop-main div.product form.cart table.variations { margin: 0 0 16px; }
.woocommerce .shop-main div.product form.cart table.variations th,
.woocommerce .shop-main div.product form.cart table.variations td { padding: 0 0 12px; vertical-align: middle; }
.woocommerce .shop-main div.product form.cart .woocommerce-variation-add-to-cart { display: flex; gap: 12px; }
.woocommerce .shop-main div.product .stock {
    font-weight: 600;
    color: var(--text-primary);
}
.woocommerce .shop-main div.product .stock.out-of-stock { color: #b42318; }

.woocommerce .shop-main div.product .product_meta {
    display: grid;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}
.woocommerce .shop-main div.product .product_meta a { text-decoration: underline; text-underline-offset: 3px; }

/* Zavihki → mirni razdelki pod izdelkom */
.woocommerce .shop-main div.product .woocommerce-tabs {
    margin-top: 96px;
    max-width: 860px;
}
.woocommerce .shop-main div.product .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 32px;
    margin: 0 0 32px;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}
.woocommerce .shop-main div.product .woocommerce-tabs ul.tabs::before,
.woocommerce .shop-main div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce .shop-main div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce .shop-main div.product .woocommerce-tabs ul.tabs li {
    background: none;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 0;
}
.woocommerce .shop-main div.product .woocommerce-tabs ul.tabs li a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.woocommerce .shop-main div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce .shop-main div.product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}
.woocommerce .shop-main div.product .woocommerce-tabs .panel {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
}
.woocommerce .shop-main div.product .woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce .shop-main div.product .woocommerce-tabs .panel h2,
.woocommerce .shop-main div.product .woocommerce-tabs .panel h3 {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    margin: 1.6em 0 0.6em;
}
.woocommerce .shop-main table.shop_attributes { border-top: 1px solid var(--border-color); }
.woocommerce .shop-main table.shop_attributes th,
.woocommerce .shop-main table.shop_attributes td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    background: none;
    font-style: normal;
    text-align: left;
}
.woocommerce .shop-main table.shop_attributes th { width: 220px; color: var(--text-primary); font-weight: 600; }
.woocommerce .shop-main table.shop_attributes td p { padding: 0; }

/* Sorodni izdelki */
.woocommerce .shop-main div.product .related,
.woocommerce .shop-main div.product .upsells {
    margin-top: 96px;
    padding-top: 48px;
    border-top: 1px solid var(--border-color);
}
.woocommerce .shop-main div.product .related > h2,
.woocommerce .shop-main div.product .upsells > h2 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -0.025em;
    margin: 0 0 32px;
}

/* ---------- Odzivnost ---------- */
@media (max-width: 1024px) {
    .woocommerce .shop-main ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
}
@media (max-width: 860px) {
    .woocommerce .shop-main div.product { grid-template-columns: minmax(0, 1fr); }
    .woocommerce .shop-main div.product div.images { grid-row: 1; margin-bottom: 32px; }
    .woocommerce .shop-main div.product div.summary { grid-column: 1; grid-row: 2; padding-top: 0; }
    .woocommerce .shop-main div.product .woocommerce-tabs { margin-top: 64px; }
}
@media (max-width: 560px) {
    .shop-main { padding-top: 24px; padding-bottom: 64px; }
    .woocommerce .shop-main ul.products { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .woocommerce .shop-main ul.products li.product .button { align-self: stretch; }
    .shop-main .shop-toolbar { flex-direction: column; align-items: stretch; }
    .woocommerce .shop-main .woocommerce-ordering select { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .shop-main * { transition: none !important; }
    .woocommerce .shop-main .button:active { transform: none; }
}

/* ============================================
   KOŠARICA IN ZAKLJUČEK NAKUPA (klasična kratka koda)
   ============================================ */
.shop-main--page .shop-title { margin-bottom: 40px; }
.shop-main--page .woocommerce { font-size: 16px; }
.shop-main--page .woocommerce-notices-wrapper:empty { display: none; }

/* Polja v obrazcih */
.shop-main .input-text,
.shop-main .select2-container .select2-selection--single {
    font: inherit;
    font-size: 16px;
    color: var(--text-primary);
    background: #ffffff;
    border: 1px solid var(--shop-input-line);
    border-radius: 12px;
    min-height: 48px;
    padding: 10px 16px;
    box-shadow: none;
}
.shop-main textarea.input-text { min-height: 120px; line-height: 1.5; }
.shop-main .input-text:focus,
.shop-main .select2-container--focus .select2-selection--single,
.shop-main select:focus {
    outline: 2px solid var(--text-primary);
    outline-offset: 1px;
    border-color: var(--text-primary);
}
.shop-main .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0;
    line-height: 26px;
    color: var(--text-primary);
}
.shop-main .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; right: 10px; }
.select2-dropdown { border-color: #8a8a92; border-radius: 12px; overflow: hidden; }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
    background: #0a0a0c;
    color: #ffffff;
}
.woocommerce .shop-main form .form-row {
    padding: 0;
    margin: 0 0 20px;
}
.woocommerce .shop-main form .form-row label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}
.woocommerce .shop-main form .form-row .required { color: #b42318; text-decoration: none; }
.woocommerce .shop-main form .form-row .optional { color: var(--text-secondary); font-weight: 400; }
.woocommerce .shop-main form .form-row.woocommerce-invalid .input-text,
.woocommerce .shop-main form .form-row.woocommerce-invalid .select2-selection { border-color: #b42318; }
.woocommerce .shop-main form .form-row.woocommerce-validated .input-text { border-color: var(--shop-input-line); }
.woocommerce .shop-main form .form-row label.checkbox,
.woocommerce .shop-main form .form-row label.woocommerce-form__label-for-checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
}
.shop-main input[type="checkbox"],
.shop-main input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    flex: none;
    accent-color: #0a0a0c;
    cursor: pointer;
}

/* Tabele (košarica, povzetek naročila, seštevki) */
.woocommerce .shop-main table.shop_table {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}
.woocommerce .shop-main table.shop_table th,
.woocommerce .shop-main table.shop_table td {
    padding: 16px 12px;
    border: 0;
    border-bottom: 1px solid var(--border-color);
    background: none;
    text-align: left;
    vertical-align: middle;
    line-height: 1.4;
}
.woocommerce .shop-main table.shop_table thead th {
    padding-top: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}
.woocommerce .shop-main table.shop_table th:first-child,
.woocommerce .shop-main table.shop_table td:first-child { padding-left: 0; }
.woocommerce .shop-main table.shop_table th:last-child,
.woocommerce .shop-main table.shop_table td:last-child { padding-right: 0; text-align: right; }
.woocommerce .shop-main table.shop_table tfoot th,
.woocommerce .shop-main table.shop_table tfoot td { font-weight: 600; }
.woocommerce .shop-main table.shop_table .order-total th,
.woocommerce .shop-main table.shop_table .order-total td {
    border-bottom: 0;
    padding-top: 20px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.01em;
}
.woocommerce .shop-main table.shop_table .order-total .includes_tax,
.woocommerce .shop-main table.shop_table small {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Košarica: tabela levo, seštevek desno */
.shop-main--page .woocommerce:has(> .woocommerce-cart-form) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
    gap: 32px clamp(32px, 5vw, 72px);
    align-items: start;
}
.shop-main--page .woocommerce:has(> .woocommerce-cart-form) > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce .shop-main .woocommerce-cart-form { margin: 0; }
.woocommerce .shop-main table.cart td.product-thumbnail { width: 96px; }
.woocommerce .shop-main table.cart img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}
.woocommerce .shop-main table.cart td.product-name a {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    text-decoration: none;
}
.woocommerce .shop-main table.cart td.product-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.woocommerce .shop-main table.cart td.product-remove { width: 52px; }
.woocommerce .shop-main a.remove {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    font-size: 24px;
    font-weight: 400;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color);
}
.woocommerce .shop-main a.remove:hover {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: #ffffff !important;
}
.woocommerce .shop-main table.cart .quantity .qty { min-height: 44px; width: 80px; }
.woocommerce .shop-main table.cart td.actions {
    padding: 24px 0 0;
    border-bottom: 0;
    text-align: right;
}
.woocommerce .shop-main table.cart td.actions .coupon {
    float: left;
    display: flex;
    gap: 8px;
    align-items: center;
}
.woocommerce .shop-main table.cart td.actions .coupon .input-text {
    width: 200px;
    min-height: 48px;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid var(--shop-input-line);
}
/* Drugotni gumbi: obroba namesto polne barve */
.woocommerce .shop-main table.cart td.actions .button,
.woocommerce .shop-main .woocommerce-form-coupon .button {
    background: #ffffff;
    color: var(--text-primary);
    border-color: var(--text-primary);
}
.woocommerce .shop-main table.cart td.actions .button:hover:not(:disabled),
.woocommerce .shop-main .woocommerce-form-coupon .button:hover {
    background: var(--text-primary);
    color: #ffffff;
    border-color: var(--text-primary);
}
.woocommerce .shop-main table.cart td.actions .button:disabled {
    background: #ffffff;
    color: var(--text-primary);
}

.woocommerce .shop-main .cart-collaterals { width: auto; }
.woocommerce .shop-main .cart-collaterals .cart_totals {
    float: none;
    width: auto;
    padding: 28px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--shop-radius);
}
.woocommerce .shop-main .cart-collaterals .cart_totals h2,
.woocommerce .shop-main #order_review_heading,
.woocommerce .shop-main #customer_details h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.015em;
    margin: 0 0 16px;
}
.woocommerce .shop-main .cart_totals table.shop_table th { width: auto; }
.woocommerce .shop-main .wc-proceed-to-checkout { padding: 24px 0 0; }
.woocommerce .shop-main .wc-proceed-to-checkout a.checkout-button {
    display: flex;
    width: 100%;
    margin: 0;
    min-height: 56px;
    font-size: 17px;
}
.woocommerce .shop-main .cart_totals .woocommerce-shipping-destination,
.woocommerce .shop-main .cart_totals .shipping-calculator-button { font-size: 14px; color: var(--text-secondary); }

/* Prazna košarica */
.woocommerce .shop-main .cart-empty.woocommerce-info { border-left-color: var(--border-hover); font-size: 17px; }
.woocommerce .shop-main .return-to-shop { margin: 0; }

/* Zaključek nakupa: podatki levo, naročilo desno */
.woocommerce .shop-main .woocommerce-form-coupon-toggle .woocommerce-info { border-left-color: var(--border-hover); }
.woocommerce .shop-main .woocommerce-info a.showcoupon { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.woocommerce .shop-main form.checkout_coupon {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 0 0 32px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}
.woocommerce .shop-main form.checkout_coupon p:first-child { flex-basis: 100%; margin: 0; }
.woocommerce .shop-main form.checkout_coupon .form-row { float: none; width: auto; margin: 0; }
.woocommerce .shop-main form.checkout_coupon::before,
.woocommerce .shop-main form.checkout_coupon::after,
.woocommerce .shop-main form.checkout_coupon .clear { display: none; }

.woocommerce .shop-main form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    gap: 0 clamp(32px, 5vw, 72px);
    align-items: start;
}
.woocommerce .shop-main form.checkout::before,
.woocommerce .shop-main form.checkout::after { display: none; }
.woocommerce .shop-main form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.woocommerce .shop-main #customer_details { grid-column: 1; grid-row: 1 / span 3; }
.woocommerce .shop-main #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; padding: 28px 28px 16px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-bottom: 0; border-radius: var(--shop-radius) var(--shop-radius) 0 0; }
.woocommerce .shop-main #order_review { grid-column: 2; grid-row: 2; padding: 0 28px 28px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-top: 0; border-radius: 0 0 var(--shop-radius) var(--shop-radius); }
.woocommerce .shop-main #customer_details.col2-set { width: auto; float: none; }
.woocommerce .shop-main #customer_details .col-1,
.woocommerce .shop-main #customer_details .col-2 { float: none; width: auto; }
.woocommerce .shop-main #customer_details .col-2 { margin-top: 24px; }
.woocommerce .shop-main #customer_details::before,
.woocommerce .shop-main #customer_details::after { display: none; }
.woocommerce .shop-main .woocommerce-billing-fields__field-wrapper,
.woocommerce .shop-main .woocommerce-shipping-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
}
.woocommerce .shop-main .woocommerce-billing-fields__field-wrapper .form-row,
.woocommerce .shop-main .woocommerce-shipping-fields__field-wrapper .form-row {
    float: none;
    width: auto;
    grid-column: 1 / -1;
}
.woocommerce .shop-main .woocommerce-billing-fields__field-wrapper .form-row-first,
.woocommerce .shop-main .woocommerce-shipping-fields__field-wrapper .form-row-first { grid-column: 1; }
.woocommerce .shop-main .woocommerce-billing-fields__field-wrapper .form-row-last,
.woocommerce .shop-main .woocommerce-shipping-fields__field-wrapper .form-row-last { grid-column: 2; }
.woocommerce .shop-main #ship-to-different-address { font-size: 18px; }
.woocommerce .shop-main #ship-to-different-address label { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; }

.woocommerce .shop-main table.woocommerce-checkout-review-order-table td.product-name { font-weight: 600; }
.woocommerce .shop-main table.woocommerce-checkout-review-order-table .product-quantity { font-weight: 400; color: var(--text-secondary); }

/* Plačilo */
.woocommerce .shop-main #payment {
    margin-top: 24px;
    background: none;
    border-radius: 0;
}
.woocommerce .shop-main #payment ul.payment_methods {
    padding: 0;
    margin: 0 0 16px;
    border: 0;
}
.woocommerce .shop-main #payment ul.payment_methods li {
    list-style: none;
    padding: 16px;
    margin: 0 0 8px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}
.woocommerce .shop-main #payment ul.payment_methods li label {
    display: inline;
    font-weight: 600;
    cursor: pointer;
}
.woocommerce .shop-main #payment ul.payment_methods li input { margin-right: 8px; vertical-align: -3px; }
.woocommerce .shop-main #payment div.payment_box {
    margin: 12px 0 0;
    padding: 12px 16px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 14px;
    border-radius: 8px;
}
.woocommerce .shop-main #payment div.payment_box::before { display: none; }
.woocommerce .shop-main #payment ul.payment_methods li.woocommerce-notice,
.woocommerce .shop-main #payment ul.payment_methods > li:only-child.woocommerce-info {
    border-left: 4px solid var(--border-hover);
    background: #ffffff;
}
.woocommerce .shop-main #payment div.form-row.place-order { padding: 0; margin: 0; }
.woocommerce .shop-main .woocommerce-terms-and-conditions-wrapper { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.woocommerce .shop-main .woocommerce-privacy-policy-text p { margin: 0 0 12px; }
.woocommerce .shop-main .woocommerce-privacy-policy-text a,
.woocommerce .shop-main .woocommerce-terms-and-conditions-link { text-decoration: underline; text-underline-offset: 3px; color: var(--text-primary); }
.woocommerce .shop-main #payment #place_order {
    float: none;
    width: 100%;
    min-height: 56px;
    font-size: 17px;
}
.woocommerce .shop-main .blockUI.blockOverlay { background: rgba(255, 255, 255, 0.6) !important; }

@media (max-width: 960px) {
    .shop-main--page .woocommerce:has(> .woocommerce-cart-form),
    .woocommerce .shop-main form.checkout { grid-template-columns: minmax(0, 1fr); }
    .woocommerce .shop-main #customer_details { grid-row: auto; }
    .woocommerce .shop-main #order_review_heading { grid-column: 1; grid-row: auto; margin-top: 40px; }
    .woocommerce .shop-main #order_review { grid-column: 1; grid-row: auto; }
}
@media (max-width: 768px) {
    /* WooCommerce smallscreen: tabela košarice v vrstice z oznakami */
    .woocommerce .shop-main table.shop_table_responsive tr td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        padding: 12px 0;
        text-align: right !important;
    }
    .woocommerce .shop-main table.shop_table_responsive tr td::before { float: none; font-weight: 600; color: var(--text-secondary); }
    .woocommerce .shop-main table.cart tr.cart_item { display: block; padding: 8px 0 16px; border-bottom: 1px solid var(--border-color); }
    .woocommerce .shop-main table.cart tr.cart_item td { border-bottom: 0; }
    .woocommerce .shop-main table.cart td.product-remove { width: auto; justify-content: flex-end; }
    .woocommerce .shop-main table.cart td.product-thumbnail { display: none; }
    .woocommerce .shop-main table.cart td.actions { display: block; text-align: left !important; }
    .woocommerce .shop-main table.cart td.actions::before { display: none; }
    .woocommerce .shop-main table.cart td.actions .coupon { float: none; flex-wrap: wrap; margin-bottom: 12px; }
    .woocommerce .shop-main table.cart td.actions .coupon .input-text { flex: 1; width: auto; }
    .woocommerce .shop-main table.cart td.actions > .button { width: 100%; }
    .woocommerce .shop-main .cart-collaterals .cart_totals,
    .woocommerce .shop-main #order_review_heading { padding-left: 20px; padding-right: 20px; }
    .woocommerce .shop-main #order_review { padding: 0 20px 20px; }
}
@media (max-width: 560px) {
    .woocommerce .shop-main .woocommerce-billing-fields__field-wrapper,
    .woocommerce .shop-main .woocommerce-shipping-fields__field-wrapper { grid-template-columns: minmax(0, 1fr); }
    .woocommerce .shop-main .woocommerce-billing-fields__field-wrapper .form-row-first,
    .woocommerce .shop-main .woocommerce-billing-fields__field-wrapper .form-row-last,
    .woocommerce .shop-main .woocommerce-shipping-fields__field-wrapper .form-row-first,
    .woocommerce .shop-main .woocommerce-shipping-fields__field-wrapper .form-row-last { grid-column: 1; }
}

/* WooCommerce programsko fokusira obvestila (tabindex=-1); brez obroče */
.shop-main [tabindex="-1"]:focus,
.shop-main [tabindex="-1"]:focus-visible { outline: none; }

/* Obrobe polj: premagajo WooCommerce .woocommerce form .form-row .input-text */
.woocommerce .shop-main form .form-row .input-text,
.woocommerce .shop-main form .form-row select {
    border: 1px solid var(--shop-input-line);
    border-radius: 12px;
}
.woocommerce .shop-main form .form-row.woocommerce-invalid .input-text { border-color: #b42318; }
.woocommerce .shop-main form .form-row .input-text:focus { border-color: var(--text-primary); }

/* Ni načinov plačila: samo obvestilo, brez okvirja okoli */
.woocommerce .shop-main #payment ul.payment_methods li:has(> .woocommerce-info),
.woocommerce .shop-main #payment ul.payment_methods li:has(> .woocommerce-notice) {
    padding: 0;
    background: none;
    border: 0;
}
.woocommerce .shop-main #payment ul.payment_methods li > .woocommerce-info {
    margin: 0;
    background: #ffffff;
    font-size: 15px;
    line-height: 1.5;
}

/* WooCommerce smallscreen: brez sivih črt na vsaki drugi vrstici */
.woocommerce .shop-main table.shop_table_responsive tr:nth-child(2n) td,
.woocommerce-page .shop-main table.shop_table_responsive tr:nth-child(2n) td { background-color: transparent; }

/* Ena velikost za vsa polja v obrazcu */
.woocommerce .shop-main form .form-row input.input-text,
.woocommerce .shop-main form .form-row select {
    box-sizing: border-box;
    height: 48px;
    min-height: 48px;
    padding: 10px 16px;
    font-size: 16px;
    line-height: 1.5;
}

/* Nakup za podjetje */
.woocommerce .shop-main form.checkout:not(.is-company) .tech-company-field { display: none !important; }
.woocommerce .shop-main form .form-row.tech-company-toggle { margin: 8px 0 20px; }
.woocommerce .shop-main form .form-row.tech-company-toggle label.checkbox { font-weight: 600; font-size: 16px; }
.woocommerce .shop-main form .form-row.tech-company-toggle .optional { display: none; }

/* Potrditvena polja: kvadratek in besedilo na isti sredini */
.woocommerce .shop-main form .form-row label.checkbox,
.woocommerce .shop-main form .form-row label.woocommerce-form__label-for-checkbox {
    align-items: center;
    line-height: 1.4;
}
.woocommerce .shop-main form .form-row label.checkbox .input-checkbox,
.woocommerce .shop-main form .form-row label.woocommerce-form__label-for-checkbox .input-checkbox {
    margin: 0;
    vertical-align: middle;
}

/* Napake pri zaključku nakupa: nad obrazcem, ena pod drugo */
.woocommerce .shop-main form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; grid-row: 1; }
.woocommerce .shop-main #customer_details { grid-row: 2 / span 3; }
.woocommerce .shop-main #order_review_heading { grid-row: 2; }
.woocommerce .shop-main #order_review { grid-row: 3; }
.woocommerce .shop-main ul.woocommerce-error {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
}
.woocommerce .shop-main ul.woocommerce-error li { margin: 0; padding: 0; }
@media (max-width: 960px) {
    .woocommerce .shop-main #customer_details,
    .woocommerce .shop-main #order_review_heading,
    .woocommerce .shop-main #order_review { grid-row: auto; }
}

/* ============================================
   NAROČILO PREJETO (zahvalna stran)
   ============================================ */
.woocommerce .shop-main .woocommerce-order { max-width: 960px; }
.woocommerce .shop-main .woocommerce-thankyou-order-received {
    margin: 0 0 32px;
    font-size: 20px;
    line-height: 1.5;
    color: var(--text-primary);
}
.woocommerce .shop-main ul.order_details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0;
    margin: 0 0 48px;
    padding: 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.woocommerce .shop-main ul.order_details::before,
.woocommerce .shop-main ul.order_details::after { display: none; }
.woocommerce .shop-main ul.order_details li {
    float: none;
    margin: 0;
    padding: 16px 20px 16px 0;
    border: 0;
    text-transform: none;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-secondary);
}
.woocommerce .shop-main ul.order_details li strong {
    display: block;
    margin-top: 4px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: none;
    overflow-wrap: anywhere;
}
.woocommerce .shop-main .woocommerce-bacs-bank-details,
.woocommerce .shop-main .woocommerce-order-details,
.woocommerce .shop-main .woocommerce-customer-details { margin: 0 0 48px; }
.woocommerce .shop-main .woocommerce-bacs-bank-details h2,
.woocommerce .shop-main .woocommerce-order-details__title,
.woocommerce .shop-main .woocommerce-column__title,
.woocommerce .shop-main .woocommerce-customer-details h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.015em;
    margin: 0 0 16px;
}
.woocommerce .shop-main .wc-bacs-bank-details-account-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
}
.woocommerce .shop-main .woocommerce-bacs-bank-details ul.order_details { margin-bottom: 0; }
.woocommerce .shop-main table.order_details tfoot th,
.woocommerce .shop-main table.order_details tfoot td { font-weight: 600; }
.woocommerce .shop-main table.order_details tfoot tr:nth-last-child(2) th,
.woocommerce .shop-main table.order_details tfoot tr:nth-last-child(2) td {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 900;
}
.woocommerce .shop-main .woocommerce-customer-details address {
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--shop-radius);
    background: var(--bg-secondary);
    font-style: normal;
    line-height: 1.7;
}
.woocommerce .shop-main .woocommerce-customer-details address p { margin: 8px 0 0; padding: 0; }
.woocommerce .shop-main .woocommerce-customer-details--email::before,
.woocommerce .shop-main .woocommerce-customer-details--phone::before { display: none; }
.woocommerce .shop-main .woocommerce-customer-details--email,
.woocommerce .shop-main .woocommerce-customer-details--phone { padding-left: 0 !important; }
.woocommerce .shop-main ul.woocommerce-order-overview li.email { grid-column: span 2; }
.woocommerce .shop-main ul.order_details li strong { overflow-wrap: break-word; }
@media (max-width: 560px) {
    .woocommerce .shop-main ul.woocommerce-order-overview li.email { grid-column: auto; }
}

/* Pogoji + soglasje za digitalno vsebino */
.woocommerce .shop-main .woocommerce-terms-and-conditions-wrapper .form-row { margin: 0 0 12px; }
.woocommerce .shop-main .woocommerce-terms-and-conditions-wrapper label.checkbox {
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    font-weight: 400;
}
.woocommerce .shop-main .woocommerce-terms-and-conditions-wrapper label.checkbox .input-checkbox { margin-top: 0; }
.woocommerce .shop-main form .woocommerce-terms-and-conditions-wrapper .form-row label.checkbox { align-items: flex-start; justify-content: flex-start; }
.woocommerce .shop-main form .woocommerce-terms-and-conditions-wrapper .form-row label.checkbox .input-checkbox { margin: 0; flex: none; }
.woocommerce .shop-main .woocommerce-terms-and-conditions-wrapper abbr.required { display: none; }
.woocommerce .shop-main .woocommerce-terms-and-conditions-checkbox-text::after,
.woocommerce .shop-main .tech-checkbox-text::after { content: " *"; color: #b42318; font-weight: 700; }
.woocommerce .shop-main form .form-row.tech-digital-consent { margin: 0 0 16px; }
.woocommerce .shop-main form .form-row.tech-digital-consent label.checkbox {
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    color: var(--text-primary);
}
.woocommerce .shop-main form .form-row.tech-digital-consent label.checkbox .input-checkbox { margin: 0; flex: none; }
