/**
 * WS Electronics - Professional E-commerce Stylesheet
 * Design Reference: cableconnector.net
 */

/* ==================== Variables ==================== */
:root {
    --primary-color: #000;
    --primary-dark: #20232c;
    --secondary-color: #ff6600;
    --success-color: #28a745;
    --dark-color: #20232c;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --text-color: #333;
    --text-muted: #6c757d;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* Override Bootstrap 5 primary colors to black */
:root {
    --bs-primary: #000;
    --bs-primary-rgb: 0,0,0;
    --bs-btn-bg: #000;
    --bs-btn-border-color: #000;
    --bs-btn-hover-bg: #20232c;
    --bs-btn-hover-border-color: #20232c;
    --bs-btn-active-bg: #20232c;
    --bs-btn-active-border-color: #20232c;
    --bs-link-color: #000;
    --bs-link-hover-color: #20232c;
}
.btn-primary {
    --bs-btn-bg: #000;
    --bs-btn-border-color: #000;
    --bs-btn-hover-bg: #20232c;
    --bs-btn-hover-border-color: #20232c;
    --bs-btn-active-bg: #20232c;
    --bs-btn-active-border-color: #20232c;
    --bs-btn-disabled-bg: #000;
    --bs-btn-disabled-border-color: #000;
}
.btn-outline-primary {
    --bs-btn-color: #000;
    --bs-btn-border-color: #000;
    --bs-btn-hover-bg: #000;
    --bs-btn-hover-border-color: #000;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #20232c;
    --bs-btn-active-border-color: #20232c;
}
.text-primary {
    color: #000 !important;
}
.bg-primary {
    background-color: #000 !important;
}
/* Override Bootstrap info (cyan/blue) to black */
.text-info {
    color: #000 !important;
}
.bg-info {
    background-color: #000 !important;
}
.btn-info {
    --bs-btn-bg: #000;
    --bs-btn-border-color: #000;
    --bs-btn-hover-bg: #20232c;
    --bs-btn-hover-border-color: #20232c;
    --bs-btn-active-bg: #20232c;
    --bs-btn-active-border-color: #20232c;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
}
.border-info {
    border-color: #000 !important;
}

.border-primary {
    border-color: #000 !important;
}
.bg-primary.bg-opacity-10 {
    --bs-bg-opacity: 0.1;
    background-color: rgba(0,0,0,var(--bs-bg-opacity)) !important;
}
.alert-primary {
    --bs-alert-color: #20232c;
    --bs-alert-bg: #e8e8e8;
    --bs-alert-border-color: #ccc;
}
.list-group-item.active {
    background-color: #000;
    border-color: #000;
}
.page-item.active .page-link {
    background-color: #000;
    border-color: #000;
}
.form-select:focus, .form-control:focus {
    border-color: #000;
    box-shadow: 0 0 0 0.25rem rgba(0,0,0,0.15);
}
.nav-pills .nav-link.active {
    background-color: #000;
}
* { box-sizing: border-box; }
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: #fff;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* ==================== Top Bar ==================== */
.top-bar {
    font-size: 0.85rem;
    background: linear-gradient(135deg, #000 0%, #20232c 100%) !important;
}

.top-bar a:hover { color: var(--secondary-color) !important; }

/* ==================== Navigation ==================== */
.main-nav {
    padding: 15px 0;
    transition: var(--transition);
}

.main-nav.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
}

.brand-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    padding: 10px 20px !important;
    color: var(--dark-color) !important;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

.dropdown-menu {
    border: none;
    border-radius: 10px;
    padding: 10px 0;
    min-width: 220px;
    z-index: 1050;
}

.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    transform: translateX(5px);
}

/* ==================== Hero Section ==================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(255,255,255,0.05)"/><circle cx="60" cy="70" r="30" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: cover;
}

.hero-section h1 {
    font-weight: 700;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
}

/* ==================== Section Styling ==================== */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin-top: 15px;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ==================== Feature Cards ==================== */
.feature-card {
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-card i {
    transition: var(--transition);
}

.feature-card:hover i {
    transform: scale(1.2);
}

/* ==================== Category Cards ==================== */
.category-card {
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: none;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
    transition: var(--transition);
}

.category-card:hover::before {
    background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.9) 100%);
}

.category-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .card-img-top {
    transform: scale(1.1);
}

.category-card .card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    color: white;
    padding: 20px;
}

.category-card .card-title {
    font-weight: 600;
    font-size: 1.3rem;
}

/* ==================== Product Cards ==================== */
.product-card {
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background: #f5f5f5;
    transition: var(--transition);
}

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

