/* =========================================================
   CUBE AROMA — SCENTS PAGE
   Same visual system as Devices
   ========================================================= */

.cube-scents-page {
    --cube-bg: #FFFDFB;
    --cube-soft: #F8F1E8;
    --cube-beige: #EAD6C9;
    --cube-dark: #4D4C50;
    --cube-grey: #5C5D60;

    width: 100%;
    margin: 0;
    padding: 0;

    background: var(--cube-bg);
    color: var(--cube-dark);

    font-family: "Cairo", sans-serif;
}

.cube-scents-page *,
.cube-scents-page *::before,
.cube-scents-page *::after {
    box-sizing: border-box;
}

.cube-scents-page a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   HERO — SAME DIMENSIONS AS DEVICES
   ========================================================= */

.cube-scents-hero {
    position: relative;

    width: 100%;
    height: 390px;

    overflow: hidden;

    background: var(--cube-beige);
}

.cube-scents-hero-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.cube-scents-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            270deg,
            rgba(77, 76, 80, 0.56) 0%,
            rgba(77, 76, 80, 0.14) 42%,
            rgba(77, 76, 80, 0) 72%
        );

    pointer-events: none;
}

.cube-scents-hero-content {
    position: absolute;

    right: clamp(28px, 6vw, 90px);
    bottom: 42px;

    z-index: 2;

    width: min(460px, calc(100% - 56px));

    color: #ffffff;

    text-align: right;
}

.cube-scents-hero-content h1 {
    margin: 0 0 9px;

    color: #ffffff;

    font-size: clamp(34px, 4vw, 52px);
    font-weight: 600;
    line-height: 1.25;
}

.cube-scents-hero-content p {
    max-width: 420px;

    margin: 0;

    color: rgba(255, 255, 255, 0.92);

    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
}


/* =========================================================
   COLLECTIONS SECTION
   SAME PAGE WIDTH AS DEVICES PRODUCTS
   ========================================================= */

.cube-scents-collections-section {
    width: 100%;

    padding: 50px 32px 20px;

    background: var(--cube-bg);
}

.cube-scents-collections-grid {
    display: grid;

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

    gap: 10px;

    width: 100%;
    max-width: 1365px;

    margin: 0 auto;
}


/* =========================================================
   COLLECTION CARD
   Same palette / geometry as product card
   ========================================================= */

.cube-scents-collection-card {
    position: relative;

    min-width: 0;

    overflow: hidden;

    background: var(--cube-soft);

    border-radius: 12px;

    transition: transform 0.25s ease;
}

.cube-scents-collection-card:hover {
    transform: translateY(-4px);
}

.cube-scents-collection-card.is-active {
    box-shadow:
        0 0 0 1px rgba(77, 76, 80, 0.18) inset;
}


/* =========================================================
   COLLECTION IMAGE
   ========================================================= */

.cube-scents-collection-image-wrap {
    position: relative;

    display: block;

    width: 100%;
    aspect-ratio: 3.2 / 1;

    overflow: hidden;

    background: var(--cube-bg);

    line-height: 0;
}

