/* Shopee-style features section */
.features-shopee {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
    position: relative;
    z-index: 10;
    isolation: isolate;
}
.features-shopee .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
    transition: background 0.2s;
}
.features-shopee .feature-item:hover {
    background: #f3f4f6;
}
.features-shopee .feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}
.features-shopee .feature-icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* Ensure inline SVGs inside feature icons are stable and scale like images */
.features-shopee .feature-icon svg,
.features-shopee .feature-icon .feature-svg {
    width: 60%;
    height: 60%;
    display: block;
    pointer-events: none;
}

/* Stronger protection for icons that may be affected by layout/transition glitches */
.features-shopee .feature-icon svg,
.features-shopee .feature-icon .feature-svg {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    will-change: opacity, transform !important;
    backface-visibility: hidden !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Placeholder for removed/unstable icons */
.feature-icon-placeholder {
    width: 60%;
    height: 60%;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    background: transparent;
    font-size: 1rem;
}
.bg-placeholder-red .feature-icon-placeholder { background: #ef4444; }
.bg-placeholder-purple .feature-icon-placeholder { background: #7c3aed; }
.features-shopee .feature-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    text-align: center;
}
@media (max-width: 640px) {
    .features-shopee .feature-label {
        font-size: 0.75rem;
    }
    .features-shopee .feature-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.3rem;
    }
}
/* Custom animations and utilities for Native Arts */

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Animation classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-scale {
    animation: scaleIn 0.5s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Stagger delays for sequential animations */
.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }
.delay-400 { animation-delay: 0.4s; opacity: 0; }
.delay-500 { animation-delay: 0.5s; opacity: 0; }

/* Smooth transitions */
.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-transform {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Form input focus effects */
.input-focus {
    transition: all 0.2s ease;
}

.input-focus:focus {
    outline: none;
    border-color: #c00;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
    transform: scale(1.01);
}

/* Button hover effects */
.btn-primary {
    background-color: var(--brand-accent);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
}

.btn-primary:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--brand-primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--brand-primary);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--brand-light);
    color: var(--brand-dark);
    transform: translateY(-2px);
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-highlight {
    background-color: var(--brand-accent);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
}

/* Table enhancements */
.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    background-color: #f9fafb;
    padding: 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e5e7eb;
}

.table-modern tbody tr {
    transition: all 0.2s ease;
    background-color: white;
}

.table-modern tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.table-modern tbody tr:hover {
    background-color: #fef2f2;
    transform: scale(1.01);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.table-modern tbody td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

/* Icon styling */
.icon {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
    vertical-align: middle;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

.icon-lg {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-xl {
    width: 2rem;
    height: 2rem;
}

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    border: 3px solid #f3f4f6;
    border-top-color: #c00;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    animation: spin 0.6s linear infinite;
}

/* Card hover effect */
.card-interactive {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-interactive:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Floating label input */
.floating-input {
    position: relative;
    margin-top: 1.5rem;
}

.floating-input input,
.floating-input textarea,
.floating-input select {
    width: 100%;
    padding: 1rem 0.75rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.floating-input input:focus,
.floating-input textarea:focus,
.floating-input select:focus {
    outline: none;
    border-color: #c00;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.floating-input label {
    position: absolute;
    left: 0.75rem;
    top: 1rem;
    color: #6b7280;
    font-size: 1rem;
    transition: all 0.2s ease;
    pointer-events: none;
    background-color: white;
    padding: 0 0.25rem;
}

.floating-input input:focus + label,
.floating-input input:not(:placeholder-shown) + label,
.floating-input textarea:focus + label,
.floating-input textarea:not(:placeholder-shown) + label,
.floating-input select:focus + label,
.floating-input select:not([value=""]) + label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: #c00;
    font-weight: 600;
}

/* Gradient overlay */
.gradient-overlay {
    background: linear-gradient(135deg, rgba(204, 0, 0, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%);
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    background-color: #1f2937;
    color: white;
    text-align: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
    white-space: nowrap;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Marketplace-friendly color scheme */
:root {
    --brand-primary: #2563eb; /* Professional blue */
    --brand-accent: #f97316; /* Vibrant orange */
    --brand-dark: #1e40af; /* Dark blue */
    --brand-light: #f0f9ff; /* Light blue tint */
    --market-red: #c40000;
    --market-gold: #f7c843;
    --market-dark: #111827;
}

body {
    background-color: #ffffff;
    color: #1f2937;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.section-heading h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--market-dark);
}

.section-heading .cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--market-red);
}

.market-card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.08);
    border: 1px solid rgba(17, 24, 39, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 520px;
}

.market-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 120px rgba(17, 24, 39, 0.15);
}

.market-card__media {
    height: 220px;
    overflow: hidden;
    background: #f3f4f6;
}

.market-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.market-card:hover .market-card__media img {
    transform: scale(1.07);
}

.market-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.market-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--market-dark);
    margin-bottom: 0.35rem;
}

