/* CSS สำหรับเว็บไซต์ขายวัตถุมงคล - ธีมสีดำทองแบบ LuckyStar8 */

:root {
    --primary-black: #000000;
    --secondary-black: #1a1a1a;
    --dark-gray: #2d2d2d;
    --primary-gold: #E5C467;
    --secondary-gold: #A36E1B;
    --accent-gold: #D4AF37;
    --light-gold: #F5E5A3;
    --text-light: #ffffff;
    --text-gray: #cccccc;
    --shadow-gold: 0 0 20px rgba(227, 196, 103, 0.3);
    --shadow-dark: 0 4px 15px rgba(0, 0, 0, 0.5);
    --gradient-gold: linear-gradient(90deg, #A36E1B 0%, #E5C467 100%);
    --white: #ffffff;
    --gray: #cccccc;
    --light-gray: #f5f5f5;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --gradient-main: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%);
    --gradient-card: linear-gradient(145deg, #1a1a1a, #2d2d2d);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', 'Arial', sans-serif;
    background: var(--primary-black);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* ========== HEADER / NAVBAR ========== */
.header {
    background: linear-gradient(90deg, #0a0a0a 0%, #141414 50%, #0a0a0a 100%);
    border-bottom: 2px solid var(--primary-gold);
    box-shadow: 0 2px 24px rgba(229, 196, 103, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    height: 72px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-decoration: none;
    white-space: nowrap;
    text-shadow: 0 0 12px rgba(229, 196, 103, 0.5);
    transition: color 0.25s, text-shadow 0.25s;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 1.4rem;
    animation: spinGold 6s linear infinite;
}

@keyframes spinGold {
    0%   { transform: rotate(0deg) scale(1); filter: brightness(1); }
    50%  { transform: rotate(180deg) scale(1.2); filter: brightness(1.5); }
    100% { transform: rotate(360deg) scale(1); filter: brightness(1); }
}

.logo:hover {
    color: var(--accent-gold);
    text-shadow: 0 0 24px rgba(255, 215, 0, 0.9);
}

/* Nav links (center) */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.3rem;
    border-radius: 50px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    min-height: 44px;          /* large tap target */
}

.nav-link:hover {
    color: var(--primary-gold);
    background: rgba(229, 196, 103, 0.1);
    border-color: rgba(229, 196, 103, 0.4);
    box-shadow: 0 0 12px rgba(229, 196, 103, 0.2);
}

.nav-link.active {
    color: var(--primary-black);
    background: var(--gradient-gold);
    border-color: var(--primary-gold);
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(229, 196, 103, 0.45);
}

/* ---- Right actions ---- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Cart button */
.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(229,196,103,0.15), rgba(163,110,27,0.2));
    border: 1.5px solid var(--primary-gold);
    color: var(--primary-gold);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 44px;
    position: relative;
    transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
}

.cart-btn:hover {
    background: linear-gradient(135deg, rgba(229,196,103,0.3), rgba(163,110,27,0.35));
    box-shadow: 0 0 18px rgba(229, 196, 103, 0.55);
    transform: translateY(-2px);
    color: #fff;
}

.cart-svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cart-label {
    font-weight: 600;
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: var(--primary-gold);
    color: var(--primary-black);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

/* Admin button */
.admin-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.1rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: #aaa;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 44px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.admin-btn:hover {
    color: var(--primary-gold);
    border-color: var(--primary-gold);
    background: rgba(229, 196, 103, 0.08);
}

/* Hamburger (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid rgba(229,196,103,0.4);
    border-radius: 10px;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    order: 3;
}

.nav-toggle span {
    display: block;
    height: 2.5px;
    background: var(--primary-gold);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Responsive */
@media (max-width: 900px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: #0e0e0e;
        border-bottom: 2px solid var(--primary-gold);
        padding: 1rem 5%;
        z-index: 999;
    }

    .nav-links.open { display: flex; }

    .nav-link {
        padding: 0.9rem 1rem;
        border-radius: 12px;
        width: 100%;
    }

    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .header-actions { margin-left: auto; }
    .logo { order: 1; }
    .header-actions { order: 2; }
    .nav-toggle { order: 3; margin-left: 0.5rem; }
}

@media (max-width: 480px) {
    .cart-label { display: none; }
    .cart-btn { padding: 0.6rem 0.9rem; }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Cards */
.card {
    background: var(--gradient-card);
    border: 1px solid rgba(229, 196, 103, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-dark);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-gold);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.card:hover::before {
    transform: translateX(100%);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold), var(--shadow-dark);
    border-color: var(--primary-gold);
}

.card-header {
    border-bottom: 1px solid rgba(229, 196, 103, 0.3);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.card-title {
    color: var(--primary-gold);
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

/* Category Grid - 4 columns */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Featured Products Grid - 4 columns */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.product-card {
    background: var(--gradient-card);
    border: 1px solid rgba(229, 196, 103, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.product-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(229, 196, 103, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-card:hover::after {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold), var(--shadow-dark);
    border-color: var(--primary-gold);
}

.product-image {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 2px solid rgba(229, 196, 103, 0.3);
    transition: all 0.3s ease;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card:hover .product-image {
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-gold);
}

.product-name {
    color: var(--primary-gold);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.product-price {
    color: var(--accent-gold);
    font-size: 1.6rem;
    font-weight: bold;
    margin: 1.2rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.4s ease;
    font-size: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #b8962e 0%, #d4af37 100%);
    color: #1a1200;
    box-shadow: 0 2px 8px rgba(180, 140, 30, 0.25);
    border: 1px solid #a07c1a;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c9a73a 0%, #e5c467 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(180, 140, 30, 0.35);
}

.btn-secondary {
    background: var(--tertiary-black);
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: var(--primary-black);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.btn-danger {
    background: linear-gradient(45deg, var(--danger), #b02a37);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.btn-success {
    background: linear-gradient(45deg, var(--success), #1e7e34);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

/* Forms */
.form-group {
    margin-bottom: 1.8rem;
}

.form-label {
    display: block;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(229, 196, 103, 0.3);
    border-radius: 15px;
    background: var(--tertiary-black);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), var(--shadow-gold);
    background: var(--secondary-black);
}

.form-control::placeholder {
    color: var(--gray);
    opacity: 0.7;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--secondary-black);
    border-radius: 10px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--primary-gold);
}

.table th {
    background: var(--primary-gold);
    color: var(--primary-black);
    font-weight: bold;
}

.table tr:hover {
    background: rgba(255, 215, 0, 0.1);
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border-left-color: var(--success);
    color: #90EE90;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    border-left-color: var(--danger);
    color: #FFB6C1;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    border-left-color: var(--warning);
    color: var(--light-gold);
}

.alert-info {
    background: rgba(23, 162, 184, 0.2);
    border-left-color: #17a2b8;
    color: #87CEEB;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--primary-black), #000000);
    border-top: 2px solid var(--primary-gold);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    color: var(--gray);
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Animation keyframes */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Hero Slider Styles */
.slider-container .slide {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-container .slide.active {
    opacity: 1;
}

.slider-nav:hover {
    background: rgba(229, 196, 103, 1) !important;
    transform: translateY(-50%) scale(1.1);
}

.slider-dots .dot.active {
    background: rgba(229, 196, 103, 1) !important;
    transform: scale(1.2);
}

.slider-dots .dot:hover {
    background: rgba(229, 196, 103, 0.8) !important;
    transform: scale(1.1);
}

@keyframes goldGlow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(229, 196, 103, 0.5); 
    }
    50% { 
        box-shadow: 0 0 20px rgba(229, 196, 103, 0.8), 0 0 30px rgba(255, 215, 0, 0.4); 
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.glow-effect {
    animation: goldGlow 3s ease-in-out infinite;
}

.float-effect {
    animation: float 4s ease-in-out infinite;
}

/* Loading spinner */
.spinner {
    border: 4px solid var(--tertiary-black);
    border-top: 4px solid var(--primary-gold);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite, goldGlow 2s ease-in-out infinite;
    margin: 30px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Filter Buttons — legacy, keep for compatibility */
.filter-btn {
    margin: 0.3rem;
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--primary-gold);
    background: transparent;
    color: var(--primary-gold);
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-gold);
    color: var(--primary-black);
}

/* ========== FILTER BAR (products page) ========== */
.filter-bar {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin: 1rem 0 0.5rem;
}

.filter-top-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-search-wrap {
    position: relative;
    flex: 1;
    min-width: 180px;
}

.filter-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(212,175,55,0.5);
    pointer-events: none;
}

.filter-search-input {
    width: 100%;
    padding: 0.65rem 2.5rem 0.65rem 2.4rem;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(212,175,55,0.25);
    border-radius: 50px;
    color: #fff;
    font-size: 0.92rem;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}

.filter-search-input:focus {
    border-color: rgba(212,175,55,0.6);
    background: rgba(255,255,255,0.08);
}

.filter-search-input::placeholder { color: rgba(212,175,55,0.35); }

.filter-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(212,175,55,0.5);
    font-size: 1.1rem;
    text-decoration: none;
    line-height: 1;
    padding: 0 2px;
    transition: color 0.2s;
}
.filter-clear-btn:hover { color: var(--primary-gold); }

.filter-sort-select {
    padding: 0.65rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(212,175,55,0.25);
    border-radius: 50px;
    color: rgba(212,175,55,0.85);
    font-size: 0.88rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    min-width: 140px;
    transition: border-color 0.2s;
}
.filter-sort-select:focus { border-color: rgba(212,175,55,0.6); }
.filter-sort-select option { background: #1a1a1a; color: #fff; }

.filter-submit-btn {
    padding: 0.65rem 1.4rem;
    background: linear-gradient(135deg, #b8962e 0%, #d4af37 100%);
    border: none;
    border-radius: 50px;
    color: #1a1200;
    font-weight: 700;
    font-size: 0.88rem;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.15s;
}
.filter-submit-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.filter-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(212,175,55,0.1);
}

.filter-pill {
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    border: 1.5px solid rgba(212,175,55,0.3);
    color: rgba(212,175,55,0.75);
    background: transparent;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    cursor: pointer;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}

.filter-pill:hover {
    background: rgba(212,175,55,0.12);
    border-color: rgba(212,175,55,0.6);
    color: var(--primary-gold);
}

.filter-pill.active {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: #1a1200;
    font-weight: 700;
}

@media (max-width: 600px) {
    .filter-top-row { flex-direction: column; }
    .filter-search-wrap { width: 100%; }
    .filter-sort-select, .filter-submit-btn { width: 100%; }
}

/* Cart Badge */
.cart-badge {
    background: linear-gradient(45deg, var(--danger), #b02a37);
    color: white;
    border-radius: 50%;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    position: absolute;
    top: -10px;
    right: -10px;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.5);
    animation: float 2s ease-in-out infinite;
}

/* ========== PRODUCTS PAGE BANNER ========== */
.products-banner {
    padding: 2.5rem 2rem 2rem;
    border-bottom: 1px solid rgba(212,175,55,0.18);
    margin-bottom: 0.5rem;
}

.products-banner .banner-subtitle {
    color: var(--primary-gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.products-banner h1 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.trust-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.trust-row span {
    color: rgba(212,175,55,0.8);
    font-size: 0.82rem;
    font-weight: 500;
}

/* ========== REDESIGNED PRODUCT CARD ========== */
.pi-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.9rem;
    background: var(--gradient-card);
    border: 1.5px solid rgba(212,175,55,0.2);
    flex-shrink: 0;
}

.pi-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.product-card:hover .pi-wrap img {
    transform: scale(1.05);
}

.pi-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: rgba(212,175,55,0.3);
}

.pi-cat {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.75);
    border: 1px solid rgba(212,175,55,0.55);
    color: var(--primary-gold);
    font-size: 0.7rem;
    padding: 0.18rem 0.5rem;
    border-radius: 20px;
    font-weight: 600;
    backdrop-filter: blur(6px);
    pointer-events: none;
}

.pi-feat {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(229,196,103,0.92);
    color: #1a1200;
    font-size: 0.68rem;
    padding: 0.18rem 0.5rem;
    border-radius: 20px;
    font-weight: 700;
    pointer-events: none;
}

.pc-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
}

.pc-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.3rem 0 0.1rem;
    gap: 0.5rem;
}

.pc-price-row .product-price {
    font-size: 1.25rem;
    margin: 0;
    line-height: 1;
}

.pc-price-row .product-price small {
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(212,175,55,0.65);
}

.pc-stock-ok {
    font-size: 0.7rem;
    color: #20c997;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.pc-stock-no {
    font-size: 0.7rem;
    color: #dc3545;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.pc-btn-cart {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
    margin-top: 0.6rem;
    border-radius: 25px;
}

.pc-view-link {
    display: block;
    text-align: center;
    color: rgba(212,175,55,0.6);
    font-size: 0.8rem;
    text-decoration: none;
    margin-top: 0.4rem;
    padding: 0.25rem 0;
    transition: color 0.2s;
    letter-spacing: 0.02em;
}

.pc-view-link:hover {
    color: var(--primary-gold);
}

@media (max-width: 600px) {
    .products-banner h1 { font-size: 1.5rem; }
    .trust-row { gap: 0.75rem; }
}
