/* gift modal */
#giftModal .nav-pills .nav-link,
#addMessageModal .nav-pills .nav-link,
.addons-slider-container .nav-pills .nav-item,
.addons-slider-container .nav-pills .nav-link {
    border-bottom: 2px solid #bbbaba;
    color: #bbbaba;
    background: none;
}

#addMessageModal .nav-pills .nav-link {
    border-bottom: 0;
}

#addMessageModal .nav-pills {
    border-bottom: 1px solid #bbbaba;
}

#giftModal .nav-pills .nav-link.active,
#addMessageModal .nav-pills .nav-link.active {
    color: black !important;
    border-bottom: 2px solid black !important;
}

#message-category-tab {
    background: none;
}

/* ===== Modal container ===== */
#giftModal .modal-dialog {
    max-width: 700px;
    height: 90vh;
    margin: 5vh auto;
}

#giftModal .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

/* ===== Header ===== */
#giftModal .modal-header {
    flex-shrink: 0;
    padding: 16px 20px;
    border-bottom: 1px solid #faf8f4;
}

#giftModal .modal-title {
    font-size: 20px;
    font-weight: 600;
}

/* ===== Tabs ===== */
#giftModal .nav-pills {
    max-width: 670px;
    width: 100%;
    margin: 0 auto 12px;
    padding: 6px;
    background: #eee;
    border-radius: 50px;
}

#giftModal .nav-pills .nav-item {
    flex: 1;
}

#giftModal .nav-pills .nav-link {
    border-radius: 24px;
    font-weight: 500;
    color: #0a4a4a;
    height: 40px;
    font-size: 16px;
}

#giftModal .nav-pills .nav-link.active {
    background: #ffffff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

/* ===== Modal body ===== */
#giftModal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* ===== Card grid ===== */
.a6-select-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding-bottom: 20px;
    justify-content: center !important;
}

/* ===== Gift cards layout ===== */
.gift-main-card,
.gift-addon-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #eee;
}

.gift-main-card {
    margin-top: 12px;
}

.gift-addon-card {
    margin-top: 0px;
}

/* ===== A6 preview ===== */
.a6-card {
    width: 105mm;
    height: 148mm;
    aspect-ratio: 105 / 148;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.a6-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.a6-card.front {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.a6-card .Qrdiv img {
    max-width: 38mm;
}

.a6-preview-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .a6-card {
        width: 90mm;
        height: 127mm;
    }
}

/* ===== Card select template ===== */
.card-imag {
    max-width: 250px;
    width: 100%;
    height: 250px;
    aspect-ratio: 105 / 148;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: all 0.25s ease;
}

.card-imag:hover {
    transform: translateY(-4px);
}

.card-imag.active {
    outline: 3px solid #e05b8b;
    outline-offset: 4px;
}

.card-imag .price-div {
    font-size: 14px;
    white-space: nowrap;
}

.card-imag .circle-div {
    width: 22px;
    height: 22px;
}

.card-imag.active .circle-div {
    background: #e05b8b !important;
    padding: 4px 6px !important;
    color: white;
}

.card-imag.active .circle-div i {
    display: block !important;
}

/* ===== Image scaling ===== */
.gift-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: rgb(233, 233, 233);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .card-imag {
        width: 80mm;
        height: 113mm;
        display: block;
    }
}

#message_template_card img {
    width: 70% !important;
}

/* ===== Footer ===== */
#giftModal .modal-footer {
    flex-shrink: 0;
    padding: 16px 20px;
    border-top: 1px solid #eee;
    background: #fff;
    display: flex;
    justify-content: space-between;
}

#giftModal .modal-footer .btn {
    min-width: 300px;
    border-radius: 30px;
    font-size: 16px;
}

/* ===== Utilities ===== */
.cursor-pointer {
    cursor: pointer;
}

.giftcard-included-options-note {
    display: none;
}

