/*
Theme: InDreams
WooCommerce: Physical Product

Used by:
 /single-physical-product.php
*/


/* =========================================================
   FOUNDATION
   ========================================================= */

.indreams-physical-product-page {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    color: #f8f2e8;

    background:
        linear-gradient(
            180deg,
            #080316 0%,
            #09051d 48%,
            #080828 100%
        );

    font-family:
        "Outfit",
        sans-serif;
}


.indreams-product-shell {
    position: relative;
    z-index: 2;

    width:
        min(
            1233px,
            calc(100% - 48px)
        );

    margin-left: auto;
    margin-right: auto;
}


.indreams-product-shell--content {
    width:
        min(
            1040px,
            calc(100% - 48px)
        );
}


/* =========================================================
   COSMIC BACKGROUND
   ========================================================= */

.indreams-product-cosmic-bg {
    position: absolute;
    inset: 0;
    z-index: 0;

    background:
        radial-gradient(
            ellipse at 12% 23%,
            rgba(156, 0, 188, 0.52),
            transparent 48%
        ),
        radial-gradient(
            ellipse at 88% 56%,
            rgba(0, 151, 175, 0.33),
            transparent 50%
        ),
        radial-gradient(
            ellipse at 48% 100%,
            rgba(48, 126, 75, 0.2),
            transparent 58%
        ),
        #080417;
}


.indreams-product-stars {
    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;

    opacity: 0.55;

    background-image:
        radial-gradient(
            1px 1px at 16% 20%,
            rgba(255, 244, 210, 0.9),
            transparent
        ),
        radial-gradient(
            1px 1px at 42% 34%,
            rgba(255, 238, 188, 0.7),
            transparent
        ),
        radial-gradient(
            1.5px 1.5px at 76% 18%,
            rgba(255, 245, 205, 0.82),
            transparent
        ),
        radial-gradient(
            1px 1px at 84% 46%,
            rgba(255, 239, 190, 0.8),
            transparent
        ),
        radial-gradient(
            1px 1px at 31% 80%,
            rgba(255, 237, 192, 0.67),
            transparent
        );

    background-size:
        420px 420px;
}


/* =========================================================
   PRODUCT HERO
   ========================================================= */

.indreams-product-hero {
    position: relative;
    overflow: hidden;

    padding:
        148px 0 94px;

    isolation: isolate;
}


.indreams-product-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.92fr)
        minmax(0, 1.08fr);

    gap: 72px;

    align-items: start;
}


/* =========================================================
   PRODUCT GALLERY
   ========================================================= */

.indreams-product-gallery {
    min-width: 0;
}


.indreams-product-main-image {
    position: relative;
    overflow: hidden;

    margin: 0;
    padding: 10px;

    border:
        1px solid
        rgba(216, 175, 72, 0.28);

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(27, 8, 50, 0.94),
            rgba(7, 12, 41, 0.96)
        );

    box-shadow:
        0 0 45px
        rgba(207, 64, 215, 0.13),
        0 22px 65px
        rgba(0, 0, 0, 0.36);
}


.indreams-product-main-image-link {
    display: block;
    overflow: hidden;

    border-radius: 17px;

    background: #0b0718;

    text-decoration: none;
}


.indreams-product-main-image-img {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    border-radius: 17px;

    transition:
        transform 0.35s ease;
}


.indreams-product-main-image-link:hover
.indreams-product-main-image-img {
    transform: scale(1.015);
}


.indreams-product-main-image--placeholder {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 460px;
}


.indreams-product-thumbnails {
    display: grid;

    grid-template-columns:
        repeat(
            5,
            minmax(0, 1fr)
        );

    gap: 11px;

    margin-top: 15px;
}


.indreams-product-thumbnail {
    display: block;
    overflow: hidden;

    padding: 4px;

    border:
        1px solid
        rgba(216, 175, 72, 0.18);

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.025);

    opacity: 0.7;

    text-decoration: none;

    transition:
        opacity 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.indreams-product-thumbnail:hover,
.indreams-product-thumbnail.is-active {
    opacity: 1;

    transform:
        translateY(-2px);

    border-color:
        rgba(232, 196, 95, 0.75);

    box-shadow:
        0 0 20px
        rgba(216, 175, 72, 0.1);
}


.indreams-product-thumbnail img {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    border-radius: 8px;
}


/* =========================================================
   PRODUCT SUMMARY
   ========================================================= */

