/* =====================
   Base Styles - Desktop
===================== */
body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--color-dark, #000);
    background-color: var(--color-bg, #fff);
}

.slideshow-container {
    width: 80%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-radius: 12px;
    background:var(--color-bg, #fff); /* white background */
}

.slideshow-container img {
    width: auto;
    max-width: 100%;
    max-height: 40vh;     /* 40% of screen height */
    height: auto;
    display: block;
    margin: 0 auto;       /* center horizontally */
    object-fit: contain; /* no cropping, no distortion */
    border-radius: 12px;
}


.mySlide {
    display: none;
}

.title_flash {
    background-color: var(--color-primary);
    padding: 30px 20px;
    border-radius: 18px;
    font-size: 36px;
    color: var(--color-white);
    margin-bottom: 20px;
    text-align: center;
}

.section_index {
    width: 80%;
    margin: 35px auto;
}

.sectiontitle {
    padding: 16px;
    color: var(--color-primary);
    border-left: 5px solid var(--color-primary);
}

.sectiontitle h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.title {
    margin: 20px 0 37px 0;
}

.title h2 {
    font-size: 36px;
    font-weight: 600;
    line-height: 48px;
    letter-spacing: 1.44px;
}

/* Grid layout for new sections */
.container_new {
    max-width: 100%;
    margin: 60px auto;
    padding: 35px 20px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    background-color: var(--color-primary);
    border-radius: 17px;
}

/* Row layout */
.category-row {
    display: flex;
    align-items: center;
    gap: 50px;
}

/* Reverse rows */
.category-row.reverse {
    flex-direction: row-reverse;
}

/* Image – NO background */
.category-image {
    flex: 1;
}

.category-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 18px;
}

/* Content bubble */
.category-content {
    flex: 1;
    background: var(--color-card);
    padding: 40px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

/* Dialog arrow (left) */
.category-content::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 15px 20px 15px 0;
    border-style: solid;
    border-color: transparent var(--color-card) transparent transparent;
}

/* Dialog arrow (right for reverse rows) */
.category-row.reverse .category-content::before {
    left: auto;
    right: -20px;
    border-width: 15px 0 15px 20px;
    border-color: transparent transparent transparent var(--color-card);
}

/* Text */
.category-content h2 {
    font-size: 30px;
    margin-bottom: 14px;
    color: var(--color-dark);
}

.category-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-muted);
    margin-bottom: 28px;
}

/* Button */
.btn-shop {
    display: inline-block;
    padding: 13px 34px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-shop:hover {
    background: var(--color-primary-variant);
    transform: translateY(-2px);
}
/* =====================
   Item Cards
===================== */
.items_cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    background: var(--color-card);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card .promotional {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: red;
    color: #fff;
    padding: 5px 10px;
    font-weight: bold;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 10;
}

.card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-body h5.item-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
}

.card-body h5.item-title .name {
    flex: 1;
    font-weight: bold;
    margin-right: 8px;
}

.card-body h5.item-title .rating {
    color: #f39c12;
    font-size: 14px;
    white-space: nowrap;
}

.card-body p {
    font-size: 14px;
    color: var(--color-muted);
    min-height: 40px;
    margin-bottom: 10px;
}

.price {
    color: var(--color-primary);
    font-weight: bold;
    margin: 10px 0;
}

