/* ── NP Homepage Slider ── */

/* ── Global mobile overflow protection ── */
img, video, iframe, embed, object, table {
    max-width: 100%;
}
table {
    overflow-x: auto;
    display: block;
}

/* Front page wrapper */
.np-front-page {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero banner */
.np-hero {
    width: 100%;
    overflow: hidden;
    padding: 0 40px;
}
.np-hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    margin-top: 40px;
}

/* Hero CTA section – desktop: compact centered strip below hero image */
.np-hero-cta {
    padding: 36px 40px;
    text-align: center;
}
.np-hero-cta__visual {
    display: none;
}
.np-hero-cta__slider {
    display: none;
}
.np-hero-cta__heading {
    margin: 0;
}
.np-hero-cta__heading--mobile,
.np-hero-cta__sub--mobile {
    display: none;
}
.np-hero-cta__heading--desktop {
    font-size: 30px;
    font-weight: 900;
    color: #111;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.np-hero-cta__sub--desktop {
    margin-top: 17px;
    font-size: 15px;
    color: #767676;
    margin-bottom: 0;
}

/* Slider section */
.np-slider-section {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
    overflow: visible;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.np-slider-section + .np-slider-section {
    margin-top: 64px;
}

/* Header */
.np-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 28px;
    margin-top: 25px;
}
.np-slider-header h2 {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: #111;
    margin: 0;
    padding: 0;
}
.np-slider-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.np-slider-header a {
    font-size: 15px;
    font-weight: 500;
    color: #111;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}
.np-slider-header a:hover {
    opacity: 0.6;
}

/* Track */
.np-slider-wrapper {
    position: relative;
    overflow: visible;
}
.np-slider-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
}
.np-slider-track::-webkit-scrollbar {
    display: none;
}

/* Card */
.np-slider-card {
    flex: 0 0 calc(25% - 12px);
    min-width: 220px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}
.np-slider-card:hover {
    transform: translateY(-2px);
}

/* Image box */
.np-slider-img {
    aspect-ratio: 3 / 4;
    background: #f8f8f6;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
    padding: 2.5%;
}
.np-slider-img-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    container-type: inline-size;
}

/*
 * "Din logo her" placeholder – mirrors product page designer overlay exactly.
 * Structure: .np-card-logo-placeholder = overlay zone (x/y/w/h on image)
 *            ::before  = dotted oval   (placeholder x/y/w/h within zone)
 *            ::after   = text          (placeholder x/y/w/h within zone)
 */
.np-card-logo-placeholder {
    position: absolute;
    left: var(--np-zone-x, 35%);
    top: calc(var(--np-zone-y, 35%) + 1%);
    width: var(--np-zone-w, 30%);
    height: var(--np-zone-h, 30%);
    pointer-events: none;
    z-index: 1;
}
.np-card-logo-placeholder::before {
    content: '';
    position: absolute;
    top: var(--np-ph-y, 20%);
    left: var(--np-ph-x, 10%);
    width: var(--np-ph-w, 80%);
    height: var(--np-ph-h, 60%);
    border: 0;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0%200%20100%20100' preserveAspectRatio='none'%3E%3Cellipse cx='50' cy='50' rx='48' ry='48' fill='none' stroke='%23000' stroke-opacity='0.55' stroke-width='2' stroke-dasharray='1%205' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 90% 90%;
    opacity: 1;
    pointer-events: none;
    box-sizing: border-box;
}
.np-card-logo-placeholder::after {
    content: 'Din logo\A her';
    position: absolute;
    top: var(--np-ph-y, 20%);
    left: var(--np-ph-x, 10%);
    width: var(--np-ph-w, 80%);
    height: var(--np-ph-h, 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2cqw;
    font-weight: 500;
    color: #111;
    opacity: 1;
    pointer-events: none;
    white-space: pre-line;
    text-align: center;
    line-height: 1.1;
    box-sizing: border-box;
    transform: translateY(3px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
/* Dark product colors: white placeholder */
.np-card-logo-placeholder.is-dark::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0%200%20100%20100' preserveAspectRatio='none'%3E%3Cellipse cx='50' cy='50' rx='48' ry='48' fill='none' stroke='%23fff' stroke-opacity='0.55' stroke-width='2' stroke-dasharray='1%205' stroke-linecap='round'/%3E%3C/svg%3E");
}
.np-card-logo-placeholder.is-dark::after {
    color: #fff;
}
.np-slider-img-inner img,
.np-slider-img > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* Product info */
.np-slider-meta {
    padding-left: 3px;
}
.np-slider-price {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    margin-bottom: 0px;
}
.np-slider-price del {
    color: #999;
    font-weight: 400;
}
.np-slider-price ins {
    text-decoration: none;
}
.np-slider-brand {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}
.np-slider-brand-logo {
    width: 63px;
    max-width: 63px;
    height: auto;
    display: block;
    margin-top: 4px;
    margin-bottom: 0 !important;
}
.np-slider-name {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Color dots */
.np-slider-colors {
    display: flex;
    gap: 5px;
    margin-top: 6px;
    align-items: center;
}
.np-slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,0.1);
    display: inline-block;
    transition: transform 0.15s;
}
.np-slider-dot:hover {
    transform: scale(1.2);
}
.np-slider-dot-more {
    font-size: 9px;
    font-weight: 600;
    color: #999;
}

/* Navigation buttons */
.np-slider-nav {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-70%);
    z-index: 10;
    display: flex;
    gap: 8px;
}
.np-slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.np-slider-btn svg {
    width: 28px;
    height: 28px;
    min-width: 28px;
    flex-shrink: 0;
}
.np-slider-btn:hover {
    background: #333;
}
.np-slider-btn:disabled {
    display: none;
}