.indreams-product-summary {
    min-width: 0;
    padding-top: 10px;
}


.indreams-product-eyebrow {
    margin-bottom: 16px;

    color: #e25dcc;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.36em;
    line-height: 1.5;

    text-transform: uppercase;
}


.indreams-product-title {
    max-width: 650px;

    margin: 0;

    color: #f8f2e8;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size:
        clamp(
            52px,
            5.6vw,
            76px
        );

    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 0.98;
}


.indreams-product-price {
    margin-top: 25px;

    color: #e3b44f;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size:
        clamp(
            32px,
            3.3vw,
            42px
        );

    font-weight: 500;
    line-height: 1;
}


.indreams-product-price del {
    margin-right: 10px;

    color:
        rgba(
            248,
            242,
            232,
            0.42
        );

    font-size: 0.72em;
}


.indreams-product-price ins {
    color: #e7b94e;

    text-decoration: none;
}


/* =========================================================
   RATING
   ========================================================= */

.indreams-product-rating {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    align-items: center;

    margin-top: 17px;
}


.indreams-product-rating
.star-rating {
    float: none;

    width: 5.4em;

    margin: 0;

    color: #e6b53b;

    font-size: 16px;
}


.indreams-product-rating
.star-rating::before {
    color:
        rgba(
            230,
            181,
            59,
            0.28
        );
}


.indreams-product-rating span {
    color:
        rgba(
            248,
            242,
            232,
            0.53
        );

    font-size: 11px;
}


/* =========================================================
   SHORT DESCRIPTION
   ========================================================= */

.indreams-product-short-description {
    max-width: 650px;

    margin-top: 27px;

    color:
        rgba(
            248,
            242,
            232,
            0.79
        );

    font-size: 15px;
    line-height: 1.75;
}


.indreams-product-short-description p {
    margin:
        0 0 17px;
}


.indreams-product-short-description p:last-child {
    margin-bottom: 0;
}


.indreams-product-short-description strong {
    color: #f1d28a;

    font-weight: 600;
}


/* =========================================================
   STOCK
   ========================================================= */

.indreams-product-stock {
    margin-top: 22px;
}


.indreams-product-stock
.stock {
    display: inline-flex;

    margin: 0;

    padding:
        7px 12px;

    border:
        1px solid
        rgba(89, 211, 171, 0.22);

    border-radius: 999px;

    color: #77d7b5;

    background:
        rgba(57, 172, 135, 0.07);

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;

    text-transform: uppercase;
}


/* =========================================================
   PURCHASE CARD
   ========================================================= */

.indreams-product-purchase-card {
    position: relative;

    margin-top: 34px;

    padding: 30px;

    border:
        1px solid
        rgba(216, 175, 72, 0.24);

    border-radius: 21px;

    background:
        linear-gradient(
            145deg,
            rgba(26, 8, 48, 0.88),
            rgba(7, 14, 48, 0.9)
        );

    box-shadow:
        0 18px 48px
        rgba(0, 0, 0, 0.24);
}


.indreams-product-purchase-card::before {
    content: "";

    position: absolute;

    top: -1px;
    left: 32px;

    width: 74px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            #dc49d3,
            #e6bb50
        );
}


.indreams-product-purchase-label {
    color: #d8aa47;

    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.3em;

    text-transform: uppercase;
}


.indreams-product-purchase-heading {
    margin-top: 8px;

    color: #f8f2e8;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size:
        clamp(
            26px,
            2.8vw,
            34px
        );

    font-weight: 500;
    line-height: 1.12;
}


/* =========================================================
   CART FORM
   ========================================================= */

.indreams-product-cart {
    margin-top: 25px;
}


.indreams-product-cart
form.cart {
    display: flex;
    flex-wrap: wrap;

    gap: 16px;

    align-items: center;

    margin: 0;
}


.indreams-product-cart
form.cart::before,
.indreams-product-cart
form.cart::after {
    display: none;
}


/* =========================================================
   QUANTITY CONTROL
   ========================================================= */

/*
 * Finished appearance:
 *
 * ┌─────────────────────┐
 * │   −    │  1  │   + │
 * └─────────────────────┘
 *
 * The three elements share ONE outer container.
 */