.make-it-perfect .tabs-wrapper {
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.make-it-perfect .tabs {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
}

.make-it-perfect .tab {
    padding: 10px 20px;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.make-it-perfect .tab.active {
    font-weight: 700;
    border-bottom: 2px solid #007bff;
}

.make-it-perfect .cat_left,
.make-it-perfect .cat_right {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    transition: background-color 0.2s, color 0.2s;
}

.make-it-perfect .cat_left:hover,
.make-it-perfect .cat_right:hover {
    background-color: #fbfbfb;
    color: #000;
    border-color: #aeaeae;
}

.make-it-perfect .products-grid {
    margin-top: 20px;
}

.gift-image-div {
    border: 1px dashed black;
    border-radius: 8px;
    padding: 8px;
    height: 210px;
}

.gift-image {
    max-height: 210px !important;
    object-fit: cover;
    background: rgb(233, 233, 233);
    border-radius: 8px;
}

.w-14 {
    width: 30% !important;
}

.addimgmodal {
    height: 300px !important;
    width: 100%;
    object-fit: cover;
}

/* =========================
   ADDONS SLIDER
========================= */

.addons-slider-container .slick-prev {
    left: -55px !important;
    top: 45% !important;
}

.addons-slider-container .slick-next {
    top: 45% !important;
}

@media screen and (max-width: 500px) {
    .addons-slider-container .slick-prev {
        left: -15px !important;
    }
    #giftModal .modal-footer{
        padding: 12px 0 !important;
    }

}

/* =========================
   ADDON BUTTONS
========================= */

.addon-add {
    line-height: 1;
    background: #e05b8b !important;
    color: white;
    border-radius: 22px !important;
    border: 0 !important;
}

.addon-add.Padded {
    background: #ac0f53 !important;
}

.added-check {
    top: 2px;
    right: 6px;
    color: #ac0f53;
}

.addon-products.active {
    color: black !important;
    font-weight: 600;
}

/* =========================
   ADDON TABS (SLICK)
========================= */

.addonTabsslider .nav-item.slick-slide.slick-current.slick-active {
    border-color: #040404;
}

.addonTabsslider .nav-item.slick-slide.slick-current.slick-active button {
    color: black;
}

/* =========================
   MESSAGES
========================= */

.message-group {
    display: none;
}

.message-group.active {
    display: block;
}

/* =========================
   UTILITIES
========================= */

.cursor-pointer:hover {
    background-color: #f0f0f0;
}

.bg-skylight {
    background-color: #36bac7;
}

.text-border-sky {
    color: #36bac7 !important;
    border-color: #36bac7 !important;
}

.pb-65 {
    padding-bottom: 65px;
}

/* =========================
   GIFT CARD PREVIEW
========================= */

.prev-col {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    height: 370px;
    width: 80%;
}
.modal-preview-scope .card-message-preview {
    height: 462px !important;
    display: flex;
    flex-direction: column;

}
.modal-preview-scope .gift-card-message {
    flex: 1;                      /* take available space */
    display: flex;
    flex-direction: column;
    justify-content: center;      /* 👈 vertical center */
    align-items: center;          /* horizontal center */
    padding: 0;
    margin: 0;
    list-style: none;
}




.card-front-side .prev-col {
    min-height: 340px;
    border-radius: 12px;
    height:400px;
}

.gift-main-card .row.pb-5 {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* =========================
   QR SECTION
========================= */

.Qrdiv {
    background: #f0ece3;
    padding: 6px;
    border-radius: 5px;
}

.qrright {
    font-size: 13px;
}

.qr-entry {
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    overflow: hidden;
}

.qr-icon {
    width: 35px;
    height: 35px;
    background-color: red;
    border-radius: 50%;
}

.qr-icon i {
    color: white;
    font-size: 18px;
}

.qr-play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #fff;
    line-height: 0;
}

.qr-play-icon svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.qr-text {
    flex: 1;
    min-width: 0;
    font-family: 'Poppins', sans-serif;
}

.qr-text .title {
    font-size: 14px;
    line-height: 1.4;
    word-break: break-all;
    overflow-wrap: anywhere;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.qr-text .subtitle {
    font-size: 0.9rem;
    color: gray;
}

.delete-icon {
    margin-left: auto;
    cursor: pointer;
}

.giftcard-included-options-note {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f8f1f3;
    color: #6c5761;
    font-size: 13px;
    line-height: 1.5;
}

.gift-card-included-copy {
    display: block;
    max-width: 420px;
    line-height: 1.5;
}

.remove-gift-card {
    cursor: pointer;
    z-index: 5;
    position: relative;
}


/* =========================
   PRODUCT / ADDONS
========================= */

.slick-slider .product-Card img {
    width: 100%;
}

.product-slider {
    padding-inline: 0 !important;
}

/* =========================
   RESPONSIVE
========================= */

@media screen and (min-width: 800px) {
    div#pills-select-card {
        height: 430px;
    }
}

@media screen and (max-width: 500px) {
    .card-imag {
        width: 100%;
        height: 330px;
        border-radius: 10px;
        border: 2px solid transparent;
        overflow: hidden;
    }

    #pills-add-message form .w-75 {
        width: 100% !important;
    }
    #giftModal .modal-footer .btn {
        min-width: 45%;
    }
    .gift-main-card, .gift-addon-card {
        padding: 20px 0px;
    }
    .taxonomy-occasion-section .col-md-3.col-6 {
        padding: 0;
    }
    .gift-addon-card .col-md-3.col-6 {
        padding: 0;
    }
}

