.custom-product-page {
    padding: 0;
}

.custom-product-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
    gap: 7rem;
    align-items: start;
}

.custom-product-main-image {
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.custom-product-main-image img {
    min-height: 450px;
    min-width: 450px;
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
}

.custom-product-thumbs-wrap {
    position: relative;    
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.custom-product-thumbs {
    display: flex;
    gap: 1rem;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.custom-product-thumbs::-webkit-scrollbar {
    display: none;
}

.custom-product-thumb {
    width: 90px;
    height: 90px;
    flex: 0 0 90px;
    border: 1px solid #eee;
    background: #fff;
    padding: 8px;
    cursor: pointer;
    transition: border-color .2s ease;
}

.custom-product-thumb.is-active {
    border-color: var(--brand-accent-color);
}

.custom-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-scroll-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 999px;
    background: var(--brand-accent-color);
    color: #fff;
    cursor: pointer;
    flex: 0 0 32px;
}

.custom-product-summary {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-product-mobile-top {
    display: none;
}

.product-share-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: var(--brand-accent-color);
    color: #fff;
    cursor: pointer;
}

.custom-product-title {
    color: var(--brand-header-text-color);
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.custom-product-sku {
    margin-bottom: 1rem;
    color: var(--brand-primary-text-color);
}   

.custom-product-price {
    display: flex;
    flex-direction: row;
    margin-bottom: 2rem;
    font-weight: 600;
        color: var(--brand-primary-text-color);
}
.custom-product-price-value {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.custom-product-price .woocommerce-Price-amount.amount {
  color: var(--brand-accent-color);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 600;
}

.custom-cart-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: start;
    margin-bottom: 1rem !important;
}
.custom-cart-form::before {
    display: none !important;
}

.custom-cart-form .custom-quantity {
    width: 33%;
    height: auto;
    border-radius: 999px;
    background: var(--brand-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-cart-form .qty {
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 700;
}

.custom-quantity-input {
    color: var(--brand-primary-text-color);
    max-width: 50px !important;
    padding: 0.7rem 0 !important;
    text-align: center !important;
    font-weight: 800;
    font-size: 1.2rem;
    background: none;
    border: none;
}

.custom-quantity-input:focus, .custom-quantity-input:active {
    outline: none;
}

.custom-quantity-input::-webkit-outer-spin-button,
.custom-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-btn {
   width: 66%;
}

.custom-delivery-box {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 28px;
    border-radius: 8px;
    background: var(--brand-primary-color);
    color: var(--brand-primary-text-color);
}

.custom-delivery-box strong {
    display: block;
    font-size: 15px;
    color: var(--brand-primary-text-color);
}

.custom-delivery-box span {
    display: block;
    font-size: 13px;
}

.custom-delivery-box em {
    margin-left: auto;
    font-style: normal;
    font-size: 12px;
    color: var(--brand-accent-color);
}

.delivery-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--brand-secondary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tabs */

.custom-product-tabs-section {
    margin-top: 80px;
}

.custom-tabs-header {
    display: flex;
    align-items: center;
    gap: 80px;
    border-bottom: 3px solid var(--brand-primary-color-dark); 
    padding-bottom: 1rem;

}

.custom-tabs-nav {
    display: flex;
    gap: 1rem 3rem;
}

.custom-tab-btn {
    border: none;
    background: transparent;
    color: var(--brand-primary-color-dark); 
    font-weight: 600;
    cursor: pointer;
}

.custom-tab-btn.is-active {
    color: var(--brand-accent-color);
}

.custom-tabs-content {
    padding-top: 36px;
    color: var(--brand-primary-text-color);
    font-size: 14px;
    line-height: 1.8;
}

.custom-tab-panel {
    display: none;
}

.custom-tab-panel.is-active {
    display: block;
}

/* Responsive */

@media (max-width: 991px) {
    .custom-product-mobile-top {
        position: relative;
        display: block;
        margin-bottom: 1rem;
    }
    .custom-product-top {
        display: none;
    }
    .custom-product-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }

     .custom-product-main-image {
        width: 100%;
        height: auto;
        max-height: 340px;
        justify-content: center;

    }
       .custom-product-gallery {
        width: 100%;
        min-width: 0;
    }

    .custom-product-thumbs-wrap {
        width: 100%;
        min-width: 0;
        gap: 0.75rem;
    }

    .custom-product-thumbs {
        flex: 1 1 auto;
        min-width: 0;
        overflow-x: auto;
    }

    .custom-product-thumb {
        width: 76px;
        height: 76px;
        flex: 0 0 76px;
    }

    .custom-product-thumb {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
    }


    .custom-tabs-header {
        display: block;
    }

    .custom-tabs-nav {
        gap: 28px;
        overflow-x: auto;
    }
}

@media (max-width: 575px) {
    .custom-product-hero {
        gap: 1rem;
    }
    .custom-product-page {
        padding-top: 1rem;
    }

    .custom-cart-form {
        flex-direction: column;
        align-items: stretch;
    }

    .custom-product-main-image img {
    min-height: 200px;
    min-width: 300px;
    max-height: 300px;
    }

    .custom-product-price {
    margin-bottom: 0.5rem;
    }
    .custom-cart-form .custom-quantity,
    .add-to-cart-btn {
        width: 100%;
        justify-content: space-evenly;
    }

    .custom-cart-form::after {
        display: none !important;
    }
    
    .custom-product-tabs-section {
    margin-top: 2rem;
    }
}