.btn-cart {
    width: 100%;
    padding: 10px;
    background: var(--color-primary-variant);
    color: var(--color-bg);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-cart:hover {
    background: var(--color-primary);
}

/* Pagination buttons */
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.pagination button {
    padding: 10px 20px;
    background: var(--color-primary);
    color: var(--color-bg);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.pagination button:hover {
    background: var(--color-primary-variant);
}

/* =====================
   Featured Item
===================== */
.featured-item {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-item .container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.item-content {
    display: flex;
    gap: 50px;
    width: 100%;
}

.item-text {
    flex: 1;
}

.item-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.item-text p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.btn-buy {
    background-color: var(--color-white);
    color: var(--color-primary);
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-buy:hover {
    background-color: var(--color-primary-variant);
    color: var(--color-white);
}

.item-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 40vh;      /* limits image area */
    /* background: #ffffff;  keeps empty space white */
}

.item-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;  /* no distortion */
    display: block;
}

/* =====================
   Brands Section
===================== */
.topbrands {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 30px;
    border-radius: 12px;
}

.brandslogos {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.brnadcard {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-white);
    color: var(--color-muted);
    padding: 15px;
    border-radius: 15px;
}

.brnadcard img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 7px;
}

/* =====================
   What You Will Get Section
===================== */
.whatyouWillGet h3 {
    color: var(--color-primary);
    font-size: 48px;
    font-weight: 600;
    line-height: 60px;
    letter-spacing: 1.92px;
    text-align: center;
    border-left: 5px solid var(--color-primary-variant);
    width: 500px;
    margin: 0 auto 60px auto;
}

.cards_gets {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.card_service {
    background: var(--color-white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-align: center;
}

.card_service svg {
    font-size: 40px;
}

.disription_card_willget h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.disription_card_willget label {
    font-size: 14px;
    color: var(--color-muted);
}

/* =====================
   Media Queries
===================== */

/* Tablet ~992px */
@media (max-width: 992px) {
    .slideshow-container, .section_index {
        width: 90%;
    }

    .items_cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .item-content {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .item-text {
        text-align: center;
    }

    .item-text h2 {
        font-size: 2rem;
    }

    .item-text p {
        font-size: 1rem;
    }

    .btn-buy {
        padding: 12px 25px;
    }

    .item-image img {
        max-width: 80%;
    }
    .category-row,
    .category-row.reverse {
        flex-direction: column;
        text-align: center;
    }

    .category-content::before {
        display: none;
    }
}

/* Mobile ~768px */
@media (max-width: 768px) {
    
}

/* Small Mobile ~600px */
@media (max-width: 600px) {
    .slideshow-container, .section_index {
        width: 100%;
    }

    .items_cards {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px;
        justify-items: center;
    }

    .card {
        max-width: 220px;
    }

    .card img {
        height: 180px;
    }

    .card-body h5.item-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        font-size: 15px;
    }

    .card-body p {
        font-size: 13px;
    }

    .btn-cart {
        font-size: 13px;
        padding: 8px 0;
    }

    .featured-item {
        padding: 35px 15px;
    }

    .item-text h2 {
        font-size: 1.5rem;
    }

    .item-text p {
        font-size: 0.95rem;
    }

    .cards_gets {
        flex-direction: column;
        gap: 15px;
    }

    .card_service {
        margin-bottom: 12px;
        padding: 15px;
    }

    .brandslogos {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .brnadcard {
        margin-bottom: 10px;
    }

    .brnadcard img {
        width: 75px;
        height: 75px;
    }

    .whatyouWillGet h3 {
        font-size: 2rem;
        line-height: 2.5rem;
        width: 90%;
    }
}

@media (max-width: 500px) {

    /* Slideshow & Sections */
    .slideshow-container,
    .section_index,
    .featured-item .container {
        width: 100%;
        margin: 0 auto;
        padding: 0 15px; /* give some space on left and right */
        box-sizing: border-box;
        margin-bottom: 15px;
    }

    /* Flash sale title */
    .title_flash {
        padding: 25px 15px;
        font-size: 30px; /* smaller but visible */
        border-radius: 12px;
        text-align: center;
    }

    /* Items grid */
    .items_cards {
        grid-template-columns: 1fr;
        gap: 12px;
        justify-items: center;
        width: 100%;
        padding: 0;
    }

    /* Cards */
    .card {
        width: 100%; /* full width inside grid */
        max-width: 350px; /* optional max size for very small screens */
        margin: 0 auto;
        flex-direction: column;
    }

    .card img {
        height: 180px; /* bigger than before */
        object-fit: cover;
    }

    .card-body h5.item-title {
        font-size: 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .card-body h5.item-title .rating {
        margin-top: 5px;
    }

    .card-body p {
        font-size: 13px;
        min-height: auto;
    }

    .btn-cart {
        font-size: 14px;
        padding: 10px 0;
        width: 100%;
    }

    /* Featured Item Section */
    .featured-item {
        padding: 35px 15px;
    }

    .item-content {
        flex-direction: column;
        gap: 20px;
    }

    .item-text h2 {
        font-size: 1.5rem;
        line-height: 1.6rem;
        text-align: center;
    }

    .item-text p {
        font-size: 1rem;
    }

    .btn-buy {
        width: 100%;
        padding: 12px 0;
        font-size: 14px;
    }

    .item-image img {
        max-width: 100%;
    }

    /* Cards Get Section */
    .cards_gets {
        flex-direction: column;
        gap: 12px;
        margin: 30px 0;
    }

    .card_service {
        margin-bottom: 12px;
        padding: 14px;
    }

    /* Brands logos */
    .brandslogos {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .brnadcard {
        width: 95%;
        margin-bottom: 10px;
    }

    .brnadcard img {
        width: 70px;
        height: 70px;
    }

    /* What you will get section */
    .whatyouWillGet h3 {
        width: 100%;
        font-size: 1.8rem;
        line-height: 2rem;
        border-left-width: 4px;
        margin: 0 auto;
        text-align: center;
    }

    /* Container new / left-right layout */
    .container_new {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .right-images {
        grid-template-rows: auto auto;
    }

    .bottom-right {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .category-img {
        height: 220px; /* slightly bigger */
    }

}