.indreams-product-cart
.quantity.indreams-quantity-ready {
    display: inline-flex !important;

    flex: 0 0 auto;

    width: 154px;
    height: 52px;

    margin: 0 !important;
    padding: 0 !important;

    align-items: stretch;
    justify-content: center;

    overflow: hidden;

    float: none !important;

    border:
        1px solid
        rgba(216, 175, 72, 0.42);

    border-radius: 14px;

    background:
        rgba(
            7,
            7,
            39,
            0.72
        );

    box-shadow:
        inset 0 0 20px
        rgba(0, 0, 0, 0.16);
}


/* =========================================================
   QUANTITY NUMBER
   ========================================================= */

.indreams-product-cart
.quantity.indreams-quantity-ready
.qty {
    display: block;

    flex: 1 1 auto;

    width: 54px !important;
    min-width: 0 !important;
    height: 50px !important;
    min-height: 50px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-left:
        1px solid
        rgba(216, 175, 72, 0.18) !important;
    border-right:
        1px solid
        rgba(216, 175, 72, 0.18) !important;

    border-radius: 0 !important;

    outline: 0 !important;

    color: #ffffff !important;

    background:
        rgba(
            255,
            255,
            255,
            0.018
        ) !important;

    box-shadow: none !important;

    font-family:
        "Outfit",
        sans-serif !important;

    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 50px !important;

    text-align: center !important;

    appearance: textfield;
    -moz-appearance: textfield;
}


.indreams-product-cart
.quantity.indreams-quantity-ready
.qty::-webkit-outer-spin-button,
.indreams-product-cart
.quantity.indreams-quantity-ready
.qty::-webkit-inner-spin-button {
    margin: 0;

    -webkit-appearance: none;
}


/* =========================================================
   PLUS / MINUS BUTTONS
   ========================================================= */

.indreams-product-cart
.indreams-qty-button {
    display: flex !important;

    flex:
        0 0 49px;

    width: 49px !important;
    height: 50px !important;
    min-width: 49px !important;
    min-height: 50px !important;

    margin: 0 !important;
    padding: 0 !important;

    align-items: center;
    justify-content: center;

    border: 0 !important;
    border-radius: 0 !important;

    outline: 0 !important;

    color:
        rgba(
            248,
            242,
            232,
            0.88
        ) !important;

    background:
        transparent !important;

    box-shadow: none !important;

    font-family:
        "Outfit",
        sans-serif !important;

    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition:
        color 0.18s ease,
        background 0.18s ease;
}


.indreams-product-cart
.indreams-qty-button:hover {
    color: #ffffff !important;

    background:
        rgba(
            216,
            175,
            72,
            0.09
        ) !important;
}


.indreams-product-cart
.indreams-qty-button:focus-visible {
    outline:
        1px solid
        rgba(232, 196, 95, 0.8) !important;

    outline-offset: -2px !important;
}


.indreams-product-cart
.quantity.indreams-quantity-ready:focus-within {
    border-color:
        rgba(
            232,
            196,
            95,
            0.78
        );

    box-shadow:
        0 0 0 3px
        rgba(
            216,
            175,
            72,
            0.07
        );
}


/* =========================================================
   ADD TO CART BUTTON
   ========================================================= */

.indreams-product-cart
.single_add_to_cart_button,
.indreams-product-cart
button.single_add_to_cart_button,
.indreams-product-cart
.woocommerce-variation-add-to-cart
.single_add_to_cart_button {
    display: inline-flex;

    flex: 0 0 auto;

    width: auto !important;
    min-width: 210px;
    max-width: 240px;

    height: 52px;
    min-height: 52px;

    padding:
        0 28px !important;

    align-items: center;
    justify-content: center;

    border:
        0 !important;

    border-radius:
        14px !important;

    color:
        #ffffff !important;

    background:
        linear-gradient(
            90deg,
            #df43d9 0%,
            #b84de5 50%,
            #9461ee 100%
        ) !important;

    box-shadow:
        0 0 31px
        rgba(204, 63, 220, 0.4);

    font-family:
        "Outfit",
        sans-serif;

    font-size:
        14px !important;

    font-weight:
        600 !important;

    line-height:
        1 !important;

    text-transform:
        none !important;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}


.indreams-product-cart
.single_add_to_cart_button:hover {
    transform:
        translateY(-2px);

    filter:
        brightness(1.08);

    box-shadow:
        0 0 42px
        rgba(204, 63, 220, 0.58);
}


/* =========================================================
   VARIABLE PRODUCTS
   ========================================================= */

.indreams-product-cart
.variations {
    width: 100%;

    margin:
        0 0 20px;

    border: 0;
}