.product-card .card-body {
    padding: 20px;
}

.product-card .card-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-card .badge-moq {
    background: var(--light-bg);
    color: var(--text-muted);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.product-card .btn-view {
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
    transition: var(--transition);
}

.product-card .btn-view:hover {
    transform: translateX(5px);
}

/* ==================== Product Detail ==================== */
.product-gallery {
    border-radius: 15px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-gallery img {
    width: 100%;
    height: 400px;
    object-fit: contain;
}

.product-info h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

.product-meta {
    padding: 15px;
    background: var(--light-bg);
    border-radius: 10px;
    margin-bottom: 20px;
}

/* ==================== Inquiry Form ==================== */
.inquiry-form {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow-md);
}

.inquiry-form h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.inquiry-form .form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
}

.inquiry-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

.inquiry-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
}

/* ==================== WhatsApp Widget v2 - Beautiful & Modern ==================== */
.wa-widget {
    position: fixed;
    bottom: 24px;
    z-index: 9999;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.wa-pos-bottom-right { right: 24px; }
.wa-pos-bottom-left  { left: 24px; }

/* Chat Popup */
.wa-popup {
    position: absolute;
    bottom: 80px;
    width: 320px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wa-pos-bottom-left .wa-popup { transform-origin: bottom left; right: auto; left: 0; }
.wa-pos-bottom-right .wa-popup { right: 0; left: auto; }
.wa-hidden { display: none; transform: scale(0.8) translateY(20px); opacity: 0; pointer-events: none; }
.wa-popup-show { transform: scale(1) translateY(0); opacity: 1; }

/* Header */
.wa-popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 14px;
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    color: #fff;
}
.wa-header-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.wa-header-avatar img,
.wa-header-avatar svg {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,0.15);
}
.wa-online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    background: #4ade80;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: wa-online-pulse 2s infinite;
}
@keyframes wa-online-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
    50%       { box-shadow: 0 0 0 4px rgba(74, 222, 128, 0); }
}
.wa-header-info { flex: 1; min-width: 0; }
.wa-header-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-header-status { font-size: 11px; opacity: 0.9; display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.wa-status-dot { width: 7px; height: 7px; background: #4ade80; border-radius: 50%; flex-shrink: 0; }
.wa-popup-close {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s;
    flex-shrink: 0;
}
.wa-popup-close:hover { background: rgba(255,255,255,0.3); }

/* Body */
.wa-popup-body {
    padding: 16px;
    background: #f0f2f5;
    min-height: 80px;
}
.wa-greeting { display: flex; justify-content: flex-start; }
.wa-greeting-bubble {
    background: #fff;
    border-radius: 12px 12px 12px 4px;
    padding: 10px 14px;
    font-size: 13.5px;
    color: #333;
    line-height: 1.5;
    max-width: 85%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    position: relative;
}
.wa-msg-time {
    font-size: 10px;
    color: #aaa;
    margin-top: 4px;
    text-align: right;
}

/* Input */
.wa-popup-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: #fff;
    border-top: 1px solid #eee;
}
.wa-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    padding: 9px 14px;
    font-size: 13.5px;
    outline: none;
    color: #333;
    transition: border-color 0.2s;
    font-family: inherit;
}
.wa-input:focus { border-color: #25D366; }
.wa-input::placeholder { color: #aaa; }
.wa-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37,211,102,0.4);
}
.wa-send-btn:hover { transform: scale(1.08); box-shadow: 0 4px 14px rgba(37,211,102,0.5); }
.wa-send-btn:active { transform: scale(0.96); }

/* Main Button */
.wa-main-btn {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    outline: none;
}
.wa-main-btn:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6); }
.wa-main-btn:active { transform: scale(0.95); }

/* Pulse rings */
.wa-pulse-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: wa-pulse-anim 2.5s ease-out infinite;
    z-index: -1;
}
.wa-pulse-ring-2 { animation-delay: 1.25s; }
@keyframes wa-pulse-anim {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.7); opacity: 0; }
}

.wa-btn-icon { display: flex; align-items: center; justify-content: center; }

/* Mobile */
@media (max-width: 480px) {
    .wa-popup { width: calc(100vw - 24px); right: 0 !important; left: 0 !important; }
    .wa-pos-bottom-right, .wa-pos-bottom-left { left: 50%; transform: translateX(-50%); }
    .wa-pos-bottom-right .wa-popup, .wa-pos-bottom-left .wa-popup { left: 0 !important; right: 0 !important; }
}

