/* Basic plugin styles.
 * Keep your existing frontend CSS if you already have custom styling.
 */


.stuller-product-tabs {
    width: 100%;
}

.stuller-tab-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.stuller-tab-buttons .stuller-tab-button {
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid rgb(229, 231, 235);
    background: white;
    color: rgb(27, 43, 75);
    font-weight: 600;
    font-size: 14px;
	  line-height: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.stuller-tab-button:hover {
    color: #000;
}

.stuller-tab-buttons .stuller-tab-button.active {
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid rgb(232, 131, 90);
    background: rgb(232, 131, 90);
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.stuller-tab-button.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
}

.stuller-products-container {
    width: 100%;
}

.stuller-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.stuller-product-card {
    border: 1px solid #e5e5e5;
    background: #fff;
    overflow: hidden;
    text-decoration: none !important;
}

.stuller-product-tabs .stuller-product-image {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
}

.stuller-product-tabs .stuller-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}


.stuller-product-tabs .stuller-product-info {
    padding: 15px;
}

.stuller-product-tabs .stuller-product-info h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.4;
	color: #000;
    font-weight: 500;
}
.stuller-product-tabs .stuller-product-sku {
    font-size: 16px;
    opacity: .6;
}

.stuller-product-tabs .stuller-product-price {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.stuller-product-tabs .stuller-product-id {
    font-size: 13px;
    color: #777;
}

.stuller-loading {
    text-align: center;
    padding: 50px 20px;
}

.stuller-error,
.stuller-no-products {
    text-align: center;
    padding: 50px 20px;
}
div.stuller-product-image:empty,  div.stuller-product-info:empty {
    display: none;
}

.stuller-products-container .stuller-load-more-wrapper {
	  text-align: center;
    margin:40px 0px ;
}
.stuller-products-container .stuller-load-more-wrapper .stuller-load-more {
	  align-items: center;
    border: none;
    border-radius: 30px;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
    justify-content: center;
    letter-spacing: .3px;
    padding: 12px 28px;
}

.stuller-empty-message {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: none;
    padding: 20px 24px;
    text-align: center;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 0;
    margin: 10px 0 20px;
}

@media (max-width: 1024px) {

    .stuller-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


@media (max-width: 767px) {

    .stuller-tab-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
    }

    .stuller-tab-button {
        flex: 0 0 auto;
    }

    .stuller-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

}

@media (max-width: 480px) {

    .stuller-products-grid {
        grid-template-columns: 1fr;
    }

}


/* SIngle page tool */
.stuller-single-product {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 20px 60px;
    color: #1a2433;
}

.stuller-single-product-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 0 20px;
    border-bottom: 1px solid #dfe3e8;
    color: #4a5565;
    font-size: 15px;
    line-height: 1.4;
}

.stuller-single-product-breadcrumbs a {
    color: #4a5565;
    text-decoration: none;
}

.stuller-single-product-breadcrumbs a:hover {
    text-decoration: underline;
}

.stuller-single-product-layout {
    display: grid;
    grid-template-columns: minmax(420px, 1.2fr) minmax(300px, 0.8fr);
    gap: 70px;
    align-items: flex-start;
    max-width: 980px;
    margin: 80px auto 0;
}

.stuller-single-product .stuller-single-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    width: 100%;
}

.stuller-single-product .stuller-single-product-image img {
    display: block;
    width: 100%;
    max-width: 720px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.08));
}

.stuller-single-product .stuller-single-product-info {
    padding-top: 8px;
}

