/* ==================================================
   PRODUCTS.CSS — PRODUKTSIDE
   ================================================== */

/* ==================================================
   REGLER FRA DET SENESTE GODKENDTE DESIGN
   ================================================== */

.catalog-main {
    width: min(1240px, calc(100% - 36px));
    max-width: none;
    margin: 0 auto;
    padding: 46px 0 80px;
}

.catalog-hero {
    position: relative;
    min-height: 530px;
    overflow: hidden;
    padding: clamp(42px, 6vw, 72px);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 55px;
    border-radius: 42px;
    background:
            radial-gradient(circle at 87% 15%, rgba(255, 214, 79, 0.2), transparent 28%),
            linear-gradient(135deg, var(--candy-forest-dark), var(--candy-forest));
    box-shadow: 0 30px 80px rgba(8, 43, 37, 0.22);
}

.catalog-hero::before {
    content: "";
    position: absolute;
    right: -190px;
    bottom: -190px;
    width: 380px;
    height: 380px;
    border: 75px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.catalog-hero-copy {
    position: relative;
    z-index: 3;
}

.catalog-kicker {
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--candy-yellow);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.catalog-hero h1 {
    max-width: 680px;
    margin: 0 0 23px;
    color: white;
    font-size: clamp(52px, 7vw, 84px);
    line-height: 0.96;
    letter-spacing: -4.5px;
}

.catalog-hero h1 span {
    position: relative;
    display: inline-block;
    color: var(--candy-yellow);
}

.catalog-hero h1 span::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;
    height: 8px;
    border-radius: 999px;
    background: var(--candy-pink);
    transform: rotate(-2deg);
}

.catalog-description {
    max-width: 620px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 17px;
    line-height: 1.75;
}

.catalog-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.catalog-highlights {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.catalog-highlights div {
    padding-left: 13px;
    border-left: 2px solid rgba(120, 223, 192, 0.65);
}

.catalog-highlights strong,
.catalog-highlights span {
    display: block;
}

.catalog-highlights strong {
    margin-bottom: 4px;
    color: white;
    font-size: 13px;
}

.catalog-highlights span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    line-height: 1.4;
}

.catalog-visual {
    position: relative;
    min-height: 370px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.catalog-product-sign {
    position: relative;
    z-index: 3;
    width: 270px;
    min-height: 310px;
    padding: 38px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 7px solid rgba(255, 255, 255, 0.88);
    border-radius: 42px 42px 55px 55px;
    background: linear-gradient(145deg, #fffdf7, #ffe5ee);
    color: var(--candy-forest);
    text-align: center;
    box-shadow: 0 32px 65px rgba(0, 0, 0, 0.28);
    transform: rotate(4deg);
}

.catalog-sign-label {
    margin-bottom: 18px;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--candy-forest);
    color: white;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.catalog-product-sign strong {
    color: var(--candy-pink);
    font-size: 82px;
    line-height: 0.9;
    letter-spacing: -7px;
}

.catalog-product-sign p {
    max-width: 160px;
    margin-top: 18px;
    color: var(--candy-muted);
    font-size: 13px;
    font-weight: 800;
}

.catalog-orbit {
    position: absolute;
    border: 2px dashed rgba(255, 255, 255, 0.16);
    border-radius: 50%;
}

.catalog-orbit-large {
    width: 390px;
    height: 390px;
}

.catalog-orbit-small {
    width: 310px;
    height: 310px;
    transform: rotate(35deg);
}

.catalog-candy {
    position: absolute;
    z-index: 4;
    border: 5px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 25px rgba(8, 43, 37, 0.24);
    animation: catalog-float 4s ease-in-out infinite;
}

.catalog-candy-pink {
    top: 18px;
    left: 8%;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--candy-pink);
}

.catalog-candy-yellow {
    top: 45px;
    right: 2%;
    width: 68px;
    height: 42px;
    border-radius: 24px;
    background: var(--candy-yellow);
    transform: rotate(25deg);
    animation-delay: -1s;
}

.catalog-candy-purple {
    right: 8%;
    bottom: 20px;
    width: 52px;
    height: 52px;
    border-radius: 17px;
    background: var(--candy-purple);
    transform: rotate(18deg);
    animation-delay: -2s;
}

.catalog-candy-mint {
    bottom: 12px;
    left: 3%;
    width: 72px;
    height: 42px;
    border-radius: 50%;
    background: var(--candy-mint);
    transform: rotate(-20deg);
    animation-delay: -2.7s;
}

@keyframes catalog-float {
    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -14px;
    }
}

.catalog-section {
    margin-top: 35px;
    padding: clamp(30px, 5vw, 55px);
    border: 1px solid var(--candy-border);
    border-radius: 38px;
    background: rgba(255, 253, 247, 0.9);
    box-shadow: var(--candy-shadow);
    backdrop-filter: blur(14px);
}

.catalog-section-heading {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
}

.catalog-section-heading h2 {
    margin: 0 0 10px;
    color: var(--candy-forest);
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -3px;
    text-align: left;
}

.catalog-section-heading p:not(.section-kicker) {
    color: var(--candy-muted);
    font-size: 16px;
}

