.cig-primary{
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: transparent;
    border: 2px solid #aaa;
    border-radius: 50px;
    color: black;
    text-align: center;
    margin: 3px;
    padding: 10px 30px;
}

.cig-primary:hover{
    background-color: #ff730020;
    border: 2px solid #ff7300;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.cig-burger-title{
    color: rgb(255,60,0);
}

.cig-burger-punchline {
    color: rgb(255,134,22);
}

/* categories */
.order-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.category {
    display: flex;
    align-items: center;
    height: 80px;
    text-decoration: none;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin: 2px;
    padding: 10px 20px;
}

.category img {
    flex: 0 0 auto;
    max-height: 44px;
    max-width: 44px;
}

.category p {
    overflow-wrap: anywhere;
}

.category:hover {
    background-color: rgb(255, 215, 141);
    border: 1px solid #ff7300;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.category-link {
    text-decoration: none;
    color: black;
}

.no-link {
    text-decoration: none;
}

.order-product-not-linkable {
    height: 100%;
    border: 1px solid rgb(220, 220, 220);
    border-radius: 10px;
    padding: 10px;
    margin: 5px;
    cursor: not-allowed;
}

.order-product {
    height: 100%;
    border: 1px solid rgb(220,220,220);
    border-radius: 10px;
    padding: 10px;
    margin: 5px;
}

.order-product:hover {
    background-color: white;
    border: 1px solid #ff7300;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.order-product-title {
    color: rgb(255, 127, 68);
    font-size: 24px;
    font-weight: bold;
}

.order-product-title-large {
    color: rgb(255, 127, 68);
    font-size: 36px;
    font-weight: bold;
}

.order-product-description {
    color: rgb(100, 100, 100);
    font-size: 22px;
    padding: 0px;
    margin: 0px;
}

.product-order-quantity{
    color: rgb(255, 102, 0);
    font-size: 46px;
    font-weight: bold;
    padding: 0px;
    margin: 0px;
}

.order-product-price {
    color: rgb(134, 1, 1);
    font-size: 36px;
    font-weight: bold;
    padding: 0px;
    margin: 0px;
}

.order-product-old-price {
    color: rgb(100, 100, 100);
    font-size: 24px;
    padding: 0px;
    margin: 0px;
    text-decoration: line-through;
}

.discount-percentage {
    background-color: rgb(255, 0, 0);
    color: white;
    font-size: 18px;
    border-radius: 50px;
    padding: 5px;
    font-weight: bold;
}

.product-out-of-stock {
    font-weight: bold;
    font-size: 24px;
    padding: 8px;
    text-decoration: line-through;
    color: rgb(200,200,200);
}

.order-info-link {
    color: black;
    border: 1px solid #ddd;
}

.order-info-link:hover {
    background-color: #ffc393;
}

.order-resume {
    font-family: 'Courier New', Courier, monospace;
    font-size: 22px;
    font-weight: bold;
}

#pin_number {
    font-family: 'Courier New', Courier, monospace;
    padding: 5px;
    font-size: 52px;
    font-weight: bold;
    background-color: #9db191;
}

.order-resume-final-font {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}

.order-product-image {
    aspect-ratio: 1 / 1;
    max-height: 160px;
    object-fit: contain;
}

.product-price-row,
.product-price-box {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.product-price-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 28px;
    padding: 24px;
}

.quantity-controls {
    align-items: center;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
}

.quantity-button {
    min-width: 86px;
    padding-left: 24px;
    padding-right: 24px;
}

.order-actions {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.order-actions .cig-primary {
    min-width: 210px;
}

.checkout-product-row {
    gap: 10px 0;
    padding: 12px 0;
}

.checkout-product-main {
    align-items: center;
    display: flex;
    gap: 10px;
}

.checkout-product-main .order-product-title {
    margin: 0;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    overflow-x: hidden;
}

.order-page {
    width: 100%;
}

.order-card {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.btn,
.cig-primary,
a,
button {
    touch-action: manipulation;
}

@media (max-width: 768px) {
    .container,
    .container-fluid {
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .cig-primary {
        border-radius: 12px;
        display: inline-flex;
        justify-content: center;
        line-height: 1.2;
        min-height: 46px;
        padding: 10px 18px;
        width: 100%;
    }

    .order-card {
        border-left: 0;
        border-radius: 0;
        border-right: 0;
        padding: 16px !important;
    }

    .order-categories {
        flex-wrap: nowrap;
        justify-content: flex-start;
        margin-left: -12px;
        margin-right: -12px;
        overflow-x: auto;
        padding: 0 12px 8px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .category-link {
        flex: 0 0 auto;
        max-width: 150px;
        scroll-snap-align: start;
    }

    .category {
        flex-direction: column;
        height: auto;
        justify-content: center;
        min-height: 96px;
        padding: 10px 12px;
        width: 132px;
    }

    .category p {
        font-size: 0.9rem;
        line-height: 1.15;
        margin: 6px 0 0 !important;
        text-align: center;
    }

    .order-product,
    .order-product-not-linkable {
        margin: 6px 0;
        padding: 12px;
    }

    .order-product-image {
        max-height: 132px;
    }

    .order-product-title {
        font-size: 1.35rem;
        line-height: 1.18;
        margin: 10px 0 6px;
    }

    .order-product-title-large {
        font-size: 1.8rem;
        line-height: 1.15;
    }

    .order-product-description {
        font-size: 1rem;
        line-height: 1.38;
    }

    .order-product-price {
        font-size: 1.7rem;
    }

    .order-product-old-price {
        font-size: 1.1rem;
    }

    .product-order-quantity {
        font-size: 2.2rem;
    }

    .product-price-box {
        border-radius: 16px;
        margin-top: 12px;
        padding: 16px;
    }

    .quantity-controls {
        gap: 10px;
        grid-template-columns: 1fr auto 1fr;
        margin-bottom: 28px !important;
        margin-top: 28px !important;
    }

    .quantity-button {
        min-width: 64px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .order-actions {
        flex-direction: column;
        gap: 10px;
    }

    .order-actions .cig-primary {
        min-width: 0;
    }

    .checkout-product-main {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .checkout-product-main img {
        width: 72px;
    }

    .checkout-product-main .cig-primary {
        flex: 0 0 46px;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 46px;
    }

    .checkout-product-main .order-product-title {
        flex: 1 1 120px;
        min-width: 0;
    }

    .checkout-product-price {
        justify-content: flex-start !important;
    }

    .checkout-product-price h3 {
        font-size: 1.15rem;
        overflow-wrap: anywhere;
    }

    .order-resume {
        font-size: 1rem;
        overflow-wrap: anywhere;
    }

    #pin_number {
        font-size: 2.4rem;
        overflow-wrap: anywhere;
    }

    .btn {
        min-height: 44px;
        white-space: normal;
    }

    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

@media (max-width: 420px) {
    .order-product-title-large {
        font-size: 1.55rem;
    }

    .order-product-price {
        font-size: 1.45rem;
    }
}
