/* =========================================================
   AJEP APPARELS — PRODUCTS PAGE
========================================================= */

:root {
    --shop-green: #2e7d32;
    --shop-green-dark: #1b5e20;
    --shop-black: #151515;
    --shop-text: #242424;
    --shop-muted: #777;
    --shop-border: #e8e8e8;
    --shop-bg: #f8f8f6;
    --shop-white: #ffffff;
}


/* =========================================================
   PAGE
========================================================= */

.shop-page {
    background: var(--shop-white);
    min-height: 100vh;
    padding-bottom: 80px;
}


/* =========================================================
   HERO
========================================================= */

.collection-hero {
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(
            110deg,
            rgba(20, 20, 20, 0.96),
            rgba(30, 70, 35, 0.90)
        );
    color: #fff;
}

.collection-hero::after {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    right: 8%;
    top: -130px;
}

.hero-content {
    width: min(1180px, 92%);
    margin: auto;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #c9e8cb;
    margin-bottom: 18px;
}

.hero-tag::before {
    content: "";
    width: 28px;
    height: 2px;
    background: #8dcc91;
}

.collection-hero h1 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -2px;
}

.collection-hero p {
    max-width: 560px;
    margin: 25px 0 0;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.78);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 28px;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
}

.hero-meta i {
    color: #a8d8aa;
}


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

.product-controls {
    border-bottom: 1px solid var(--shop-border);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
}

.controls-inner {
    width: min(1180px, 92%);
    min-height: 76px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


/* =========================================================
   CATEGORY BUTTONS
========================================================= */

.types {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.types button {
    flex: 0 0 auto;
    border: 1px solid transparent;
    background: transparent;
    padding: 10px 17px;
    border-radius: 30px;
    color: #666;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.types button:hover {
    background: #f1f6f1;
    color: var(--shop-green);
}

.types button.active {
    background: var(--shop-green);
    color: #fff;
}


/* =========================================================
   SORT
========================================================= */

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.sort-wrapper label {
    color: #888;
    font-size: 13px;
}

.sort-wrapper select {
    min-width: 145px;
    border: 1px solid var(--shop-border);
    border-radius: 7px;
    background: #fff;
    padding: 10px 12px;
    color: var(--shop-text);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.sort-wrapper select:focus {
    border-color: var(--shop-green);
}


/* =========================================================
   PRODUCTS HEADING
========================================================= */

.products-heading {
    width: min(1180px, 92%);
    margin: 55px auto 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--shop-green);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 11px;
    font-weight: 800;
}

.products-heading h2 {
    margin: 0;
    color: var(--shop-black);
    font-size: 30px;
    letter-spacing: -0.7px;
}

.product-count {
    color: #888;
    font-size: 13px;
}


/* =========================================================
   PRODUCT GRID
========================================================= */

.products-grid {
    width: min(1180px, 92%);
    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 28px 20px;
}


/* =========================================================
   PRODUCT LINK
========================================================= */

.product-link {
    color: inherit;
    text-decoration: none;
    display: block;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.product-card {
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 12px;
    overflow: hidden;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #dedede;
    box-shadow: 0 16px 35px rgba(0,0,0,0.09);
}


/* =========================================================
   IMAGE AREA
========================================================= */

.product-image {
    position: relative;
    background: #f5f5f2;
    overflow: hidden;

    /*
       THIS prevents huge images.
       Every product gets the same visual area.
    */
    aspect-ratio: 1 / 1.08;

    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px;
}

.product-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    transition:
        transform 0.45s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.045);
}


/* =========================================================
   BADGE
========================================================= */

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;

    z-index: 3;

    background: var(--shop-green);
    color: #fff;

    padding: 6px 11px;

    border-radius: 4px;

    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}


/* =========================================================
   QUICK ACTION
========================================================= */

.quick-view {
    position: absolute;

    right: 14px;
    bottom: 14px;

    width: 36px;
    height: 36px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.94);
    color: var(--shop-black);

    font-size: 12px;

    box-shadow: 0 4px 14px rgba(0,0,0,0.12);

    opacity: 0;
    transform: translateY(8px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.product-card:hover .quick-view {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   PRODUCT INFO
========================================================= */

.product-info {
    padding: 17px 17px 18px;
}

.product-category {
    margin-bottom: 6px;

    color: #999;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.product-info h3 {
    margin: 0;

    color: var(--shop-text);

    font-size: 15px;
    font-weight: 700;

    line-height: 1.35;

    min-height: 40px;
}

.product-bottom {
    margin-top: 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    color: var(--shop-green-dark);

    font-size: 16px;
    font-weight: 800;
}

.shop-arrow {
    width: 31px;
    height: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f0f5f0;
    color: var(--shop-green);

    font-size: 11px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.product-card:hover .shop-arrow {
    background: var(--shop-green);
    color: #fff;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.no-products {
    grid-column: 1 / -1;

    text-align: center;

    padding: 90px 20px;
}

.no-products-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eef5ee;
    color: var(--shop-green);

    font-size: 25px;
}

.no-products h2 {
    margin: 0 0 10px;
    font-size: 25px;
}

.no-products p {
    max-width: 420px;
    margin: auto;

    color: #777;
    line-height: 1.6;
}

.no-products a {
    display: inline-block;

    margin-top: 22px;

    padding: 12px 20px;

    border-radius: 6px;

    background: var(--shop-green);
    color: #fff;

    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   PAGINATION
========================================================= */

.pagination {
    width: min(1180px, 92%);
    margin: 55px auto 0;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 11px 17px;

    border: 1px solid var(--shop-border);
    border-radius: 6px;

    color: var(--shop-text);
    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: var(--shop-green);
    color: #fff;
    border-color: var(--shop-green);
}

.pagination-current {
    color: #777;
    font-size: 13px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .products-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .collection-hero {
        min-height: 350px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .collection-hero {
        min-height: 330px;
    }

    .collection-hero h1 {
        font-size: 42px;
        letter-spacing: -1.5px;
    }

    .collection-hero p {
        font-size: 14px;
    }

    .hero-meta {
        gap: 12px;
        flex-direction: column;
    }


    .product-controls {
        position: relative;
    }

    .controls-inner {
        min-height: auto;
        padding: 13px 0;

        align-items: flex-start;
        flex-direction: column;
    }

    .types {
        width: 100%;
    }

    .sort-wrapper {
        width: 100%;
    }

    .sort-wrapper select {
        flex: 1;
    }


    .products-heading {
        margin-top: 35px;

        align-items: flex-start;
        flex-direction: column;

        gap: 7px;
    }

    .products-heading h2 {
        font-size: 25px;
    }


    .products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 14px;
    }


    .product-image {
        aspect-ratio: 1 / 1.12;
    }

    .image-container {
        padding: 10px;
    }


    .product-info {
        padding: 13px;
    }

    .product-info h3 {
        font-size: 13px;
        min-height: 35px;
    }

    .product-price {
        font-size: 14px;
    }

    .shop-arrow {
        width: 28px;
        height: 28px;
    }

    .product-category {
        font-size: 8px;
    }

    .quick-view {
        display: none;
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .collection-hero h1 {
        font-size: 36px;
    }

    .products-grid {
        gap: 10px;
    }

    .product-info {
        padding: 11px;
    }

}