.indreams-product-cart
.variations tbody,
.indreams-product-cart
.variations tr,
.indreams-product-cart
.variations th,
.indreams-product-cart
.variations td {
    display: block;

    border: 0;
}


.indreams-product-cart
.variations tr {
    margin-bottom: 16px;
}


.indreams-product-cart
.variations th {
    padding:
        0 0 7px;

    text-align: left;
}


.indreams-product-cart
.variations label {
    color: #d7aa47;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.indreams-product-cart
.variations td {
    padding: 0;
}


.indreams-product-cart
.variations select {
    width: 100%;
    min-height: 47px;

    padding:
        10px 42px
        10px 14px;

    border:
        1px solid
        rgba(216, 175, 72, 0.32);

    border-radius: 12px;

    outline: 0;

    color: #f8f2e8;

    background: #100b25;

    font-family:
        "Outfit",
        sans-serif;

    font-size: 13px;
}


.indreams-product-cart
.variations select option {
    color: #f8f2e8;

    background: #100b25;
}


.indreams-product-cart
.reset_variations {
    display: inline-block;

    margin-top: 8px;

    color:
        rgba(
            248,
            242,
            232,
            0.48
        ) !important;

    font-size: 10px;

    text-decoration: none;
}


.indreams-product-cart
.reset_variations:hover {
    color:
        #d9aa47 !important;
}


.indreams-product-cart
.single_variation_wrap {
    width: 100%;
}


.indreams-product-cart
.woocommerce-variation-price {
    margin:
        0 0 16px;

    color: #e3b44f;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 29px;
}


.indreams-product-cart
.woocommerce-variation-description {
    margin-bottom: 17px;

    color:
        rgba(
            248,
            242,
            232,
            0.7
        );

    font-size: 13px;
    line-height: 1.65;
}


.indreams-product-cart
.woocommerce-variation-availability
.stock {
    margin:
        0 0 15px;

    color: #77d7b5;

    font-size: 11px;
}


/* =========================================================
   GROUPED PRODUCTS
   ========================================================= */

.indreams-product-cart
.woocommerce-grouped-product-list {
    width: 100%;

    margin-bottom: 20px;

    border-collapse:
        collapse;
}


.indreams-product-cart
.woocommerce-grouped-product-list td {
    padding:
        12px 8px;

    border-bottom:
        1px solid
        rgba(216, 175, 72, 0.13);

    color:
        rgba(
            248,
            242,
            232,
            0.76
        );

    font-size: 12px;
}


.indreams-product-cart
.woocommerce-grouped-product-list
a {
    color: #f0d28b;

    text-decoration: none;
}


/* =========================================================
   UNAVAILABLE
   ========================================================= */

.indreams-product-unavailable {
    margin-top: 20px;

    padding:
        14px 16px;

    border:
        1px solid
        rgba(226, 93, 204, 0.22);

    border-radius: 12px;

    color:
        rgba(
            248,
            242,
            232,
            0.7
        );

    background:
        rgba(226, 93, 204, 0.045);

    font-size: 12px;
}


/* =========================================================
   PRODUCT META
   ========================================================= */

.indreams-product-meta {
    display: flex;
    flex-wrap: wrap;

    gap:
        16px 34px;

    margin-top: 27px;
    padding-top: 23px;

    border-top:
        1px solid
        rgba(216, 175, 72, 0.13);
}


.indreams-product-meta > div {
    display: flex;

    gap: 9px;

    align-items: baseline;
}


.indreams-product-meta span {
    color:
        rgba(
            248,
            242,
            232,
            0.4
        );

    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.13em;

    text-transform: uppercase;
}


.indreams-product-meta strong {
    color:
        rgba(
            248,
            242,
            232,
            0.75
        );

    font-size: 10px;
    font-weight: 500;
}


.indreams-product-meta a {
    color:
        rgba(
            248,
            242,
            232,
            0.75
        ) !important;

    text-decoration: none;
}


/* =========================================================
   DESCRIPTION SECTION
   ========================================================= */

.indreams-product-description-section {
    padding:
        88px 0;

    background:
        linear-gradient(
            180deg,
            #10041e,
            #080c35
        );
}


.indreams-product-section-heading {
    text-align: center;
}


.indreams-product-script {
    color: #d9aa49;

    font-family:
        "Italianno",
        cursive;

    font-size:
        clamp(
            32px,
            3.6vw,
            43px
        );

    font-weight: 400;
    line-height: 1;
}


.indreams-product-section-heading h2 {
    margin:
        11px 0 0;

    color: #f8f2e8;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size:
        clamp(
            42px,
            5vw,
            62px
        );

    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.04;
}


.indreams-product-description-card {
    margin-top: 40px;

    padding:
        42px 46px;

    border:
        1px solid
        rgba(216, 175, 72, 0.2);

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(23, 8, 46, 0.68),
            rgba(6, 13, 43, 0.72)
        );

    box-shadow:
        0 18px 50px
        rgba(0, 0, 0, 0.2);
}


