﻿/* Modern Product Page Redesign (Spinz Authentic Look) */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-page: #0f0f0f;
    --bg-panel: #18181b; /* Zinc-900 */
    --gold-primary: #fbbf24; /* Amber-400 */
    --gold-hover: #f59e0b; /* Amber-500 */
    --text-main: #ffffff;
    --text-secondary: #a1a1aa; /* Zinc-400 */
    --border-color: #27272a; /* Zinc-800 */
    --radius-lg: 12px;
}

body {
    background-color: var(--bg-page);
    font-family: 'Kanit', sans-serif;
    color: var(--text-main);
    background-image: url('../images/banner_default.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center top;
}
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 6, 8, 0.7);
    z-index: -1;
}

/* --- ปรับแต่งกรอบใหม่: FROSTED DARK MATTE (กระจกด้านสีเข้ม) --- */
.product-single {
    background: rgba(20, 20, 20, 0.85) !important; /* สีดำโปร่งแสง */
    backdrop-filter: blur(20px) !important;        /* เบลอพื้นหลัง */
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important; /* ขอบขาวจางๆ */
    border-radius: 24px !important;                /* มุมโค้งมากขึ้น */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important; /* เงาลึกมีมิติ */
    padding: 30px !important;
    margin-top: 20px !important;
}

/* --- Layout Wrappers --- */
.product-template__containe {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* --- Left Column: Images --- */
.product-media {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.product-featured-img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.thumbnails-grid {
    margin-top: 10px;
}

.thumbnails-grid img {
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    opacity: 0.8;
}

.thumbnails-grid img:hover {
    border-color: var(--gold-primary);
    opacity: 1;
    transform: translateY(-2px);
}

/* --- Right Column: Details --- */
.product-single__title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.status-badge .badge {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5em 1em;
}

/* Descriptions Panel */
.product-description-box {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Gold Accent Line on Top */
.product-description-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold-primary);
}

.desc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.desc-item:last-child {
    border-bottom: none;
}

.desc-item.mt-2 {
    display: block;
    align-items: flex-start;
}

.desc-label {
    color: var(--text-main);
    font-weight: 600;
}

.desc-value {
    color: var(--text-secondary);
    font-weight: 500;
}

.desc-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.text-gold { color: var(--gold-primary) !important; }
.text-success { color: #4ade80 !important; }

/* --- Payment Panel --- */
.payment-section {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color); /* Subtle Border */
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.1); /* Subtle Gold Glow */
}

.payment-section h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Form Styles */
.form-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* --- Modern Premium Image Viewer (Spinz Style) --- */
.spinz-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* โปร่งใสเห็นพื้นหลังเหมือนแบบเก่า */
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spinz-viewer.show {
    display: flex;
    opacity: 1;
}

.viewer-content {
    position: relative;
    width: 100%;
    height: 100vh; /* ใช้ความสูงเต็มหน้าจอ */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* ให้รูปอยู่กลางจอพอดี */
    padding: 20px;
}

.viewer-image {
    max-width: 95%;
    max-height: 70vh; /* จำกัดความสูงรูปไม่ให้เบียดข้อความ */
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

/* ระบบซูม */
.viewer-image.zoomed {
    transform: scale(1.4);
    cursor: zoom-out;
}

.viewer-info {
    position: absolute;
    bottom: 80px; /* ยึดไว้ด้านล่างจอ */
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 500;
}

.viewer-caption {
    position: absolute;
    bottom: 30px; /* ยึดไว้ด้านล่างสุดของจอ */
    color: #ffffff;
    font-size: 14px;
    text-align: center;
    max-width: 90%;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0,0,0,1);
}

/* Navigation Controls */
.viewer-close {
    position: fixed;
    top: 25px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
}

.viewer-close:hover { 
    color: #fbbf24;
    background: rgba(0,0,0,0.5);
    transform: rotate(90deg);
}

.viewer-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 15px;
    pointer-events: none;
    z-index: 10000;
}

