/* Single Product Page Styles */

/* Base Layout tweaks */
.woocommerce-product-gallery {
    margin-bottom: 2rem;
}

.product-card.summary {
    display: flex;
    flex-direction: column;
}

iframe {
    max-width: 100%;
}

.wp-video-shortcode video,
video.wp-video-shortcode {

    max-height: 287px;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button {

    display: flex !important;
    padding: 0 !important;
    font-size: 14px !important;
    border-radius: 10px !important;
    height: 47.2px;
}

.border.border-komilfo-border {
    border: 1px solid #b969dd47;

}

.woocommerce div.product form.cart .button {
    vertical-align: middle;
    display: flex !important;
    float: left;
    align-items: center;
    justify-content: center;
}

/* Title & Typography */
.product_title {
    font-size: 22px !important;
    font-weight: 300;
    text-transform: uppercase;
    line-height: 1.3;
    margin: 0 0 10px 0;
    color: #111;
}

.woocommerce-review-link {
    color: gray;
    text-decoration: none !important;
    font-size: 12px;
}

.woocommerce .star-rating span::before {
    content: "SSSSS";
    top: 0;
    position: absolute;
    left: 0;
    color: #d3a3da;
}

.text-neutral-800.font-semibold {
    font-size: 13px;
}

/* Rating */
.woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0 !important;
    font-size: 14px;
    color: #777;
}

.komilfo-attributes-meta {
    font-weight: 300;
}

/* Price */
.product-card .price {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
}

