/* COUPON SLIDER STYLES */
#background-coupons {
    margin-top: 40px;
}

.coupon-card-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    width: 175px;
    flex-shrink: 0;
}

.coupon-card {
    width: 100%;
    padding: 16px;
    background: white;
    border-radius: 10px;
    border: 1px solid #F0F0F0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coupon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.coupon-card-image {
    width: 110px;
    height: 110px;
    border-radius: 6px;
    overflow: hidden;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coupon-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coupon-card-divider {
    width: 100%;
    height: 1px;
    background-image: repeating-linear-gradient(
        to right,
        #D9D9D9 0,
        #D9D9D9 5px,
        transparent 5px,
        transparent 10px
    );
}

.coupon-card-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.coupon-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    justify-content: center;
}

.coupon-card-price {
    color: #1A8C23;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.coupon-card-label {
    color: black;
    font-size: 16px;
    font-weight: 400;
    text-transform: lowercase;
    line-height: 1.2;
}

.coupon-card-availability-row {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.coupon-card-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    opacity: 0.6;
}

.coupon-card-availability {
    text-align: center;
    color: #5B5B5B;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.2;
}

#couponsCarousel {
    overflow: visible;
    display: flex;
    flex-wrap: nowrap;
    padding: 0.5rem 0;
}

#couponsCarousel .slick-track {
    display: flex;
    gap: 12px;
}

#couponsCarousel .slick-slide {
    margin: 0;
    width: 175px !important;
}

#couponsCarousel .slick-slide > div {
    display: flex;
    justify-content: center;
}

/* END COUPON SLIDER STYLES */

/* ALL COUPONS PAGE STYLES */
.all-coupons-header {
    text-align: center;
    margin-bottom: 3rem;
}

.all-coupons-main-title {
    font-size: 36px;
    font-weight: 700;
    color: #000;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.all-coupons-description {
    font-size: 15px;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
}

.all-coupons-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.all-coupon-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px;
    padding-right: 20px;
    background-color: #fff;
    border: 1px solid #E3E3E3;
    border-radius: 12px;
    transition: box-shadow 0.3s ease;
}

.all-coupon-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.all-coupon-image {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #E8E8E8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.all-coupon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.all-coupon-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.all-coupon-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
}

.all-coupon-description {
    font-size: 16px;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
}

.all-coupon-availability {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #5B5B5B;
    font-family: 'Poppins', sans-serif;
}

.all-coupon-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.all-coupon-divider {
    width: 1px;
    height: stretch;
    background-image: repeating-linear-gradient(
        to bottom,
        #D9D9D9 0,
        #D9D9D9 5px,
        transparent 5px,
        transparent 10px
    );
    flex-shrink: 0;
    margin: 0 10px;
}

.all-coupon-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.all-coupon-price-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}

.all-coupon-price {
    font-size: 20px;
    font-weight: 600;
    color: #1A8C23;
    line-height: 1;
}

.all-coupon-price-label {
    font-size: 20px;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}

.all-coupon-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 22px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.all-coupon-btn:hover {
    background-color: #333;
    color: #fff;
}

@media (max-width: 768px) {
    .all-coupons-container {
        max-width: 100%;
    }
    
    .all-coupon-card {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 16px;
    }
    
    .all-coupon-image {
        width: 100%;
        height: 160px;
        order: 1;
    }
    
    .all-coupon-left {
        width: 100%;
        order: 2;
        gap: 10px;
    }
    
    .all-coupon-title {
        font-size: 20px;
    }
    
    .all-coupon-description {
        font-size: 15px;
    }
    
    .all-coupon-divider {
        display: none;
    }
    
    .all-coupon-right {
        width: 100%;
        order: 3;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
    }
    
    .all-coupon-price-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .all-coupon-price {
        font-size: 28px;
    }
    
    .all-coupon-price-label {
        font-size: 15px;
    }
    
    .all-coupon-btn {
        padding: 12px 24px;
        font-size: 14px;
        flex-shrink: 0;
    }
}

/* END ALL COUPONS PAGE STYLES */

/* COUPON DETAIL PAGE STYLES */
.coupon-detail-page {
    max-width: 1400px;
    margin: 0 auto;
}