.nav-btn {
    width: 60px;
    height: 60px;
    background: #fbbf24; /* สีส้มทองตามรูป */
    border: none;
    color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.nav-btn:hover {
    transform: scale(1.1);
    background: #fff;
    color: #fbbf24;
}

/* Image Info/Counter */
.viewer-info {
    position: absolute;
    bottom: 80px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.viewer-caption {
    position: absolute;
    bottom: 35px;
    color: #ffffff;
    font-size: 14px;
    text-align: center;
    max-width: 90%;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0,0,0,1);
    opacity: 0.9;
}

/* แก้ไขปัญหาขอบตัดและเพิ่มความสวยงามให้ Dropdown */
.product-description-box, .payment-section {
    overflow: visible !important;
    position: relative;
    z-index: 5;
}

.custom-dropdown-container {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.dropdown-trigger {
    border: 1px solid #fbbf24 !important; /* ขอบทองพรีเมียม */
    background: #1a1a1b !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px !important;
    position: relative;
}

.dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #fbbf24; /* ลูกศรสีทอง */
    transition: transform 0.3s;
    margin-left: 10px;
}

.custom-dropdown-container.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options-list {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100% !important; /* ล็อคความกว้างให้เท่ากับกรอบหลักเป๊ะๆ */
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    z-index: 1000;
    display: none;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.dropdown-options-list.show {
    display: block;
}

.option-item {
    padding: 12px 15px;
    color: #a1a1aa;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* ตัดคำถ้าข้อความยาวเกิน */
}

.option-item:hover {
    background: #3f3f46;
    color: #fff;
}

.option-item.active {
    background: #fbbf24;
    color: #000;
    font-weight: 600;
}

.option-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #1a1a1b;
}

.spinz-input {
    background-color: #27272a;
    border: 1px solid #3f3f46;
    color: var(--text-main);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.2s;
}

.spinz-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.spinz-input::placeholder {
    color: #52525b;
}

/* Price & Action */
.price-display span.small {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.price-display .h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold-primary);
    letter-spacing: -1px;
    line-height: 1;
    margin: 0.2rem 0;
}

.btn-spinz-gold {
    background-color: var(--gold-primary);
    color: #000000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    transition: all 0.2s;
    text-transform: uppercase;
    width: 100%; /* Full width on mobile, adapted flex on desktop */
}

.btn-spinz-gold:hover {
    background-color: var(--gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

/* Remove old sidebar components if present */
.sidebar, .col-sidebar { display: none !important; }

/* Desktop Tweaks */
@media (min-width: 992px) {
    .btn-spinz-gold {
        width: auto;
        min-width: 160px;
    }
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .d-flex.align-items-end {
        flex-direction: column;
        align-items: stretch !important;
        gap: 1rem;
    }
    .price-display {
        text-align: center;
        margin-bottom: 0.5rem;
    }
}

/* --- Custom SweetAlert2 Premium Dark Style --- */
.swal2-popup {
    background: rgba(20, 20, 20, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(251, 191, 36, 0.2) !important;
    border-radius: 24px !important;
    color: #fff !important;
    font-family: 'Kanit', sans-serif !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}

.swal2-title {
    color: #fff !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
}

.swal2-html-container, .swal2-content {
    color: rgba(255, 255, 255, 0.7) !important;
}

.swal2-confirm {
    background-color: #fbbf24 !important;
    color: #000 !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    padding: 12px 30px !important;
    font-size: 1rem !important;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3) !important;
    transition: all 0.3s ease !important;
}

.swal2-confirm:hover {
    background-color: #f59e0b !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5) !important;
}

.swal2-loader {
    border-color: #fbbf24 transparent #fbbf24 transparent !important;
}

.swal2-timer-progress-bar {
    background: #fbbf24 !important;
}

/* ลบวงกลมเทาๆ ดำๆ ข้างหลังไอคอน */
.swal2-icon .swal2-success-circular-line-left,
.swal2-icon .swal2-success-circular-line-right,
.swal2-icon .swal2-success-fix,
.swal2-icon.swal2-success [class^='swal2-success-circular-line'],
.swal2-icon-content {
    background-color: transparent !important;
}

/* Success Icon */
.swal2-icon.swal2-success {
    border-color: #4ade80 !important;
}
.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #4ade80 !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
    border: .25em solid rgba(74, 222, 128, 0.3) !important;
}

/* Error Icon */
.swal2-icon.swal2-error {
    border-color: #ef4444 !important;
}
.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ef4444 !important;
}

