/* ===================================
   SINGLE PRODUCT PAGE - APPLE MINIMAL STYLE
   Font: Prompt (Thai), SF Pro Display (Fallback)
   =================================== */

/* === PROMPT FONT IMPORT === */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

/* === BASE VARIABLES === */
:root {
    --primary-color: #325D53;
    --primary-hover: #285446;
    --text-dark: #1d1d1f;
    --text-secondary: #86868b;
    --text-light: #6e6e73;
    --border-color: #d2d2d7;
    --background-light: #fbfbfd;
    --white: #ffffff;
    --sale-color: #ff3b30;
    --success-color: #34c759;
}

/* === PAGE LAYOUT === */
.single-product-page {
    background: var(--white);
    min-height: 100vh;
    padding-top: 90px;
}

/* Fix header */
.single-product-page .homepage-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.single-product-page .logo .logo-colored {
    opacity: 0;
}

.single-product-page .logo .logo-green {
    opacity: 1;
}

.single-product-page .mobile-menu-toggle span {
    background: var(--primary-color);
}

.single-product-page .line-button,
.single-product-page .main-nav ul li a {
    color: var(--primary-color);
}

/* === MAIN CONTENT === */
.product-main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 100px;
}

/* === BREADCRUMB === */
.product-breadcrumb {
    margin-bottom: 32px;
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
}

.product-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-breadcrumb a:hover {
    color: var(--primary-color);
}

.product-breadcrumb .separator {
    margin: 0 8px;
    color: var(--border-color);
}

/* === PRODUCT LAYOUT === */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    animation: fadeInUp 0.6s ease;
}

/* ===================================
   PRODUCT GALLERY
   =================================== */

.product-gallery {
    position: sticky;
    top: 120px;
    align-self: start;
}

/* Main Image */
.product-gallery-main {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--background-light);
    margin-bottom: 16px;
    aspect-ratio: 1;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.product-gallery-main img:hover {
    transform: scale(1.02);
}

/* Sale Badge */
.product-sale-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--sale-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
    z-index: 2;
}

/* Gallery Thumbnails */
.product-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.product-thumbnail {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--background-light);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-thumbnail:hover {
    border-color: var(--border-color);
}