/* Vendor and SKU Pills */
.vendor-sku {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.product-sku,
.product-vendor {
    margin: 0;
    padding: 6px 14px;
    font-size: 13px;
    color: #555;
    border: 1px solid #e0cde6;
    border-radius: 6px;
    background-color: #fff;
    width: max-content;
}

.product-vendor a {
    color: #b969dd;
    text-decoration: none;
    font-weight: 500;
}

.product-vendor a:hover {
    text-decoration: underline;
}

/* Divider */
.komilfo-product-divider {
    border: 0;
    height: 1px;
    background-color: #eaeaea;
    margin: 20px 0;
    width: 100%;
}

/* Short Description */
.woocommerce-product-details__short-description {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

/* Add to Cart Form Layout */
.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    margin-bottom: 20px;
}

/* Wishlist icon placeholder (assumes plugin wraps in a container) */
.komilfo-wishlist-link {
    /* From components.css */
    flex-shrink: 0;
}

.yith-wcwl-add-to-wishlist {
    margin: 0;
}

/* Quantity input */
.quantity {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    height: 44px;
}

.quantity input[type="number"] {
    width: 50px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 15px;
    padding: 0;
    appearance: textfield;
}

.quantity input[type="number"]::-webkit-outer-spin-button,
.quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity .qty-btn {
    width: 32px;
    height: 100%;
    background: #f9f9f9;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    transition: background 0.2s;
}

.quantity .qty-btn:hover {
    background: #eee;
}

.woocommerce span.onsale {
    background-color: #d3a3da !important;

    top: 0.5em !important;

    left: 0.5em !important;
}

/* Add to cart Button */
.single_add_to_cart_button {
    flex: 1;
    min-width: 200px;
    min-height: 48px;
    background: #000 !important;
    color: #fff !important;
    border: none;
    border-radius: 10px !important;
    padding: 0 20px;
    height: 48px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: .02em;
    box-shadow: none !important;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.single_add_to_cart_button:hover {
    background: #b969dd !important;
    color: #fff !important;
}

.single_add_to_cart_button.loading {
    opacity: .8;
    pointer-events: none;
}

/* Stock Status */
.stock-status {
    width: 100%;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.stock-status.in-stock {
    background-color: #84bd7a;
    color: #fff;
}

.stock-status.out-of-stock {
    background-color: #e57373;
    color: #fff;
}

/* Category & Meta */
.product_meta {
    font-size: 13px;
    color: #666;
}

.product-category a {
    color: #b969dd;
    text-decoration: none;
}

.product-category a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .cart {
        flex-direction: column;
        align-items: stretch;
    }

    .quantity {
        justify-content: center;
    }

    .single_add_to_cart_button {
        width: 100%;
    }
}

/* ===========================
   Related Products Slider
   =========================== */

/* Hide default WooCommerce related heading (we use our own) */
section.related.products {
    display: none !important;
}

.bg-komilfo-light {
    background-color: none !important;
}

.my-short-description.woocommerce-product-details__short-description p {
    margin: 2px 0;
    padding: 0;
}

.komilfo-related {
    position: relative;
    margin: 50px 0 30px;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
}

.komilfo-related__title {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #111;
    margin: 0 0 24px;
    text-align: center;
}

.komilfo-related__viewport {
    overflow: hidden;
    margin: 0 -8px;
}

.komilfo-related__track {
    display: flex;
    gap: 16px;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
    padding: 4px 8px;
}

.komilfo-related__slide {
    flex: 0 0 calc(25% - 12px);
    min-width: 0;
}

.komilfo-related__slide .komilfo-product-card--archive {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
    padding: 1rem 1rem 1.25rem;
}

.komilfo-related__slide .komilfo-product-card__image img {
    width: 100%;
    height: auto;
    display: block;
}

.komilfo-related__slide .komilfo-product-card__title {
    margin: 0 0 .35rem;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.komilfo-related__slide .komilfo-product-card__title a {
    color: #b969dd;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.komilfo-related__slide .komilfo-product-card__title a:hover {
    color: #9a4fc4;
}

.komilfo-related__slide .komilfo-product-card__sku {
    margin: 0 0 .5rem;
    font-size: 12px;
    color: #999;
}

.komilfo-related__slide .komilfo-product-card__price {
    margin: 0 0 1rem;
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.komilfo-related__slide .komilfo-product-card__price del {
    color: #999;
    font-size: 14px;
    font-weight: 400;
}

.komilfo-related__slide .komilfo-product-card__price ins {
    text-decoration: none;
}

.komilfo-related__slide .button,
.komilfo-related__slide .add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin: auto 0 0;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px !important;
    background: #000 !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none !important;
    transition: background .2s ease, opacity .2s ease;
}

.komilfo-related__slide .button:hover,
.komilfo-related__slide .add_to_cart_button:hover {
    background: #b969dd !important;
    color: #fff !important;
}

.komilfo-related__slide .button.loading,
.komilfo-related__slide .add_to_cart_button.loading {
    opacity: .8;
    pointer-events: none;
}

/* Slider arrows */
.komilfo-related__arrow:disabled {
    opacity: .3;
    cursor: default;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .komilfo-related__slide {
        flex: 0 0 calc(33.333% - 11px);
    }
}

@media (max-width: 767px) {
    .komilfo-related__slide {
        flex: 0 0 calc(50% - 8px);
    }
}

@media (max-width: 480px) {
    .komilfo-related__slide {
        flex: 0 0 calc(100% - 0px);
    }
}

/* ==========================================================================
   Redesign Add to Cart & Wishlist styles
   ========================================================================== */
.komilfo-add-to-cart-wrapper form.cart {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.komilfo-add-to-cart-wrapper .quantity {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2px 4px;
    height: 48px;
    width: 112px !important;
    box-sizing: border-box;
}

.komilfo-add-to-cart-wrapper .quantity input.qty {
    width: 40px !important;
    height: 100% !important;
    border: none !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    outline: none !important;
    padding: 0 !important;
    background: transparent !important;
}

.komilfo-add-to-cart-wrapper .quantity input[type="button"] {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #4b5563 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s !important;
    padding: 0 !important;
}

.komilfo-add-to-cart-wrapper .quantity input[type="button"]:hover {
    background: #f3f4f6 !important;
}

.komilfo-add-to-cart-wrapper .single_add_to_cart_button {
    flex-grow: 1;
    background: #000000 !important;
    color: #fff !important;
    font-weight: 500 !important;
    border-radius: 12px !important;
    height: 48px !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 0 24px !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

.komilfo-add-to-cart-wrapper .single_add_to_cart_button:hover {
    background: #1f2937 !important;
}

/* Redesign price block formatting */
.komilfo-price-block,
.woocommerce-variation-price {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 30px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0;
}

.komilfo-price-block del,
.woocommerce-variation-price del {
    color: #9ca3af !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
}

/* Underline the active/actual price with #d3a3da */
.komilfo-price-block>.amount,
.woocommerce-variation-price>.amount,
.komilfo-price-block ins,
.woocommerce-variation-price ins {
    text-decoration: underline !important;
    text-decoration-color: #d3a3da !important;
    text-underline-offset: 8px !important;
    text-decoration-thickness: 3px !important;
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 30px !important;
}

.komilfo-price-block ins .amount,
.woocommerce-variation-price ins .amount,
.komilfo-price-block ins bdi,
.woocommerce-variation-price ins bdi,
.komilfo-price-block>.amount bdi,
.woocommerce-variation-price>.amount bdi {
    text-decoration: inherit !important;
    color: inherit !important;
}

.woocommerce-variation-price {
    margin-bottom: 15px;
}




.komilfo-add-to-cart-wrapper .yith-wcwl-add-to-wishlist {
    margin: 0 !important;
    display: inline-block !important;
}

/* Hide YITH feedback messages, separators, and default text */
.komilfo-add-to-cart-wrapper .yith-wcwl-add-to-wishlist .feedback,
.komilfo-add-to-cart-wrapper .yith-wcwl-add-to-wishlist .separator,
.komilfo-add-to-cart-wrapper .yith-wcwl-add-to-wishlist a span,
.komilfo-add-to-cart-wrapper .yith-wcwl-add-to-wishlist span.feedback {
    display: none !important;
}

/* Hide default icons generated by YITH (both standard and SVG tags) */
.komilfo-add-to-cart-wrapper .yith-wcwl-add-to-wishlist svg,
.komilfo-add-to-cart-wrapper .yith-wcwl-add-to-wishlist i {
    display: none !important;
}

/* Remove FontAwesome icon styles from links */
.komilfo-add-to-cart-wrapper .yith-wcwl-add-to-wishlist a::before,
.komilfo-add-to-cart-wrapper .yith-wcwl-add-to-wishlist a::after {
    content: none !important;
    display: none !important;
}

/* Standardize the link button layout to match redesign mockup */
.komilfo-add-to-cart-wrapper .yith-wcwl-add-button a,
.komilfo-add-to-cart-wrapper .yith-wcwl-wishlistaddedbrowse a,
.komilfo-add-to-cart-wrapper .yith-wcwl-wishlistexistsbrowse a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    background-color: #fff !important;
    transition: all 0.2s !important;
    box-sizing: border-box !important;
    font-size: 0 !important;
    /* Hide any raw text */
    position: relative !important;
    cursor: pointer !important;
}

/* Empty Heart SVG background for ATW button */
.komilfo-add-to-cart-wrapper .yith-wcwl-add-button a {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af' stroke-width='2'><path stroke-linecap='round' stroke-linejoin='round' d='M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z'/></svg>");
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px 20px !important;
}

.komilfo-add-to-cart-wrapper .yith-wcwl-add-button a:hover {
    border-color: #b969dd !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23b969dd' stroke-width='2'><path stroke-linecap='round' stroke-linejoin='round' d='M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z'/></svg>") !important;
}

/* Filled Heart SVG background for Added/Exists state */
.komilfo-add-to-cart-wrapper .yith-wcwl-wishlistaddedbrowse a,
.komilfo-add-to-cart-wrapper .yith-wcwl-wishlistexistsbrowse a {
    background-color: #fff !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23b969dd' viewBox='0 0 24 24' stroke='%23b969dd' stroke-width='2'><path stroke-linecap='round' stroke-linejoin='round' d='M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px 20px !important;
    border-color: #b969dd !important;
}

.woocommerce-product-details__short-description {

    border-top: 3px solid #80808040;
    border-bottom: 3px solid #80808040
}

.woocommerce-message {
    display: flex;
    margin-top: 28px !important;
    align-items: center;
}

.woocommerce-message__content {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
}

.woocommerce-message-text {

    display: flex;
    flex-direction: column;
}

.text-komilfo-pink a {
    color: rgb(58 46 55);
}

.text-komilfo-pink a:hover {
    color: #b969dd;
}

span a {
    color: #b969dd;
}

.woocommerce div.product form.cart::after,
.woocommerce div.product form.cart::before {
    display: none !important;
}

a.delete_item {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23b969dd' viewBox='0 0 24 24' stroke='%23b969dd' stroke-width='2'><path stroke-linecap='round' stroke-linejoin='round' d='M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z'/></svg>") !important;
    border-color: #b969dd !important;
}

.komilfo-add-to-cart-wrapper .yith-wcwl-wishlistaddedbrowse a:hover,
.komilfo-add-to-cart-wrapper .yith-wcwl-wishlistexistsbrowse a:hover {
    background-color: #fcf5ff !important;
    border-color: #b969dd !important;
}

/* Hide YITH loading spinner and dim the button when loading */
.komilfo-add-to-cart-wrapper .yith-wcwl-add-to-wishlist img.ajax-loading,
.komilfo-add-to-cart-wrapper .yith-wcwl-add-to-wishlist .ajax-loading {
    display: none !important;
}

.komilfo-add-to-cart-wrapper .yith-wcwl-add-to-wishlist a.loading,
.komilfo-add-to-cart-wrapper .yith-wcwl-add-to-wishlist .loading a {
    opacity: 0.5 !important;
    pointer-events: none !important;
}

/* =============================================
   Product Tabs — Premium Design
   ============================================= */

.komilfo-product-tabs {
    margin-top: 64px;
}

/* Tab Navigation Container */
.komilfo-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    position: relative;
    margin-bottom: 0;
}

/* Subtle bottom line behind all tabs */
.komilfo-tabs-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

/* Individual Tab Button */
.komilfo-tabs-nav .tab-button {
    position: relative;
    z-index: 1;
    padding: 14px 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #9ca3af;
    transition: color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    outline: none;
}

.komilfo-tabs-nav .tab-button:hover {
    color: #6b7280;
    transform: translateY(-1px);
}

/* Active Tab State */
.komilfo-tabs-nav .tab-button.is-active {
    color: #111;
    font-weight: 600;
}

/* Animated underline indicator */
.komilfo-tabs-nav .tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, #b969dd, #d4a5eb);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.komilfo-tabs-nav .tab-button.is-active::after {
    transform: translateX(-50%) scaleX(1);
}

.komilfo-tabs-nav .tab-button:hover::after {
    transform: translateX(-50%) scaleX(0.5);
}

.komilfo-tabs-nav .tab-button.is-active:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Tab Content Area */
.komilfo-tab-panel {
    padding: 32px 28px;
    background: #fafafa;
    border-radius: 0 0 16px 16px;
    border: 1px solid #f0f0f0;
    border-top: none;
    color: #4b5563;
    line-height: 1.7;
    animation: komilfoTabFadeIn 0.35s ease;
}

.komilfo-tab-panel.hidden {
    display: none;
    animation: none;
}

@keyframes komilfoTabFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .komilfo-product-tabs {
        margin-top: 40px;
    }

    .komilfo-add-to-cart-wrapper .quantity input.qty {
        width: 10px !important;
    }

    .komilfo-add-to-cart-wrapper form.cart {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        align-items: center !important;
        flex-direction: row;
    }

    .komilfo-tabs-nav {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 4px;
    }

    .komilfo-tabs-nav::-webkit-scrollbar {
        display: none;
    }

    .komilfo-tabs-nav .tab-button {
        padding: 12px 18px;
        font-size: 12px;
    }

    .komilfo-tab-panel {
        padding: 20px 16px;
        border-radius: 0 0 12px 12px;
    }
}

/* =============================================
   Review Form Styles
   ============================================= */

.komilfo-review-form {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    border-top: 1px solid #e5e7eb;
    padding-top: 24px;
}

.komilfo-review-form .comment-reply-title {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin-bottom: 20px;
    text-align: center;
}

.komilfo-review-form .comment-reply-title small {
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

.komilfo-review-form .comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.komilfo-review-form .comment-form p {
    margin: 0;
}

.komilfo-review-form .comment-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.komilfo-review-form .comment-form label .required {
    color: #b969dd;
}

.komilfo-review-form .comment-form input[type="text"],
.komilfo-review-form .comment-form input[type="email"],
.komilfo-review-form .comment-form input[type="url"],
.komilfo-review-form .comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #111;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.komilfo-review-form .comment-form input:focus,
.komilfo-review-form .comment-form textarea:focus {
    border-color: #b969dd;
    box-shadow: 0 0 0 3px rgba(185, 105, 221, 0.12);
}

.komilfo-review-form .comment-form textarea {
    resize: vertical;
    min-height: 100px;
}

.komilfo-review-form .form-submit {
    text-align: center;
    margin-top: 8px;
}

.komilfo-review-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 36px;
    background: linear-gradient(135deg, #b969dd, #a44fcf);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(185, 105, 221, 0.3);
}

.komilfo-review-submit:hover {
    background: linear-gradient(135deg, #a44fcf, #9333b8);
    box-shadow: 0 6px 20px rgba(185, 105, 221, 0.4);
    transform: translateY(-1px);
}

.komilfo-review-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(185, 105, 221, 0.3);
}

/* Hide unnecessary fields */
.komilfo-review-form .comment-form-url {
    display: none;
}

.komilfo-review-form .comment-notes {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}

/* Custom Redesign Adjustments & Typo Fixes */
.komilfo-add-to-cart-wrapper .stock {
    display: none !important;
}

nav.text-gray-400 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

nav.text-gray-400 a:hover {
    color: #000;
}

/* Redesign Add to Cart Layout Ordering */
.komilfo-add-to-cart-wrapper form.cart {
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px !important;
    align-items: flex-start;
    align-content: flex-start;
}

.komilfo-add-to-cart-wrapper form.cart .yith-wcwl-add-to-wishlist {
    order: 1 !important;
    margin: 0 !important;
}

.komilfo-add-to-cart-wrapper form.cart .quantity {
    order: 2 !important;
}

.komilfo-add-to-cart-wrapper form.cart .single_add_to_cart_button {
    order: 3 !important;
}

/* Description Tab Typo Spacing */
.product-description-content h2,
.product-description-content h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-top: 24px !important;
    margin-bottom: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

.product-description-content p {
    margin-bottom: 12px !important;
    line-height: 1.6 !important;
}

.product-description-content ul {
    list-style-type: disc !important;
    padding-left: 20px !important;
    margin-bottom: 16px !important;
}

.product-description-content ol {
    list-style-type: decimal !important;
    padding-left: 20px !important;
    margin-bottom: 16px !important;
}

.product-description-content li {
    margin-bottom: 8px !important;
    line-height: 1.5 !important;
}

/* Stock badge & blinking dots */
.komilfo-stock-badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    line-height: 1;
}

.komilfo-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.komilfo-stock-dot--green {
    background-color: #3c9b57;
    box-shadow: 0 0 0 rgba(60, 155, 87, 0.4);
    animation: hostik-pulse-green 1.5s infinite;
}

.komilfo-stock-dot--red {
    background-color: #ef4444;
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.4);
    animation: hostik-pulse-red 1.5s infinite;
}

