/* =========================================================
   TATE JEWELS - SINGLE PRODUCT
========================================================= */

.tate-single-product {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 28px 20px 60px;
}


/* =========================================================
   TOP SECTION
========================================================= */

.tate-product-top {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(400px, .9fr);
    gap: 28px;
    align-items: start;
}


/* =========================================================
   GALLERY
========================================================= */

.tate-product-gallery {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
    min-width: 0;
}

.tate-product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tate-product-thumb {
    width: 92px;
    height: 92px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
    background: #090707;
    overflow: hidden;
    cursor: pointer;
    transition: .25s ease;
}

.tate-product-thumb.active {
    border-color: #e6293b;
    box-shadow:
        0 0 12px rgba(230,41,59,.55);
}

.tate-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* MAIN IMAGE */

.tate-product-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid #e6293b;
    border-radius: 18px;
    overflow: hidden;
    background: #0a0707;
    box-shadow:
        0 0 16px rgba(230,41,59,.28);
}

.tate-product-slide {
    position: absolute;
    inset: 0;
    display: none;
}

.tate-product-slide.active {
    display: block;
}

.tate-product-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ARROWS */

.tate-gallery-arrow,
.tate-gallery-zoom {
    position: absolute;
    z-index: 3;

    width: 52px;
    height: 52px;

    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;

    background: rgba(5,5,5,.85);
    color: #fff;

    cursor: pointer;

    transition: .25s ease;
}

.tate-gallery-arrow:hover,
.tate-gallery-zoom:hover {
    border-color: #e6293b;
    box-shadow: 0 0 15px rgba(230,41,59,.45);
}

.tate-gallery-prev {
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.tate-gallery-next {
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.tate-gallery-zoom {
    right: 14px;
    bottom: 14px;
}


/* =========================================================
   SUMMARY
========================================================= */

.tate-product-summary {
    min-width: 0;
}

.tate-product-title {
    margin: 0 0 8px;
    color: #f7f1e8;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(34px, 3vw, 48px);
    line-height: 1;
}

.tate-product-price {
    color: #ff2339;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tate-product-price del {
    opacity: .5;
    font-size: 17px;
    margin-right: 8px;
}

.tate-product-price ins {
    text-decoration: none;
}


/* STOCK */

.tate-product-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00e5a0;
    margin-bottom: 18px;
}

.tate-stock-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #00e5a0;
    box-shadow: 0 0 10px #00e5a0;
}


/* =========================================================
   PURCHASE
========================================================= */

.tate-product-purchase-row {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.tate-quantity-box {
    display: flex;
    align-items: center;
    width: 145px;
    height: 54px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: #090909;
    overflow: hidden;
}

.tate-quantity-box button {
    width: 45px;
    height: 100%;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 23px;
    cursor: pointer;
}

.tate-product-quantity {
    width: 55px;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    text-align: center;
    font-size: 17px;
}

.tate-product-quantity::-webkit-inner-spin-button,
.tate-product-quantity::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.tate-add-to-cart {
    flex: 1;
    min-height: 54px;

    border: 0;
    border-radius: 10px;

    background: linear-gradient(
        90deg,
        #e6293b,
        #ff1933
    );

    color: #fff;

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

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(230,41,59,.2);
}

.tate-add-to-cart:hover {
    box-shadow:
        0 0 22px rgba(230,41,59,.55);
}


/* =========================================================
   FEATURES
========================================================= */

.tate-product-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;

    padding: 14px;
    margin-bottom: 16px;

    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: #0b0b0b;
}

.tate-feature {
    text-align: center;
    min-width: 0;
}

.tate-feature-icon {
    width: 42px;
    height: 42px;

    margin: 0 auto 7px;

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

    border: 1px solid #e6293b;
    border-radius: 50%;

    color: #fff;

    box-shadow:
        0 0 12px rgba(230,41,59,.35);
}

.tate-feature strong,
.tate-feature span {
    display: block;
}

.tate-feature strong {
    color: #fff;
    font-size: 13px;
}

.tate-feature span {
    color: #aaa;
    font-size: 10px;
    margin-top: 3px;
}


/* =========================================================
   ATTRIBUTES
========================================================= */

.tate-product-attributes {
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: #0b0b0b;
    padding: 8px 18px;
}

.tate-attribute-row {
    display: grid;
    grid-template-columns: 42% 58%;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 14px;
}

.tate-attribute-row:last-child {
    border-bottom: 0;
}

.tate-attribute-name {
    color: #eee;
}

.tate-attribute-value {
    color: #ccc;
}


/* =========================================================
   TABS
========================================================= */

.tate-product-tabs {
    margin-top: 28px;

    border: 1px solid #e6293b;
    border-radius: 14px;

    background: #0b0b0b;

    overflow: hidden;

    box-shadow:
        0 0 14px rgba(230,41,59,.15);
}

.tate-product-tab-buttons {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
}

.tate-product-tab {
    padding: 12px 24px;

    border: 1px solid rgba(255,255,255,.1);
    border-radius: 9px;

    background: #111;
    color: #fff;

    cursor: pointer;
}

.tate-product-tab.active {
    background: #e6293b;
    border-color: #e6293b;
}

.tate-product-tab-content {
    display: none;
    padding: 14px 20px 22px;
    color: #ddd;
    line-height: 1.65;
}