.cube-scents-collection-image {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.cube-scents-collection-card:hover .cube-scents-collection-image {
    transform: scale(1.025);
}


/* =========================================================
   COLLECTION CONTENT
   ========================================================= */

.cube-scents-collection-content {
    padding: 10px 14px 12px;

    text-align: right;
}

.cube-scents-collection-content h2 {
    margin: 0 0 5px;

    color: var(--cube-dark);

    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;

    text-align: right;
}

.cube-scents-collection-link {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: var(--cube-grey);

    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.cube-scents-collection-link::after {
    content: "";

    display: block;

    width: 12px;
    height: 12px;

    flex: 0 0 12px;

    background-color: currentColor;

    -webkit-mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E")
        center / contain no-repeat;

    mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E")
        center / contain no-repeat;

    transition: transform 0.2s ease;
}

.cube-scents-collection-card:hover .cube-scents-collection-link::after {
    transform: translateX(-2px);
}


/* =========================================================
   PRODUCTS SECTION — SAME DIMENSIONS AS DEVICES
   ========================================================= */

.cube-scents-products-section {
    width: 100%;

    padding: 50px 32px 76px;

    background: var(--cube-bg);
}

.cube-scents-products-heading {
    display: flex;

    width: 100%;
    max-width: 1365px;

    margin: 0 auto 26px;

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

    gap: 20px;

    text-align: right;
}

.cube-scents-products-heading h2 {
    margin: 0;

    color: var(--cube-dark);

    font-size: 34px;
    font-weight: 600;
    line-height: 1.4;
}

.cube-scents-view-all {
    color: var(--cube-grey);

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

    transition: opacity 0.2s ease;
}

.cube-scents-view-all:hover {
    color: var(--cube-dark);

    opacity: 0.72;
}


/* =========================================================
   PRODUCTS GRID — SAME AS DEVICES
   ========================================================= */

.cube-scents-products-grid {
    display: grid;

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

    gap: 10px;

    width: 100%;
    max-width: 1365px;

    margin: 0 auto;
}


/* =========================================================
   PRODUCT CARD — SAME AS DEVICES
   ========================================================= */

.cube-scents-product-card {
    position: relative;

    min-width: 0;

    overflow: hidden;

    background: var(--cube-soft);

    border-radius: 12px;

    transition: transform 0.25s ease;
}

.cube-scents-product-card:hover {
    transform: translateY(-4px);
}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.cube-scents-product-image-wrap {
    position: relative;

    display: block;

    width: 100%;

    overflow: hidden;

    background: var(--cube-bg);

    line-height: 0;
}

.cube-scents-product-image {
    display: block;

    width: 100%;
    height: auto;

    margin: 0;
    padding: 0;

    transition:
        transform 0.4s ease,
        filter 0.3s ease;
}

.cube-scents-product-card:hover .cube-scents-product-image {
    transform: scale(1.025);
}


/* =========================================================
   OUT OF STOCK
   ========================================================= */

.cube-scents-product-card.is-out-of-stock
.cube-scents-product-image {
    filter: grayscale(0.65);
}

.cube-scents-product-stock-overlay {
    position: absolute;
    inset: 0;

    display: flex;

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

    background: rgba(77, 76, 80, 0.22);

    color: #ffffff;

    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}


/* =========================================================
   PRODUCT CONTENT
   ========================================================= */

.cube-scents-product-content {
    padding: 10px 14px 11px;

    display: grid;

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

    grid-template-areas:
        "title"
        "price"
        "note"
        "button";

    row-gap: 6px;

    align-items: center;

    text-align: right;
}


/* =========================================================
   PRODUCT TITLE
   ========================================================= */

.cube-scents-product-title {
    grid-area: title;

    min-width: 0;
    min-height: 0;

    margin: 0;

    color: var(--cube-dark);

    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;

    text-align: right;
}

.cube-scents-product-title a {
    display: block;

    color: var(--cube-dark);

    text-align: right;

    transition: opacity 0.2s ease;
}

.cube-scents-product-title a:hover {
    color: var(--cube-dark);

    opacity: 0.72;
}


/* =========================================================
   PRICE
   ========================================================= */

.cube-scents-product-price {
    grid-area: price;

    min-width: 0;
    min-height: 0;

    margin: 0;

    color: var(--cube-dark);

    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;

   

    text-align: right;
}

.cube-scents-product-price del {
    margin-right: 6px;

    color: var(--cube-grey);

    opacity: 0.55;
}

.cube-scents-product-price ins {
    color: var(--cube-dark);

    text-decoration: none;
}


/* =========================================================
   CAPACITY NOTE
   ========================================================= */

.cube-scents-product-size-note {
    grid-area: note;

    min-height: 0;

    margin: 0;

    color: var(--cube-grey);

    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;

    text-align: right;
}


/* =========================================================
   ADD TO CART BUTTON — SAME AS DEVICES
   ========================================================= */

.cube-scents-page .cube-scents-product-button {
    grid-area: button;

    position: relative;

    display: flex;

    width: 100%;
    min-height: 36px;

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

    flex-direction: row-reverse;

    gap: 7px;

    padding: 7px 10px;

    background: var(--cube-dark);

    border: 1px solid var(--cube-dark);
    border-radius: 7px;

    color: var(--cube-bg);

    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;

    text-align: center;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

.cube-scents-page
.cube-scents-product-button:not(
    .cube-scents-product-button-disabled
)::before {
    content: "";

    display: block;

    width: 15px;
    height: 15px;

    flex: 0 0 15px;

    background-color: currentColor;

    -webkit-mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='19' cy='20' r='1'/%3E%3Cpath d='M3 4h2l2.6 10.4a2 2 0 0 0 2 1.6h7.8a2 2 0 0 0 2-1.6L21 8H7'/%3E%3C/svg%3E")
        center / contain no-repeat;

    mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='19' cy='20' r='1'/%3E%3Cpath d='M3 4h2l2.6 10.4a2 2 0 0 0 2 1.6h7.8a2 2 0 0 0 2-1.6L21 8H7'/%3E%3C/svg%3E")
        center / contain no-repeat;
}

.cube-scents-page .cube-scents-product-button:hover {
    background: var(--cube-bg);

    color: var(--cube-dark);
}

.cube-scents-page .cube-scents-product-button-disabled {
    cursor: default;

    opacity: 0.55;
}

.cube-scents-page .cube-scents-product-button-disabled:hover {
    background: var(--cube-dark);

    color: var(--cube-bg);
}


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

.cube-scents-products-empty {
    grid-column: 1 / -1;

    padding: 60px 20px;

    color: var(--cube-grey);

    text-align: center;
}


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

@media (max-width: 980px) {

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

}


/* =========================================================
   MOBILE — SAME BREAKPOINT / DIMENSIONS AS DEVICES
   ========================================================= */

@media (max-width: 700px) {

    /* Hero */

    .cube-scents-hero {
        height: 300px;
    }

    .cube-scents-hero-content {
        right: 18px;
        bottom: 22px;

        width: calc(100% - 36px);
    }

    .cube-scents-hero-content h1 {
        margin-bottom: 6px;

        font-size: 29px;
    }

    .cube-scents-hero-content p {
        max-width: 290px;

        font-size: 11px;
        line-height: 1.65;
    }


    /* Collections */

    .cube-scents-collections-section {
        padding: 34px 15px 10px;
    }

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

        gap: 10px;
    }

    .cube-scents-collection-card {
        border-radius: 9px;
    }

    .cube-scents-collection-content {
        padding: 8px 7px 9px;
    }

    .cube-scents-collection-content h2 {
        margin-bottom: 4px;

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

    .cube-scents-collection-link {
        gap: 4px;

        font-size: 10.5px;
    }

    .cube-scents-collection-link::after {
        width: 10px;
        height: 10px;

        flex-basis: 10px;
    }


    /* Products */

    .cube-scents-products-section {
        padding: 34px 15px 48px;
    }

    .cube-scents-products-heading {
        margin-bottom: 20px;
    }

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

    .cube-scents-view-all {
        font-size: 10.5px;
    }

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

        gap: 10px;
    }

    .cube-scents-product-card {
        border-radius: 9px;
    }

    .cube-scents-product-content {
        padding: 8px 7px 8px;

        grid-template-areas:
            "title"
            "price"
            "note"
            "button";

        row-gap: 5px;
    }

    .cube-scents-product-title {
        margin: 0;

        font-size: 14px;
        font-weight: 600;
        line-height: 1.3;

        text-align: right;
    }

    .cube-scents-product-title a {
        text-align: right;
    }

    .cube-scents-product-price {
        margin: 0;

        color: var(--cube-dark);

        font-size: 10.5px;
        line-height: 1.35;

        text-align: right;
    }

    .cube-scents-product-size-note {
        font-size: 9.5px;
        line-height: 1.35;
    }

    .cube-scents-page .cube-scents-product-button {
        min-height: 32px;

        gap: 5px;

        padding: 5px;

        border-radius: 6px;

        font-size: 11px;

        flex-direction: row-reverse;
    }

    .cube-scents-page
    .cube-scents-product-button:not(
        .cube-scents-product-button-disabled
    )::before {
        width: 12px;
        height: 12px;

        flex: 0 0 12px;
    }

    .cube-scents-product-stock-overlay {
        font-size: 11px;
    }

}


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

@media (max-width: 360px) {

    .cube-scents-collections-section,
    .cube-scents-products-section {
        padding-right: 10px;
        padding-left: 10px;
    }

    .cube-scents-collections-grid,
    .cube-scents-products-grid {
        gap: 8px;
    }

    .cube-scents-collection-content,
    .cube-scents-product-content {
        padding-right: 6px;
        padding-left: 6px;
    }

    .cube-scents-collection-content h2,
    .cube-scents-product-title {
        font-size: 13px;
    }

    .cube-scents-product-price {
        font-size: 9.5px;
    }

    .cube-scents-page .cube-scents-product-button {
        font-size: 10.5px;
    }

}
