.ws-single-product{
    background-color: var(--gray);
}
.ws-product-breadcrumb {
    margin-bottom: 28px;
    padding: 10px 0;
    font-size: 14px;
    color: #64748b;
}

.ws-product-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.ws-product-breadcrumb a:hover {
    color: #2563eb;
}

.ws-breadcrumb-sep {
    margin: 0 8px;
    color: #cbd5e1;
}

.ws-breadcrumb-current {
    color: #1e293b;
    font-weight: 600;
}

.ws-product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
    border-radius: 16px;
    padding-bottom: 24px;
}

/* Gallery */
.ws-product-gallery {
    position: sticky;
    top: 24px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .13);
    border-radius: 10px;
    background-color: #fff;
}

@media (max-width: 900px) {
    .ws-product-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .ws-product-gallery{
        position: relative;
        top: unset;
    }
}

.ws-gallery-main {
    position: relative;
    overflow: hidden;
}

.ws-gallery-item {
    display: none;
    height: 420px;
    align-items: center;
    justify-content: center;
}

.ws-gallery-item.active {
    display: flex;
}

.ws-gallery-item img {
    /* max-width: 90%; */
    /* height: 420px; */
    height: 90%;
    object-fit: contain;
    transition: opacity 0.3s;
}

.ws-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
}

.ws-thumb {
    width: 72px;
    height: 72px;
    padding: 6px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ws-thumb:hover {
    border-color: var(--primary-light);
}

.ws-thumb.active {
    border-color: var(--primary);
}

.ws-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.ws-no-image {
    font-size: 64px;
    color: #cbd5e1;
    padding: 64px;
}

/* Product info */
.ws-product-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .13);
    padding: 24px;
    border-radius: 10px;
}

.ws-product-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.ws-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    font-size: 14px;
    color: #64748b;
}

.ws-meta-label {
    font-weight: 600;
    color: #334155;
    margin-right: 4px;
}

.ws-meta-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.ws-meta-item a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.ws-in-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #059669;
    font-weight: 600;
}

.ws-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.ws-out-of-stock {
    color: var(--primary);
    font-weight: 600;
}

/* Pricing */
.ws-product-pricing {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.ws-price-current {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary);
}

.ws-price-regular {
    font-size: 20px;
    color: #94a3b8;
    text-decoration: line-through;
}

