
    /* =========================================
       DEALS SECTION
    ========================================= */

    /*
     * Sektionen är dold från början.
     *
     * JavaScript visar den först när:
     * 1. API-anropet är klart
     * 2. Det finns minst ett erbjudande
     */

    .deals-section {
        display: block;
		padding: 23px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .deals-section.loaded {
        display: block;
    }


    .deals-header {
        margin-bottom: 20px;
		text-align:center;
    }
	
h3#dealsTitle {
    font-size: 24px;
    font-weight: 700;
    color: #c30041;
    margin: 8px;
    border-radius: 6px;
}


    .deals-header p {
        margin: 0;

        color: #777;
    }


    /* =========================================
       CAROUSEL
    ========================================= */

    .deals-carousel {
        position: relative;
    }

    .deals-viewport {
        overflow: hidden;
    }

    .deals-track {
        display: flex;

        gap: 20px;

        overflow-x: auto;

        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;

        scrollbar-width: none;
        -ms-overflow-style: none;

        padding: 5px 2px 15px;
    }

    .deals-track::-webkit-scrollbar {
        display: none;
    }


    /* =========================================
       DEAL CARD
    ========================================= */

    .deal-card {
        flex: 0 0 calc((100% - 40px) / 3);

        min-width: 0;

        background: #fff;

        border-radius: 12px;

        overflow: hidden;

        box-shadow:
            0 4px 15px rgba(0, 0, 0, 0.10);

        scroll-snap-align: start;

        display: flex;
        flex-direction: column;

        text-decoration: none;
        color: inherit;

        cursor: pointer;

        transition:
            transform 0.2s ease,
            box-shadow 0.2s ease;
    }

    .deal-card:hover {
        transform: translateY(-3px);

        box-shadow:
            0 7px 22px rgba(0, 0, 0, 0.15);
    }

    .deal-card:focus-visible {
        outline: 3px solid #38bdf8;
        outline-offset: 3px;
    }


    /* =========================================
       IMAGE
    ========================================= */

    .deal-image {
        position: relative;

        width: 100%;

        aspect-ratio: 16 / 10;

        background-color: #eee;

        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }


    /* =========================================
       SIGNS
    ========================================= */

    .sign1,
    .sign2 {
        position: absolute;

        z-index: 2;

        background: rgba(0, 0, 0, 0.72);

        color: #fff;

        padding: 7px 11px;

        font-size: 13px;
        font-weight: 600;

        backdrop-filter: blur(3px);
    }

    .sign1 {
        top: 12px;
        right: 12px;

        border-radius: 6px;
    }

    .sign2 {
        bottom: 12px;
        right: 12px;

        border-radius: 6px;

        max-width: calc(100% - 24px);
    }


    /* =========================================
       CONTENT
    ========================================= */

    .deal-content {
        padding: 17px 18px 18px;

        display: flex;
        flex-direction: column;

        flex: 1;
    }


    .deal-name {
        margin: 0 0 5px;

        font-size: 19px;
        font-weight: 700;

        line-height: 1.25;
    }


    .deal-area {
        margin-bottom: 10px;

        font-size: 14px;

        color: #777;
    }


    .deal-description {
        margin: 0 0 15px;

        font-size: 14px;
        line-height: 1.45;

        color: #555;

        display: -webkit-box;

        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;

        overflow: hidden;
    }


    /* =========================================
       INFO
    ========================================= */

    .deal-info {
		display: flex;
		/* grid-template-columns: repeat(4, 1fr); */
		/* gap: 8px 15px; */
		font-size: 14px;
		flex-wrap: nowrap;
		align-content: flex-start;
		justify-content: space-between;
		text-align: center;
    }

    .deal-info-item {
        display: flex;

        flex-direction: column;

        gap: 2px;
    }

    .deal-info-label {
        font-size: 11px;

        text-transform: uppercase;

        letter-spacing: 0.04em;

        color: #999;
    }

    .deal-info-value {
        font-weight: 600;
    }


    /* =========================================
       PRICE
    ========================================= */

    .deal-bottom {
        margin-top: auto;

        padding-top: 18px;

        display: flex;

        justify-content: flex-end;

        align-items: flex-end;

        gap: 9px;
    }

    .regular-price {
        color: #999;

        text-decoration: line-through;

        font-size: 14px;
    }

    .deal-price {
        font-size: 23px;

        font-weight: 800;

        color: #c30041;
    }


    /* =========================================
       ARROWS
    ========================================= */

    .carousel-arrow {
        position: absolute;

        top: 50%;

        transform: translateY(-50%);

        width: 44px;
        height: 44px;

        border: none;

        border-radius: 50%;

        background: #fff;

        color: #222;

        box-shadow:
            0 3px 12px rgba(0, 0, 0, 0.18);

        cursor: pointer;

        display: flex;

        align-items: center;
        justify-content: center;

        font-size: 24px;

        z-index: 10;

        transition:
            transform 0.2s,
            box-shadow 0.2s;
    }

    .carousel-arrow:hover {
        transform:
            translateY(-50%)
            scale(1.05);

        box-shadow:
            0 5px 18px rgba(0, 0, 0, 0.22);
    }

    .carousel-arrow.left {
        left: -22px;
    }

    .carousel-arrow.right {
        right: -22px;
    }


    .carousel-arrow.hidden {
        display: none !important;
    }


    /* =========================================
       INDICATOR
    ========================================= */


.deals-indicator {
    width: 100%;
    max-width: 500px;
    height: 6px;
    margin: 12px auto 0;
    background: #e1e1e1;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    touch-action: none;
}

.indicator-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 40px;
    background: #333;
    border-radius: 999px;
    transform: translateX(0);
    cursor: grab;
    transition: transform 0.08s linear;
}

.indicator-progress.dragging {
    cursor: grabbing;
    transition: none;
}

    /* =========================================
       TABLET
    ========================================= */

    @media (max-width: 900px) {

        .deal-card {
            flex-basis:
                calc((100% - 20px) / 2);
        }
    }


    /* =========================================
       MOBILE
    ========================================= */

    @media (max-width: 600px) {

        .deals-section { 
            padding: 22px 0px 22px 22px;
        }
		.deals-indicator-container,.deals-header {
			padding-right: 22px;
		}

        .deals-header h2 {
            font-size: 25px;
        }

        .deals-track {
            gap: 14px;

            padding-left: 2px;
            padding-right: 35px;
        }

        .deal-card {
            flex-basis: 85%;
        }

        .carousel-arrow {
            display: none;
        }

        .deal-image {
            aspect-ratio: 16 / 10;
        }
    }