/* --- Premium Futuristic Loader --- */
.loader {
    margin: 0;
    padding: 0;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    width: 100%;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0d0d0d 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.loader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.spinner-box {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #ffbc22;
    border-bottom-color: #ff4500;
    border-radius: 50%;
    animation: spin-clockwise 1.5s linear infinite;
}

.spinner-inner {
    position: absolute;
    width: 70%;
    height: 70%;
    border: 3px solid transparent;
    border-left-color: #facc33;
    border-right-color: #facc33;
    border-radius: 50%;
    animation: spin-counter-clockwise 1s linear infinite;
}

.loader-logo {
    width: 40px;
    height: 40px;
    background: #ffbc22;
    mask: url('../images/logo.webp') no-repeat center;
    -webkit-mask: url('../images/logo.webp') no-repeat center;
    mask-size: contain;
    -webkit-mask-size: contain;
    animation: pulse-glow 2s ease-in-out infinite;
}

.loading-text {
    color: #fff;
    font-family: 'Kanit', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(250, 204, 51, 0.5);
    display: flex;
    gap: 4px;
}

.loading-text span {
    animation: text-float 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes spin-clockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-counter-clockwise {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.8; filter: drop-shadow(0 0 5px #ffbc22); }
    50% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 15px #ff4500); }
}

@keyframes text-float {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-5px); opacity: 1; }
}

/* Hide loader after page is ready */
body.loaded .loader {
    opacity: 0;
    visibility: hidden;
}

/* ========================================
   LIGHTWEIGHT PRODUCT CARDS
   ======================================== */

/* ซ่อนรายละเอียดสินค้าที่ไม่จำเป็น */
.product-item-container .product-info,
.product-item-container .product-description,
.product-item-container .caption > p,
.product-item-container .product-des,
.product-item-container .description,
.product-item-container .short-description,
.product-item-container .product-details {
    display: none !important;
}

/* Card Container - Simple & Light */
.product-item-container.grid-view-item {
    background: rgba(20, 20, 25, 0.95) !important;
    border: 1px solid rgba(251, 191, 36, 0.25) !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    overflow: hidden !important;
}

.product-item-container.grid-view-item:hover {
    transform: translateY(-6px) !important;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(251, 191, 36, 0.2) !important;
}

/* Image Section */
.product-item-container .left-block {
    background: rgba(0, 0, 0, 0.2) !important;
    padding: 13px !important;
}

.product-item-container .product-image-container {
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.product-item-container .product-image-container img {
    border-radius: 10px !important;
    transition: transform 0.3s ease !important;
}

.product-item-container:hover .product-image-container img {
    transform: scale(1.05) !important;
}

/* Content Section */
.product-item-container .right-block {
    padding: 13px !important;
    background: rgba(0, 0, 0, 0.15) !important;
}

/* Product ID & Status */
.product-item-container .show-icon-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 11px !important;
    gap: 8px !important;
}

.product-item-container .show-icon-top span:first-child {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #000 !important;
    font-weight: 850 !important;
    padding: 5px 11px !important;
    border-radius: 7px !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3) !important;
}

.product-item-container .show-icon-top span:last-child {
    background: rgba(74, 222, 128, 0.15) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(74, 222, 128, 0.4) !important;
    padding: 4px 9px !important;
    border-radius: 5px !important;
    font-size: 0.65rem !important;
    font-weight: 750 !important;
    text-transform: uppercase !important;
}

/* Product Title - แสดง 1 บรรทัด */
.product-item-container .title-product {
    margin-bottom: 11px !important;
}

.product-item-container .title-product a {
    color: #e5e5e5 !important;
    font-weight: 550 !important;
    font-size: 0.88rem !important;
    transition: color 0.2s ease !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.product-item-container:hover .title-product a {
    color: #fbbf24 !important;
}

/* Price Section */
.product-item-container .price {
    margin-bottom: 13px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.product-item-container .price-new {
    color: #fbbf24 !important;
    font-weight: 900 !important;
    font-size: 1.3rem !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5) !important;
}

.product-item-container .price-old {
    display: none !important;
}

.product-item-container .price-old .money {
    display: inline !important;
    visibility: visible !important;
    color: #ff6b6b !important;
    opacity: 1 !important;
}

/* Sale Badge */
.product-item-container .label-sale {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    font-weight: 850 !important;
    padding: 4px 9px !important;
    border-radius: 5px !important;
    font-size: 0.7rem !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
}

/* Button */
.product-item-container .btn-addToCart {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #000 !important;
    font-weight: 900 !important;
    border: none !important;
    border-radius: 9px !important;
    padding: 12px 18px !important;
    font-size: 0.82rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 3px 12px rgba(251, 191, 36, 0.3) !important;
    width: 100% !important;
}

.product-item-container .btn-addToCart:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 18px rgba(251, 191, 36, 0.5) !important;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .product-item-container.grid-view-item {
        border-radius: 12px !important;
    }
    
    .product-item-container .left-block {
        padding: 10px !important;
    }
    
    .product-item-container .right-block {
        padding: 11px !important;
    }
    
    .product-item-container .show-icon-top {
        margin-bottom: 9px !important;
        gap: 6px !important;
    }
    
    .product-item-container .show-icon-top span:first-child {
        font-size: 0.65rem !important;
        padding: 4px 8px !important;
    }
    
    .product-item-container .show-icon-top span:last-child {
        font-size: 0.6rem !important;
        padding: 3px 7px !important;
    }
    
    .product-item-container .title-product a {
        font-size: 0.82rem !important;
    }
    
    .product-item-container .price {
        margin-bottom: 11px !important;
    }
    
    .product-item-container .price-new {
        font-size: 1.15rem !important;
    }
    
    .product-item-container .price-old {
        font-size: 0.78rem !important;
    }
    
    .product-item-container .btn-addToCart {
        padding: 10px 15px !important;
        font-size: 0.75rem !important;
    }
    
    .product-item-container.grid-view-item:hover {
        transform: translateY(-4px) !important;
    }
}