.stuller-single-product .stuller-single-product-info h1 {
    margin: 0 0 10px;
    color: #1d2a3b;
    font-size: clamp(2.3rem, 2.5vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 700;
}

.stuller-single-product .stuller-product-sku {
    margin: 0 0 20px;
    color: #1d2a3b;
    font-size: 18px;
    font-weight: 500;
}

.stuller-single-product .stuller-product-specs {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.stuller-single-product .stuller-product-specs li {
    margin: 0 0 12px;
    color: #1d2a3b;
    font-size: 17px;
    line-height: 1.6;
    font-weight: 600;
}

.stuller-single-product .stuller-product-specs li span {
    font-weight: 700;
    margin-right: 4px;
}

.stuller-single-product .stuller-product-description {
    margin-top: 20px;
    color: #1d2a3b;
}

.stuller-single-product .stuller-product-description h3 {
    margin: 0 0 10px;
    color: #1d2a3b;
    font-size: 18px;
    font-weight: 700;
    line-height: 25px;
}

.stuller-single-product .stuller-long-description {
    color: #1d2a3b;
    font-size: 16px;
    line-height: 1.7;
}

.stuller-single-product .stuller-long-description p {
    margin: 0 0 10px;
}

.stuller-single-product .stuller-product-price {
    margin-top: 24px;
    color: #e77f4c;
    font-size: clamp(2.1rem, 2.5vw, 2.9rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.stuller-single-product .stuller-product-purchase {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
}

.stuller-single-product .stuller-product-purchase label {
    font-size: 14px;
    color: #4a5565;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stuller-single-product .stuller-product-purchase input {
    width: 90px;
    height: 48px;
    border: 1px solid #d8dde5;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 18px;
    text-align: center;
    color: #1d2a3b;
    background: #fff;
}

.stuller-single-product .stuller-product-purchase button {
    flex: 1;
    max-width: 280px;
    height: 56px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #eb8a5a 0%, #e57d41 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
    box-shadow: 0 6px 16px rgba(229, 125, 65, 0.3);
}

.stuller-product-purchase button:hover {
    opacity: 0.96;
}

.stuller-product-status {
    display: inline-block;
    padding: 7px 14px;
    background: #e8f7e8;
    color: #287a28;
    border-radius: 4px;
    margin-bottom: 25px;
}

.stuller-product-unit {
    margin-top: 20px;
    padding: 15px;
    background: #f7f7f7;
}

.stuller-product-details {
    margin-top: 60px;
}

.stuller-product-details h2 {
    margin-bottom: 20px;
}

.stuller-specifications {
    border-top: 1px solid #ddd;
}

.stuller-spec-row {
    display: grid;
    grid-template-columns: 250px 1fr;
    border-bottom: 1px solid #ddd;
}

.stuller-spec-name,
.stuller-spec-value {
    padding: 14px 15px;
}

.stuller-spec-name {
    font-weight: 600;
    background: #f8f8f8;
}

/* Thank you page */
.cad-whop-success-header h1 {
    color: #222E48 !important;
    text-align: center;
}
.cad-whop-success-header p {
    text-align: center;
}
.cad-whop-order {
    padding: 30px;
}
.cad-whop-order h2 {
    font-size: 25px !important;
    font-family: 'Marcellus' !important;
    font-weight: 600 !important;
    padding-bottom: 0px;
    margin-bottom: -20px;
}
.cad-order-info {
    border: 1px solid #ccc;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 20px;
    box-sizing: border-box;
    margin-bottom: 50px;
}

.cad-order-info p {
    margin: 0;
    padding: 0 30px;
    border-right: 1px solid #ccc;
}

.cad-order-info p:first-child {
    padding-left: 0;
}

.cad-order-info p:last-child {
    border-right: none;
}

h3.cad-whop-order-details-title {
    color: #222E48 !important;
    font-size: 25px !important;
    font-family: 'Marcellus' !important;
    font-weight: 600 !important;
    padding-top: 40px;
    line-height: 35px !important;
}

.cad-order-product {
    border: 1px solid #ccc;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 20px;
    box-sizing: border-box;
    margin-bottom: 50px;
}

.cad-order-product p {
    margin: 0;
    padding: 0 30px;
    border-right: 1px solid #ccc;
}

.cad-whop-success-message {
    color: #287a28;
    font-weight: 600;
}

.cad-whop-success-actions {
    display: flex;
    gap: 50px;
}

.cad-whop-order .cad-whop-success-actions .button {
    background-color: #FF8754;
    border-radius: 100px 100px 100px 100px;
    padding: 10px 25px 16px 25px;
    height: 51px;
}
.cad-whop-order .cad-whop-success-actions .view-order-button, .cad-whop-order .cad-whop-success-actions .my-account-button {
    font-family: "Literata", Sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    line-height: 28px;
    fill: #fff;
    color: #fff;
}

@media (max-width: 767px) {

    .stuller-single-product-layout {
        grid-template-columns: 1fr;
        gap: 34px;
        margin-top: 40px;
    }

    .stuller-single-product-breadcrumbs {
        font-size: 13px;
        flex-wrap: wrap;
    }

    .stuller-single-product-info h1 {
        font-size: 2.2rem;
    }

    .stuller-product-sku,
    .stuller-product-specs li {
        font-size: 16px;
    }

    .stuller-product-purchase {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .stuller-product-purchase button {
        width: 100%;
        max-width: none;
    }

    .stuller-spec-row {
        grid-template-columns: 1fr;
    }

    .stuller-spec-name {
        padding-bottom: 5px;
    }

    .stuller-spec-value {
        padding-top: 5px;
    }

}



/* Checkout form */
.stuller-checkout-form {
    margin-top: 24px;
}

.stuller-customer-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.stuller-field label {
    display: block;
    margin-bottom: 6px;
    color: #1d2a3b;
    font-size: 14px;
    font-weight: 700;
}

.stuller-field input {
    width: 100%;
    box-sizing: border-box;
    height: 46px;
    border: 1px solid #d8dde5;
    border-radius: 7px;
    padding: 0 12px;
    background: #fff;
    color: #1d2a3b;
}

.stuller-checkout-button:disabled {
    opacity: .65;
    cursor: wait;
}

.stuller-checkout-message {
    min-height: 22px;
    margin-top: 12px;
    font-size: 14px;
}

.stuller-checkout-message.is-error {
    color: #b42318;
}

.stuller-checkout-message.is-success {
    color: #287a28;
}

/* Order success */
.stuller-order-success {
    max-width: 760px;
    margin: 50px auto;
    padding: 35px;
    background: #fff;
    border: 1px solid #e5e5e5;
    text-align: center;
}

.stuller-order-success h1 {
    margin: 0 0 15px;
}

.stuller-order-details {
    margin-top: 25px;
    padding: 20px;
    background: #f8f8f8;
    text-align: left;
}

.stuller-order-details p {
    margin: 0 0 10px;
}

.stuller-order-details p:last-child {
    margin-bottom: 0;
}

.stuller-order-pending {
    margin-top: 20px;
    padding: 15px;
    background: #fff8e6;
}

.stuller-order-paid {
    margin-top: 20px;
    padding: 15px;
    background: #e8f7e8;
    color: #287a28;
}

.stuller-order-error {
    margin-top: 20px;
    color: #b42318;
}

.stuller-single-product-image {
    position: relative;
    overflow: hidden;
    cursor: crosshair;
}

.stuller-single-product-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.15s ease-out;
    transform-origin: center center;
    will-change: transform;
}

@media (max-width: 767px) {
    .stuller-order-success {
        margin: 25px 15px;
        padding: 25px 18px;
    }
}