/* ── Sticker Section ── */

.np-sticker-section {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.np-sticker-block {
    background: #f5f5f0;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 40px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
}

/* Left column */
.np-sticker-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 48px 48px;
}

/* Right column — product image */
.np-sticker-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    overflow: hidden;
}
.np-sticker-product-img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    display: block;
}

/* Top area */
.np-sticker-top {
    text-align: left;
}
.np-sticker-top h2 {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #111;
}
.np-sticker-top p {
    font-size: 16px;
    line-height: 1.7;
    color: #777;
    margin-bottom: 8px;
    margin-top: 20px;
}
.np-sticker-price-line {
    font-size: 15px;
    color: #999;
    margin-bottom: 28px;
}
.np-sticker-price-line strong {
    color: #111;
    font-weight: 700;
    font-size: 17px;
}
.np-sticker-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111;
    color: #fff;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.np-sticker-cta:hover {
    background: #333;
    color: #fff;
}

/* Material chips */
.np-sticker-materials {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    padding: 32px 0 0;
    flex-wrap: wrap;
}
.np-mat-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e5e2dc;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}
.np-mat-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}
.np-mat-dot-white {
    background: #fff;
    border: 1.5px solid #ddd;
}
.np-mat-dot-black {
    background: #111;
}
.np-mat-dot-clear {
    background: repeating-conic-gradient(#e0e0e0 0% 25%, #fff 0% 50%) 0 0 / 6px 6px;
    border: 1px solid #ddd;
}
.np-mat-dot-holo {
    background: linear-gradient(135deg, #d8b4fe, #93c5fd, #a7f3d0, #fda4af);
}
.np-mat-dot-color {
    background: conic-gradient(from 0deg, #ef4444, #f59e0b, #22c55e, #3b82f6, #8b5cf6, #ef4444);
}

/* Sticker examples */
.np-sticker-examples {
    display: flex;
    gap: 16px;
    padding: 0 40px 56px;
    justify-content: center;
}
.np-sticker-ex {
    width: 140px;
    height: 140px;
    background: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transition: transform 0.3s;
    cursor: pointer;
}
.np-sticker-ex:hover {
    transform: translateY(-4px);
}
.np-sticker-ex svg {
    width: 100%;
    height: 100%;
}
.np-sticker-ex-dark {
    background: #1a1a1a;
}
.np-sticker-ex-holo {
    background: linear-gradient(135deg, #ede7f6, #e3f2fd, #e8f5e9, #fce4ec);
}

/* ── NP Grid (category/shop pages — same cards as slider) ── */

.np-grid-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.np-grid-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.np-grid-products .np-slider-card {
    flex: none;
    min-width: 0;
    width: auto;
}

@media (max-width: 900px) {
    .np-grid-section {
        padding: 0 16px;
    }
    .np-grid-products {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}
@media (max-width: 600px) {
    .np-grid-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ── WooCommerce Product Grid (category/shop pages) ── */

.astra-shop-thumbnail-wrap {
    background: #f8f8f6;
    border-radius: 8px;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2.5%;
    margin-bottom: 14px;
}
.astra-shop-thumbnail-wrap a.woocommerce-LoopProduct-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.astra-shop-thumbnail-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* Hide default Astra elements we don't need */
.astra-shop-summary-wrap .ast-woo-product-category,
.astra-shop-summary-wrap .button.add_to_cart_button,
.astra-shop-summary-wrap .button.product_type_variable,
.astra-shop-thumbnail-wrap .ast-on-card-button {
    display: none !important;
}

/* Summary: left-align, match slider fonts */
.astra-shop-summary-wrap {
    text-align: left !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    padding-left: 3px;
}
.astra-shop-summary-wrap .price {
    order: 1;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111 !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}
.astra-shop-summary-wrap .price .woocommerce-Price-amount.amount {
    font-size: 15px !important;
}
.astra-shop-summary-wrap .ast-loop-product__link {
    order: 2;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #666 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    margin-bottom: 0 !important;
}
.astra-shop-summary-wrap .np-manufacturer {
    order: 3;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    justify-content: flex-start !important;
    text-align: left !important;
}
.astra-shop-summary-wrap .np-manufacturer-logo {
    margin-bottom: 0 !important;
    width: 63px !important;
    max-width: 63px !important;
}
.astra-shop-summary-wrap .np-grid-swatches {
    order: 4;
    margin-top: 6px;
    justify-content: flex-start !important;
}

/* ── How It Works Section ── */

.np-order-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.np-order-block {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8e8e4;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
}
.np-order-text {
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.np-order-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 16px;
}
.np-order-text h2 {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.8px;
    line-height: 1.15;
    color: #111;
    margin-bottom: 20px;
}
.np-order-text .np-order-intro {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 36px;
}
.np-order-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}
.np-order-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.np-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}
.np-step-content h3 {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 3px;
}
.np-step-content p {
    font-size: 14px;
    line-height: 1.55;
    color: #777;
}
.np-order-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}
.np-benefit-card {
    background: #f5f5f0;
    border-radius: 14px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    transition: transform 0.2s;
}
.np-benefit-card:hover {
    transform: translateY(-2px);
}
.np-benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.np-benefit-icon svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}
.np-benefit-icon--ai {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.np-benefit-icon--lib {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}
.np-benefit-title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}
.np-benefit-desc {
    font-size: 12px;
    line-height: 1.45;
    color: #767676;
}
.np-order-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111;
    color: #fff;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: 32px;
    align-self: flex-start;
}
.np-order-cta:hover {
    background: #333;
    color: #fff;
}
.np-order-video {
    background: #f5f5f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.np-video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #999;
}
.np-play-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.np-play-btn:hover {
    background: #333;
    transform: scale(1.05);
}
.np-play-btn svg {
    width: 28px;
    height: 28px;
    fill: #fff;
    margin-left: 3px;
}
.np-video-placeholder span {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
    .np-slider-card {
        flex: 0 0 calc(33.333% - 11px);
    }
    .np-order-block {
        grid-template-columns: 1fr;
    }
    .np-order-video {
        min-height: 320px;
        order: -1;
    }
    .np-order-text {
        padding: 40px 32px;
    }
    .np-order-benefits {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Hero CTA – mobile: full visual with product cards */
    .np-hero {
        display: none;
    }
    .np-hero-cta {
        padding: 0;
        background: #fff;
        border-top: none;
    }
    .np-hero-cta__slider {
        display: block;
        position: relative;
        width: 100%;
        aspect-ratio: 1/1;
        overflow: hidden;
        background: #f5f5f5;
    }
    .np-hero-cta__slider img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        transition: opacity 0.6s ease;
    }
    .np-hero-cta__slider img.active {
        opacity: 1;
    }
    .np-hero-cta__text {
        padding: 28px 16px 32px;
        text-align: center;
    }
    .np-hero-cta__heading--desktop,
    .np-hero-cta__sub--desktop {
        display: none;
    }
    .np-hero-cta__heading--mobile {
        display: block;
        font-size: 32px;
        font-weight: 900;
        line-height: 1.05;
        color: #111;
        margin-bottom: 8px;
        letter-spacing: -1px;
    }
    .np-hero-cta__sub--mobile {
        display: block;
        font-size: 14px;
        color: #666;
        margin-bottom: 0;
        margin-top: 18px;
        line-height: 1.5;
    }

    .np-slider-section,
    .np-sticker-section,
    .np-order-section {
        padding: 0 16px;
    }
    .np-slider-section + .np-slider-section {
        margin-top: 48px;
        margin-bottom: 50px;
    }
    .np-slider-header h2 {
        font-size: 24px;
    }
    .np-slider-card {
        flex: 0 0 calc(50% - 8px);
        min-width: 160px;
    }
    .np-slider-nav {
        display: none;
    }
    .np-sticker-block {
        grid-template-columns: 1fr;
    }
    .np-sticker-left {
        padding: 40px 16px 32px;
    }
    .np-sticker-top {
        text-align: center;
    }
    .np-sticker-top h2 {
        font-size: 26px;
    }
    .np-sticker-materials {
        justify-content: center;
        padding: 24px 0 0;
    }
    .np-sticker-right {
        padding: 16px 16px 32px;
    }
}

/* ── WooCommerce general ── */
.woocommerce-js h2 {
    margin-bottom: 15px;
}

/* ── WooCommerce product grid typography ── */
.woocommerce-js ul.products li.product .woocommerce-Price-amount.amount,
.woocommerce-page ul.products li.product .woocommerce-Price-amount.amount {
    font-size: 14px !important;
}

.woocommerce-js ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px !important;
}