/* =========================
   FONT
========================= */

@font-face {
    font-family: 'BourtonHandBase';
    src: url('<?php echo get_template_directory_uri(); ?>/assets/fonts/Kimmy Design - BourtonHandBase.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* =========================
   GIFT CARD CONTENT
========================= */

.gift-card-wrapper {
    background: #fff;
    padding: 0;
    height: 100%;
}

/* Center everything nicely (UPDATED) */
.gift-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    gap: 12px; /* reduced */
    padding: 24px 0px;
}

/* Logo */
.gift-logo {
    margin-bottom: 20px;

}

.gift-logo img {
    max-width: 120px; /* smaller like reference */
}
.card-message-preview .gift-logo img {
    max-width: 135px; /* smaller like reference */
}
.card-message-preview .gift-card-message .message {
    font-size: 17px;
    line-height: 21px;
}
.card-message-preview .qrcodeImg{
    width: 65px;
    height: 65px !important;
}


/* Message block */
.gift-card-message {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 85%;
    flex:1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* General message text */
.gift-card-message li {
    text-transform: none; /* reference is NOT all caps */
    letter-spacing: 0.5px;
    word-spacing: 2px;
    color: #5a3b2e;
    font-weight: 600;
    font-size: 15px;
    font-family: 'Brandon_Grotesque';
    margin-bottom: 10px;
    word-break: break-word;
}

/* To / From */
.gift-card-message .to,
.gift-card-message .from {
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase; /* cleaner like reference */
    font-size: 15px;
    color: #000;
    margin: 8px 0;
    min-height: 22px;

}
.gift-card-message .to {
    margin-bottom: 14px !important;
    min-height: 22px;
}
/* Main message */
.gift-card-message .message {
    font-size: 12px;
    line-height: 16px;
    color: #4e4e4e; /* softer tone like screenshot */
    margin: 0 auto;
    min-height: 48px;
    font-weight: 400;


}

/* Arabic */
.lang-ar .gift-card-message li {
    font-size: 16px;
    font-family: 'neosans_reguler';
}

/* QR display (UPDATED to match reference) */
/* Force QR section to follow message width */
.qr-section {
    margin-top: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 85%;              /* SAME as .gift-card-message */
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}


.qrcodeImg {
    width: 60px;
    height: 60px !important;
    object-fit: contain;
    margin: 0;
}

.qr-title {
    margin: 0 0 4px;
    font-weight: 500;
    font-size: 11px;
    color: #4e4e4e;
    line-height: 15px;
    text-align: left;
    font-family: 'Brandon_Grotesque';
}
.card-message-preview .qr-title{
    font-size: 15px;
    text-align: left;
}

.qr-desc {
    margin: 0;
    line-height: 1.4;
    font-weight: 400;
    font-size: 9px;
    color: #000;
    font-family: 'Brandon_Grotesque';
}
.card-message-preview .qr-desc{
    font-size: 12px;
}
/*.gift-main-card .prev-col {
    height: 300px !important;
    max-height: 300px;
}*/
.card-back-side img.giftcard-card {
    object-fit: contain;   /* instead of cover */
    height: 100%;
    width: 100%;
}
.card-back-side .giftcard-card {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* VERY IMPORTANT */
}

/* PREVIEW MESSAGE CARD – EXACT PRINT LAYOUT */
.card-message-preview {
    height: 462px;
    width: 100%;
    border: 1px dotted #c44b7a;
    padding: 0px 28px;
    display: flex;
    flex-direction: column;
}

/* Inner wrapper */
.card-message-preview .gift-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Logo spacing */
.card-message-preview .gift-logo {
    margin-bottom: 10px;
    margin-top: 5px;
}

/* Text blocks – reserve space */
.card-message-preview .gift-card-message .to {
    min-height: 22px;
    margin-bottom: 14px;
}

.card-message-preview .gift-card-message .message {
    min-height: 48px;
    margin-bottom: 18px;
    max-width: 240px;          /* THIS matches the reference */
    margin-left: auto;
    margin-right: auto;
}

.card-message-preview .gift-card-message .from {
    min-height: 22px;

}

/* QR LOCKED TO BOTTOM */
.card-message-preview .qr-section {
    margin-top: auto;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    max-width: 240px;          /* THIS matches the reference */
    margin-left: auto;
    margin-right: auto;

}


/* =========================
   ADD MESSAGE TAB
========================= */

div#pills-add-message {
    background: #d3d3d330;
}

div#pills-add-message form {
    padding: 15px;
}