.tate-product-tab-content.active {
    display: block;
}


/* =========================================================
   RELATED PRODUCTS
========================================================= */

.tate-single-related {
    margin-top: 28px;
}

.tate-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.tate-related-header h2 {
    margin: 0;
    color: #f7f1e8;
    font-family: "Cormorant Garamond", serif;
    font-size: 38px;
}

.tate-related-arrows {
    display: flex;
    gap: 10px;
}

.tate-related-arrows button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.15);
    background: #0c0c0c;
    color: #fff;
    cursor: pointer;
}

.tate-single-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.tate-single-related-grid > * {
    min-width: 0;
    margin: 0 !important;
}


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

@media screen and (max-width: 991px) {

    .tate-product-top {
        grid-template-columns: 1fr;
    }

    .tate-product-summary {
        width: 100%;
    }

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

}


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

@media screen and (max-width: 575px) {

    .tate-single-product {
        width: 100%;
        max-width: 100%;
        padding: 12px 8px 40px;
    }

    .tate-product-top {
        display: block;
    }

    .tate-product-gallery {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 8px;
        margin-bottom: 16px;
    }

    .tate-product-thumb {
        width: 58px;
        height: 58px;
        border-radius: 8px;
    }

    .tate-product-thumbnails {
        gap: 7px;
    }

    .tate-product-main-image {
        border-radius: 12px;
    }

    .tate-gallery-arrow {
        width: 38px;
        height: 38px;
    }

    .tate-gallery-zoom {
        width: 38px;
        height: 38px;
        right: 8px;
        bottom: 8px;
    }

    .tate-product-title {
        font-size: 30px;
    }

    .tate-product-price {
        font-size: 24px;
    }

    .tate-product-purchase-row {
        gap: 8px;
    }

    .tate-quantity-box {
        width: 112px;
        flex-shrink: 0;
    }

    .tate-add-to-cart {
        font-size: 14px;
    }

    .tate-product-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 6px;
    }

    .tate-attribute-row {
        grid-template-columns: 40% 60%;
        font-size: 12px;
    }

    .tate-product-tab-buttons {
        gap: 5px;
        overflow-x: auto;
    }

    .tate-product-tab {
        white-space: nowrap;
        padding: 9px 13px;
        font-size: 12px;
    }

    .tate-product-tab-content {
        padding: 12px;
        font-size: 13px;
    }

    .tate-related-header h2 {
        font-size: 27px;
    }

    .tate-single-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

}

/* =========================================================
   LIGHTBOX
========================================================= */

.tate-image-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;

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

    padding: 30px;

    background: rgba(0,0,0,.94);
}

.tate-image-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.tate-image-close {
    position: absolute;
    top: 20px;
    right: 24px;

    width: 46px;
    height: 46px;

    border: 1px solid #e6293b;
    border-radius: 50%;

    background: #090909;
    color: #fff;

    font-size: 28px;
    cursor: pointer;
}

/* =========================================================
   TATE SINGLE PRODUCT BREADCRUMB
========================================================= */

.tate-single-breadcrumb-wrap {
    width: 100%;
    max-width: 100%;

    padding: 8px 36px 0;

    margin: 0 auto;
}


.tate-single-breadcrumb {
    width: 100%;
    min-height: 52px;

    display: flex;
    align-items: center;

    gap: 18px;

    padding: 0 28px;

    border: 1px solid #e6293b;
    border-radius: 18px;

    background: white;

    box-shadow:
        0 0 14px rgba(230, 41, 59, .28),
        inset 0 0 12px rgba(230, 41, 59, .04);

    color: #fff;

    overflow: hidden;
}


/* HOME */

.tate-breadcrumb-home {
    width: 30px;
    height: 30px;

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

    flex-shrink: 0;

    color: black;
    text-decoration: none;

    font-size: 18px;

    transition: .25s ease;
}

.tate-breadcrumb-home:hover {
    color: #e6293b;

    text-shadow:
        0 0 10px rgba(230, 41, 59, .8);
}


/* ARROWS */

.tate-breadcrumb-arrow,
.tate-breadcrumb-end {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #aaa;

    font-size: 10px;

    flex-shrink: 0;
}


/* CATEGORY */

.tate-breadcrumb-category {
    color: #ddd;
    text-decoration: none;

    font-size: 14px;

    white-space: nowrap;

    transition: .25s ease;
}

.tate-breadcrumb-category:hover {
    color: #e6293b;
}


/* CURRENT PRODUCT */

.tate-breadcrumb-current {
    color: #fff;

    font-size: 14px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    min-width: 0;
}


/* RIGHT END ARROW */

.tate-breadcrumb-end {
    margin-left: auto;

    color: #aaa;
}


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

@media screen and (max-width: 575px) {

    .tate-single-breadcrumb-wrap {
        padding: 6px 8px 0;
    }

    .tate-single-breadcrumb {

        min-height: 42px;

        padding: 0 12px;

        gap: 9px;

        border-radius: 12px;

    }


    .tate-breadcrumb-home {
        width: 25px;
        height: 25px;

        font-size: 14px;
    }


    .tate-breadcrumb-arrow {
        font-size: 8px;
    }


    .tate-breadcrumb-category,
    .tate-breadcrumb-current {

        font-size: 11px;

    }


    /*
     * Keep product name from breaking
     */

    .tate-breadcrumb-current {

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;

    }

}