
    .branch-row {
        /* --gap-mobile: 0.5rem; */
        gap: var(--gap-mobile);
    }

    @media (min-width: 1200px) {
        .branch-row {
            gap: 3rem;
            /* เท่ากับ gap-5 */
        }

        .col-xl-2 {
            flex: 0 0 auto;
            width: 21.666667%;
        }
    }

    .branch-info-stack {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        margin: 10px 0 18px;
        color: #fff;
    }


    .close-img {
        width: 100px;
        /* ขนาดไอคอน */
        height: 100px;
        object-fit: contain;
        filter: brightness(0) invert(1);
        /* ถ้าอยากให้เป็นสีขาว */
        transition: opacity 0.2s ease-in-out;
    }

    .custom-close {
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 20;
        filter: invert(1);
        /* ทำให้เป็นสีขาว ถ้าพื้นหลังมืด */
    }


    .close-img:hover {
        opacity: 0.7;
    }


    .close-icon {
        background: none;
        border: none;
        outline: none;
        font-size: 2.5rem;
        /* ขนาดกากบาท */
        line-height: 1;
        color: #fff;
        /* ถ้า background มืด ใช้สีขาว */
        cursor: pointer;
        opacity: 0.8;
        transition: opacity 0.2s ease-in-out;
    }

    .close-icon:hover {
        opacity: 1;
    }

    .offcanvas-footer {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
    }

    .branch-container.container-xxl {
        width: clamp(320px, 96vw, 1680px);
        max-width: 1680px;
        margin: 50px auto;
        padding-left: clamp(12px, 2vw, 28px);
        padding-right: clamp(12px, 2vw, 28px);
    }

    .branch-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
        width: 100%;
        max-width: 1440px;
        margin: 70px auto;
        padding: 0 20px;
        justify-content: center;
    }

    .modal-wrapper {
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
        background: transparent;
    }

    .modal-full-bg {
        position: relative;
        width: 100%;
        height: 90vh;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .modal-gradient-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1));
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        text-align: center;
    }



    .delivery-group {
        position: relative;
        display: inline-block;
    }

    .delivery-label {
        font-family: 'Brunson';
        position: absolute;
        left: 50%;
        top: 0;
        transform: translate(-50%, -50%);
        margin: 0;
        padding: 2px 12px;
        line-height: 1.1;
        letter-spacing: 1px;
        color: #ffffff;
        z-index: 2;
        pointer-events: none;
    }


    .delivery-buttons {
        padding-top: 12px;
    }

    .delivery-buttons {
        display: flex;
        justify-content: center;
        gap: 25px;
        padding: 20px;
        border-radius: 20px;
        background-color: rgba(0, 0, 0, 0.3);
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.5);
        max-width: 420px;
        margin: 0 auto;
    }

    .delivery-btn img {
        width: 80px;
        height: 80px;
        object-fit: contain;
        transition: transform 0.2s ease;
        border-radius: 18px;
    }

    .delivery-btn:hover img {
        transform: scale(1.05);
    }


    .simple-branch-card {
        /* width: 100%;
        aspect-ratio: 4 / 5; */
        border-radius: 10px;
        min-height: 600px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, .15);
        transition: transform .3s ease, box-shadow .3s ease;
    }


    .simple-branch-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    }

    .branch-background {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;

    }

    .branch-content {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 30px;
        box-sizing: border-box;

    }

    .branch-header {
        text-align: left;
        color: white;
    }

    .branch-name {
        font-family: "Bebas Neue";
        font-size: 2.5rem;
        font-weight: bold;
        margin: 0 0 2px 0;
        color: #ffd700;
        letter-spacing: 3px;
    }

    .branch-address {
        font-size: 1rem;
        margin: 0;
        color: white;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
        font-weight: 500;
    }

    .branch-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .branch-title {
        font-family: "Bebas Neue", sans-serif;
        font-size: 3rem;
        font-weight: 700;
        color: #FFD700;
        margin-bottom: 5px;
    }

    .branch-title-modal {
        font-family: "Bebas Neue", sans-serif;
        font-size: 5rem;
        font-weight: 700;
        color: #FFD700;
        margin-bottom: 0;
    }

    .branch-subtitle {
        font-size: 12px;
        /* margin-bottom: 30px; */
        color: #fff;
    }

    .branch-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 500px;
        align-items: center;
    }

    .branch-btn {
        font-family: 'Brunson';
        display: inline-block;
        width: 320px;
        padding: 14px 20px;
        font-size: 1.5rem;
        font-weight: 400;
        letter-spacing: 1px;
        text-transform: uppercase;
        border-radius: 10px;
        text-align: center;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .btn-yellow {
        background: #FFD700;
        color: black;
    }

    .btn-yellow:hover {
        background: #ffcc00;
    }

    .btn-outline {
        background: rgba(255, 255, 255, 0.9);
        color: rgb(0, 0, 0);
    }

    .btn-outline:hover {
        background: rgba(255, 255, 255, 0.4);
    }

    .action-btn {
        /* padding: 10px 10px 10px 10px; */
        border: none;
        border-radius: 25px;
        font-weight: 300;
        padding: 10px 16px;
        font-size: 1.2rem;
        letter-spacing: 1px;
        text-decoration: none;
        text-align: center;
        text-transform: uppercase;
        display: block;
        transition: all 0.3s ease;
    }

    .primary-btn {
        font-family: 'Brunson';
        background: rgba(255, 255, 255, 0.95);
        color: #333;
        box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
        border-radius: 10px;
    }

    .primary-btn:hover {
        background: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    }

    .small-btn {
        font-family: 'Brunson';
        letter-spacing: 1px;
        font-size: 1.2rem;

        /* ตัวอักษรเล็กกว่า */
        padding: 10px 16px;
        /* padding น้อยกว่า */
        border-radius: 20px;
        width: auto;
        /* ไม่กินเต็ม */
        display: inline-block;
        text-align: center;
        background: rgba(255, 255, 255, 0.074);
        color: white;
        border: 1px solid #FFD700;
        transition: all 0.3s ease;
        text-decoration: none;
        border-radius: 10px;
    }

    .small-btn:hover {
        background: rgba(255, 255, 255, 0.35);
        border-color: rgba(255, 255, 255, 0.6);
    }

    .secondary-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.7);
        transform: translateY(-2px);
    }

    .action-btn:hover {
        text-decoration: none;
    }



    /* Responsive Design */
    @media (max-width: 1200px) {

        .branch-container.container-xxl {
            width: clamp(320px, 96vw, 1680px);
            padding: 0 0 0 0;
            margin: 10px auto;
        }

        .branch-container {
            display: grid;
            grid-template-columns: repeat(4, minmax(200px, 1fr));
            width: 100%;
            gap: 10px;
            margin: 10px auto;
            padding: 0 0 0 0;
        }

        .simple-branch-card {
            /* width: 100%; */
            height:  '450px' ;
        }

        .branch-actions {
            display: flex;
            /* flex-direction: row; */
            gap: 12px;

        }

        .branch-btn {
            width: 300px;
        }

        .primary-btn {
            font-family: 'Brunson';
            background: rgba(255, 255, 255, 0.95);
            color: #333;
            box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
            width: 100%;
        }

        .primary-btn:hover {
            background: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
        }

    }

    @media (max-width: 768px) {

        .branch-container.container-xxl {
            width: 100%;
            margin: 5px auto;
            gap: 5px;
        }

        .branch-actions {
            flex-direction: column;

        }

        .branch-container {
            gap: 0;
            grid-template-columns: 1fr;
            width: 100%;
        }

        .action-btn {
            padding: 10px 16px;
        }

        .simple-branch-card {
            /* width: 100%; */
            border-radius: 0;
            height: 250px;
            min-height: 300px;
        }

        .branch-name {
            font-size: 4rem;
            line-height: 0.9;
        }

        /* .modal-dialog {
            max-width: 100%;
            margin: 0;
        } */

        .brand-info h3 {
            padding: 4px;
        }



        .modal-full-bg {
            height: 100vh !important;
        }

        .modal-gradient-overlay {
            padding: 20px;
        }


    }

    @media (max-width: 480px) {
        .branch-container {
            display: grid;
            grid-template-columns: repeat(1, 2fr);
            width: 100%;
            margin: 0 auto;
            gap: 5px;
        }

        .simple-branch-card {
            height: 180px;
            min-height: 100px;
        }

        .branch-name {
            font-size: 2rem;
        }

        .branch-address {

            font-size: 11px;
        }



        .brand-info h3 {
            padding: 6px;
        }

        .action-btn {
            padding: 12px 18px;
            font-size: 1.2rem;
        }
    }

    @media (max-width: 375px) {
        .branch-btn {
            width: 200px;
        }

        .branch-address {
                        font-weight: 600;
        }
    }

    @media (max-width: 320px) {

        .brand-info h3 {
            padding: 0;
        }


        .branch-btn {
            width: 200px;
        }



        .branch-content {
            padding: 12px;
        }

        .branch-title-modal {
            font-size: 4rem;
        }
    }