.page-template-cart ul#pills-tab {
    border-radius: 50px;
    border: 1px solid lightgray;
}

#giftModal .nav-pills .nav-link {
    border-bottom: none;
    margin-top: 2px;
    margin-left: -3px;
}

#giftModal .nav-pills .nav-link.active,
#addMessageModal .nav-pills .nav-link.active {
    color: #000000 !important;
    border-bottom: 1px solid #e05b8b !important;
}

#giftModal button.active {
    background: #fff !important;
    border-radius: 50px !important;
    color: white !important;
}

/* =========================
   LINKS
========================= */

div#linkButton {
    cursor: pointer;
}

/* =========================
   CONTAINER
========================= */
/* =========================
   TABS
========================= */

.tabs-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.tabs {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    flex: 1;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    cursor: pointer;
    font-weight: 600;
    color: #6b7b88;
    white-space: nowrap;
    padding-bottom: 6px;
    flex-shrink: 0;
}

.tab.active {
    color: #0b3c49;
    border-bottom: 2px solid #0b3c49;
}

/* =========================
   TAB ARROWS
========================= */

.arrow {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 18px;
    flex-shrink: 0;
}

.arrow i {
    transform: rotate(0deg);
}

.lang-ar .arrow i::before {
    position: absolute;
    margin: -10px;
    transform: rotate(180deg);
}

/* =========================
   TAB CONTENT
========================= */

.tab-content {
    margin-top: 20px;
}

/* =========================
   ADDONS GRID
========================= */

.addons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 900px) {
    .addons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



/* =========================
   PRODUCT CARD (LEGACY)
========================= */

.product {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
    width: 100%;
}

.image-wrap {
    position: relative;
    margin-bottom: 10px;
}

.image-wrap img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

.express {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #c89b8c;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
}

.page-template-cart .price {
    font-weight: bold;
    color: #e05b8b;
    margin: 8px 0;
}

.product h4 {
    font-size: 14px;
    margin-bottom: 10px;
}

.add-btn {
    width: 100%;
    padding: 10px;
    border: 1px solid #0b3c49;
    background: #fff;
    color: #fff !important;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
}

.add-btn:hover {
    background: #0b3c49;
    color: #fff;
}

/* =========================
   LOADER
========================= */

.spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-block;
}

/* =========================
   PRODUCT CARD (SLICK)
========================= */

.product-Card {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-Card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.product-Card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

.product-Card h6 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0b3c49;
}

/* =========================
   RTL FIXES
========================= */

.lang-ar .modal .btn-close {
    position: absolute;
    left: 1rem;
    display: inline-block;
}

.lang-ar .qr-text {
    text-align: right;
}

/* =========================
   ADDON CONTROLS
========================= */