/* ========================================
   NEON GLOW PRODUCT CARDS
   ======================================== */

/* ซ่อนรายละเอียดสินค้าที่ไม่จำเป็น */
.product-item-container .product-info,
.product-item-container .product-description,
.product-item-container .caption > p,
.product-item-container .product-des,
.product-item-container .description,
.product-item-container .short-description,
.product-item-container .product-details {
    display: none !important;
}

/* Card Container - Neon Effect */
.product-item-container.grid-view-item {
    background: rgba(15, 15, 20, 0.95) !important;
    border: 2px solid rgba(251, 191, 36, 0.3) !important;
    border-radius: 15px !important;
    box-shadow: 
        0 0 20px rgba(251, 191, 36, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Animated Neon Glow */
@keyframes neonPulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(251, 191, 36, 0.4),
            0 0 40px rgba(251, 191, 36, 0.2),
            0 8px 32px rgba(0, 0, 0, 0.6),
            inset 0 0 20px rgba(251, 191, 36, 0.05);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(251, 191, 36, 0.6),
            0 0 60px rgba(251, 191, 36, 0.3),
            0 8px 32px rgba(0, 0, 0, 0.6),
            inset 0 0 30px rgba(251, 191, 36, 0.1);
    }
}

.product-item-container.grid-view-item:hover {
    transform: translateY(-10px) scale(1.02) !important;
    border-color: rgba(251, 191, 36, 0.6) !important;
    animation: neonPulse 2s ease-in-out infinite !important;
}

/* Corner Glow Effect */
.product-item-container.grid-view-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent 0%,
        rgba(251, 191, 36, 0.1) 25%,
        transparent 50%,
        rgba(251, 191, 36, 0.1) 75%,
        transparent 100%
    );
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.product-item-container.grid-view-item:hover::before {
    opacity: 1;
}

/* Image Section */
.product-item-container .left-block {
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 14px !important;
    position: relative !important;
}

.product-item-container .product-image-container {
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 
        0 0 15px rgba(251, 191, 36, 0.2),
        0 4px 20px rgba(0, 0, 0, 0.4) !important;
    position: relative !important;
}

.product-item-container .product-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(251, 191, 36, 0.1) 0%,
        transparent 50%,
        rgba(251, 191, 36, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-item-container:hover .product-image-container::after {
    opacity: 1;
}

.product-item-container .product-image-container img {
    border-radius: 12px !important;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    filter: brightness(0.95) !important;
}

.product-item-container:hover .product-image-container img {
    transform: scale(1.1) rotate(1deg) !important;
    filter: brightness(1.05) !important;
}

/* Content Section */
.product-item-container .right-block {
    padding: 14px !important;
    background: rgba(0, 0, 0, 0.2) !important;
}

/* Product ID & Status */
.product-item-container .show-icon-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
    gap: 8px !important;
}

