/**
 * Single Product Page - Ultra Minimal & Modern Design
 * صفحه محصول تکی - طراحی فوق مینیمال و مدرن
 * 
 * @package Kowsh
 * @version 1.0.0
 * Desktop Only - No Responsive
 */

/* ========================================
   Reset WooCommerce Default Styles
======================================== */

/* Fix horizontal scroll */
body.single-product,
html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative;
}

.woocommerce-page .woocommerce,
.single-product .woocommerce {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

.woocommerce-page .woocommerce > *,
.single-product .woocommerce > * {
    max-width: none;
}

/* Hide default WooCommerce elements */
.single-product .woocommerce-breadcrumb,
.single-product .woocommerce-notices-wrapper {
    display: none;
}

/* ========================================
   Page Wrapper
======================================== */

.kowsh-single-product-wrapper {
    background: linear-gradient(135deg, 
        rgba(248, 248, 248, 1) 0%, 
        rgba(255, 255, 255, 1) 40%,
        rgba(255, 245, 245, 0.3) 100%);
    min-height: 100vh;
    display: block !important;
    width: 100% !important;
    overflow-x: hidden;
    padding-top: 0;
}

/* Fix page wrapper on single product */
.single-product #page.site {
    background: transparent;
    overflow-x: hidden;
}

.single-product .site-main {
    display: none;
}

/* Header styles for single product pages */
.single-product .kowsh-header__categories {
    display: block !important;
}

/* Show footer on single product */
.single-product .kowsh-footer {
    margin-top: 0;
    background: #ffffff;
}

/* ========================================
   Container & Layout
======================================== */

.kowsh-single-product {
    position: relative;
    min-height: 100vh;
    background: #ffffff;
    overflow: visible !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    max-width: 100%;
}

/* Fix any element causing horizontal scroll */
.kowsh-single-product * {
    max-width: 100%;
}

/* Background Elements - Hidden */
.ksp-bg-grid,
.ksp-bg-orb {
    display: none;
}

/* Main Container */
.ksp-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 60px 80px;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    z-index: 2;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible;
}

/* Ensure WooCommerce doesn't override */
.woocommerce div.product,
.woocommerce #content div.product {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.woocommerce div.product .woocommerce-product-gallery {
    display: none !important;
}