.addon-add-btn {
    border: 1px solid #e05b8b;
    background: #fff;
    color: #e05b8b;
    padding: 10px;
    border-radius: 25px;
    font-weight: 600;
}

.addon-qty-wrapper {
    border: 1px solid #e05b8b;
    border-radius: 25px;
    padding: 6px 12px;
}

.addon-qty-wrapper button {
    background: none;
    border: none;
    color: #e05b8b;
    font-size: 18px;
    cursor: pointer;
}

.addon-qty {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* =========================
   ADD MESSAGE MODAL (GLOBAL)
========================= */

#addMessageModal .modal-dialog {
    max-width: 720px;
}

#addMessageModal .modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

#addMessageModal .modal-header,
#addMessageModal .modal-footer {
    flex-shrink: 0;
}

#addMessageModal .modal-body {
    overflow-y: auto;
    flex: 1;
}

/* =========================
   SUGGESTED HEADER
========================= */

.suggested-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.suggested-header .message-lang-switch {
    margin-left: auto;
}

/* =========================
   LANGUAGE SWITCHER
========================= */

.message-lang-switch {
    display: flex;
    background: #f1f1f1;
    border-radius: 26px;
    padding: 4px;
    min-width: 260px;
    gap: 6px;
}

.message-lang-switch .lang-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 6px 0;
    font-size: 14px;
    border-radius: 20px;
    color: #777;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.message-lang-switch .lang-btn.active {
    background: #fff;
    color: #000;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* =========================
   CATEGORY SLIDER
========================= */

.category-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.category-slider {
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
    flex: 1;
    padding-inline: 40px;
    max-width: 100%;
}

.category-slider::-webkit-scrollbar {
    display: none;
}

.category-slider {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Slider arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 34px;
    height: 34px;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: all 0.2s ease;
}

.slider-arrow.left {
    left: 6px;
}

.slider-arrow.right {
    right: 6px;
}

.slider-arrow:hover {
    background: #f7f7f7;
    transform: translateY(-50%) scale(1.08);
}

.slider-arrow.disabled {
    opacity: 0.35;
    pointer-events: none;
    box-shadow: none;
}

/* Scope ONLY to gift modal tabs */
#giftModal #pills-tab {
    background: #f3f3f3;
    border-radius: 30px;
    padding: 0px;
    gap: 4px;
}

/* Reset Bootstrap heaviness */
#giftModal #pills-tab .nav-item {
    margin: 0;
}

/* Tabs */
#giftModal #pills-tab .nav-link {
    padding: 4px 0;              /* 🔽 reduce height */
    font-size: 14px;             /* 🔽 from fs-5 */
    font-weight: 500;
    border-radius: 26px;
    background: transparent;
    color: #666;
    transition: all 0.25s ease;
}

/* Active tab */
#giftModal #pills-tab .nav-link.active {
    background: #ffffff;
    color: #000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Hover */
#giftModal #pills-tab .nav-link:hover {
    color: #000;
}

/* Gift card grid – FINAL FIX */
#giftModal .a6-select-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, 240px);
    gap: 16px;

    justify-content: center;   /* centers the whole grid */
    align-content: start;
}

.gift-card-title {
    width: 100%;
}

.remove-gift-card {
    cursor: pointer;
    color: #e05b8b;
    white-space: nowrap;
    text-decoration: none;
    margin-right: 8px;
}

.remove-gift-card:hover {
    color: #c43b6e;
}

@media (max-width: 550px) {
    .addons-grid {
        grid-template-columns: 1fr;
    }
    #giftModal .a6-select-grid{
        display:flex !important;
        gap: 2px !important;
    }
    .position-absolute.bottom-0.p-3.d-flex.justify-content-between.w-100 {
        padding-inline: 3px !important;
    }
    .card-imag .price-div {
        font-size: 13px;
        padding-inline: 8px !important;

    }
    #giftModal .modal-footer .btn {
        min-width: 43%;
    }
    .card-imag {
        width: 47%;
        height: auto;
        max-height: 235px;
    }
    .card-imag.active .circle-div{
        justify-content: center;
        padding: 1rem !important;
    }
    .card-imag.active {

        outline-offset: 0px !important;
    }
}