.market-card__meta {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.market-card__price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-weight: 800;
    color: var(--market-red);
}

.market-card__price span {
    font-size: 0.8rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.market-card__actions {
    margin-top: auto;
    display: flex;
    gap: 0.75rem;
}

.market-card__actions form {
    flex: 1;
    display: flex;
}

.market-card__actions form .market-card__button {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.market-card__button {
    flex: 1;
    text-align: center;
    padding: 0.65rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.market-card__button.primary {
    background: var(--market-red);
    color: #fff;
}

.market-card__button.secondary {
    border-color: rgba(17, 24, 39, 0.1);
    color: var(--market-dark);
}

.market-card__button:hover {
    transform: translateY(-2px);
}

.flash-sale-banner {
    border-radius: 1.5rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, rgba(196,0,0,0.15), rgba(247,200,67,0.25));
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.flash-sale-banner h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--market-dark);
}

.flash-sale-banner p {
    color: #4b5563;
}

.flash-sale-timer {
    display: flex;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--market-red);
}

/* Sections with slightly elevated contrast */
.section-contrast {
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248,250,252,0.98));
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(15,23,42,0.06);
}

/* Category card styles */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    padding: 1.75rem;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    color: #fff;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s;
    isolation: isolate;
}
.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.85) 100%);
    z-index: -1;
}
.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 80px rgba(15, 23, 42, 0.45);
}
.category-card__badge {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.9);
    color: #b91c1c;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.category-card__title {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.category-card__description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}
.category-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}
.category-card:hover .category-card__cta {
    color: #fde68a;
}

/* Small ghost button on cards */
.btn-ghost {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.12);
}

/* Fallback placeholder styling if external images are not present */
.img-placeholder {
    display:flex;align-items:center;justify-content:center;background:#efeef6;color:#6b7280;font-weight:700;
}

/* Highlighted section titles */
h2 {
    color: var(--highlight-red);
    font-weight: bold;
}

/* Links with red hover effect */
a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--highlight-red);
}
/* Carousel Styles */
.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide:first-child {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-prev,
.carousel-next {
    z-index: 20;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(255, 255, 255, 0.6) !important;
}

.carousel-indicators {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.carousel-indicator {
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background-color: white !important;
    width: 2rem;
}

.carousel-indicator:hover {
    background-color: white !important;
}

/* Shopee-style Buttons */
.btn-shopee-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    background-color: #c40000; /* brand-red */
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #c40000;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-shopee-primary:hover {
    background-color: #a30000;
    border-color: #a30000;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-shopee-primary.disabled {
    background-color: #fca5a5; /* red-300 */
    border-color: #fca5a5;
    color: #fee2e2; /* red-100 */
    cursor: not-allowed;
    pointer-events: none;
}

.btn-shopee-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    background-color: transparent;
    color: #c40000;
    font-weight: 600;
    border: 1px solid #fca5a5; /* red-300 */
    transition: all 0.2s ease;
}

.btn-shopee-secondary:hover {
    background-color: #fef2f2; /* red-50 */
    border-color: #c40000;
}

/* Custom Checkbox */
.shopee-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db; /* gray-300 */
    border-radius: 0.25rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.shopee-checkbox:checked {
    background-color: #c40000;
    border-color: #c40000;
}

.shopee-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 0.1rem;
    left: 0.4rem;
    width: 0.3rem;
    height: 0.6rem;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Quantity Selector */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
}

.quantity-btn {
    background-color: transparent;
    border: none;
    padding: 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 300;
    color: #4b5563; /* gray-600 */
    cursor: pointer;
    transition: background-color 0.2s;
}

.quantity-btn:hover:not(:disabled) {
    background-color: #f3f4f6; /* gray-100 */
}

.quantity-btn:disabled {
    color: #d1d5db; /* gray-300 */
    cursor: not-allowed;
}

.quantity-input {
    width: 3rem;
    text-align: center;
    border: none;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    padding: 0.5rem 0;
    font-size: 1rem;
    -moz-appearance: textfield; /* Firefox */
    appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Utility for sticky footer shadow */
.shadow-top {
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}