/* ==================== Page Header ==================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="90" r="50" fill="rgba(255,255,255,0.03)"/></svg>');
}

.page-header h1 {
    font-weight: 700;
    font-size: 2.5rem;
}

.page-header .breadcrumb {
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 25px;
}

/* ==================== Sidebar ==================== */
.sidebar-card {
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.sidebar-card .card-header {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 15px 20px;
}

.sidebar-card .list-group-item {
    border: none;
    padding: 12px 20px;
    transition: var(--transition);
}

.sidebar-card .list-group-item:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    padding-left: 25px;
}

.sidebar-card .list-group-item.active {
    background: var(--primary-color);
    color: white;
}

/* ==================== Contact Page ==================== */
.contact-info-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 15px;
    padding: 30px;
}

.contact-info-card i {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* ==================== Footer ==================== */
footer {
    background: linear-gradient(135deg, #000 0%, #20232c 100%) !important;
}

footer h5, footer h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

footer h5::after, footer h6::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
    margin-top: 10px;
}

footer a {
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
}

footer a:hover {
    color: #ccc;
    padding-left: 5px;
}

footer ul li {
    margin-bottom: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
    transform: translateY(-3px);
}

.social-links a.social-icon-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
.social-links a.social-icon-disabled:hover {
    background: rgba(255,255,255,0.1);
    transform: none;
}

/* ==================== Stats Section ==================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ==================== Search Results ==================== */
.search-box {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow-md);
}

.search-box .form-control {
    border-radius: 25px 0 0 25px;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
}

.search-box .btn {
    border-radius: 0 25px 25px 0;
    padding: 15px 30px;
}

/* ==================== Pagination ==================== */
.pagination .page-link {
    border-radius: 10px;
    margin: 0 3px;
    border: none;
    color: var(--dark-color);
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
}

/* ==================== Responsive ==================== */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
        box-shadow: var(--shadow-md);
    }
}

@media (max-width: 767px) {
    .top-bar {
        display: none !important;
    }
    
    .hero-section {
        text-align: center;
        padding: 60px 0;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
    
    .product-gallery img {
        height: 250px;
    }
}

/* ==================== Utility Classes ==================== */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 25px;
    transition: var(--transition);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.shadow-hover {
    transition: var(--transition);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg);
}

/* ==================== Animations ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ==================== Product Detail: Specifications Grid ==================== */
.specs-grid-table {
    min-width: 100%;
}
.specs-grid-table th,
.specs-grid-table td {
    white-space: nowrap;
    padding: 12px 16px;
}
.specs-grid-table thead tr th {
    font-weight: 600;
    min-width: 120px;
}
.specs-grid-table tbody tr td {
    background: #fff;
}

/* ==================== Product Description Images ==================== */
.product-description img {
    width: 100%;
    height: auto !important;
    display: block !important;
}

/* ==================== Inquiry Floating Panel ==================== */
.inquiry-floating-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 420px;
    max-height: 85vh;
    z-index: 9999;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.inquiry-panel-header {
    background: #000;
    color: #fff;
    padding: 14px 18px;
    user-select: none;
}
.inquiry-panel-header h6 {
    color: #fff;
    pointer-events: none;
}
.inquiry-panel-body {
    padding: 18px;
    max-height: calc(85vh - 52px);
    overflow-y: auto;
}

@media (max-width: 576px) {
    .inquiry-floating-panel {
        width: calc(100vw - 20px);
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}

/* ==================== Product Detail Gallery ==================== */
/* Thumbnail: remove button background, 2px border on hover/active */
.product-thumbnails .thumb-btn {
    background: transparent !important;
    border: 1px solid #dee2e6;
    padding: 2px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.product-thumbnails .thumb-btn:hover,
.product-thumbnails .thumb-btn.active {
    border: 2px solid #0d6efd;
    box-shadow: 0 0 0 2px rgba(13,110,253,0.15);
    padding: 1px; /* compensate for thicker border */
}
.product-thumbnails .thumb-btn img {
    border-radius: 2px;
}

/* Main image: zoom lens effect */
.product-gallery {
    position: relative;
    overflow: hidden;
}
.product-gallery #mainImage {
    display: block;
    width: 100%;
}
.zoom-lens {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.2);
    cursor: crosshair;
    display: none;
    pointer-events: none;
    z-index: 10;
}
.zoom-result {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #ddd;
    background-repeat: no-repeat;
    background-color: #fff;
    display: none;
    z-index: 20;
    border-radius: 15px;
}

/* ==================== WhatsApp Product Detail Button ==================== */
.btn-whatsapp-product {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 16px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp-product:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    filter: brightness(1.05);
}
.btn-whatsapp-product:active {
    transform: translateY(0);
}

