/* ========== Products ========== */

.categori {
    text-align: center;
    padding: 5px;
    padding-bottom: 40px;
    margin: 10px;
    color: var(--main-color);
}

.productContainer {
    margin: 20px auto;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: center;
    position: relative;
}

.wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.title_name {
    font-weight: normal;
    margin: 0px 0px;
    text-align: center;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--main-color);
    text-transform: uppercase;
}

.product_link {
    transition: ease .5s;
    text-decoration: underline;
    cursor: pointer;
}

.product_link:hover {
    color: var(--main-color);
}


/* ========== productPacket ========== */
.productPacket {
    background: var(--primary-color-2);
    border-radius: var(--radius);
    padding: 10px;
    transition: ease .25s;
    min-width: 300px;
    position: relative;
    cursor: pointer;
    box-shadow: var(--box-shadow-white);
    border: 1px solid #ccc;
}

.productPacket img {
    width: auto;
    max-height: 300px;
    height: auto;
    display: block;
    margin: 10px auto;
    object-fit: cover;
    mix-blend-mode: multiply;
}


.productPacket .productPacket_Info,
.productSale .productPacket_Info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    padding: 10px 0px;
}

.productPacket .productPacket_Info .product_price h3 {
    padding: 5px 10px;
    background-color: var(--white-color);
    border-radius: 5px;
    font-size: 1rem;
    color: var(--main-color);
    text-align: center;
    cursor: pointer;
    transition: ease .25s;
}

.productPacket .productPacket_Info .product_price h3 .normPris {
    text-decoration: line-through;
    font-style: italic;
    color: rgba(200, 0, 0, 0.75);
}





/* ========== productInfo ========== */
.productInfo {
    background: var(--linear-gradient);
    border-radius: var(--radius);
    gap: 20px;
    padding: 10px;
    transition: ease .25s;
    width: 70%;
    box-shadow: var(--box-shadow-white);
    border: 1px solid #ccc;
}

.productInfo .product_description {
    margin-top: 10px;
}

.productInfo .product_content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    border-top: 2px solid var(--main-color);
    padding-top: 10px
}

.productInfo a {
    color: #00abf0;
    text-decoration: underline;
}





/* ========== productSale ========== */
.sale {
    border-top: 3px solid gold;
    border-bottom: 3px solid gold;
    padding: 20px;
}

.saleText {
    text-align: center;
    color: goldenrod;
    padding: 5px;
    margin: 10px;
}

.rabat {
    text-align: center;
    border-top: 3px solid gold;
}

.rabat span {
    color: goldenrod;
    font-weight: bolder;
}

.rabat h4 {
    font-weight: normal;
}

.productSale {
    background: var(--linear-gradient);
    width: 45%;
    display: flex;
    gap: 20px;
    padding: 10px;
    transition: ease .25s;
    border-radius: var(--radius);
    box-shadow: var(--box-shadow-white);

    border: 3px solid #0000;
    background: linear-gradient(var(--primary-color-1), var(--primary-color-1)) padding-box, linear-gradient(var(--angle),
            var(--primary-color-1),
            gold) border-box;
    animation: 4s rotate linear infinite;
}

