/* =========================================================
   GALLERY SOGOLI
   PRODUCTS PAGE
========================================================= */


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

.products-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0 120px;
}


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

.products-header {
    position: sticky;
    top: 12px;
    z-index: 9000;

    width: min(1180px, calc(100% - 32px));
    margin: 12px auto 0;

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;

    background: rgba(255, 255, 255, 0.72);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    box-shadow:
        0 16px 45px rgba(80, 50, 65, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.products-header-inner {
    min-height: 74px;
    padding: 10px 16px;

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


/* BRAND */

.products-brand {
    display: flex;
    align-items: center;
    gap: 11px;

    color: inherit;
    text-decoration: none;
}

.products-brand-symbol {
    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #d9789b,
            #c9a45d
        );

    box-shadow:
        0 9px 25px rgba(217, 120, 155, 0.24);

    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 900;
}

.products-brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.products-brand-text strong {
    font-size: 16px;
    font-weight: 900;
}

.products-brand-text small {
    color: #91838a;
    font-size: 10px;
}


/* HEADER ACTIONS */

.products-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.products-theme-btn,
.products-cart-btn {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.6);

    color: #786b72;
    text-decoration: none;

    cursor: pointer;

    transition: 0.25s ease;
}

.products-theme-btn:hover,
.products-cart-btn:hover {
    transform: translateY(-2px);
    color: #d9789b;
}

.products-cart-btn {
    position: relative;
}

.products-cart-btn > span {
    font-size: 19px;
}

.products-cart-btn b {
    position: absolute;

    top: -5px;
    right: -5px;

    min-width: 18px;
    height: 18px;

    padding: 0 4px;

    display: grid;
    place-items: center;

    border-radius: 50px;

    background: #d9789b;
    color: #fff;

    font-size: 9px;
    font-weight: 900;
}


/* =========================================================
   BACK TO STORE
========================================================= */

.back-to-store {
    width: fit-content;

    margin: 8px 0 25px;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 10px 15px;

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.62);

    box-shadow:
        0 10px 30px rgba(80, 50, 65, 0.07);

    color: #75666e;
    text-decoration: none;

    font-size: 12px;
    font-weight: 800;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition: 0.25s ease;
}

.back-to-store:hover {
    transform: translateX(4px);
    color: #d9789b;
}

.back-icon {
    font-size: 17px;
    line-height: 1;
}


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

