/* ------------------------------------------------ */
/* GLOBAL SETTINGS                                  */
/* ------------------------------------------------ */

html, body {
    touch-action: manipulation;
    -webkit-touch-callout: none;
}

body {
    font-family: Arial, sans-serif;
    background: #E7EDF0;
    margin: 0;
    padding: 0;
    color: #003F47;
}

#mobiles-shop-wrapper {
    padding: 20px;
    max-width: 650px;
    margin: auto;
}

/* ------------------------------------------------ */
/* TITLES                                            */
/* ------------------------------------------------ */

.page-title {
    font-size: 22px;
    font-weight: bold;
    background: #fff;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #C1CED3;
    text-align: center;
    margin-bottom: 20px;
}

/* ------------------------------------------------ */
/* TEAL DIVIDER                                      */
/* ------------------------------------------------ */

.spacer {
    border: none;
    height: 2px;
    background: #0E4652;
    width: 94%;
    margin: 20px auto;
}

/* ------------------------------------------------ */
/* CATEGORY BUTTONS                                  */
/* ------------------------------------------------ */

.category-button {
    width: 94%;
    margin: 10px auto;
    padding: 16px;
    font-size: 18px;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.20);
}

.category-button[data-cat="carwrap"] {
    background: #4fa35f;
}
.category-button[data-cat="ppf"] {
    background: #b63e36;
}
.category-button[data-cat="windowfilm"] {
    background: #007db3;
}

.category-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-arrow {
    font-size: 22px;
    transition: transform 0.3s;
}

.category-arrow.open {
    transform: rotate(180deg);
}

/* ------------------------------------------------ */
/* CATEGORY PRODUCT ROLLOUT (FIXED VERSION)          */
/* ------------------------------------------------ */

.category-products {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    width: 94%;
    margin: auto;
}

.category-products.open {
    max-height: 9999px; /* nooit meer afkappen */
    padding-top: 10px;
}

/* ------------------------------------------------ */
/* PRODUCT CARDS                                     */
/* ------------------------------------------------ */

.product {
    display: flex;
    padding: 16px;
    background: #fff;
    border: 1px solid #C1CED3;
    border-radius: 12px;
    margin-bottom: 16px;
    justify-content: space-between;
}

.product img {
    width: 110px;
    border-radius: 10px;
}

.product-info {
    font-size: 16px;
    margin-top: 6px;
}

.excl {
    font-size: 13px;
    color: #3F7E86;
}

/* ------------------------------------------------ */
/* QUANTITY BUTTONS (ANTI-ZOOM, BIG TOUCH AREA)     */
/* ------------------------------------------------ */

.product-controls {
    display: flex;
    gap: 18px;
    align-items: center;
    touch-action: manipulation;
}

.btn {
    width: 60px;
    height: 60px;
    font-size: 32px;
    border-radius: 12px;
    border: none;
    background: #3F7E86;
    color: white;
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;

    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.qty {
    width: 55px;
    text-align: center;
    font-size: 26px;
    color: #003F47;
}

/* ------------------------------------------------ */
/* INPUT FIELDS                                      */
/* ------------------------------------------------ */

.input {
    width: 94%;
    font-size: 18px;
    padding: 14px;
    border: 1px solid #C1CED3;
    border-radius: 10px;
    display: block;
    margin: 12px auto;
    background: #fff;
}

/* ------------------------------------------------ */
/* TOTAL BLOCK                                       */
/* ------------------------------------------------ */

#total {
    font-weight: bold;
    font-size: 24px;
    text-align: right;
    margin-right: 3%;
}

#totalNote {
    text-align: right;
    font-size: 14px;
    color: #3F7E86;
    margin-right: 3%;
    margin-bottom: 20px;
}

/* ------------------------------------------------ */
/* SELECTED COUNT                                    */
/* ------------------------------------------------ */

.selected-count {
    text-align: center;
    margin: 10px 0 20px 0;
    font-size: 18px;
    font-weight: bold;
    color: #003F47;
}

/* ------------------------------------------------ */
/* SUBMIT BUTTON                                     */
/* ------------------------------------------------ */

.submit-btn {
    width: 94%;
    margin: 20px auto;
    display: block;
    background: linear-gradient(135deg, #d7a880 0%, #a36a3e 100%);
    padding: 18px;
    font-size: 20px;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.20);
}

.submit-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 100%;
    background: linear-gradient(115deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 100%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -60%; }
    55% { left: 130%; }
    100% { left: 130%; }
}

/* ------------------------------------------------ */
/* MODAL                                             */
/* ------------------------------------------------ */

.modal-overlay {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.55);
    display:none;
    justify-content:center;
    align-items:center;
}

.modal-box {
    background:#fff;
    padding:30px;
    width:80%;
    max-width:350px;
    text-align:center;
    border-radius:14px;
}

.modal-title {
    font-size:20px;
    font-weight:bold;
    margin-bottom:10px;
}

/* ------------------------------------------------ */
/* FOOTER                                            */
/* ------------------------------------------------ */

.footer-note {
    text-align:center;
    margin-top:40px;
    padding-bottom:20px;
}