@keyframes hostik-pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(60, 155, 87, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(60, 155, 87, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(60, 155, 87, 0);
    }
}

@keyframes hostik-pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
}

/* Responsive styles starting from screen width 1299px */
@media screen and (min-width: 1299px) {
    .komilfo-product-redesign-container main {
        max-width: 1320px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .komilfo-product-redesign-container main>.grid>div:first-of-type {
        grid-column: span 6 / span 6 !important;
    }

    .komilfo-product-redesign-container main>.grid>div:last-of-type {
        grid-column: span 6 / span 6 !important;
    }
}

/* Specifications Table design */
.komilfo-specifications {
    max-width: 100% !important;
    margin-top: 15px !important;
    border-top: 1px solid #f0e6f6 !important;
    padding-top: 10px !important;
}

.komilfo-specifications .grid-cols-2 {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #f0e6f6 !important;
    font-size: 14px !important;
}

.komilfo-specifications .text-gray-600 {
    color: #6b7280 !important;
    font-weight: 500 !important;
    flex: 0 0 35% !important;
}

.komilfo-specifications .text-gray-900 {
    color: #1a202c !important;
    font-weight: 600 !important;
    flex: 1 !important;
    text-align: right;
}

.komilfo-specifications a.text-komilfo-pink {
    color: #b969dd !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.komilfo-specifications a.text-komilfo-pink:hover {
    color: #a152c4 !important;
    text-decoration: underline !important;
}

/* Secondary image hover effect */
.komilfo-product-card .komilfo-product-card__image,
.komilfo-related__slide .komilfo-product-card__image {
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
}

.komilfo-product-card .komilfo-product-card__image img.primary-image,
.komilfo-related__slide .komilfo-product-card__image img.primary-image {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    transition: opacity 0.4s ease-in-out, transform 0.5s ease !important;
}

.woocommerce div.product form.cart .button:hover {

    background: #b969dd !important;
}

.komilfo-product-card .komilfo-product-card__image .secondary-image,
.komilfo-related__slide .komilfo-product-card__image .secondary-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    opacity: 0 !important;
    z-index: 1 !important;
    transition: opacity 0.4s ease-in-out, transform 0.5s ease !important;
}

@media (min-width: 992px) {

    .komilfo-product-card:hover .komilfo-product-card__image img,
    .komilfo-product-card:hover .komilfo-product-card__image img.primary-image,
    .komilfo-related__slide:hover .komilfo-product-card__image img,
    .komilfo-related__slide:hover .komilfo-product-card__image img.primary-image {
        transform: scale(1.05) !important;
    }

    .komilfo-product-card:hover .komilfo-product-card__image .secondary-image,
    .komilfo-related__slide:hover .komilfo-product-card__image .secondary-image {
        opacity: 1 !important;
        transform: scale(1.05) !important;
    }
}