section {
    max-width: 1420px;
    margin: auto;
    padding-top: 2rem;
}

.section-imgs {
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(0, 0, 0, 0.3) 100%);
    background-image: url("/assets/images/ad-back_1.png");
    position: relative;
    background-size: 100% 100%;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-imgs .ad-centered-text {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    display: grid;
    padding: 0 50px;
    grid-template-columns: 1.5fr 1fr;
}

.section-imgs .ad-centered-text h1,
.section-imgs .ad-centered-text h2,
.section-imgs .ad-centered-text h3,
.section-imgs .ad-centered-text p {
    color: white;
    margin: 0 auto 5px auto;
}

.section-imgs .ad-centered-text h1 {
    font-size: 40pt;
}

.section-imgs .ad-centered-text p {
    font-size: 10pt;
    font-weight: 500;
}

.section-imgs .ad-centered-text img {
    object-fit: fill;
    height: 75vh;
    width: auto;
}

@keyframes scaleUpDown {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.ads-button {
    position: absolute;
    background-color: white;
    padding: 10px 25px;
    border-radius: 8px;
    left: 46.5%;
    top: 85%;
    transform: translate(-50%, -50%);
    animation: scaleUpDown 2s ease-in-out infinite;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.ads-button button {
    background: none;
    border: none;
    font-size: 10pt;
    font-weight: 500;
    cursor: pointer;
    color: black;
}

.ads-button:hover {
    background-color: white;
    color: black;
}

.ads-button:hover button {
    color: black;
}

.line-with-text {
    /* 
    display: flex; */
    align-items: center;
    margin-bottom: 2rem;
}

.line-with-text .line {
    flex-grow: 1;
    height: .5px;
    margin-top: 1rem;
    background-color: #ebebeb;
}

.line-with-text .text {
    font-size: 1.6em;
    text-transform: capitalize;
    color: var(--text-color);
}

.view-all-btn {
    border: 1px solid lightgray;
    border-radius: 5px;
    padding: 5px 8px;
    width: fit-content;
    margin: 1rem 0 auto auto;
    cursor: pointer;
    text-decoration: none;
    color: black;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 2.5px;
}

.view-all-btn i {
    font-size: 1rem;
}

.quantity_btn {
    display: flex;
    justify-content: center;
}

.quantity_btn button {
    background: none;
    border: none;
}

.quantity_btn .fas {
    font-size: 12pt;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: black;
    font-weight: 700;
    transition: all 0.3s ease;
    margin: 10px;
}

.add-t-c-span {
    display: block;
}

/* Item Design (i-wraper) */
.i-wraper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    /* 
    padding: 5px 10px; */
    border-radius: 3px;
    margin: auto;
    align-items: stretch;
    position: relative;
}

.s-i-wraper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    border-radius: 3px;
    margin: auto;
    align-items: stretch;
    position: relative;
}

.items {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    border-radius: 5px;
    /*    box-shadow: 0 0 10px rgba(49, 34, 0, 0.041); */
    background-color: white;
    padding: 15px;
    position: relative;
    border: 1px solid white;
}

.items:hover {
    border-color: #e5eaf0;
}

.absolute-left {
    position: absolute;
    top: 15px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;

    .wasPrice p {
        color: white;
        border-top-right-radius: 8px;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
        padding: 4px 8px;
        font-weight: 600;
        font-size: 0.65rem;
        text-transform: uppercase;
        margin: 0;
        background-color: var(--red);
    }

    .ph-fire {
        color: var(--primary-color);
        font-size: 1.4rem;
        width: fit-content;
        display: flex;
        padding: 5px;
        border-radius: 50%;
    }

}

.absolute-right {
    position: absolute;
    top: 15px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Like icon styles */
.absolute-right .item-like {
    color: var(--text-color);
    font-size: 1rem;
    border: 1px solid #e5eaf0;
    background: white;
    width: fit-content;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    cursor: pointer;
    opacity: 0;
    /* Use opacity instead of display for smooth animation */
    transform: translateY(10px);
    /* Start position */
    transition: opacity 0.2s ease, transform 0.6s ease;
    /* Faster, smoother transition */
}


/* Show the like icon when hovering over .items */
.items:hover .absolute-right .item-like {
    opacity: 1;
    /* Fade in */
    transform: translateY(0);
    /* Move to final position */
}

.absolute-right .item-like:active {
    transform: scale(.9);
    background: #fef4e4;
}

.items .item {
    flex-grow: 1;
    gap: 0.3rem;
    display: flex;
    flex-direction: column;
}

.items .item .i-img {
    width: 100%;
    margin: auto;
}

.items .item .i-img img {
    width: auto;
    max-width: 100%;
    height: 11vw;
    display: flex;
    margin: auto;
    object-fit: contain;
}

.items .item .seperator {
    height: 0.5px;
    background-color: #cbc8c8;
    margin: 5px 10px 0 10px;
}

.items .item p.item-name {
    margin-top: 10px;
    font-weight: 500;
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4em;
    max-height: 2.8em;
    text-transform: capitalize;
}

.items .item h2.item-name {
    margin-top: 10px;
    font-weight: 700;
    font-size: .8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4em;
    max-height: 2.8em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.items .item p.item-name:hover {
    color: var(--primary-color);
}

.item-desc {
    font-size: .8em;
    color: #666;
    margin: 0 0 10px;
}


.seller-link {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.seller_name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--red);
}

.seller_name i {
    color: var(--green);
    font-size: 18px;
}

.seller-info-board {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(10px);
    opacity: 0;
}

.seller-link:hover .seller-info-board,
.seller-info-board.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.seller-info-content .store-dtls {
    padding: 15px;
}

.seller-info-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    border-bottom: 1px solid lightgray;
    padding: 10px;
}