.catalog-bag-link {
    flex: 0 0 auto;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--candy-border);
    border-radius: 999px;
    background: white;
    color: var(--candy-forest);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(18, 63, 53, 0.08);
}

.catalog-bag-link:hover {
    border-color: var(--candy-pink);
    transform: translateY(-2px);
}

.products-page .categories-container {
    margin-bottom: 35px;
    padding: 10px;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 9px;
    border: 1px solid var(--candy-border);
    border-radius: 24px;
    background: #f7f2e7;
}

.products-page .category-btn {
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--candy-muted);
    font-size: 13px;
    font-weight: 900;
    box-shadow: none;
}

.products-page .category-btn:hover {
    border-color: rgba(18, 63, 53, 0.1);
    background: white;
    color: var(--candy-forest);
    transform: translateY(-1px);
}

.products-page .category-btn.active {
    border-color: var(--candy-forest);
    background: var(--candy-forest);
    color: white;
    box-shadow: 0 8px 18px rgba(18, 63, 53, 0.16);
}

.products-page .category-btn-special {
    border-color: rgba(120, 223, 192, 0.5);
    background: rgba(120, 223, 192, 0.18);
    color: var(--candy-forest);
}

.products-page .category-btn-special.active {
    border-color: var(--candy-forest);
    background: var(--candy-forest);
    color: white;
}

.products-page .category-label {
    font-size: inherit;
}

.products-page #product-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    gap: 22px;
}

.products-page .product-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(18, 63, 53, 0.1);
    border-radius: 28px;
    background: white;
    box-shadow: 0 14px 35px rgba(18, 63, 53, 0.09);
    cursor: default;
    transition:
            transform 200ms ease,
            box-shadow 200ms ease,
            border-color 200ms ease;
}

.products-page .product-card::after {
    content: "";
    position: absolute;
    top: -35px;
    right: -35px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 214, 79, 0.18);
    pointer-events: none;
}

.products-page .product-card:hover {
    border-color: rgba(255, 91, 141, 0.28);
    transform: translateY(-7px);
    box-shadow: 0 25px 52px rgba(18, 63, 53, 0.15);
}

.products-page .product-card-click-area {
    flex: 1;
    padding: 15px 17px 0;
    cursor: pointer;
}

.products-page .product-card-click-area:not(:has(.product-image-wrapper))::before {
    content: "";
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 18px;
    display: block;
    border-radius: 21px;
    background:
            radial-gradient(circle at 28% 35%, var(--candy-yellow) 0 12%, transparent 13%),
            radial-gradient(circle at 65% 60%, var(--candy-pink) 0 16%, transparent 17%),
            radial-gradient(circle at 78% 25%, var(--candy-purple) 0 10%, transparent 11%),
            radial-gradient(circle at 30% 75%, var(--candy-mint) 0 14%, transparent 15%),
            #f4eee2;
}

.products-page .product-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 21px;
    background: #f3eee4;
}

.products-page .product-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 300ms ease;
}

.products-page .product-card:hover .product-image {
    transform: scale(1.05);
}

.products-page .product-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
    color: var(--candy-forest);
    font-size: 21px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.products-page .product-card p {
    min-height: 46px;
    margin-bottom: 14px;
    color: var(--candy-muted);
    font-size: 13px;
    line-height: 1.6;
}

.products-page .product-price {
    color: var(--candy-pink-dark);
    font-size: 18px;
    font-weight: 900;
}

.products-page .product-tag {
    margin-top: 11px;
    padding: 6px 10px;
    display: inline-flex;
    border-radius: 999px;
    background: #dff8ef;
    color: var(--candy-forest);
    font-size: 11px;
    font-weight: 900;
}

.products-page .add-to-bag-btn {
    width: auto;
    margin: 18px 17px 17px;
    padding: 12px 17px;
    border: none;
    border-radius: 15px;
    background: var(--candy-forest);
    color: white;
    font-size: 13px;
    font-weight: 900;
    box-shadow: none;
}

.products-page .add-to-bag-btn:hover {
    background: var(--candy-pink);
    transform: translateY(-2px);
}

.products-page .ingen-nyheder {
    grid-column: 1 / -1;
    padding: 50px 25px;
    border: 1px dashed var(--candy-border);
    border-radius: 24px;
    background: #faf6ed;
    color: var(--candy-muted);
    text-align: center;
}

.catalog-loading-message {
    grid-column: 1 / -1;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    color: var(--candy-muted);
}

.catalog-loading-message p {
    color: inherit;
}

.catalog-loading-dot {
    width: 42px;
    height: 42px;
    border: 5px solid rgba(18, 63, 53, 0.12);
    border-top-color: var(--candy-pink);
    border-radius: 50%;
    animation: catalog-spinner 750ms linear infinite;
}

@keyframes catalog-spinner {
    to {
        transform: rotate(360deg);
    }
}