.indreams-product-description {
    color:
        rgba(
            248,
            242,
            232,
            0.77
        );

    font-size: 15px;
    line-height: 1.8;
}


.indreams-product-description p {
    margin:
        0 0 19px;
}


.indreams-product-description p:last-child {
    margin-bottom: 0;
}


.indreams-product-description h2,
.indreams-product-description h3,
.indreams-product-description h4 {
    margin:
        32px 0 13px;

    color: #f8f2e8;

    font-family:
        "Cormorant Garamond",
        serif;

    font-weight: 500;
    line-height: 1.15;
}


.indreams-product-description strong {
    color: #f0d18b;
}


/* =========================================================
   HELP CTA
   ========================================================= */

.indreams-product-help-section {
    padding:
        84px 0 96px;

    background:
        linear-gradient(
            180deg,
            #0c051c,
            #080d31
        );
}


.indreams-product-help-card {
    display: flex;

    gap: 44px;

    align-items: center;
    justify-content: space-between;

    padding:
        38px 42px;

    border:
        1px solid
        rgba(216, 175, 72, 0.22);

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(24, 7, 37, 0.9),
            rgba(5, 14, 46, 0.92)
        );
}


.indreams-product-help-card h2 {
    margin:
        7px 0 0;

    color: #f8f2e8;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size:
        clamp(
            34px,
            4vw,
            48px
        );

    font-weight: 500;
    line-height: 1.05;
}


.indreams-product-help-card p {
    max-width: 590px;

    margin:
        14px 0 0;

    color:
        rgba(
            248,
            242,
            232,
            0.66
        );

    font-size: 13px;
    line-height: 1.7;
}


.indreams-product-help-button {
    display: inline-flex;

    flex: 0 0 auto;

    min-height: 47px;

    padding:
        13px 24px;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(219, 181, 81, 0.44);

    border-radius: 999px;

    color:
        #f8f2e8 !important;

    background:
        rgba(
            255,
            255,
            255,
            0.02
        );

    font-size: 12px;
    font-weight: 600;

    text-decoration:
        none !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .indreams-product-hero {
        padding-top: 122px;
    }


    .indreams-product-grid {
        gap: 44px;

        grid-template-columns:
            minmax(0, 0.95fr)
            minmax(0, 1.05fr);
    }


    .indreams-product-purchase-card {
        padding: 25px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .indreams-product-shell,
    .indreams-product-shell--content {
        width:
            min(
                100% - 30px,
                1233px
            );
    }


    .indreams-product-hero {
        padding:
            120px 0 58px;
    }


    .indreams-product-grid {
        grid-template-columns:
            1fr;

        gap: 39px;
    }


    .indreams-product-title {
        font-size:
            clamp(
                45px,
                13vw,
                62px
            );
    }


    .indreams-product-thumbnails {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );
    }


    .indreams-product-purchase-card {
        margin-top: 28px;

        padding:
            24px 20px;
    }


    .indreams-product-cart
    form.cart {
        flex-direction: column;

        align-items: flex-start;
    }


    .indreams-product-cart
    .quantity.indreams-quantity-ready {
        width: 154px;
    }


    .indreams-product-cart
    .single_add_to_cart_button,
    .indreams-product-cart
    button.single_add_to_cart_button {
        width: 100% !important;

        max-width: 100%;
    }


    .indreams-product-meta {
        flex-direction: column;

        gap: 11px;
    }


    .indreams-product-description-section {
        padding:
            58px 0;
    }


    .indreams-product-description-card {
        margin-top: 31px;

        padding:
            27px 21px;
    }


    .indreams-product-help-section {
        padding:
            58px 0;
    }


    .indreams-product-help-card {
        flex-direction: column;

        gap: 27px;

        align-items: flex-start;

        padding:
            28px 22px;
    }


    .indreams-product-help-button {
        width: 100%;

        max-width: 330px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .indreams-product-thumbnails {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }
}