.coupon-detail-image-container {
    background-color: #F5F5F5;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.coupon-detail-main-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.coupon-detail-main-title {
    font-size: 28px;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.coupon-detail-description-text {
    font-size: 15px;
    line-height: 1.6;    
    margin-bottom: 30px;
}

.coupon-detail-stores-box {
    background-color: #F7F7F7;
    border-radius: 7px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    position: relative;
    min-height: 81px;
}

.stores-icon-marker {
    width: 17px;
    height: 21px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stores-icon-marker img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.stores-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stores-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stores-title-inline {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 19px;
    letter-spacing: 0.5px;
}

.stores-description-inline {
    font-size: 14px;
    font-weight: 400;
    color: #000;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 19px;
    letter-spacing: 0.5px;
}

.btn-download-app-inline {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 17.5px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    line-height: 19px;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    min-width: 144px;
    transition: background-color 0.3s ease;
}

.btn-download-app-inline:hover {
    background-color: #333;
    color: #fff;
}

.coupon-detail-qr-section {
    background-color: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 12px 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.coupon-detail-qr-info-banner {
    padding: 12px 16px;
    display: flex;
    align-items: center;
}

.qr-info-banner-content {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #F7F7F7;
    border-radius: 15px;
    padding: 2px 8px;
    width: fit-content;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.qr-info-banner-content:hover {
    background-color: #f0f0f0;
}

.qr-info-banner-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.qr-info-banner-text {
    font-size: 12px;
    font-weight: 600;
    color: #000;
    font-family: 'Poppins', sans-serif;
    line-height: 20px;
    letter-spacing: 0.1px;
    padding-right: 4px;
}

.qr-content-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    padding-top: 0;
}

.qr-code-wrapper {
    flex-shrink: 0;
}

.qr-info-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.qr-code-image {
    width: 120px;
    height: 120px;
    display: block;
}

.qr-price-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.qr-price-value {
    font-size: 35px;
    font-weight: 700;
    color: #1A8C23;
    line-height: 1;
}

.qr-price-text {
    font-size: 18px;
    color: #000;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.qr-app-availability {
    font-size: 15px;
    color: #000;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.qr-app-availability strong {
    font-weight: 600;
    color: #000;
}

.coupon-availability-footer {
    background-color: #F7F7F7;
    border-radius: 0 0 12px 12px;
    padding: 8px 15px;
    text-align: center;
    font-size: 15px;
    color: #000;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    margin-bottom: 30px;
    border: 1px solid #E0E0E0;
    border-top: none;
}

.coupon-detail-promo-section {
    margin-top: 20px;
}

.promo-link {
    font-size: 15px;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.promo-link:hover {
    color: #000;
    text-decoration: underline;
}

/* Accordion Promo Articles */
.promo-articles-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.promo-articles-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.promo-articles-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #666;
}

.iconCollapse {
    cursor: pointer;
    user-select: none;
}

/* SIDEBAR COUPON LIST */
.coupon-sidebar {
    background-color: #F9F9F9;
    border-radius: 8px;
    padding: 20px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.sidebar-view-all {
    font-size: 14px;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.sidebar-view-all:hover {
    color: #000;
    text-decoration: underline;
}

.sidebar-coupon-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}

.sidebar-coupon-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: #fff;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.sidebar-coupon-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.sidebar-coupon-item.active {
    border: 2px solid #C22123;
    background-color: #FFF5F5;
}

.sidebar-coupon-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background-color: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-coupon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-coupon-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-coupon-price {
    font-size: 14px;
    font-weight: 700;
    color: #1A8C23;
    margin: 0;
}

.sidebar-coupon-price span {
    font-weight: 400;
    color: #000;
    margin-left: 4px;
    font-size: 13px;
}

.sidebar-coupon-availability {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #999;
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

.sidebar-availability-icon {
    width: 12px;
    height: 12px;
    opacity: 0.5;
}

@media (max-width: 991px) {
    .coupon-detail-qr-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .qr-code-wrapper {
        margin: 0 auto;
    }
    
    .qr-info-wrapper {
        text-align: center;
    }
    
    .qr-price-line {
        justify-content: center;
    }
    
    .coupon-detail-stores-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 12px;
    }
    
    .stores-text-content {
        width: 100%;
        gap: 8px;
    }

    .stores-title-row {
        align-items: center;
        gap: 8px;
        margin-bottom: 0;
        justify-content: center;
    }

    .btn-download-app-inline {
        width: 100%;
        max-width: 250px;
        margin: auto;
    }

    .coupon-sidebar {
        margin-top: 30px;
    }

    .stores-title-inline {
        text-align: center;
    }
    
    .stores-description-inline {
        text-align: center;
    }
}

@media (min-width: 992px) {
    .coupon-detail-stores-box {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .stores-title-row {
        gap: 0;
    }
}

/* END COUPON DETAIL PAGE STYLES */

/* APP INFO MODAL STYLES */
#appInfoModal .modal-content {
    border-radius: 19px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

#appInfoModal .modal-header {
    padding: 28px 38px 0 38px;
    border-bottom: none;
}

#appInfoModal .modal-title {
    font-size: 21px;
    font-weight: 600;
    color: #000;
    font-family: 'Poppins', sans-serif;
    line-height: 20px;
    letter-spacing: 0.1px;
}

.app-info-container {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.app-info-image {
    flex-shrink: 0;
    width: 210px;
    height: 256px;
    border-radius: 13px;
    overflow: hidden;
    background-color: #F5F5F5;
}

.app-info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-info-text {
    font-size: 14px;
    font-weight: 400;
    color: #000;
    font-family: 'Poppins', sans-serif;
    line-height: 20px;
    letter-spacing: 0.1px;
    margin: 0;
}

.app-info-text strong {
    font-weight: 700;
}

.app-info-question {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    font-family: 'Poppins', sans-serif;
    line-height: 20px;
    letter-spacing: 0.1px;
    margin: 0;
}

.btn-app-primary {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 21.5px;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    line-height: 19px;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    white-space: nowrap;
    transition: background-color 0.3s ease;
    margin-top: 50px;
    width: 183px;
}

.btn-app-primary:hover {
    background-color: #333;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    #appInfoModal .modal-dialog {
        margin: auto;
        width: 95%;
        height: 100vh;
        max-width: 100%;
    }

    #appInfoModal .modal-content {
        border-radius: 19px;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    #appInfoModal .modal-header {
        padding: 20px 20px 0 20px;
        flex-shrink: 0;
    }

    #appInfoModal .modal-title {
        font-size: 18px;
        text-align: center;
    }

    #appInfoModal .modal-body {
        padding: 50px;
        flex: 1;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .app-info-container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        height: 100%;
        justify-content: center;
    }

    .app-info-image {
        width: 100%;
        max-width: 280px;
        height: auto;
        aspect-ratio: 1;
    }

    .app-info-content {
        width: 100%;
        text-align: center;
        align-items: center;
    }

    .app-info-text {
        text-align: center;
    }

    .app-info-question {
        text-align: center;
    }

    .btn-app-primary {
        width: 100%;
        margin-top: 0;
    }
}

/* END APP INFO MODAL STYLES */