.catalog-cta {
    margin-top: 35px;
    padding: clamp(30px, 5vw, 52px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
    border-radius: 35px;
    background: linear-gradient(110deg, #ffe4ed, #ece8ff);
    box-shadow: var(--candy-shadow);
}

.catalog-cta h2 {
    margin: 0 0 10px;
    color: var(--candy-forest);
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1;
    letter-spacing: -2.5px;
    text-align: left;
}

.catalog-cta p:not(.section-kicker) {
    max-width: 650px;
    color: var(--candy-muted);
}

.products-page .product-detail-modal {
    background: rgba(8, 43, 37, 0.68);
    backdrop-filter: blur(12px);
}

.products-page .product-detail-modal .modal-content {
    width: min(760px, calc(100% - 28px));
    max-width: 760px;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 34px;
    background: var(--candy-paper);
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.34);
}

.products-page .close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 50%;
    background: var(--candy-forest);
    color: white;
    font-size: 25px;
    line-height: 1;
    box-shadow: none;
}

.products-page .close-btn:hover {
    background: var(--candy-pink);
    transform: rotate(5deg);
}

.products-page #modal-title {
    max-width: calc(100% - 60px);
    margin: 0 0 22px;
    color: var(--candy-forest);
    font-size: clamp(31px, 5vw, 46px);
    line-height: 1;
    letter-spacing: -2px;
    text-align: left;
}

.products-page .modal-product-image {
    width: 100%;
    max-height: 360px;
    margin-bottom: 25px;
    object-fit: cover;
    border-radius: 24px;
}

.products-page .modal-section {
    margin-top: 20px;
    padding: 21px;
    border: 1px solid var(--candy-border);
    border-radius: 22px;
    background: white;
}

.products-page .modal-section h4 {
    margin-bottom: 12px;
    color: var(--candy-forest);
    font-size: 16px;
}

.products-page .modal-section p {
    color: var(--candy-muted);
    line-height: 1.7;
}

.products-page .modal-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
}

.products-page .info-item {
    padding: 13px;
    border-radius: 15px;
    background: #f6f1e8;
}

.products-page .info-item strong,
.products-page .info-item span {
    display: block;
}

.products-page .info-item strong {
    margin-bottom: 4px;
    color: var(--candy-muted);
    font-size: 11px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.products-page .info-item span {
    color: var(--candy-forest);
    font-size: 14px;
    font-weight: 900;
}

.products-page .modal-close-btn {
    width: 100%;
    margin-top: 23px;
    padding: 14px 20px;
    border-radius: 16px;
    background: var(--candy-forest);
    color: white;
}

.products-page .modal-close-btn:hover {
    background: var(--candy-pink);
}

.products-page .toast {
    right: 25px;
    bottom: 25px;
    left: auto;
    max-width: min(360px, calc(100% - 30px));
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 17px;
    background: var(--candy-forest-dark);
    color: white;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 20px 50px rgba(8, 43, 37, 0.3);
    transform: translateY(25px);
}

.products-page .toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1000px) {
    .catalog-hero {
        grid-template-columns: 1fr;
    }

    .catalog-hero-copy {
        text-align: center;
    }

    .catalog-kicker,
    .catalog-description {
        margin-inline: auto;
    }

    .catalog-hero-actions {
        justify-content: center;
    }

    .catalog-highlights {
        max-width: 700px;
        margin-inline: auto;
        margin-top: 32px;
    }

    .catalog-visual {
        min-height: 390px;
    }
}

@media (max-width: 760px) {
    .catalog-main {
        width: min(100% - 22px, 1240px);
        padding-top: 20px;
    }

    .catalog-hero {
        min-height: auto;
        padding: 44px 21px;
        border-radius: 28px;
    }

    .catalog-hero h1 {
        font-size: clamp(48px, 16vw, 68px);
        letter-spacing: -3px;
    }

    .catalog-description {
        font-size: 15px;
    }

    .catalog-hero-actions,
    .catalog-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .catalog-highlights {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .catalog-visual {
        min-height: 330px;
    }

    .catalog-product-sign {
        width: 225px;
        min-height: 270px;
    }

    .catalog-product-sign strong {
        font-size: 66px;
    }

    .catalog-orbit-large {
        width: 310px;
        height: 310px;
    }

    .catalog-orbit-small {
        width: 250px;
        height: 250px;
    }

    .catalog-section {
        padding: 28px 16px;
        border-radius: 28px;
    }

    .catalog-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalog-section-heading h2 {
        font-size: 40px;
        letter-spacing: -2px;
    }

    .catalog-bag-link {
        width: 100%;
        justify-content: center;
    }

    .products-page .categories-container {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 12px;
        border-radius: 18px;
        scrollbar-width: thin;
    }

    .products-page .category-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .products-page #product-container {
        grid-template-columns: 1fr;
    }

    .products-page .product-card p {
        min-height: 0;
    }

    .catalog-cta {
        padding: 30px 22px;
        border-radius: 28px;
    }

    .catalog-cta h2 {
        font-size: 39px;
    }

    .products-page .product-detail-modal .modal-content {
        padding: 26px 18px;
        border-radius: 25px;
    }

    .products-page .modal-info {
        grid-template-columns: 1fr;
    }

    .products-page .toast {
        right: 15px;
        bottom: 15px;
        left: 15px;
        max-width: none;
        text-align: center;
    }
}