/* D40 Supplier Sync 0.1.31 – customer-facing formatting. */
html body.single-product table.d40ss-tech-specs td,
html body.single-product table.d40ss-tech-specs td.d40ss-tech-label {
    text-transform: none !important;
    font-variant: normal !important;
}
html body.single-product table.d40ss-tech-specs td.d40ss-tech-label {
    font-weight: 600;
}
html body.single-product .woocommerce-Tabs-panel--additional_information table.woocommerce-product-attributes th,
html body.single-product .woocommerce-Tabs-panel--additional_information table.woocommerce-product-attributes td {
    text-transform: none !important;
    font-variant: normal !important;
}

/* D40 Supplier Sync 0.1.34 – customer-facing delivery-time estimate. */
html body.single-product .summary .d40ss-delivery-time {
    clear: both;
    display: block;
    margin: 1em 0 1.15em;
    padding: .7em .9em;
    border-left: 3px solid #D3B470;
    background: #fbf8f0;
    color: #333;
    font-size: .95em;
    line-height: 1.5;
}
html body.single-product .summary .d40ss-delivery-time__label {
    font-weight: 600;
}
html body.single-product .summary .d40ss-delivery-time__value {
    font-weight: 500;
}

/* D40 Supplier Sync 0.1.39 — composed product-description title and Important Notes. */
html body.single-product .woocommerce-Tabs-panel--description .d40-marketing-title {
    margin: 0 0 1em;
    font-size: 1.35em;
    line-height: 1.35;
    font-weight: 600;
    text-transform: none !important;
}
html body.single-product .woocommerce-Tabs-panel--description .d40-important-notes {
    margin: 1.5em 0 1.2em;
}
html body.single-product .woocommerce-Tabs-panel--description .d40-important-notes > h3 {
    margin: 0 0 .65em;
    font-size: 1.1em;
    line-height: 1.4;
    font-weight: 600;
    text-transform: none !important;
}
html body.single-product .woocommerce-Tabs-panel--description .d40-important-notes__body {
    border-left: 3px solid #D3B470;
    padding: .1em 0 .1em 1.1em;
    font-style: italic;
    line-height: 1.65;
}
html body.single-product .woocommerce-Tabs-panel--description .d40-important-notes__body > :last-child {
    margin-bottom: 0;
}
html body.single-product .woocommerce-Tabs-panel--description .d40-important-notes__body strong,
html body.single-product .woocommerce-Tabs-panel--description .d40-important-notes__body b {
    font-weight: 700;
}

/* D40 Supplier Sync 0.1.80 — Differentiated mobile behavior: 2-column auto-wrap vs multi-column horizontal scroll */
html body.single-product .d40ss-table-scroll {
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.25em;
    display: block;
}
html body.single-product .d40ss-table-scroll.d40ss-table-scroll--multicol {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}
html body.single-product .d40ss-table-scroll.d40ss-table-scroll--2col {
    overflow-x: visible !important;
}
html body.single-product table.d40ss-tech-specs {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}
@media (max-width: 767px) {
    /* 2-column tables (Tehničke specifikacije): full width, auto word-wrap, NO horizontal scroll */
    html body.single-product table.d40ss-tech-specs.d40ss-table-2col {
        display: table !important;
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed;
        overflow-x: visible !important;
    }
    html body.single-product table.d40ss-tech-specs.d40ss-table-2col th,
    html body.single-product table.d40ss-tech-specs.d40ss-table-2col td {
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 8px 10px;
        vertical-align: top;
    }
    html body.single-product table.d40ss-tech-specs.d40ss-table-2col th:first-child,
    html body.single-product table.d40ss-tech-specs.d40ss-table-2col td:first-child {
        width: 38%;
        font-weight: 600;
    }
    html body.single-product table.d40ss-tech-specs.d40ss-table-2col th:last-child,
    html body.single-product table.d40ss-tech-specs.d40ss-table-2col td:last-child {
        width: 62%;
    }

    /* Multi-column tables (>= 3 columns, e.g. Pakovanje): smooth horizontal touch scroll */
    html body.single-product .d40ss-table-scroll--multicol > table.d40ss-tech-specs,
    html body.single-product table.d40ss-tech-specs.d40ss-table-multicol {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    html body.single-product table.d40ss-tech-specs.d40ss-table-multicol th,
    html body.single-product table.d40ss-tech-specs.d40ss-table-multicol td {
        white-space: nowrap !important;
        padding: 8px 12px;
    }
    html body.single-product table.d40ss-tech-specs.d40ss-table-multicol th:first-child,
    html body.single-product table.d40ss-tech-specs.d40ss-table-multicol td:first-child {
        white-space: normal !important;
        min-width: 130px;
    }
}

/* D40 Supplier Sync 0.1.83 — subtle gold "Besplatna dostava" badge with light-sweep shimmer. */
html body.single-product .summary .d40ss-delivery-time {
    margin-bottom: .55em;
}
html body.single-product .summary .d40ss-free-shipping {
    position: relative;
    overflow: hidden;
    clear: both;
    display: flex;
    width: -moz-fit-content;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: .55em;
    margin: 0 0 1.15em;
    padding: .55em 1.05em;
    border-radius: 3px;
    background: linear-gradient(135deg, #c6a256 0%, #D3B470 52%, #dfc382 100%);
    color: #ffffff;
    font-size: .92em;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.35;
    box-shadow: 0 2px 6px rgba(211, 180, 112, 0.28);
}
html body.single-product .summary .d40ss-free-shipping__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
}
html body.single-product .summary .d40ss-free-shipping__icon svg {
    display: block;
    width: 18px;
    height: 18px;
}
html body.single-product .summary .d40ss-free-shipping__text {
    position: relative;
    z-index: 1;
}
html body.single-product .summary .d40ss-free-shipping::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 65%;
    height: 100%;
    background: linear-gradient(
        105deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.36) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-18deg);
    animation: d40ss-free-shipping-shimmer 5.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes d40ss-free-shipping-shimmer {
    0% { left: -120%; }
    24% { left: 140%; }
    100% { left: 140%; }
}
@media (prefers-reduced-motion: reduce) {
    html body.single-product .summary .d40ss-free-shipping::after {
        animation: none;
        display: none;
    }
}

html body.single-product .summary .d40ss-free-shipping--solo {
    margin-top: 1em;
}