.product-item-container .show-icon-top span:first-child {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #000 !important;
    font-weight: 900 !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    box-shadow: 
        0 0 15px rgba(251, 191, 36, 0.5),
        0 4px 12px rgba(251, 191, 36, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    animation: glowPulse 2s ease-in-out infinite !important;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 
            0 0 15px rgba(251, 191, 36, 0.5),
            0 4px 12px rgba(251, 191, 36, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 
            0 0 25px rgba(251, 191, 36, 0.7),
            0 4px 12px rgba(251, 191, 36, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
}

.product-item-container .show-icon-top span:last-child {
    background: rgba(74, 222, 128, 0.15) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(74, 222, 128, 0.5) !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    font-size: 0.66rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    box-shadow: 
        0 0 15px rgba(74, 222, 128, 0.3),
        inset 0 0 10px rgba(74, 222, 128, 0.1) !important;
}

/* Product Title - แสดง 1 บรรทัด */
.product-item-container .title-product {
    margin-bottom: 12px !important;
}

.product-item-container .title-product a {
    color: #e0e0e0 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
}

.product-item-container:hover .title-product a {
    color: #fbbf24 !important;
    text-shadow: 
        0 0 20px rgba(251, 191, 36, 0.8),
        0 2px 10px rgba(0, 0, 0, 0.6) !important;
}

/* Price Section */
.product-item-container .price {
    margin-bottom: 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.product-item-container .price-new {
    color: #fbbf24 !important;
    font-weight: 900 !important;
    font-size: 1.35rem !important;
    text-shadow: 
        0 0 25px rgba(251, 191, 36, 0.8),
        0 0 40px rgba(251, 191, 36, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.6) !important;
    animation: priceGlow 3s ease-in-out infinite !important;
}

@keyframes priceGlow {
    0%, 100% {
        text-shadow: 
            0 0 25px rgba(251, 191, 36, 0.8),
            0 0 40px rgba(251, 191, 36, 0.4),
            0 2px 8px rgba(0, 0, 0, 0.6);
    }
    50% {
        text-shadow: 
            0 0 35px rgba(251, 191, 36, 1),
            0 0 60px rgba(251, 191, 36, 0.6),
            0 2px 8px rgba(0, 0, 0, 0.6);
    }
}

.product-item-container .price-old {
    color: #888 !important;
    opacity: 0.7 !important;
    font-size: 0.88rem !important;
}

/* Sale Badge */
.product-item-container .label-sale {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    font-weight: 900 !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    font-size: 0.72rem !important;
    box-shadow: 
        0 0 15px rgba(239, 68, 68, 0.6),
        0 4px 12px rgba(239, 68, 68, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Button */
.product-item-container .btn-addToCart {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #000 !important;
    font-weight: 900 !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 13px 20px !important;
    font-size: 0.86rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 
        0 0 20px rgba(251, 191, 36, 0.4),
        0 4px 15px rgba(251, 191, 36, 0.3),
        inset 0 -3px 0 rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
}

.product-item-container .btn-addToCart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.product-item-container .btn-addToCart:hover::before {
    width: 300px;
    height: 300px;
}

.product-item-container .btn-addToCart:hover {
    transform: translateY(-3px) !important;
    background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
    box-shadow: 
        0 0 35px rgba(251, 191, 36, 0.7),
        0 0 60px rgba(251, 191, 36, 0.4),
        0 6px 20px rgba(251, 191, 36, 0.5),
        inset 0 -3px 0 rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .product-item-container.grid-view-item {
        border-radius: 13px !important;
    }
    
    .product-item-container .left-block {
        padding: 11px !important;
    }
    
    .product-item-container .right-block {
        padding: 12px !important;
    }
    
    .product-item-container .show-icon-top {
        margin-bottom: 10px !important;
        gap: 6px !important;
    }
    
    .product-item-container .show-icon-top span:first-child {
        font-size: 0.66rem !important;
        padding: 5px 9px !important;
    }
    
    .product-item-container .show-icon-top span:last-child {
        font-size: 0.62rem !important;
        padding: 4px 8px !important;
    }
    
    .product-item-container .title-product a {
        font-size: 0.84rem !important;
    }
    
    .product-item-container .price {
        margin-bottom: 12px !important;
    }
    
    .product-item-container .price-new {
        font-size: 1.18rem !important;
    }
    
    .product-item-container .price-old {
        font-size: 0.8rem !important;
    }
    
    .product-item-container .btn-addToCart {
        padding: 11px 16px !important;
        font-size: 0.78rem !important;
    }
    
    .product-item-container.grid-view-item:hover {
        transform: translateY(-6px) scale(1.01) !important;
    }
}

/* ========================================
   PRODUCT CARDS - CLEAN & COMPACT
   ======================================== */

/* ซ่อนรายละเอียดสินค้าทั้งหมด */
.product-item-container .product-info,
.product-item-container .product-description,
.product-item-container .caption > p,
.product-item-container .product-des,
.product-item-container .description,
.product-item-container .short-description,
.product-item-container .product-details {
    display: none !important;
}

/* Card Container */
.product-item-container.grid-view-item {
    background: rgba(24, 24, 28, 0.96) !important;
    border: 1px solid rgba(251, 191, 36, 0.22) !important;
    border-radius: 13px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
    transition: all 0.28s ease !important;
    overflow: hidden !important;
}

.product-item-container.grid-view-item:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(251, 191, 36, 0.42) !important;
    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.65), 0 0 20px rgba(251, 191, 36, 0.18) !important;
}

/* Image Section */
.product-item-container .left-block {
    background: rgba(0, 0, 0, 0.18) !important;
    padding: 13px !important;
}

.product-item-container .product-image-container {
    border-radius: 9px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.product-item-container .product-image-container img {
    border-radius: 9px !important;
    transition: transform 0.32s ease !important;
}

.product-item-container:hover .product-image-container img {
    transform: scale(1.06) !important;
}

/* Content Section */
.product-item-container .right-block {
    padding: 13px !important;
    background: rgba(0, 0, 0, 0.12) !important;
}

/* Product ID & Status */
.product-item-container .show-icon-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 11px !important;
    gap: 7px !important;
}

.product-item-container .show-icon-top span:first-child {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #000 !important;
    font-weight: 850 !important;
    padding: 5px 11px !important;
    border-radius: 6px !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 7px rgba(251, 191, 36, 0.28) !important;
}

.product-item-container .show-icon-top span:last-child {
    background: rgba(74, 222, 128, 0.16) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(74, 222, 128, 0.32) !important;
    padding: 4px 9px !important;
    border-radius: 5px !important;
    font-size: 0.64rem !important;
    font-weight: 750 !important;
    text-transform: uppercase !important;
}

/* Product Title */
.product-item-container .title-product {
    margin-bottom: 11px !important;
}

.product-item-container .title-product a {
    color: #f0f0f0 !important;
    font-weight: 550 !important;
    font-size: 0.88rem !important;
    transition: color 0.22s ease !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.product-item-container:hover .title-product a {
    color: #fbbf24 !important;
}

/* Price Section */
.product-item-container .price {
    margin-bottom: 13px !important;
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
}

.product-item-container .price-new {
    color: #fbbf24 !important;
    font-weight: 900 !important;
    font-size: 1.28rem !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.45) !important;
}

.product-item-container .price-old {
    color: #7a7a7a !important;
    opacity: 0.68 !important;
    font-size: 0.82rem !important;
}

/* Sale Badge */
.product-item-container .label-sale {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    font-weight: 850 !important;
    padding: 4px 9px !important;
    border-radius: 5px !important;
    font-size: 0.68rem !important;
    box-shadow: 0 2px 7px rgba(239, 68, 68, 0.32) !important;
}

/* Button */
.product-item-container .btn-addToCart {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #000 !important;
    font-weight: 900 !important;
    border: none !important;
    border-radius: 9px !important;
    padding: 12px 19px !important;
    font-size: 0.82rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    transition: all 0.26s ease !important;
    box-shadow: 0 3px 11px rgba(251, 191, 36, 0.28) !important;
    width: 100% !important;
}

.product-item-container .btn-addToCart:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 17px rgba(251, 191, 36, 0.48) !important;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .product-item-container.grid-view-item {
        border-radius: 11px !important;
    }
    
    .product-item-container .left-block {
        padding: 10px !important;
    }
    
    .product-item-container .right-block {
        padding: 11px !important;
    }
    
    .product-item-container .show-icon-top {
        margin-bottom: 9px !important;
        gap: 6px !important;
    }
    
    .product-item-container .show-icon-top span:first-child {
        font-size: 0.63rem !important;
        padding: 4px 8px !important;
    }
    
    .product-item-container .show-icon-top span:last-child {
        font-size: 0.59rem !important;
        padding: 3px 7px !important;
    }
    
    .product-item-container .title-product a {
        font-size: 0.8rem !important;
        -webkit-line-clamp: 2 !important;
    }
    
    .product-item-container .price {
        margin-bottom: 11px !important;
    }
    
    .product-item-container .price-new {
        font-size: 1.12rem !important;
    }
    
    .product-item-container .price-old {
        font-size: 0.75rem !important;
    }
    
    .product-item-container .btn-addToCart {
        padding: 10px 15px !important;
        font-size: 0.74rem !important;
    }
    
    .product-item-container.grid-view-item:hover {
        transform: translateY(-3px) !important;
    }
}