.product-thumbnail.active {
    border-color: var(--primary-color);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================================
   PRODUCT INFO
   =================================== */

.product-info {
    padding: 20px 0;
}

/* Product Title */
.product-title {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.005em;
    color: var(--text-dark);
    margin: 0 0 12px 0;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.product-stars {
    color: #ffb800;
    font-size: 16px;
}

.product-review-count {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Product Price - SHOPEE/LAZADA STYLE */
.product-price {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.product-price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Main Price (Sale or Regular) */
.product-price .price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Sale Price - RED & LARGE */
.product-price .price ins {
    text-decoration: none;
    display: block;
    order: 1;
}

.product-price .price ins .amount {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #ff424e;
    letter-spacing: -0.02em;
}

/* Original Price Line with Discount Badge */
.product-price .price del {
    display: flex;
    align-items: center;
    gap: 8px;
    order: 2;
}

.product-price .price del .amount {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

/* Add Discount Badge After Original Price */
.product-price .price del::after {
    content: attr(data-discount);
    background: #ff424e;
    color: white;
    font-family: 'Prompt', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Regular Price (not on sale) */
.product-price .price > .woocommerce-Price-amount,
.product-price .price .amount:not(ins .amount):not(del .amount) {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

/* Hide screen reader text */
.product-price .screen-reader-text {
    position: absolute;
    left: -9999px;
}

/* Product Short Description */
.product-short-description {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* === ADD TO CART FORM === */
.product-add-to-cart {
    margin-bottom: 32px;
}

.product-quantity-selector {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.quantity-label {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--background-light);
    border-radius: 12px;
    padding: 8px 16px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
    color: var(--text-dark);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-value {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 40px;
    text-align: center;
}

/* Add to Cart Button */
.product-add-to-cart-btn {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 16px 32px;
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.product-add-to-cart-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(50, 93, 83, 0.25);
}

.product-add-to-cart-btn:active {
    transform: translateY(0);
}

.product-add-to-cart-btn i {
    font-size: 18px;
}

/* Product Meta */
.product-meta {
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.product-meta-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
}

.product-meta-item:last-child {
    margin-bottom: 0;
}

.product-meta-label {
    color: var(--text-secondary);
    min-width: 100px;
}

.product-meta-value {
    color: var(--text-dark);
    font-weight: 500;
}

.product-meta-value a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-meta-value a:hover {
    color: var(--primary-hover);
}

/* Share Buttons */
.product-share {
    margin-top: 24px;
}

.product-share-title {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.product-share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-share-btn {
    width: 44px;
    height: 44px;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
}

.product-share-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.product-share-btn.facebook { color: #1877f2; }
.product-share-btn.twitter { color: #1da1f2; }
.product-share-btn.line { color: #06c755; }
.product-share-btn.copy { color: var(--text-secondary); }

/* ===================================
   PRODUCT TABS
   =================================== */

.product-tabs-section {
    margin-bottom: 80px;
}

.product-tabs-nav {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.product-tab-btn {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: none;
    padding: 16px 0;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.product-tab-btn:hover {
    color: var(--text-dark);
}

.product-tab-btn.active {
    color: var(--primary-color);
}

.product-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.product-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.product-tab-content.active {
    display: block;
}

.product-tab-content h2,
.product-tab-content h3 {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 16px 0;
}

.product-tab-content h2 {
    font-size: 32px;
}

.product-tab-content h3 {
    font-size: 24px;
}

.product-tab-content p {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}

.product-tab-content ul,
.product-tab-content ol {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    padding-left: 24px;
}

.product-tab-content li {
    margin-bottom: 8px;
}

/* Images in Tab Content */
.product-tab-content img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 12px;
    margin: 16px 0;
    display: block;
}

.product-tab-content figure {
    margin: 16px 0;
    width: 100%;
}

.product-tab-content figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Table Styling in Tabs */
.product-tab-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
}

.product-tab-content table th,
.product-tab-content table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.product-tab-content table th {
    font-weight: 600;
    color: var(--text-dark);
    background: var(--background-light);
}

/* ===================================
   STICKY ADD TO CART (MOBILE) - SHOPEE STYLE
   =================================== */

.sticky-add-to-cart {
    display: none;
    position: fixed;
    bottom: 90px;
    left: 40%;
    transform: translateX(-40%);
    width: 280px;
    max-width: calc(100vw - 40px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.sticky-add-to-cart.visible {
    display: block;
    animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-40%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-40%) translateY(0);
    }
}

.sticky-add-to-cart-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sticky-product-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.sticky-product-image {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--background-light);
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.sticky-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sticky-product-details {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.sticky-product-name {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #666;
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.sticky-product-price {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ff424e;
    line-height: 1;
}

.sticky-add-to-cart-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.sticky-add-to-cart-btn:active {
    transform: scale(0.95);
}

.sticky-add-to-cart-btn i {
    display: none;
}

/* ===================================
   RELATED PRODUCTS
   =================================== */

.related-products-section {
    margin-bottom: 80px;
}

.related-products-title {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 40px;
}

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

/* Use same product card styles as shop page */
.related-product-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.related-product-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.related-product-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--background-light);
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.05);
}

.related-product-content {
    padding: 16px;
}

.related-product-title {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.related-product-price {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.related-product-btn {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 980px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.related-product-btn:hover {
    background: var(--primary-hover);
}

/* ===================================
   IMAGE LIGHTBOX
   =================================== */

.product-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    cursor: zoom-out;
}

.product-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

/* ===================================
   ANIMATIONS
   =================================== */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet */
@media (max-width: 1024px) {
    .product-layout {
        gap: 40px;
    }
    
    .product-title {
        font-size: 32px;
    }
    
    .product-price .price .amount,
    .product-price .price ins .amount {
        font-size: 40px;
    }
    
    .product-price .price del .amount {
        font-size: 24px;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .single-product-page {
        padding-top: 70px;
    }
    
    .product-main-content {
        padding: 24px 16px 100px;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 60px;
    }
    
    .product-gallery {
        position: relative;
        top: auto;
    }
    
    .product-gallery-main {
        border-radius: 16px;
    }
    
    .product-gallery-thumbnails {
        gap: 8px;
    }
    
    .product-thumbnail {
        border-radius: 8px;
    }
    
    .product-title {
        font-size: 28px;
    }
    
    .product-price .price ins .amount {
        font-size: 32px;
    }
    
    .product-price .price del .amount {
        font-size: 16px;
    }
    
    .product-price .price del::after {
        font-size: 11px;
        padding: 2px 5px;
    }
    
    .product-short-description {
        font-size: 15px;
    }
    
    .product-add-to-cart-btn {
        font-size: 15px;
        padding: 14px 24px;
    }
    
    .product-tabs-nav {
        gap: 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .product-tab-btn {
        font-size: 15px;
        white-space: nowrap;
    }
    
    .product-tab-content p,
    .product-tab-content ul,
    .product-tab-content ol {
        font-size: 15px;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .related-products-title {
        font-size: 28px;
    }
    
    /* Show sticky button on mobile */
    .sticky-add-to-cart {
        display: none; /* Will be shown by JS when scrolled */
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .product-title {
        font-size: 24px;
    }
    
    .product-price .price .amount,
    .product-price .price ins .amount {
        font-size: 32px;
    }
    
    .product-gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   RELATED PRODUCTS - SHOP GRID STYLE OVERRIDE
   =================================== */

.related-products-section .products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-products-section .product {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

.related-products-section .product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.related-products-section .product-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--background-light);
}

.related-products-section .product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-products-section .product:hover img {
    transform: scale(1.05);
}

.related-products-section .onsale {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--sale-color);
    color: var(--white);
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
    z-index: 2;
}

.related-products-section .product-content {
    padding: 20px;
}

.related-products-section .woocommerce-loop-product__title {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 48px;
}

.related-products-section .product-content > a {
    text-decoration: none;
    color: inherit;
}

.related-products-section .product-content > a:hover .woocommerce-loop-product__title {
    color: var(--primary-color);
}

/* Price - Shopee Style */
.related-products-section .price {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.related-products-section .price ins {
    text-decoration: none;
    order: 1;
}

.related-products-section .price ins .amount {
    font-size: 22px;
    font-weight: 700;
    color: #ff424e;
    letter-spacing: -0.01em;
}

.related-products-section .price del {
    display: flex;
    align-items: center;
    gap: 6px;
    order: 2;
}

.related-products-section .price del .amount {
    font-size: 14px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.related-products-section .price del::after {
    content: attr(data-discount);
    background: #ff424e;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 3px;
    line-height: 1;
}

.related-products-section .price > .amount:not(ins .amount):not(del .amount) {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.related-products-section .price .screen-reader-text {
    display: none;
}

/* View Product Button */
.related-products-section .button {
    width: 100%;
    background: var(--primary-color);
    color: var(--white) !important;
    border: none;
    padding: 10px 20px;
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 980px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.related-products-section .button:hover {
    background: #2a5349;
    transform: scale(1.02);
}

.related-products-section .button i {
    font-size: 14px;
}

/* Mobile */
@media (max-width: 1024px) {
    .related-products-section .products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .related-products-section .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .related-products-section .product-content {
        padding: 16px;
    }
    
    .related-products-section .woocommerce-loop-product__title {
        font-size: 15px;
        min-height: 40px;
    }
    
    .related-products-section .price ins .amount {
        font-size: 20px;
    }
}