.products-hero {
    position: relative;
    overflow: hidden;

    min-height: 235px;

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

    padding: 38px 45px;

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 32px;

    background:
        radial-gradient(
            circle at 15% 25%,
            rgba(217, 120, 155, 0.14),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(201, 164, 93, 0.13),
            transparent 30%
        ),
        rgba(255, 255, 255, 0.64);

    box-shadow:
        0 25px 70px rgba(80, 50, 65, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.products-hero::before {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    left: -80px;
    bottom: -100px;

    border-radius: 50%;

    background: rgba(217, 120, 155, 0.08);

    filter: blur(5px);
}

.products-hero-content {
    position: relative;
    z-index: 2;
}

.products-eyebrow {
    display: inline-block;

    margin-bottom: 10px;

    color: #c19b51;

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 3px;
}

.products-hero h1 {
    margin: 0 0 10px;

    color: #352d32;

    font-size: clamp(30px, 5vw, 52px);
    font-weight: 950;

    letter-spacing: -1px;
}

.products-hero p {
    margin: 0;

    color: #85767e;

    font-size: 14px;
    line-height: 2;
}

.products-hero-symbol {
    position: relative;
    z-index: 2;

    width: 125px;
    height: 125px;

    display: grid;
    place-items: center;

    border-radius: 42px;

    color: #d9789b;

    background:
        linear-gradient(
            145deg,
            rgba(217, 120, 155, 0.12),
            rgba(201, 164, 93, 0.10)
        );

    border: 1px solid rgba(255, 255, 255, 0.85);

    box-shadow:
        0 20px 50px rgba(80, 50, 65, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    font-size: 58px;
}


/* =========================================================
   SEARCH
========================================================= */

.products-search-card {
    margin-top: 20px;

    padding: 10px;

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;

    background: rgba(255, 255, 255, 0.55);

    box-shadow:
        0 15px 40px rgba(80, 50, 65, 0.06);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.products-search-box {
    min-height: 58px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 17px;

    border-radius: 17px;

    background: rgba(248, 244, 246, 0.72);
}

.products-search-icon {
    color: #d9789b;
    font-size: 25px;
}

.products-search-box input {
    flex: 1;

    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: #40373c;

    font-family: inherit;
    font-size: 13px;
}

.products-search-box input::placeholder {
    color: #a99da3;
}

.products-search-clear {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: #9a8c94;

    font-size: 20px;

    cursor: pointer;

    transition: 0.2s ease;
}

.products-search-clear:hover {
    background: rgba(217, 120, 155, 0.10);
    color: #d9789b;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.products-filter-section {
    margin-top: 42px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 18px;
}

.section-mini-title {
    display: block;

    margin-bottom: 5px;

    color: #c19b51;

    font-size: 10px;
    font-weight: 900;
}

.section-heading h2 {
    margin: 0;

    color: #3a3036;

    font-size: 22px;
    font-weight: 950;
}

.products-result-count {
    color: #9a8c94;

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


/* =========================================================
   CATEGORY FILTERS
========================================================= */

.category-filter-list {
    display: flex;
    gap: 9px;

    overflow-x: auto;

    padding: 4px 2px 12px;

    scrollbar-width: thin;
}

.category-filter {
    flex: 0 0 auto;

    padding: 11px 17px;

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50px;

    background: rgba(255, 255, 255, 0.68);

    color: #766971;

    font-family: inherit;
    font-size: 11px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 7px 20px rgba(80, 50, 65, 0.05);

    transition: 0.25s ease;
}

.category-filter:hover {
    transform: translateY(-2px);
    color: #d9789b;
}

.category-filter.active {
    color: #fff;

    border-color: transparent;

    background:
        linear-gradient(
            135deg,
            #d9789b,
            #c9a45d
        );

    box-shadow:
        0 10px 25px rgba(217, 120, 155, 0.20);
}


/* =========================================================
   TOOLS
========================================================= */

.products-tools {
    margin-top: 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 16px 18px;

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 22px;

    background: rgba(255, 255, 255, 0.55);

    box-shadow:
        0 12px 35px rgba(80, 50, 65, 0.06);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.products-tools-title {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.products-tools-title span {
    color: #3a3036;

    font-size: 15px;
    font-weight: 900;
}

.products-tools-title small {
    color: #9b8e95;
    font-size: 10px;
}

.products-sort {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #8c7d85;

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

.products-sort select {
    min-width: 130px;

    padding: 10px 13px;

    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 13px;

    outline: 0;

    background: rgba(248, 244, 246, 0.85);

    color: #5d5158;

    font-family: inherit;
    font-size: 11px;

    cursor: pointer;
}


/* =========================================================
   PRODUCTS GRID
========================================================= */

.products-grid-section {
    margin-top: 22px;
}

.products-grid {
    display: grid;

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

    gap: 17px;
}


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

.product-card {
    position: relative;

    min-width: 0;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 24px;

    background: rgba(255, 255, 255, 0.66);

    color: inherit;
    text-decoration: none;

    box-shadow:
        0 15px 40px rgba(80, 50, 65, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 22px 55px rgba(80, 50, 65, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}


/* PRODUCT IMAGE */

.product-image {
    position: relative;

    aspect-ratio: 1 / 1;

    padding: 10px;
}

.product-image-inner {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    overflow: hidden;

    border-radius: 18px;

    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(217, 120, 155, 0.15),
            transparent 40%
        ),
        radial-gradient(
            circle at 75% 75%,
            rgba(201, 164, 93, 0.13),
            transparent 40%
        ),
        #f8f3f5;
}

.product-image-inner img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.45s ease;
}

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

.product-placeholder {
    width: 72px;
    height: 72px;

    display: grid;
    place-items: center;

    border-radius: 23px;

    background:
        linear-gradient(
            145deg,
            rgba(217, 120, 155, 0.14),
            rgba(201, 164, 93, 0.12)
        );

    color: #d9789b;

    font-size: 30px;
}


/* PRODUCT INFO */

.product-info {
    padding: 3px 15px 17px;
}

.product-category {
    display: inline-block;

    margin-bottom: 7px;

    color: #c19b51;

    font-size: 9px;
    font-weight: 900;
}

.product-name {
    margin: 0;

    min-height: 40px;

    color: #3d3439;

    font-size: 13px;
    font-weight: 900;
    line-height: 1.7;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 12px;
    gap: 8px;
}

.product-price {
    color: #d16d91;

    font-size: 13px;
    font-weight: 950;
}

.product-price small {
    color: #8f8088;

    font-size: 8px;
    font-weight: 700;
}

.product-arrow {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: rgba(217, 120, 155, 0.09);

    color: #d9789b;

    font-size: 15px;

    transition: 0.25s ease;
}

.product-card:hover .product-arrow {
    transform: translateX(-3px);
    background: rgba(217, 120, 155, 0.15);
}


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

.products-empty {
    padding: 70px 20px;

    text-align: center;

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;

    background: rgba(255, 255, 255, 0.55);

    box-shadow:
        0 15px 45px rgba(80, 50, 65, 0.06);
}

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

    margin: 0 auto 17px;

    display: grid;
    place-items: center;

    border-radius: 24px;

    background: rgba(217, 120, 155, 0.10);

    color: #d9789b;

    font-size: 30px;
}

.products-empty h3 {
    margin: 0 0 8px;

    color: #40363c;

    font-size: 18px;
}

.products-empty p {
    margin: 0 0 18px;

    color: #95878f;

    font-size: 12px;
}

.products-empty button {
    padding: 11px 18px;

    border: 0;
    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #d9789b,
            #c9a45d
        );

    color: #fff;

    font-family: inherit;
    font-size: 11px;
    font-weight: 900;

    cursor: pointer;
}


/* =========================================================
   FOOTER
========================================================= */

.products-footer {
    width: min(1180px, calc(100% - 32px));

    margin: 0 auto 110px;

    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 22px;

    background: rgba(255, 255, 255, 0.54);

    box-shadow:
        0 15px 40px rgba(80, 50, 65, 0.06);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.products-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.products-footer-brand span {
    color: #44383f;

    font-size: 13px;
    font-weight: 950;
}

.products-footer-brand small {
    color: #978992;
    font-size: 9px;
}

.products-footer > a {
    color: #d9789b;

    text-decoration: none;

    font-size: 10px;
    font-weight: 900;
}


/* =========================================================
   BOTTOM NAVIGATION
========================================================= */

.bottom-control-bar {
    position: fixed;

    left: 50%;
    bottom: 12px;

    transform: translateX(-50%);

    width: min(94%, 620px);
    height: 70px;

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;

    padding: 7px;

    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 25px;

    background: rgba(255, 255, 255, 0.76);

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    box-shadow:
        0 18px 55px rgba(70, 45, 60, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);

    z-index: 9990;
}

.bottom-control-item {
    position: relative;

    height: 56px;

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

    gap: 4px;

    border-radius: 19px;

    color: #806e77;
    text-decoration: none;

    transition: 0.25s ease;
}

.bottom-control-item > span:first-child {
    font-size: 21px;
    line-height: 1;
}

.bottom-control-item small {
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.bottom-control-item:hover {
    color: #d9789b;
    transform: translateY(-2px);
}

.bottom-control-item.active {
    color: #d9789b;

    background:
        linear-gradient(
            145deg,
            rgba(217, 120, 155, 0.14),
            rgba(240, 182, 200, 0.10)
        );
}

.bottom-control-item.active > span:first-child {
    transform: translateY(-2px);
}

.bottom-cart b {
    position: absolute;

    top: 3px;
    right: 24%;

    min-width: 17px;
    height: 17px;

    display: grid;
    place-items: center;

    padding: 0 4px;

    border-radius: 50px;

    background: #d9789b;
    color: #fff;

    font-size: 8px;
    font-weight: 900;
}


/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode .products-header,
body.dark-mode .back-to-store,
body.dark-mode .products-hero,
body.dark-mode .products-search-card,
body.dark-mode .products-tools,
body.dark-mode .product-card,
body.dark-mode .products-empty,
body.dark-mode .products-footer,
body.dark-mode .bottom-control-bar {
    background: rgba(29, 26, 30, 0.78);

    border-color: rgba(255, 255, 255, 0.08);

    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.dark-mode .products-brand-text strong,
body.dark-mode .products-hero h1,
body.dark-mode .section-heading h2,
body.dark-mode .products-tools-title span,
body.dark-mode .product-name,
body.dark-mode .products-empty h3,
body.dark-mode .products-footer-brand span {
    color: #f4edf1;
}

body.dark-mode .products-brand-text small,
body.dark-mode .products-hero p,
body.dark-mode .products-result-count,
body.dark-mode .products-tools-title small,
body.dark-mode .product-price small,
body.dark-mode .products-empty p,
body.dark-mode .products-footer-brand small {
    color: #aaa0a6;
}

body.dark-mode .products-theme-btn,
body.dark-mode .products-cart-btn,
body.dark-mode .category-filter,
body.dark-mode .products-sort select {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: #d9cfd4;
}

body.dark-mode .products-search-box {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .products-search-box input {
    color: #f5eef2;
}

body.dark-mode .products-image-inner,
body.dark-mode .product-image-inner {
    background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .bottom-control-item {
    color: #aaa0a6;
}

body.dark-mode .bottom-control-item.active,
body.dark-mode .bottom-control-item:hover {
    color: #f0a4be;
}


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

@media (max-width: 1000px) {

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

}


@media (max-width: 720px) {

    .products-page {
        width: min(100% - 18px, 620px);
        padding-top: 22px;
        padding-bottom: 110px;
    }

    .products-header {
        width: calc(100% - 18px);
        margin-top: 9px;
    }

    .products-header-inner {
        min-height: 66px;
    }

    .products-brand-symbol {
        width: 40px;
        height: 40px;
    }

    .products-brand-text strong {
        font-size: 14px;
    }

    .products-brand-text small {
        font-size: 8px;
    }

    .products-theme-btn,
    .products-cart-btn {
        width: 40px;
        height: 40px;
    }

    .products-hero {
        min-height: 205px;
        padding: 28px 23px;
        border-radius: 27px;
    }

    .products-hero-symbol {
        width: 80px;
        height: 80px;
        border-radius: 27px;
        font-size: 38px;
    }

    .products-hero h1 {
        font-size: 30px;
    }

    .products-hero p {
        max-width: 220px;
        font-size: 11px;
    }

    .products-filter-section {
        margin-top: 30px;
    }

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

        gap: 11px;
    }

    .product-card {
        border-radius: 20px;
    }

    .product-image {
        padding: 7px;
    }

    .product-image-inner {
        border-radius: 15px;
    }

    .product-info {
        padding: 2px 11px 13px;
    }

    .product-name {
        font-size: 11px;
    }

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

    .product-arrow {
        width: 27px;
        height: 27px;
    }

    .products-tools {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .products-sort {
        justify-content: space-between;
    }

    .products-sort select {
        flex: 1;
    }

    .products-footer {
        width: calc(100% - 18px);
        margin-bottom: 92px;
    }

    .bottom-control-bar {
        width: calc(100% - 16px);
        height: 67px;
        bottom: 8px;
        padding: 5px;
        border-radius: 23px;
    }

    .bottom-control-item {
        height: 54px;
        border-radius: 18px;
    }

    .bottom-control-item > span:first-child {
        font-size: 20px;
    }

    .bottom-control-item small {
        font-size: 8px;
    }

    .bottom-cart b {
        top: 2px;
        right: 19%;
    }

}


@media (max-width: 390px) {

    .products-brand-text {
        display: none;
    }

    .products-hero {
        padding: 25px 18px;
    }

    .products-hero-symbol {
        width: 65px;
        height: 65px;
        font-size: 30px;
    }

    .products-hero h1 {
        font-size: 26px;
    }

    .section-heading h2 {
        font-size: 18px;
    }

    .products-grid {
        gap: 8px;
    }

    .product-info {
        padding-left: 9px;
        padding-right: 9px;
    }

    .product-name {
        font-size: 10px;
    }

}
/* =========================================
   PRODUCTS - BOTTOM NAV ICONS
========================================= */

.bottom-control-item {
    gap: 3px;
}

.bottom-control-icon {
    transition: transform .25s ease;
}

.bottom-control-item.active .bottom-control-icon {
    transform: translateY(-2px);
}

.bottom-control-item:hover .bottom-control-icon {
    transform: translateY(-2px);
}

.bottom-control-item > span:last-of-type {
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}