.seller-info-content p {
    font-size: 0.75rem;
    color: #475569;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.seller-info-content p i {
    color: #ac6111;
    font-size: 1rem;
}

.board-footer {
    display: flex;
    padding: 0px;
    text-align: right;
    align-items: center;
    margin: auto;
    width: fit-content;
    margin-right: 0px;
    color: #2563eb;
    gap: 5px;
}

.store-link {
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
}

.board-footer:hover {
    color: #1e40af;
}

.items .item .i-dtls {
    font-size: 0.7rem;
    width: 100%;
}

.items .item .i-dtls div {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.items .item .i-dtls div:last-child {
    margin-top: 5px;
}

.items .item .i-dtls span {}

.price-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.item-price {
    font-size: 1rem;
    text-align: left;
}

.item-price .amount,
.item-price .decimal {
    font-weight: bold;
    color: var(--red);
}

.item-price.actual .amount {
    font-size: 8pt;
}

.item-price.actual .amount,
.item-price.actual .decimal {
    color: grey;
    text-decoration: line-through;
}

.decimal {
    font-size: 8pt;
    vertical-align: super;
    margin-left: 2px;
}

.i-btn {
    z-index: 1;
}

.i-btn button {
    border: 1px solid var(--white);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 8px;
    padding: 8px 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: 0.3s all ease-in-out;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.i-btn i {
    font-size: 1.1rem;
}

/* .i-btn button:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
} */

.i-btn button:active {
    transform: scale(0.9);
}

@media (max-width: 600px) {
    .seller-info-board {
        width: 100%;
        left: 0;
    }

    .items .item .i-dtls div {
        display: block;
        gap: 0.5rem;
    }

    .dot-seperator {
        display: none;
    }
}

.pagination {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.pagination a {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    margin: 0 5px;
    text-decoration: none;
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    font-size: 0.7rem;
    letter-spacing: 1px;
    border-radius: 5px;

    i {
        font-size: 1.1rem;
    }
}

.pagination a.active {
    background: var(--primary-color);
    color: var(--white);
}

.pagination a:hover {
    color: var(--white);
    background: var(--primary-color);
}

.category-ad {
    max-width: 1420px;
    margin: auto;
    margin-top: 1rem;
    display: grid;
    /* grid-template-columns: repeat(2, 1fr); */
    gap: 20px;
    position: relative;
    border: 1px solid white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;

    .decoration {
        background: rgba(255, 255, 255, 0.146);
    }

    .decoration-1 {
        width: 250px;
        height: 250px;
        top: -70px;
        left: -70px;
    }

    .decoration-2 {
        width: 200px;
        height: 200px;
    }
}

.category-ad::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            transparent 0%,
            transparent 40%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.1) 51%,
            transparent 60%,
            transparent 100%);
    background-size: 200% 200%;
    background-position: 100% 100%;
    opacity: 0;
    transition: opacity 0s ease, background-position 0.6s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.section6-img,
.section7-img {
    width: 100%;
    height: 380px;
    display: block;
    object-fit: cover;
}

.ad-text {
    top: 0;
    position: absolute;
    /* Positions text over the image */
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Centers the text */
    text-align: center;
    color: #fff;
    /* White text for better contrast */
    background: radial-gradient(circle, rgba(255, 255, 255, 0.219) 0%, rgba(255, 255, 255, 0) 70%);
    background-color: rgba(0, 0, 0, 0.6);
    /* Adds a dark background with transparency */
    padding: .8rem;
    border-radius: 8px;
}


.ad-text h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
}

.ad-text p {
    font-size: .8rem;
    line-height: 1.5;
    color: var(--white);
}

@keyframes scroll {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes reset {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(0%);
    }
}

/* ===== Mobile Responsive ===== */
@media (max-width: 900px) {
    .absolute-right .item-like {
        opacity: 1;
        transform: translateY(0);
    }

    .ad-text {
        padding: 1rem;
    }

    .ad-text h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .ad-text p {
        font-size: .9rem;
    }
}

@media (min-width: 1024px) {
    .ad-text h1 {
        font-size: 3rem;
        margin-bottom: 0px;
    }

    .ad-text p {
        font-size: 1rem;
    }
}