.productSale::before {
    background-color: goldenrod;
    color: #fff;
    content: "TILBUD";
    font-weight: b;
    z-index: 1;
    top: -14px;
    padding: 5px 7px;
    border-radius: var(--radius);
    border: 2px solid gold;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.productSale img {
    max-width: 225px;
    height: auto;
    display: block;
    margin: auto;
    object-fit: cover;
    mix-blend-mode: multiply;
}

.productSale:hover .productPacket_Info button {
    background-color: var(--primary-color-1);
    color: goldenrod;
    border: 1px solid goldenrod;
}

.productSale .productPacket_Info .product_price h3 {
    padding: 2px 10px;
    background-color: var(--main-color);
    border-radius: 5px;
    font-size: 1rem;
    color: var(--white-color);
    text-align: center;
    transition: ease .25s;
    font-style: italic
}

.productSale:hover .productPacket_Info .product_price h3 {
    background-color: gold;
    color: var(--text-color);
    border: 1px solid goldenrod;
}





/* ========== showProductPacket ========== */
.showProductPacket {
    background: var(--primary-color-2);
    border-radius: var(--radius);
    padding: 10px;
    transition: ease .25s;
    width: 90%;
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 25px;
    box-shadow: var(--box-shadow-white);
    border: 1px solid #ccc;
}

.showProductPacket .imgShowContainer {
    width: 40%;
}

.showProductPacket .show_product_content {
    max-width: 60%;
}

.showProductPacket .show_product_info {
    margin-top: 1rem;
    margin-bottom: 25px;
}

.showProductPacket .show_product_info h2 {
    border-bottom: 1px solid var(--main-color);
    margin-bottom: .5rem;
}

.showProductPacket .show_product_info ul li::before {
    content: "✔";
    font-size: 15px;
    vertical-align: baseline;
    line-height: 22px;
}


.showProductPacket .show_product_info .product_price h3 {
    padding: 5px 10px;
    background-color: var(--white-color);
    width: fit-content;
    border-radius: 5px;
    font-size: 1.2rem;
    color: var(--main-color);
    transition: ease .25s;
}

.showProductPacket .show_product_info .product_price h3 .normPris {
    text-decoration: line-through;
    font-style: italic;
    color: rgba(150, 0, 0, 0.5);
}

.showProductPacket .show_product_info .product_price {
    display: flex;
    flex-direction: row;
    align-items: center ;
}

.showProductPacket .show_product_info .product_price p {
    margin-left: 10px;
    align-items: center;
    border-radius: 5px;
    color: var(--main-color);
    font-style: italic;
}

.add span {
    color: var(--second-color);
    font-style: italic;
    font-weight: normal !important;
    font-size: 1rem !important;
}

.add a {
    color: var(--main-color);
}

.add a:hover {
    text-decoration: underline;
}

.show_product_description table {
    max-width: 250px;
}

.show_product_description tr {
    background-color: #eee;
    font-weight: bold;
}





/* ========== TILBUD ========== */
.productPacket:has(.rab) {
    background: linear-gradient(var(--primary-color-1), var(--primary-color-1)) padding-box,
        linear-gradient(to bottom, #CC231E, rgb(83, 203, 243)) border-box;
    border-radius: var(--radius);
    border: 2px solid transparent;
}

.showProductPacket:has(.rab) {
    background: linear-gradient(var(--primary-color-1), var(--primary-color-1)) padding-box,
        linear-gradient(to bottom, #CC231E, rgb(83, 203, 243)) border-box;
    border-radius: var(--radius);
    border: 2px solid transparent;
}

.rab::before {
    background-color: #CC231E;
    color: var(--white-color);
    content: attr(data-rabat);
    z-index: 1;
    top: -14px;
    padding: 5px 7px;
    border-radius: var(--radius);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}



/* ========== Popular & most ========== */
.popular::after {
    background-color: var(--main-color);
    color: #fff;
    content: "Mest populær";
    z-index: 1;
    width: 110px;
    top: -14px;
    padding: 5px 7px;
    border-radius: var(--radius);
    border: 2px solid #00268f;
    position: absolute;
    text-align: center;
    left: 70%;
    rotate: 30deg;
}

.popularShow::after {
    background-color: var(--main-color);
    color: #fff;
    content: "Mest populær";
    z-index: 1;
    width: 110px;
    top: -14px;
    padding: 5px 7px;
    border-radius: var(--radius);
    border: 2px solid #00268f;
    position: absolute;
    text-align: center;
    left: -50px;
    rotate: -30deg;
}

.productPacket:has(.popular) {
    scale: 1.015;
    border: 2px solid #0000;
    background: linear-gradient(var(--primary-color-2), var(--primary-color-2)) padding-box, linear-gradient(var(--angle),
            red,
            gold,
            var(--main-color)) border-box;
    animation: 4s rotate linear infinite;
}

.showProductPacket:has(.popularShow) {
    border: 2px solid #0000;
    background: linear-gradient(var(--primary-color-2), var(--primary-color-2)) padding-box, linear-gradient(var(--angle),
            red,
            gold,
            var(--main-color)) border-box;
    animation: 4s rotate linear infinite;
}

/* Most */
.most::after {
    background-color: goldenrod;
    color: #fff;
    content: "Mest til prisen";
    z-index: 1;
    width: 110px;
    top: -14px;
    padding: 5px 7px;
    border-radius: var(--radius);
    border: 2px solid gold;
    position: absolute;
    text-align: center;
    left: 70%;
    rotate: 30deg;
}

.mostShow::after {
    background-color: goldenrod;
    color: #fff;
    content: "Mest til prisen";
    z-index: 1;
    width: 110px;
    top: -14px;
    padding: 5px 7px;
    border-radius: var(--radius);
    border: 2px solid gold;
    position: absolute;
    text-align: center;
    left: -50px;
    rotate: -30deg;
}

.productPacket:has(.most) {
    scale: 1.01;
    border: 2px solid #0000;
    background: linear-gradient(var(--primary-color-2), var(--primary-color-2)) padding-box, linear-gradient(var(--angle),
            goldenrod,
            gold,
            white) border-box;
    animation: 4s rotate linear infinite;
}

.showProductPacket:has(.mostShow) {
    border: 2px solid #0000;
    background: linear-gradient(var(--primary-color-2), var(--primary-color-2)) padding-box, linear-gradient(var(--angle),
            goldenrod,
            gold) border-box;
    animation: 4s rotate linear infinite;
}

@keyframes rotate {
    to {
        --angle: 360deg;
    }
}

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}





/* ========== productItem ========== */
.productItem {
    background: var(--linear-gradient);
    width: 40%;
    border-radius: var(--radius);
    display: flex;
    gap: 20px;
    padding: 10px;
    transition: ease .25s;
    box-shadow: var(--box-shadow-white);
    border: 1px solid #ccc;
}

.productItem .product_content,
.productSale .product_content {
    width: 100%;
    padding-top: 10px
}

.productPacket:hover,
.productItem:hover,
.productSale:hover {
    transform: scale(1.025);
}

.productItem img {
    width: 175px;
    height: 175px;
    display: block;
    margin: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.productContainer ul li::before {
    content: "∘";
    font-size: 25px;
    vertical-align: sub;
    line-height: 30px;
    padding-right: 10px;
    color: var(--main-color);
}

.product_amount {
    margin-top: 10px;
    font-style: italic;
    color: var(--main-color);
}



/* ========== Pris selector Uplights ========== */
.animated-select {
    padding: 5px 10px;
    border-radius: var(--radius);
    border: 4px solid transparent;
    background-color: var(--white-color);
    box-shadow: 0 0 0 0px var(--main-color-alpha);
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    outline: none;
}

/* Prisvisning */
.pris-selector p {
    font-weight: 500;
    margin: 8px 0;
}

/* Hvis du vil gøre priserne lidt mere “pop” */
#total-pris {
    font-weight: 600;
    padding: 5px 10px;
    background-color: var(--white-color);
    border-radius: 5px;
    font-size: 1rem;
    color: var(--main-color);
    text-align: center;
    cursor: pointer;
    transition: ease .25s;}

#pris-pr-stk {
    font-weight: 600;
    color: var(--main-color-alpha);
}
