:root {
    --ostore-brand: var(--color-primary, var(--color-sale));
    --ostore-brand-rgb: 204, 0, 0;
}

.product-page-main {
    width: 100%;
}
.ostore-product-single,
.ostore-product-single *,
.ostore-product-single *::before,
.ostore-product-single *::after {
    box-sizing: border-box !important;
}

.ostore-product-single {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.product-gallery {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0 10px;
}
.main-image-container {
    width: 100%;
    margin: 5px 0 0 0;
    padding: 0;
}
.main-image-wrapper {
    width: 100%;
}
.main-image-wrapper .main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.product-thumbnails {
    display: flex;
    width: 100%;
    margin: 10px 0;
    padding: 2px 8px;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8px, black calc(100% - 8px), transparent);
    mask-image: linear-gradient(to right, transparent, black 8px, black calc(100% - 8px), transparent);
}
.product-thumbnails::-webkit-scrollbar {
    display: none;
}
.thumb-item {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    cursor: pointer;
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius-md);
    opacity: 0.6;
    transition: all 0.2s ease;
    overflow: hidden;
}
.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumb-item.active {
    opacity: 1;
    border-color: var(--ostore-brand, #355872);
}
.product-summary {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 10px 30px 10px;
    width: 100%;
    text-align: right;
}
.product-intro__meta-row {
    display: flex;
    justify-content: flex-start;
}
.woocommerce-product-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    background: #fff;
    border-radius: var(--radius-pill);
    padding: 6px 14px;
}
.woocommerce-product-rating .rating-score {
    font-size: 0.85rem;
    font-weight: 800;
    color: #111827;
}
.woocommerce-product-rating .rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.woocommerce-product-rating .rating-stars .rating-star-icon {
    width: 15px !important;
    height: 15px !important;
}
.product-intro__meta-row .star-empty .rating-star-icon {
    opacity: 0.25;
}
.woocommerce-product-rating .rating-count {
    font-size: 0.8rem;
    color: #9CA3AF;
}
.product-title {
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
    color: #111827;
    text-transform: uppercase;
}
.product-price-box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}
.price-main {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ostore-brand, #355872);
}
.price-main .woocommerce-Price-currencySymbol {
    font-size: 0.9rem;
    font-weight: 600;
}
.price-compare {
    font-size: 0.9rem;
    color: #9CA3AF;
    text-decoration: line-through;
    font-weight: 400;
}

.product-stock-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
}

.product-stock-status.in-stock {
    color: #15803d;
}

.product-stock-status.out-of-stock {
    color: #b91c1c;
}

.stock-status-dot {
    position: relative;
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: var(--radius-circle);
}

.in-stock .stock-status-dot {
    background: #22c55e;
}

.out-of-stock .stock-status-dot {
    background: #ef4444;
}

.stock-status-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-circle);
    background: inherit;
    animation: stock-status-pulse 1.6s ease-out infinite;
}

.product-short-description {
    margin-top: 10px;
    color: #4B5563;
    font-size: 0.85rem;
    line-height: 1.6;
    text-align: right;
}

.product-short-description p {
    margin: 0 0 8px;
}

.product-short-description p:last-child {
    margin-bottom: 0;
}

@keyframes stock-status-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(2.4); opacity: 0; }
}
@media (min-width: 992px) {
    .product-page-main {
        max-width: var(--container-width, 1200px);
        margin: 0 auto;
        padding-top: 40px; 
        padding-bottom: 40px;
    }
    .ostore-product-single {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
        padding: 0;
    }
    .product-gallery {
        flex: 0 0 45%;
        max-width: 45%;
        padding: 0;
        position: sticky;
        top: 120px;
        align-self: flex-start;
        z-index: 10;
    }
    .product-summary {
        flex: 1;
        padding: 0;
    }

    .product-title {
        font-size: 1.25rem;
        margin-top: -4px;
    }
}
.ostore-product-description {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    color: #4B5563;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: right;
}

@media (max-width: 767px) {
    .product-page-main.container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .product-gallery {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .product-summary {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