.ws-save {
    font-size: 15px;
    font-weight: 700;
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

.ws-variation-top-slot {
    margin-top: 6px;
}

.ws-variation-top-slot .ws-variation-swatches {
    margin-bottom: 0;
}

.ws-product-actions .variations_form .quantity {
    display: inline-flex;
}

.ws-series-switcher__options {
    display: flex;
    gap: 10px;
}

.ws-series-option {
    display: inline-flex;
    justify-content: center;
    justify-content: center;
    align-items: center;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    color: #0f172a;
    transition: border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
    width: 90px;
    height: 30px;
}

.ws-series-option:hover {
    border-color: var(--primary-light);
}

.ws-series-option.is-active {
    border-color: var(--primary);
}

.ws-series-option.is-loading {
    opacity: .65;
    pointer-events: none;
}

.ws-series-option.is-out-of-stock {
    opacity: .6;
}

.ws-series-option__storage {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.ws-series-option__price {
    font-size: 13px;
    color: #334155;
}

.ws-series-option__price .amount {
    color: #0f172a;
    font-weight: 700;
}

.ws-color-switcher {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ws-color-switcher__options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ws-color-option {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    color: #0f172a;
    transition: border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
    width: 90px;
    height: 30px;
}

.ws-color-option:hover {
    border-color: var(--primary-light);
}

.ws-color-option.is-active {
    border-color: var(--primary);
}

.ws-color-option__thumb {
    width: 28px;
    height: 28px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ws-color-option__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ws-color-option__thumb-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dbeafe 0%, #e2e8f0 100%);
}

.ws-color-option__name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

/* Short description */
.ws-product-short-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
}

.ws-product-short-desc p {
    margin: 0 0 10px;
}

.ws-product-short-desc p:last-child {
    margin-bottom: 0;
}

.ws-product-short-desc strong,
.ws-product-short-desc b,
.ws-description-content strong,
.ws-description-content b {
    font-weight: 700;
}

.ws-product-short-desc em,
.ws-product-short-desc i,
.ws-description-content em,
.ws-description-content i {
    font-style: italic;
}

/* Add to cart */
.ws-product-actions {
    margin-top: 12px;
}

.ws-add-to-cart-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ws-quantity-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ws-quantity-row label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

/* Quantity selector - grouped +/- style */
.ws-quantity-selector {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    width: fit-content;
    height: 40px;
}

.ws-qty-btn {
    width: 44px;
    min-width: 44px;
    background: #f1f5f9;
    border: none;
    color: #475569;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.ws-qty-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.ws-qty-btn:active {
    background: #cbd5e1;
}

.ws-qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ws-qty-btn:disabled:hover {
    background: #f1f5f9;
    color: #475569;
}

.ws-qty-minus {
    border-right: 1px solid #e2e8f0;
}

.ws-qty-plus {
    border-left: 1px solid #e2e8f0;
}

.ws-quantity-selector .ws-qty-input {
    width: 56px;
    min-width: 56px;
    padding: 12px 8px;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: #0f172a;
    background: #fff;
    -moz-appearance: textfield;
}

.ws-quantity-selector .ws-qty-input::-webkit-outer-spin-button,
.ws-quantity-selector .ws-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ws-quantity-selector .ws-qty-input:focus {
    outline: none;
}

.ws-quantity-selector .ws-qty-input[readonly] {
    cursor: default;
    background: #fff;
}

.ws-action-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ws-product-actions .added_to_cart.wc-forward {
    display: none !important;
}

.ws-product-unavailable {
    padding: 16px;
    background: #fef2f2;
    border-radius: 8px;
    color: var(--primary);
}

.ws-product-actions .variations {
    width: 100%;
    margin-bottom: 16px;
}

.ws-product-actions .variations tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.ws-product-actions .variations td {
    padding: 0;
}

.ws-product-actions .variations label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.ws-product-actions .variations select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-width: 200px;
}

.ws-product-actions .variations tr.ws-variation-row-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.ws-variation-swatches {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 18px;
}

.ws-variation-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ws-variation-group-title {
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    color: #18181b;
}

.ws-variation-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ws-variation-option {
    min-height: 72px;
    width: 100%;
    border-radius: 14px;
    border: 1px solid #d4d4d8;
    background: #fff;
    color: #18181b;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ws-variation-option:hover {
    border-color: #b91c1c;
}

.ws-variation-option.is-active {
    border-color: #c72a2a;
    box-shadow: inset 0 0 0 1px #c72a2a;
}

.ws-variation-option:disabled {
    opacity: .45;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .ws-series-switcher__options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ws-variation-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .ws-series-switcher__options {
        grid-template-columns: 1fr;
    }

    .ws-variation-options {
        grid-template-columns: 1fr;
    }
}

.ws-product-actions .single_variation .woocommerce-variation-price {
    display: none;
}

.ws-product-actions .single_variation_wrap .woocommerce-variation-add-to-cart .button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    box-shadow: none;
    min-height: 48px;
}

.ws-product-actions .single_variation_wrap .woocommerce-variation-add-to-cart .button:hover {
    background: var(--primary);
    color: #fff;
    transform: none;
    box-shadow: none;
}

.ws-product-actions .single_variation_wrap .woocommerce-variation-add-to-cart .button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.ws-product-tags {
    font-size: 14px;
    color: #666;
}

.ws-product-tags a {
    color: var(--primary);
    text-decoration: none;
}

.ws-product-tags a:hover {
    text-decoration: underline;
}

.ws-product-description {
    background: #fff;
    border-radius: 16px;
}

.ws-product-description .ws-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 20px;
}

.ws-product-description .ws-section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #60a5fa 100%);
    margin-top: 12px;
    border-radius: 2px;
}

.ws-description-content {
    font-size: 16px;
    line-height: 1.75;
    color: #475569;
}

.ws-description-content p {
    margin: 0 0 14px;
}

.ws-description-content ul,
.ws-description-content ol {
    margin: 0 0 14px;
    padding-left: 24px;
}


.ws-related-products .ws-section__head {
    margin-bottom: 28px;
}

.ws-related-products .ws-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 1024px) {
    .ws-related-products .ws-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .ws-related-products .ws-product-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 20px;
    }
}

.ws-no-product {
    padding: 48px;
    text-align: center;
    color: #666;
}