.woocommerce div.product div.summary {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs {
    display: none !important;
}

.woocommerce div.product .related.products {
    display: none !important;
}

/* ========================================
   Gallery Section
======================================== */

.ksp-gallery-section {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ksp-main-image {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #fcfcfc 100%);
    border-radius: 28px;
    padding: 60px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ksp-main-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, 
        rgba(212, 20, 24, 0.03) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.ksp-main-image:hover {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.10),
        0 0 0 1px rgba(212, 20, 24, 0.08);
    transform: translateY(-4px);
}

.ksp-main-image:hover::before {
    opacity: 1;
}

.ksp-main-img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ksp-main-image:hover .ksp-main-img {
    transform: scale(1.05) rotate(2deg);
}

/* Image Decorations - Hidden */
.ksp-img-circle,
.ksp-img-dots {
    display: none;
}

/* Sale Badge */
.ksp-badge-sale {
    position: absolute;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, #d41418 0%, #9e0b0f 100%);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(212, 20, 24, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: badgePulse 2.5s ease-in-out infinite;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.ksp-badge-sale::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ksp-badge-sale:hover::before {
    opacity: 1;
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 10px 30px rgba(212, 20, 24, 0.35),
            0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 
            0 12px 35px rgba(212, 20, 24, 0.45),
            0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    }
}

.ksp-badge-percent {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.ksp-badge-text {
    font-size: 13px;
    font-weight: 700;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

/* Thumbnails */
.ksp-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
}

.ksp-thumb {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #fcfcfc 100%);
    border-radius: 16px;
    padding: 14px;
    border: 2px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.ksp-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(212, 20, 24, 0.08) 0%, 
        transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ksp-thumb:hover {
    border-color: rgba(212, 20, 24, 0.25);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.ksp-thumb:hover::before {
    opacity: 1;
}

.ksp-thumb.active {
    border-color: #d41418;
    box-shadow: 
        0 8px 24px rgba(212, 20, 24, 0.25),
        0 0 0 1px rgba(212, 20, 24, 0.1) inset;
    transform: translateY(-2px);
}

.ksp-thumb.active::before {
    opacity: 0.7;
}

.ksp-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.ksp-thumb:hover img {
    transform: scale(1.05);
}

/* ========================================
   Info Section
======================================== */

.ksp-info-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Meta Top */
.ksp-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ksp-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, 
        rgba(212, 20, 24, 0.08) 0%, 
        rgba(255, 68, 68, 0.06) 100%);
    color: #d41418;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    border: 1px solid rgba(212, 20, 24, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.ksp-category::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(212, 20, 24, 0.15) 0%, 
        transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ksp-category:hover {
    background: linear-gradient(135deg, 
        rgba(212, 20, 24, 0.12) 0%, 
        rgba(255, 68, 68, 0.10) 100%);
    border-color: rgba(212, 20, 24, 0.25);
    transform: translateX(-4px) scale(1.02);
    box-shadow: 0 4px 16px rgba(212, 20, 24, 0.15);
}

.ksp-category:hover::before {
    opacity: 1;
}

.ksp-category svg {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 1;
}

.ksp-wishlist-share {
    display: flex;
    gap: 12px;
}

.ksp-btn-wishlist,
.ksp-btn-share {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #fcfcfc 100%);
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    color: #666666;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.ksp-btn-wishlist::before,
.ksp-btn-share::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(212, 20, 24, 0.08) 0%, 
        transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ksp-btn-wishlist:hover,
.ksp-btn-share:hover {
    border-color: rgba(212, 20, 24, 0.25);
    color: #d41418;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 24px rgba(212, 20, 24, 0.18);
}

.ksp-btn-wishlist:hover::before,
.ksp-btn-share:hover::before {
    opacity: 1;
}

.ksp-btn-wishlist:active,
.ksp-btn-share:active {
    transform: translateY(-2px) scale(1.02);
}

.ksp-btn-wishlist svg,
.ksp-btn-share svg {
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.ksp-btn-wishlist:hover svg,
.ksp-btn-share:hover svg {
    transform: scale(1.1);
}

/* Title */
.ksp-title {
    font-size: 48px;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, 
        #1a1a1a 0%, 
        #2a2a2a 60%,
        #1a1a1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: titleShine 8s linear infinite;
}

@keyframes titleShine {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* Rating */
.ksp-rating {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.08) 0%, 
        rgba(255, 235, 59, 0.06) 100%);
    border-radius: 50px;
    border: 1px solid rgba(255, 193, 7, 0.15);
}

.ksp-rating .star-rating {
    font-size: 18px;
}

.ksp-rating-count {
    font-size: 14px;
    font-weight: 700;
    color: #666666;
    letter-spacing: 0.3px;
}

/* Short Description */
.ksp-short-desc {
    font-size: 16px;
    line-height: 1.9;
    color: #4a4a4a;
    padding: 24px;
    background: linear-gradient(135deg, 
        rgba(248, 248, 248, 0.8) 0%, 
        rgba(255, 255, 255, 0.8) 100%);
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

.ksp-short-desc::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(135deg, #d41418 0%, #9e0b0f 100%);
    border-radius: 50px;
    opacity: 0.6;
}

.ksp-short-desc p {
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Price Section */
.ksp-price-section {
    background: linear-gradient(135deg, 
        rgba(248, 248, 248, 1) 0%, 
        rgba(255, 255, 255, 1) 100%);
    padding: 36px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.02) inset;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.ksp-price-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, 
        rgba(212, 20, 24, 0.04) 0%, 
        transparent 60%);
}

.ksp-price-label {
    font-size: 16px;
    color: #666666;
    font-weight: 700;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

.ksp-price-amount {
    font-size: 48px;
    font-weight: 900;
    color: #d41418;
    line-height: 1;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.ksp-price-amount .price {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ksp-price-amount del {
    font-size: 26px;
    color: #999999;
    opacity: 0.5;
    font-weight: 700;
}

.ksp-price-amount ins {
    text-decoration: none;
    background: linear-gradient(135deg, 
        #d41418 0%, 
        #9e0b0f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stock Info */
.ksp-stock-info {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px 0;
    border-top: 2px solid rgba(0, 0, 0, 0.04);
    border-bottom: 2px solid rgba(0, 0, 0, 0.04);
}

.ksp-stock {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 50px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.ksp-stock svg {
    width: 20px;
    height: 20px;
}

.ksp-stock--in {
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.ksp-stock--in:hover {
    background: rgba(16, 185, 129, 0.12);
}

.ksp-stock--out {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.ksp-stock--out:hover {
    background: rgba(239, 68, 68, 0.12);
}

.ksp-sku {
    font-size: 14px;
    color: #666666;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.ksp-sku strong {
    color: #1a1a1a;
    font-weight: 700;
}

/* ========================================
   Purchase Section - بازنویسی کامل
======================================== */

/* Main Container */
.ksp-purchase-section {
    padding: 32px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: visible;
}

/* Cart Form */
.ksp-purchase-section .cart {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

/* ========================================
   Quantity Selector - بازنویسی کامل
======================================== */

.ksp-purchase-section .quantity {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.ksp-purchase-section .quantity label {
    font-size: 15px;
    font-weight: 700;
    color: #0a0a0a;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Quantity Wrapper */
.ksp-purchase-section .qty-wrapper,
.woocommerce .qty-wrapper {
    display: flex !important;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Quantity Buttons */
.ksp-purchase-section .qty-btn,
.woocommerce .qty-btn {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #f8f8f8 !important;
    border: 2px solid #e8e8e8 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: #666666 !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    position: relative;
}

.ksp-purchase-section .qty-btn:hover,
.woocommerce .qty-btn:hover {
    border-color: #d41418 !important;
    background: rgba(212, 20, 24, 0.1) !important;
    color: #d41418 !important;
    transform: scale(1.05);
}

.ksp-purchase-section .qty-btn:active,
.woocommerce .qty-btn:active {
    transform: scale(0.95);
    border-color: #b81216 !important;
    background: rgba(212, 20, 24, 0.15) !important;
}

.ksp-purchase-section .qty-btn:focus,
.woocommerce .qty-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(212, 20, 24, 0.15) !important;
}

.ksp-purchase-section .qty-btn svg,
.woocommerce .qty-btn svg {
    width: 20px !important;
    height: 20px !important;
    pointer-events: none;
    display: block;
    stroke-width: 2.5;
}

/* Quantity Input */
.ksp-purchase-section .quantity input,
.woocommerce .quantity .qty,
.ksp-purchase-section .qty-wrapper input,
.woocommerce .qty-wrapper input {
    width: 90px !important;
    height: 50px !important;
    padding: 0 12px !important;
    border: 2px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    text-align: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: #ffffff !important;
    color: #0a0a0a !important;
    flex-shrink: 0;
    margin: 0 !important;
    -moz-appearance: textfield;
}

.ksp-purchase-section .quantity input::-webkit-outer-spin-button,
.ksp-purchase-section .quantity input::-webkit-inner-spin-button,
.woocommerce .quantity .qty::-webkit-outer-spin-button,
.woocommerce .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ksp-purchase-section .quantity input:hover,
.woocommerce .quantity .qty:hover {
    border-color: rgba(212, 20, 24, 0.2) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.ksp-purchase-section .quantity input:focus,
.woocommerce .quantity .qty:focus {
    outline: none !important;
    border-color: #d41418 !important;
    box-shadow: 0 0 0 4px rgba(212, 20, 24, 0.1) !important;
}

/* ========================================
   Add to Cart Button
======================================== */

.ksp-purchase-section .single_add_to_cart_button {
    width: 100% !important;
    height: 64px !important;
    background: #0a0a0a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    position: relative !important;
    overflow: hidden !important;
    text-transform: none !important;
    letter-spacing: 0.3px !important;
    z-index: 1 !important;
    margin-top: 8px !important;
}

.ksp-purchase-section .single_add_to_cart_button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #d41418 0%, #b81216 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.ksp-purchase-section .single_add_to_cart_button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

.ksp-purchase-section .single_add_to_cart_button:hover::before {
    opacity: 1;
}

.ksp-purchase-section .single_add_to_cart_button:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* ========================================
   Variations
======================================== */

.ksp-purchase-section .variations {
    margin-bottom: 24px;
    width: 100%;
}

.ksp-purchase-section .variations tr {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    border: none;
}

.ksp-purchase-section .variations td {
    padding: 0;
    border: none;
}

.ksp-purchase-section .variations label {
    font-size: 15px;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 8px;
    display: block;
}

.ksp-purchase-section .variations select {
    display: none !important;
}

/* ========================================
   Attribute Pills (Variations)
======================================== */

.ksp-attribute-row {
    position: relative;
    width: 100%;
}

.ksp-attribute-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.ksp-attribute-pill {
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 10px 18px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 700;
    color: #444444;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: relative;
    overflow: hidden;
}

.ksp-attribute-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(212, 20, 24, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ksp-attribute-pill:hover {
    border-color: #d41418;
    color: #d41418;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 20, 24, 0.15);
}

.ksp-attribute-pill:hover::before {
    opacity: 1;
}

.ksp-attribute-pill.is-active {
    border-color: #d41418;
    background: rgba(212, 20, 24, 0.1);
    color: #d41418;
    box-shadow: 0 4px 16px rgba(212, 20, 24, 0.2);
    font-weight: 800;
}

.ksp-attribute-pill.is-active::before {
    opacity: 1;
}

/* Features */
.ksp-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ksp-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #fcfcfc 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.3px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.ksp-feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(212, 20, 24, 0.06) 0%, 
        transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ksp-feature:hover {
    border-color: rgba(212, 20, 24, 0.15);
    transform: translateX(-4px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.ksp-feature:hover::before {
    opacity: 1;
}

.ksp-feature svg {
    width: 26px;
    height: 26px;
    color: #d41418;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.ksp-feature:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* Meta Bottom */
.ksp-meta-bottom {
    padding-top: 28px;
    border-top: 2px solid rgba(0, 0, 0, 0.04);
}

.ksp-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ksp-tags-label {
    font-size: 14px;
    font-weight: 700;
    color: #666666;
    letter-spacing: 0.3px;
}

.ksp-tag {
    padding: 10px 18px;
    background: linear-gradient(135deg, 
        rgba(248, 248, 248, 1) 0%, 
        rgba(255, 255, 255, 1) 100%);
    color: #1a1a1a;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.ksp-tag::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #d41418 0%, #9e0b0f 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ksp-tag span {
    position: relative;
    z-index: 1;
}

.ksp-tag:hover {
    border-color: rgba(212, 20, 24, 0.25);
    color: #ffffff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 20, 24, 0.2);
}

.ksp-tag:hover::before {
    opacity: 1;
}

/* ========================================
   Tabs Section
======================================== */

.ksp-tabs-section {
    position: relative;
    max-width: 1400px;
    margin: 60px auto 0;
    padding: 0 60px 80px;
    z-index: 2;
}

.ksp-tabs-container {
    background: linear-gradient(135deg, #ffffff 0%, #fcfcfc 100%);
    border-radius: 24px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Tab Navigation */
.ksp-tabs-nav {
    position: relative;
    display: flex;
    gap: 0;
    background: linear-gradient(135deg, 
        rgba(248, 248, 248, 1) 0%, 
        rgba(255, 255, 255, 1) 100%);
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding: 8px;
}

.ksp-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 32px;
    background: transparent;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #666666;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
}

.ksp-tab-btn svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.ksp-tab-btn:hover {
    color: #d41418;
    background: linear-gradient(135deg, 
        rgba(212, 20, 24, 0.06) 0%, 
        rgba(255, 68, 68, 0.04) 100%);
    transform: translateY(-2px);
}

.ksp-tab-btn:hover svg {
    transform: scale(1.1);
}

.ksp-tab-btn.active {
    color: #d41418;
    background: linear-gradient(135deg, 
        rgba(212, 20, 24, 0.10) 0%, 
        rgba(255, 68, 68, 0.06) 100%);
    box-shadow: 0 4px 16px rgba(212, 20, 24, 0.12);
}

.ksp-tab-indicator {
    position: absolute;
    bottom: 6px;
    height: 3px;
    background: linear-gradient(90deg, #d41418 0%, #9e0b0f 100%);
    border-radius: 50px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 3;
    box-shadow: 0 2px 8px rgba(212, 20, 24, 0.3);
}

/* Tab Content */
.ksp-tabs-content {
    position: relative;
    min-height: 400px;
}

.ksp-tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.ksp-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ksp-tab-inner {
    padding: 48px;
}

.ksp-tab-inner h1,
.ksp-tab-inner h2,
.ksp-tab-inner h3,
.ksp-tab-inner h4,
.ksp-tab-inner h5,
.ksp-tab-inner h6 {
    color: #1a1a1a;
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.ksp-tab-inner h2 {
    font-size: 28px;
    margin-top: 0;
}

.ksp-tab-inner h3 {
    font-size: 22px;
}

.ksp-tab-inner h4 {
    font-size: 18px;
}

.ksp-tab-inner p {
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 16px;
    font-size: 15px;
}

.ksp-tab-inner ul,
.ksp-tab-inner ol {
    padding-right: 24px;
    margin-bottom: 20px;
}

.ksp-tab-inner li {
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 10px;
    font-size: 15px;
}

.ksp-tab-inner strong {
    color: #1a1a1a;
    font-weight: 600;
}

.ksp-tab-inner a {
    color: #9e0b0f;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ksp-tab-inner a:hover {
    color: #d41418;
    text-decoration: underline;
}

.ksp-tab-inner img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.ksp-tab-inner blockquote {
    border-right: 4px solid #9e0b0f;
    padding: 16px 24px;
    margin: 24px 0;
    background: #fafafa;
    border-radius: 8px;
    font-style: italic;
    color: #4a4a4a;
}

.ksp-tab-inner code {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    color: #9e0b0f;
}

.ksp-tab-inner pre {
    background: #1a1a1a;
    color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.ksp-tab-inner pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.ksp-tab-inner table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.ksp-tab-inner table th,
.ksp-tab-inner table td {
    padding: 12px 16px;
    text-align: right;
    border: 1px solid #e0e0e0;
}

.ksp-tab-inner table th {
    background: #fafafa;
    font-weight: 600;
    color: #1a1a1a;
}

.ksp-tab-inner table td {
    color: #4a4a4a;
}

/* WooCommerce Reviews Styling - Ultra Minimal & Modern */
.ksp-tab-inner #reviews .comment-text {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 0;
}

.ksp-tab-inner #reviews .star-rating {
    color: #ffa726;
}

.ksp-tab-inner #reviews .comment-form-rating {
    margin-bottom: 24px;
}

.ksp-tab-inner .woocommerce-Reviews {
    margin-top: 24px;
}

.ksp-tab-inner .woocommerce-Reviews-title {
    font-size: 28px;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0 0 32px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, 
        #1a1a1a 0%, 
        #2a2a2a 60%,
        #1a1a1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 16px;
}

.ksp-tab-inner .woocommerce-Reviews-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #d41418 0%, #9e0b0f 100%);
    border-radius: 50px;
}

.ksp-tab-inner .woocommerce-Reviews .commentlist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 20px;
}

.ksp-tab-inner .woocommerce-Reviews .comment_container {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 20px;
    padding: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #fcfcfc 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ksp-tab-inner .woocommerce-Reviews .comment_container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, 
        rgba(212, 20, 24, 0.04) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.ksp-tab-inner .woocommerce-Reviews .comment_container:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(212, 20, 24, 0.08);
    border-color: rgba(212, 20, 24, 0.10);
}

.ksp-tab-inner .woocommerce-Reviews .comment_container:hover::before {
    opacity: 1;
}

.ksp-tab-inner .woocommerce-Reviews .comment_container .comment-text {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin: 0;
}

.ksp-tab-inner .woocommerce-Reviews .woocommerce-review__author {
    font-size: 18px;
    font-weight: 900;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, 
        #1a1a1a 0%, 
        #444444 50%,
        #1a1a1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.ksp-tab-inner .woocommerce-Reviews .woocommerce-review__published-date {
    font-size: 13px;
    font-weight: 600;
    color: #999999;
    letter-spacing: 0.2px;
}

.ksp-tab-inner .woocommerce-Reviews .woocommerce-review__verified,
.ksp-tab-inner .woocommerce-Reviews .verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-inline-start: 10px;
    padding: 6px 12px;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.10) 0%, 
        rgba(34, 197, 94, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.20);
    border-radius: 50px;
    color: #059669;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.ksp-tab-inner .woocommerce-Reviews .woocommerce-review__verified:hover,
.ksp-tab-inner .woocommerce-Reviews .verified:hover {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.15) 0%, 
        rgba(34, 197, 94, 0.12) 100%);
    border-color: rgba(16, 185, 129, 0.30);
    transform: scale(1.05);
}

.ksp-tab-inner .woocommerce-Reviews .woocommerce-review__verified::before,
.ksp-tab-inner .woocommerce-Reviews .verified::before {
    content: '✓';
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.ksp-tab-inner .woocommerce-Reviews .comment_container .meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #999999;
    margin-bottom: 12px;
}

.ksp-tab-inner .woocommerce-Reviews .star-rating {
    color: #ffa726;
    font-size: 18px;
    margin-inline-start: auto;
    filter: drop-shadow(0 2px 4px rgba(255, 167, 38, 0.3));
    transition: all 0.3s ease;
}

.ksp-tab-inner .woocommerce-Reviews .comment_container:hover .star-rating {
    transform: scale(1.05);
    filter: drop-shadow(0 3px 6px rgba(255, 167, 38, 0.4));
}

.ksp-tab-inner .woocommerce-Reviews .avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    background: linear-gradient(135deg, 
        rgba(248, 248, 248, 1) 0%, 
        rgba(255, 255, 255, 1) 100%);
    border: 2px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.ksp-tab-inner .woocommerce-Reviews .comment_container:hover .avatar {
    transform: scale(1.05) rotate(2deg);
    border-color: rgba(212, 20, 24, 0.15);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
}

.ksp-tab-inner .woocommerce-Reviews .description {
    position: relative;
    z-index: 1;
}

.ksp-tab-inner .woocommerce-Reviews .description p {
    margin: 0;
    color: #555555;
    line-height: 1.8;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.1px;
}

/* ========================================
   Review Form Wrapper - بازنویسی کامل
======================================== */

.ksp-tab-inner .woocommerce-Reviews #review_form_wrapper {
    margin-top: 48px;
    padding: 40px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: visible;
}

.ksp-tab-inner .woocommerce-Reviews #review_form_wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d41418 0%, #ff4444 50%, #d41418 100%);
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ksp-tab-inner .woocommerce-Reviews #review_form_wrapper:hover::before {
    opacity: 1;
}

/* Form Title */
.ksp-tab-inner .woocommerce-Reviews #review_form .comment-reply-title {
    font-size: 26px;
    font-weight: 900;
    color: #0a0a0a;
    margin: 0 0 32px;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.ksp-tab-inner .woocommerce-Reviews #review_form .comment-reply-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #d41418 0%, #ff4444 100%);
    border-radius: 2px;
}

/* Form Labels */
.ksp-tab-inner .woocommerce-Reviews #review_form label {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #0a0a0a;
    margin-bottom: 12px;
    letter-spacing: 0.1px;
}

/* Form Inputs */
.ksp-tab-inner .woocommerce-Reviews #review_form input[type="text"],
.ksp-tab-inner .woocommerce-Reviews #review_form input[type="email"],
.ksp-tab-inner .woocommerce-Reviews #review_form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #0a0a0a;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    letter-spacing: 0.1px;
    position: relative;
    z-index: 1;
    font-family: inherit;
}

.ksp-tab-inner .woocommerce-Reviews #review_form textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.7;
}

.ksp-tab-inner .woocommerce-Reviews #review_form input[type="text"]:hover,
.ksp-tab-inner .woocommerce-Reviews #review_form input[type="email"]:hover,
.ksp-tab-inner .woocommerce-Reviews #review_form textarea:hover {
    border-color: rgba(212, 20, 24, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ksp-tab-inner .woocommerce-Reviews #review_form input[type="text"]:focus,
.ksp-tab-inner .woocommerce-Reviews #review_form input[type="email"]:focus,
.ksp-tab-inner .woocommerce-Reviews #review_form textarea:focus {
    outline: none;
    border-color: #d41418;
    box-shadow: 0 0 0 4px rgba(212, 20, 24, 0.1), 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Rating Stars */
.ksp-tab-inner .woocommerce-Reviews .comment-form-rating {
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.ksp-tab-inner .woocommerce-Reviews .comment-form-rating label {
    margin-bottom: 12px;
}

.ksp-tab-inner .woocommerce-Reviews .comment-form-rating .stars {
    display: inline-flex;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ksp-tab-inner .woocommerce-Reviews .comment-form-rating .stars a {
    text-decoration: none;
    font-size: 28px;
    color: #ffa726;
    opacity: 0.25;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 4px;
    display: inline-flex;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(255, 167, 38, 0.1));
}

.ksp-tab-inner .woocommerce-Reviews .comment-form-rating .stars a:hover,
.ksp-tab-inner .woocommerce-Reviews .comment-form-rating .stars a.active {
    opacity: 1;
    transform: translateY(-2px) scale(1.15);
    filter: drop-shadow(0 4px 12px rgba(255, 167, 38, 0.4));
}

.ksp-tab-inner .woocommerce-Reviews .comment-form-rating .stars a:hover ~ a {
    opacity: 0.25;
}

/* Submit Button */
.ksp-tab-inner .woocommerce-Reviews .form-submit {
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

.ksp-tab-inner .woocommerce-Reviews .form-submit input[type="submit"] {
    width: 100%;
    background: #0a0a0a;
    color: #ffffff;
    border: none;
    padding: 18px 32px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    text-transform: none;
}

.ksp-tab-inner .woocommerce-Reviews .form-submit input[type="submit"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #d41418 0%, #b81216 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.ksp-tab-inner .woocommerce-Reviews .form-submit input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.ksp-tab-inner .woocommerce-Reviews .form-submit input[type="submit"]:hover::before {
    opacity: 1;
}

.ksp-tab-inner .woocommerce-Reviews .form-submit input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Empty state */
.ksp-tab-inner .woocommerce-noreviews {
    padding: 32px;
    border: 2px dashed rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    text-align: center;
    color: #999999;
    background: linear-gradient(135deg, 
        rgba(248, 248, 248, 0.8) 0%, 
        rgba(255, 255, 255, 0.8) 100%);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.ksp-tab-inner #reviews input[type="text"],
.ksp-tab-inner #reviews input[type="email"],
.ksp-tab-inner #reviews textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.ksp-tab-inner #reviews input[type="text"]:focus,
.ksp-tab-inner #reviews input[type="email"]:focus,
.ksp-tab-inner #reviews textarea:focus {
    outline: none;
    border-color: #9e0b0f;
    box-shadow: 0 0 0 3px rgba(158, 11, 15, 0.1);
}

.ksp-tab-inner #reviews .form-submit input[type="submit"] {
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ksp-tab-inner #reviews .form-submit input[type="submit"]:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.2);
}

/* Attributes Table */
.ksp-attributes-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.ksp-attributes-table tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.ksp-attributes-table tr:hover {
    background: #fafafa;
}

.ksp-attributes-table tr:last-child {
    border-bottom: none;
}

.ksp-attributes-table th {
    padding: 20px;
    text-align: right;
    font-weight: 700;
    color: #1a1a1a;
    background: #fafafa;
    width: 35%;
    font-size: 15px;
}

.ksp-attributes-table td {
    padding: 20px;
    color: #4a4a4a;
    font-size: 15px;
}

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

.ksp-related-section {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 60px;
    z-index: 2;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(248, 248, 248, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%);
}

.ksp-related-title {
    font-size: 44px;
    font-weight: 900;
    color: #0a0a0a;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -1.5px;
    position: relative;
    line-height: 1.2;
}

.ksp-related-title::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #d41418 50%, 
        transparent 100%);
    border-radius: 50px;
    opacity: 0.6;
}

.ksp-related-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(212, 20, 24, 0.3) 0%, 
        #d41418 50%, 
        rgba(212, 20, 24, 0.3) 100%);
    border-radius: 50px;
}

.ksp-related-slider-wrapper {
    position: relative;
    width: 100%;
}

.ksp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.ksp-related-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.ksp-related-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        #d41418 0%, 
        #ff4444 50%, 
        #d41418 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.ksp-related-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, 
        rgba(212, 20, 24, 0.05) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.ksp-related-card:hover {
    transform: translateY(-12px);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(212, 20, 24, 0.15);
    border-color: rgba(212, 20, 24, 0.2);
}

.ksp-related-card:hover::before {
    transform: scaleX(1);
}

.ksp-related-card:hover::after {
    opacity: 1;
}

.ksp-related-link {
    display: block;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.ksp-related-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, 
        #f8f8f8 0%, 
        #ffffff 50%,
        #fafafa 100%);
    border-radius: 24px 24px 0 0;
}

.ksp-related-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(212, 20, 24, 0.03) 0%, 
        rgba(255, 68, 68, 0.02) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.ksp-related-card:hover .ksp-related-image::before {
    opacity: 1;
}

.ksp-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: brightness(1) saturate(1);
}

.ksp-related-card:hover .ksp-related-image img {
    transform: scale(1.08);
    filter: brightness(1.05) saturate(1.1);
}

.ksp-related-name {
    padding: 28px 28px 14px;
    font-size: 17px;
    font-weight: 800;
    color: #0a0a0a;
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.3px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.ksp-related-card:hover .ksp-related-name {
    color: #d41418;
    transform: translateX(2px);
}

.ksp-related-price {
    padding: 0 28px 28px;
    font-size: 22px;
    font-weight: 900;
    color: #d41418;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.ksp-related-card:hover .ksp-related-price {
    transform: translateX(2px);
}

.ksp-related-price .price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ksp-related-price ins {
    text-decoration: none;
    background: linear-gradient(135deg, 
        #d41418 0%, 
        #9e0b0f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ksp-related-price del {
    font-size: 15px;
    color: #999999;
    opacity: 0.5;
    font-weight: 700;
}

/* ========================================
   Animations & Keyframes
======================================== */

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    85% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

/* Smooth transitions for all interactive elements */
.ksp-thumb,
.ksp-btn-wishlist,
.ksp-btn-share,
.ksp-category,
.ksp-tag,
.ksp-feature,
.ksp-related-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading State */
.kowsh-single-product.loading {
    pointer-events: none;
    opacity: 0.7;
}

.kowsh-single-product.loading::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border: 4px solid rgba(158, 11, 15, 0.1);
    border-top-color: #9e0b0f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 9999;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Mobile Sticky Bottom Bar
======================================== */

.ksp-mobile-sticky-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: auto !important;
    background: linear-gradient(135deg, #ffffff 0%, #fcfcfc 100%) !important;
    border: none !important;
    padding: 16px 20px !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08) !important;
    z-index: 999999 !important;
    backdrop-filter: blur(20px) !important;
    display: none !important;
    transform: translateY(0) !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.ksp-mobile-sticky-bar.hidden {
    transform: translateY(100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.ksp-mobile-sticky-bar.visible {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.ksp-mobile-sticky-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ksp-mobile-sticky-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ksp-mobile-sticky-title {
    font-size: 14px;
    font-weight: 800;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.ksp-mobile-sticky-price {
    font-size: 18px;
    font-weight: 900;
    color: #d41418;
    letter-spacing: -0.02em;
    line-height: 1;
}

.ksp-mobile-sticky-price .price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ksp-mobile-sticky-price del {
    font-size: 13px;
    color: #999999;
    opacity: 0.6;
    font-weight: 600;
}

.ksp-mobile-sticky-price ins {
    text-decoration: none;
    background: linear-gradient(135deg, #d41418 0%, #9e0b0f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ksp-mobile-sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 8px 24px rgba(26, 26, 26, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.ksp-mobile-sticky-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.ksp-mobile-sticky-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #d41418 0%, #9e0b0f 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.ksp-mobile-sticky-btn:active {
    transform: scale(0.96);
    box-shadow: 
        0 4px 12px rgba(26, 26, 26, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.ksp-mobile-sticky-btn:active::before {
    transform: translateX(100%);
}

.ksp-mobile-sticky-btn:active::after {
    opacity: 0.3;
}

.ksp-mobile-sticky-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* ========================================
   Responsive Design
======================================== */

@media (max-width: 1400px) {
    .ksp-container {
        max-width: 1200px;
        padding: 40px 40px 80px;
        gap: 60px;
    }
    
    .ksp-related-section,
    .ksp-tabs-section {
        padding: 70px 40px;
        background: linear-gradient(180deg, 
            rgba(255, 255, 255, 0) 0%, 
            rgba(248, 248, 248, 0.25) 50%,
            rgba(255, 255, 255, 0) 100%);
    }
    
    .ksp-related-title {
        font-size: 36px;
        margin-bottom: 40px;
        letter-spacing: -1.2px;
    }
    
    .ksp-related-card {
        border-radius: 22px;
    }
}

@media (max-width: 1199px) {
    .ksp-container {
        grid-template-columns: 1fr;
        gap: 48px;
        max-width: 800px;
    }
    
    .ksp-gallery-section {
        position: relative;
        top: 0;
    }
    
    .ksp-related-section {
        padding: 90px 50px;
        background: linear-gradient(180deg, 
            rgba(255, 255, 255, 0) 0%, 
            rgba(248, 248, 248, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    }
    
    .ksp-related-title {
        font-size: 40px;
        margin-bottom: 50px;
        letter-spacing: -1.3px;
    }
    
    .ksp-related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
        display: grid; /* Ensure grid in desktop */
    }
    
    .ksp-related-slider-wrapper {
        overflow: visible;
    }
    
    .ksp-title {
        font-size: 40px;
    }
    
    .ksp-price-amount {
        font-size: 40px;
    }
    
    .ksp-tabs-nav {
        flex-wrap: wrap;
    }
    
    .ksp-tab-btn {
        flex: 1 1 auto;
        min-width: 150px;
    }
}

@media (max-width: 991px) {
    .kowsh-single-product-wrapper { 
        padding-top: 0;
        padding-bottom: 0;
    }
    
    .ksp-container {
        padding: 32px 28px 60px;
        gap: 44px;
    }
    
    .ksp-main-image {
        padding: 50px;
        border-radius: 24px;
    }
    
    .ksp-related-section,
    .ksp-tabs-section {
        padding: 60px 28px;
    }
    
    .ksp-related-grid {
        grid-template-columns: repeat(2, 1fr);
        display: grid; /* Ensure grid in tablet */
    }
    
    .ksp-related-slider-wrapper {
        overflow: visible;
    }
    
    .ksp-title {
        font-size: 36px;
    }
    
    .ksp-price-amount {
        font-size: 36px;
    }
    
    .ksp-price-section {
        padding: 32px;
    }
    
    .ksp-purchase-section {
        padding: 28px;
        border-radius: 18px;
    }
    
    .ksp-purchase-section .cart {
        gap: 20px;
    }
    
    .ksp-purchase-section .quantity {
        gap: 14px;
    }
    
    .ksp-purchase-section .quantity label {
        font-size: 14px;
    }
    
    .ksp-purchase-section .qty-btn {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
    }
    
    .ksp-purchase-section .quantity input,
    .woocommerce .quantity .qty {
        width: 85px !important;
        height: 46px !important;
        font-size: 16px !important;
    }
    
    .ksp-purchase-section .single_add_to_cart_button {
        height: 60px !important;
        font-size: 16px !important;
    }
    
    .ksp-purchase-section .variations tr {
        margin-bottom: 20px;
    }
    
    .ksp-features {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .ksp-tabs-nav {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }
    
    .ksp-tab-btn {
        padding: 16px 20px;
        justify-content: flex-start;
    }
    
    .ksp-tab-indicator {
        display: none;
    }
    
    .ksp-tab-inner {
        padding: 40px 28px;
    }
}

@media (max-width: 767px) {
    .kowsh-single-product-wrapper { 
        padding-top: 0;
        padding-bottom: 90px !important; /* Space for sticky bar */
    }
    
    .ksp-container {
        padding: 24px 20px 48px;
        gap: 36px;
    }
    
    .ksp-main-image {
        padding: 36px;
        border-radius: 20px;
    }
    
    .ksp-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
        gap: 12px;
    }
    
    .ksp-thumb {
        padding: 12px;
        border-radius: 14px;
    }
    
    .ksp-title {
        font-size: 30px;
        line-height: 1.25;
    }
    
    .ksp-rating {
        padding: 10px 16px;
        gap: 12px;
    }
    
    .ksp-short-desc {
        padding: 20px;
        font-size: 15px;
        border-radius: 16px;
    }
    
    .ksp-price-section {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px;
        gap: 12px;
    }
    
    .ksp-price-label {
        font-size: 15px;
    }
    
    .ksp-price-amount {
        font-size: 32px;
    }
    
    .ksp-stock-info {
        padding: 20px 0;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .ksp-purchase-section {
        padding: 24px;
        border-radius: 16px;
    }
    
    .ksp-purchase-section .cart {
        gap: 18px;
    }
    
    .ksp-purchase-section .quantity {
        gap: 12px;
    }
    
    .ksp-purchase-section .quantity label {
        font-size: 13px;
    }
    
    .ksp-purchase-section .qty-wrapper {
        gap: 8px;
    }
    
    .ksp-purchase-section .qty-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        border-radius: 10px !important;
    }
    
    .ksp-purchase-section .qty-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .ksp-purchase-section .quantity input,
    .woocommerce .quantity .qty {
        width: 75px !important;
        height: 44px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
    }
    
    .ksp-purchase-section .single_add_to_cart_button {
        display: none !important;
    }
    
    .ksp-purchase-section .variations tr {
        margin-bottom: 18px;
    }
    
    .ksp-purchase-section .variations label {
        font-size: 13px;
    }
    
    .ksp-features {
        gap: 12px;
    }
    
    .ksp-feature {
        padding: 20px;
        font-size: 13px;
    }
    
    .ksp-feature svg {
        width: 24px;
        height: 24px;
    }
    
    .ksp-related-section,
    .ksp-tabs-section {
        padding: 48px 20px;
    }
    
    .ksp-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .ksp-related-title {
        font-size: 32px;
        margin-bottom: 36px;
    }
    
    .ksp-tabs-section {
        margin-top: 40px;
    }
    
    .ksp-tab-btn {
        padding: 14px 18px;
        font-size: 15px;
    }
    
    .ksp-tab-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .ksp-tab-inner {
        padding: 32px 20px;
    }
    
    .ksp-tab-inner h2 {
        font-size: 24px;
    }
    
    .ksp-tab-inner h3 {
        font-size: 20px;
    }
    
    /* Show Mobile Sticky Bar - CRITICAL */
    .ksp-mobile-sticky-bar {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        background: linear-gradient(135deg, #ffffff 0%, #fcfcfc 100%) !important;
        border: none !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08) !important;
    }

    /* Mobile Sticky Bar Content */
    .ksp-mobile-sticky-content {
        max-width: 600px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .ksp-mobile-sticky-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .ksp-mobile-sticky-title {
        font-size: 14px;
        font-weight: 800;
        color: #1a1a1a;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        letter-spacing: -0.01em;
        line-height: 1.3;
    }

    .ksp-mobile-sticky-price {
        font-size: 18px;
        font-weight: 900;
        color: #d41418;
        letter-spacing: -0.02em;
        line-height: 1;
    }

    .ksp-mobile-sticky-price .price {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .ksp-mobile-sticky-price del {
        font-size: 13px;
        color: #999999;
        opacity: 0.6;
        font-weight: 600;
    }

    .ksp-mobile-sticky-price ins {
        text-decoration: none;
        background: linear-gradient(135deg, #d41418 0%, #9e0b0f 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .ksp-mobile-sticky-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 24px;
        background: linear-gradient(135deg, #d41418 0%, #9e0b0f 100%);
        color: #ffffff;
        border: none;
        border-radius: 14px;
        font-size: 14px;
        font-weight: 800;
        letter-spacing: 0.3px;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        white-space: nowrap;
        flex-shrink: 0;
        position: relative;
        overflow: hidden;
        box-shadow: 0 8px 24px rgba(212, 20, 24, 0.3);
    }

    .ksp-mobile-sticky-btn svg {
        width: 18px;
        height: 18px;
        stroke-width: 2.5;
    }
}

@media (max-width: 575px) {
    .kowsh-single-product-wrapper {
        padding-bottom: 85px !important;
    }
    
    .ksp-container {
        padding: 20px 16px 40px;
        gap: 32px;
    }
    
    .ksp-main-image {
        padding: 28px;
        border-radius: 18px;
    }
    
    .ksp-badge-sale {
        top: 16px;
        right: 16px;
        padding: 10px 16px;
        border-radius: 14px;
    }
    
    .ksp-badge-percent {
        font-size: 22px;
    }
    
    .ksp-badge-text {
        font-size: 10px;
    }
    
    .ksp-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
        gap: 10px;
    }
    
    .ksp-thumb {
        padding: 10px;
        border-radius: 12px;
    }
    
    .ksp-meta-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    
    .ksp-category {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .ksp-category svg {
        width: 14px;
        height: 14px;
    }
    
    .ksp-btn-wishlist,
    .ksp-btn-share {
        width: 48px;
        height: 48px;
    }
    
    .ksp-btn-wishlist svg,
    .ksp-btn-share svg {
        width: 20px;
        height: 20px;
    }
    
    .ksp-title {
        font-size: 26px;
        line-height: 1.3;
    }
    
    .ksp-rating {
        padding: 9px 14px;
        gap: 10px;
    }
    
    .ksp-rating .star-rating {
        font-size: 16px;
    }
    
    .ksp-rating-count {
        font-size: 13px;
    }
    
    .ksp-short-desc {
        padding: 18px;
        font-size: 14px;
        line-height: 1.8;
    }
    
    .ksp-price-section {
        padding: 24px;
        border-radius: 18px;
    }
    
    .ksp-price-amount {
        font-size: 28px;
    }
    
    .ksp-price-amount del {
        font-size: 20px;
    }
    
    .ksp-stock-info {
        padding: 18px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    
    .ksp-stock {
        padding: 9px 16px;
        font-size: 13px;
    }
    
    .ksp-stock svg {
        width: 18px;
        height: 18px;
    }
    
    .ksp-sku {
        font-size: 13px;
    }
    
    .ksp-purchase-section {
        padding: 20px;
        border-radius: 14px;
    }
    
    .ksp-purchase-section .cart {
        gap: 16px;
    }
    
    .ksp-purchase-section .quantity {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .ksp-purchase-section .quantity label {
        font-size: 12.5px;
        width: 100%;
    }
    
    .ksp-purchase-section .qty-wrapper {
        gap: 8px;
        width: 100%;
        justify-content: center;
    }
    
    .ksp-purchase-section .qty-btn {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        border-radius: 10px !important;
    }
    
    .ksp-purchase-section .qty-btn svg {
        width: 17px !important;
        height: 17px !important;
    }
    
    .ksp-purchase-section .quantity input,
    .woocommerce .quantity .qty {
        width: 70px !important;
        height: 42px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
    }
    
    .ksp-purchase-section .single_add_to_cart_button {
        display: none !important;
    }
    
    .ksp-purchase-section .variations {
        margin-bottom: 20px;
    }
    
    .ksp-purchase-section .variations tr {
        margin-bottom: 16px;
    }
    
    .ksp-purchase-section .variations label {
        font-size: 12.5px;
    }
    
    .ksp-attribute-pill {
        padding: 7px 14px;
        font-size: 12px;
    }
    
    .ksp-features {
        gap: 10px;
    }
    
    .ksp-feature {
        padding: 18px;
        font-size: 12px;
        border-radius: 14px;
    }
    
    .ksp-feature svg {
        width: 22px;
        height: 22px;
    }
    
    .ksp-meta-bottom {
        padding-top: 24px;
    }
    
    .ksp-tags {
        gap: 10px;
    }
    
    .ksp-tags-label {
        font-size: 13px;
    }
    
    .ksp-tag {
        padding: 9px 16px;
        font-size: 12px;
    }
    
    .ksp-related-section,
    .ksp-tabs-section {
        padding: 40px 16px;
    }
    
    .ksp-tabs-section {
        margin-top: 32px;
    }
    
    .ksp-tabs-container {
        border-radius: 20px;
    }
    
    .ksp-tabs-nav {
        padding: 10px;
        gap: 6px;
    }
    
    .ksp-tab-btn {
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 12px;
    }
    
    .ksp-tab-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .ksp-tab-inner {
        padding: 28px 16px;
    }
    
    .ksp-tab-inner h2 {
        font-size: 22px;
    }
    
    .ksp-tab-inner h3 {
        font-size: 18px;
    }
    
    .ksp-tab-inner h4 {
        font-size: 16px;
    }
    
    .ksp-tab-inner p,
    .ksp-tab-inner li {
        font-size: 14px;
    }
    
    /* WooCommerce Reviews - Mobile */
    .ksp-tab-inner .woocommerce-Reviews-title {
        font-size: 24px;
        margin-bottom: 28px;
    }
    
    .ksp-tab-inner .woocommerce-Reviews .commentlist {
        gap: 16px;
    }
    
    .ksp-tab-inner .woocommerce-Reviews .comment_container {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 16px;
        border-radius: 18px;
    }
    
    .ksp-tab-inner .woocommerce-Reviews .avatar {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        margin: 0 auto;
    }
    
    .ksp-tab-inner .woocommerce-Reviews .woocommerce-review__author {
        font-size: 16px;
        text-align: center;
    }
    
    .ksp-tab-inner .woocommerce-Reviews .meta {
        justify-content: center;
    }
    
    .ksp-tab-inner .woocommerce-Reviews .description p {
        font-size: 14px;
        text-align: center;
    }
    
    .ksp-tab-inner .woocommerce-Reviews #review_form_wrapper {
        margin-top: 32px;
        padding: 24px;
        border-radius: 16px;
    }
    
    .ksp-tab-inner .woocommerce-Reviews #review_form_wrapper::before {
        height: 3px;
    }
    
    .ksp-tab-inner .woocommerce-Reviews #review_form .comment-reply-title {
        font-size: 22px;
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    
    .ksp-tab-inner .woocommerce-Reviews #review_form .comment-reply-title::after {
        width: 80px;
    }
    
    .ksp-tab-inner .woocommerce-Reviews #review_form label {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .ksp-tab-inner .woocommerce-Reviews #review_form input[type="text"],
    .ksp-tab-inner .woocommerce-Reviews #review_form input[type="email"],
    .ksp-tab-inner .woocommerce-Reviews #review_form textarea {
        padding: 14px 18px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .ksp-tab-inner .woocommerce-Reviews #review_form textarea {
        min-height: 120px;
    }
    
    .ksp-tab-inner .woocommerce-Reviews .comment-form-rating {
        margin-bottom: 20px;
    }
    
    .ksp-tab-inner .woocommerce-Reviews .comment-form-rating .stars {
        gap: 4px;
        padding: 10px 14px;
    }
    
    .ksp-tab-inner .woocommerce-Reviews .comment-form-rating .stars a {
        font-size: 24px;
    }
    
    .ksp-tab-inner .woocommerce-Reviews .form-submit {
        margin-top: 24px;
    }
    
    .ksp-tab-inner .woocommerce-Reviews .form-submit input[type="submit"] {
        padding: 16px 28px;
        font-size: 16px;
        border-radius: 10px;
    }
}

@media (max-width: 575px) {
    .ksp-tab-inner .woocommerce-Reviews #review_form_wrapper {
        margin-top: 28px;
        padding: 20px;
        border-radius: 14px;
    }
    
    .ksp-tab-inner .woocommerce-Reviews #review_form_wrapper::before {
        height: 2px;
    }
    
    .ksp-tab-inner .woocommerce-Reviews #review_form .comment-reply-title {
        font-size: 20px;
        margin-bottom: 20px;
        padding-bottom: 14px;
    }
    
    .ksp-tab-inner .woocommerce-Reviews #review_form .comment-reply-title::after {
        width: 60px;
    }
    
    .ksp-tab-inner .woocommerce-Reviews #review_form label {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .ksp-tab-inner .woocommerce-Reviews #review_form input[type="text"],
    .ksp-tab-inner .woocommerce-Reviews #review_form input[type="email"],
    .ksp-tab-inner .woocommerce-Reviews #review_form textarea {
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .ksp-tab-inner .woocommerce-Reviews #review_form textarea {
        min-height: 100px;
    }
    
    .ksp-tab-inner .woocommerce-Reviews .comment-form-rating {
        margin-bottom: 18px;
    }
    
    .ksp-tab-inner .woocommerce-Reviews .comment-form-rating .stars {
        gap: 3px;
        padding: 8px 12px;
    }
    
    .ksp-tab-inner .woocommerce-Reviews .comment-form-rating .stars a {
        font-size: 22px;
    }
    
    .ksp-tab-inner .woocommerce-Reviews .form-submit {
        margin-top: 20px;
    }
    
    .ksp-tab-inner .woocommerce-Reviews .form-submit input[type="submit"] {
        padding: 14px 24px;
        font-size: 15px;
        border-radius: 10px;
    }
    
    /* Related Products - Mobile Slider */
    .ksp-related-slider-wrapper {
        position: relative;
        overflow: visible;
        padding: 0;
        margin: 0 -28px; /* Negative margin to extend to container edges */
    }
    
    .ksp-related-grid {
        display: flex;
        flex-direction: row;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        padding: 0 28px 10px;
        margin: 0;
    }
    
    .ksp-related-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .ksp-related-card {
        flex: 0 0 calc(85vw - 56px);
        min-width: calc(85vw - 56px);
        max-width: calc(85vw - 56px);
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
    
    .ksp-related-card:last-child {
        margin-right: 0;
    }
    
    .ksp-related-section {
        padding: 60px 28px;
        background: linear-gradient(180deg, 
            rgba(255, 255, 255, 0) 0%, 
            rgba(248, 248, 248, 0.2) 50%,
            rgba(255, 255, 255, 0) 100%);
    }
    
    .ksp-related-title {
        font-size: 28px;
        margin-bottom: 32px;
        letter-spacing: -1px;
    }
    
    .ksp-related-title::before {
        width: 40px;
        top: -15px;
    }
    
    .ksp-related-title::after {
        width: 80px;
        bottom: -15px;
        height: 2.5px;
    }
    
    .ksp-related-card {
        border-radius: 20px;
        box-shadow: 
            0 6px 28px rgba(0, 0, 0, 0.08),
            0 0 0 1px rgba(0, 0, 0, 0.03);
    }
    
    .ksp-related-card:hover {
        transform: translateY(-8px);
        box-shadow: 
            0 16px 40px rgba(0, 0, 0, 0.12),
            0 0 0 1px rgba(212, 20, 24, 0.15);
    }
    
    .ksp-related-name {
        padding: 22px 22px 12px;
        font-size: 15.5px;
        letter-spacing: -0.2px;
    }
    
    .ksp-related-price {
        padding: 0 22px 22px;
        font-size: 19px;
        letter-spacing: -0.3px;
    }
    
    /* Mobile Sticky Bar Adjustments */
    .ksp-mobile-sticky-bar {
        padding: 14px 16px;
    }
    
    .ksp-mobile-sticky-content {
        gap: 12px;
    }
    
    .ksp-mobile-sticky-title {
        font-size: 13px;
    }
    
    .ksp-mobile-sticky-price {
        font-size: 16px;
    }
    
    .ksp-mobile-sticky-price del {
        font-size: 12px;
    }
    
    .ksp-mobile-sticky-btn {
        padding: 12px 20px;
        font-size: 13px;
        border-radius: 12px;
    }
    
    .ksp-mobile-sticky-btn svg {
        width: 16px;
        height: 16px;
    }
}
