/* ─── Ricmartbest Theme v3 CSS ─── */
/* Uses proper class names instead of Tailwind utility classes */

:root {
    --background: 220 20% 96%;
    --foreground: 220 20% 10%;
    --card: 0 0% 100%;
    --card-foreground: 220 20% 10%;
    --primary: 217 91% 50%;
    --primary-foreground: 0 0% 100%;
    --secondary: 220 20% 96%;
    --secondary-foreground: 220 20% 10%;
    --muted: 220 14% 92%;
    --muted-foreground: 220 10% 46%;
    --accent: 24 95% 53%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 84% 60%;
    --border: 220 13% 88%;
    --input: 220 13% 88%;
    --ring: 217 91% 50%;
    --radius: 0.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* ─── Container ─── */
.ricmart-container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }

/* ─── Header ─── */
.ricmart-header {
    position: sticky; top: 0; z-index: 50;
    background: hsl(var(--primary));
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.ricmart-header-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 1rem;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; gap: 1rem;
}
.ricmart-logo { flex-shrink: 0; }
.ricmart-site-title {
    font-size: 1.25rem; font-weight: 800;
    color: hsl(var(--primary-foreground));
    letter-spacing: -0.025em;
}
.ricmart-search-wrap {
    display: none; flex: 1; max-width: 36rem; position: relative;
}
@media (min-width: 768px) { .ricmart-search-wrap { display: flex; } }
.ricmart-search-input {
    width: 100%; padding: 0.5rem 1rem;
    border: none; border-radius: var(--radius) 0 0 var(--radius);
    font-size: 0.875rem; color: hsl(var(--foreground));
    background: hsl(var(--card));
    outline: none;
}
.ricmart-search-input:focus { box-shadow: 0 0 0 2px hsl(var(--accent)); }
.ricmart-search-btn {
    background: hsl(var(--accent)); color: hsl(var(--accent-foreground));
    padding: 0 1rem; border-radius: 0 var(--radius) var(--radius) 0;
    display: flex; align-items: center; justify-content: center;
}
.ricmart-search-results {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    margin-top: 4px; background: hsl(var(--card)); border: 1px solid hsl(var(--border));
    border-radius: var(--radius); box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    max-height: 20rem; overflow-y: auto; z-index: 50;
}
.ricmart-search-results.open { display: block; }
.ricmart-search-result-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem 0.75rem; transition: background 0.2s;
}
.ricmart-search-result-item:hover { background: hsl(var(--muted)); }
.ricmart-search-result-img { width: 40px; height: 40px; object-fit: contain; border-radius: 4px; }
.ricmart-search-result-name { font-size: 0.875rem; font-weight: 500; color: hsl(var(--card-foreground)); }
.ricmart-search-result-cat { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.ricmart-search-result-price { font-size: 0.875rem; font-weight: 600; color: hsl(var(--card-foreground)); flex-shrink: 0; }

.ricmart-nav { display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 768px) { .ricmart-nav { display: flex; } }
.ricmart-nav-link {
    color: hsl(var(--primary-foreground)); font-weight: 500; font-size: 0.875rem;
    display: flex; align-items: center; gap: 0.25rem;
    transition: opacity 0.2s; background: none; border: none; padding: 0;
}
.ricmart-nav-link:hover { opacity: 0.8; }
.ricmart-icon-btn { padding: 0.25rem; border-radius: 0.375rem; }
.ricmart-cart-link { position: relative; }
.ricmart-cart-count {
    position: absolute; top: -8px; right: -8px;
    background: hsl(var(--accent)); color: hsl(var(--accent-foreground));
    font-size: 0.625rem; font-weight: 700; min-width: 18px; height: 18px;
    border-radius: 9999px; display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}

.ricmart-mobile-toggle {
    display: flex; color: hsl(var(--primary-foreground));
    background: none; border: none; padding: 0;
}
@media (min-width: 768px) { .ricmart-mobile-toggle { display: none; } }

.ricmart-mobile-menu {
    padding: 0 1rem 1rem; max-width: 1280px; margin: 0 auto;
}
.ricmart-mobile-search-row { display: flex; margin-bottom: 0.75rem; }
.ricmart-mobile-search-input {
    flex: 1; padding: 0.5rem 1rem; border: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 0.875rem; color: hsl(var(--foreground)); background: hsl(var(--card));
}
.ricmart-mobile-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.ricmart-mobile-nav a, .ricmart-mobile-nav button {
    color: hsl(var(--primary-foreground)); padding: 0.5rem 0;
    font-weight: 500; font-size: 1rem; text-align: left;
    display: flex; align-items: center; gap: 0.5rem;
    background: none; border: none; width: 100%;
}

/* ─── Hero ─── */
.ricmart-hero {
    background: hsl(var(--primary)); overflow: hidden;
}
.ricmart-hero-viewport {
    position: relative; height: 16rem;
}
@media (min-width: 768px) { .ricmart-hero-viewport { height: 20rem; } }
.ricmart-slide {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0; transition: opacity 0.7s ease-in-out;
}
.ricmart-slide.active { opacity: 1; }
.ricmart-slide-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.ricmart-slide-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary) / 0.8));
}
.ricmart-hero-content {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 1rem; z-index: 10;
}
.ricmart-hero-title {
    font-size: 1.875rem; font-weight: 800;
    color: hsl(var(--primary-foreground)); margin: 0 0 0.75rem;
}
@media (min-width: 768px) { .ricmart-hero-title { font-size: 3rem; } }
.ricmart-hero-subtitle {
    color: hsl(var(--primary-foreground) / 0.8);
    font-size: 1.125rem; margin: 0 0 1.5rem;
}
.ricmart-hero-btn {
    display: inline-block;
    background: hsl(var(--accent)); color: hsl(var(--accent-foreground));
    font-size: 1.125rem; font-weight: 700; padding: 0.75rem 2rem;
    border-radius: var(--radius); transition: opacity 0.2s;
}
.ricmart-hero-btn:hover { opacity: 0.9; }
.ricmart-hero-prev, .ricmart-hero-next {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 20;
    background: hsl(var(--background) / 0.3); color: hsl(var(--primary-foreground));
    border-radius: 9999px; padding: 0.5rem; transition: background 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.ricmart-hero-prev { left: 0.75rem; }
.ricmart-hero-next { right: 0.75rem; }
.ricmart-hero-prev:hover, .ricmart-hero-next:hover { background: hsl(var(--background) / 0.5); }
.ricmart-hero-dots {
    position: absolute; bottom: 0.75rem; left: 50%; transform: translateX(-50%);
    z-index: 20; display: flex; gap: 0.5rem;
}
.ricmart-dot {
    width: 0.625rem; height: 0.625rem; border-radius: 9999px;
    background: hsl(var(--primary-foreground) / 0.5);
    transition: all 0.3s; border: none; padding: 0;
}
.ricmart-dot.active {
    width: 1.5rem; background: hsl(var(--primary-foreground));
}

/* ─── Sections ─── */
.ricmart-section { padding: 2.5rem 0 1.5rem; }
.ricmart-section-last { padding-bottom: 3rem; }
.ricmart-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem;
}
.ricmart-section-title {
    font-size: 1.5rem; font-weight: 700;
    color: hsl(var(--foreground)); margin: 0;
}
.ricmart-view-all {
    color: hsl(var(--primary)); font-weight: 500; font-size: 0.875rem;
    display: flex; align-items: center; gap: 0.25rem;
}
.ricmart-view-all:hover { text-decoration: underline; }

/* ─── Categories Grid ─── */
.ricmart-categories-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
@media (min-width: 768px) { .ricmart-categories-grid { grid-template-columns: repeat(5, 1fr); } }
.ricmart-cat-card {
    position: relative; border-radius: 0.75rem; overflow: hidden;
    aspect-ratio: 1; display: block;
}
.ricmart-cat-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s;
}
.ricmart-cat-card:hover .ricmart-cat-img { transform: scale(1.1); }
.ricmart-cat-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, hsl(var(--muted)), hsl(var(--muted) / 0.5));
}
.ricmart-cat-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, hsl(var(--foreground) / 0.7), transparent);
}
.ricmart-cat-name {
    position: absolute; bottom: 0.75rem; left: 0.75rem; right: 0.75rem;
    color: #fff; font-weight: 600; font-size: 0.875rem; text-align: center;
}

/* ─── Products Grid ─── */
.ricmart-products-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
@media (min-width: 768px) { .ricmart-products-grid { grid-template-columns: repeat(4, 1fr); } }

/* ─── Product Card ─── */
.ricmart-product-card-link { display: block; text-decoration: none; color: inherit; }
.ricmart-product-card {
    background: hsl(var(--card)); border-radius: var(--radius);
    border: 1px solid hsl(var(--border)); overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
}
.ricmart-product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.ricmart-product-img-wrap {
    position: relative; aspect-ratio: 1;
    background: hsl(var(--card)); padding: 1rem;
}
.ricmart-product-img {
    width: 100%; height: 100%; object-fit: contain;
    transition: transform 0.3s;
}
.ricmart-product-card:hover .ricmart-product-img { transform: scale(1.05); }
.ricmart-product-no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: hsl(var(--muted));
}
.ricmart-discount-badge {
    position: absolute; top: 0.75rem; left: 0.75rem;
    background: hsl(var(--accent)); color: hsl(var(--accent-foreground));
    font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}
.ricmart-wishlist-btn {
    position: absolute; top: 0.75rem; right: 0.75rem;
    padding: 0.375rem; border-radius: 9999px;
    background: hsl(var(--card) / 0.8); color: hsl(var(--muted-foreground));
    transition: color 0.2s, background 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.ricmart-wishlist-btn:hover { color: hsl(var(--destructive)); background: hsl(var(--card)); }
.ricmart-product-info { padding: 0.75rem; }
.ricmart-stars { display: flex; align-items: center; gap: 2px; margin-bottom: 0.375rem; }
.ricmart-star { fill: hsl(var(--muted)); stroke: hsl(var(--muted)); }
.ricmart-star.filled { fill: #fbbf24; stroke: #fbbf24; }
.ricmart-review-count { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-left: 0.25rem; }
.ricmart-product-name {
    font-weight: 600; font-size: 0.875rem;
    color: hsl(var(--card-foreground)); margin: 0 0 0.375rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ricmart-product-price {
    font-weight: 700; color: hsl(var(--card-foreground)); margin-bottom: 0.5rem;
}
.ricmart-product-price del { color: hsl(var(--muted-foreground)); font-weight: 400; font-size: 0.875rem; }
.ricmart-add-to-cart-btn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.25rem;
    background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
    padding: 0.5rem 0.75rem; border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem; font-weight: 500; transition: opacity 0.2s;
}
.ricmart-add-to-cart-btn:hover { opacity: 0.9; }

/* ─── Shop Layout ─── */
.ricmart-shop-layout { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 768px) { .ricmart-shop-layout { flex-direction: row; } }
.ricmart-shop-sidebar { width: 100%; flex-shrink: 0; }
@media (min-width: 768px) { .ricmart-shop-sidebar { width: 16rem; } }
.ricmart-shop-main { flex: 1; }
.ricmart-filter-box {
    background: hsl(var(--card)); border: 1px solid hsl(var(--border));
    border-radius: var(--radius); padding: 1rem; margin-bottom: 1.5rem;
}
.ricmart-filter-title {
    font-weight: 600; color: hsl(var(--card-foreground));
    margin: 0 0 0.75rem; font-size: 1rem;
}
.ricmart-filter-list li { margin-bottom: 0.5rem; }
.ricmart-filter-list a {
    font-size: 0.875rem; color: hsl(var(--muted-foreground));
    transition: color 0.2s;
}
.ricmart-filter-list a:hover, .ricmart-filter-list a.active {
    color: hsl(var(--primary)); font-weight: 600;
}

/* ─── Breadcrumbs ─── */
.ricmart-breadcrumbs {
    font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-bottom: 1rem;
}
.ricmart-breadcrumbs a { color: hsl(var(--muted-foreground)); }
.ricmart-breadcrumbs a:hover { color: hsl(var(--primary)); }

/* ─── Page Title ─── */
.ricmart-page-title {
    font-size: 1.875rem; font-weight: 700;
    color: hsl(var(--foreground)); margin: 0 0 1.5rem;
}

/* ─── Product Detail ─── */
.ricmart-product-detail {
    display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 768px) {
    .ricmart-product-detail { grid-template-columns: 1fr 1fr; }
}
.ricmart-gallery-main {
    position: relative; background: hsl(var(--card));
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid hsl(var(--border)); aspect-ratio: 1;
}
.ricmart-gallery-img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.ricmart-gallery-prev, .ricmart-gallery-next {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    background: hsl(var(--background) / 0.7); border-radius: 9999px; padding: 0.5rem;
    display: flex; align-items: center; justify-content: center;
    color: hsl(var(--foreground)); transition: background 0.2s;
}
.ricmart-gallery-prev { left: 0.5rem; }
.ricmart-gallery-next { right: 0.5rem; }
.ricmart-gallery-prev:hover, .ricmart-gallery-next:hover { background: hsl(var(--background) / 0.9); }
.ricmart-gallery-dots {
    position: absolute; bottom: 0.75rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: 0.5rem; z-index: 10;
}
.ricmart-gallery-dot {
    width: 0.5rem; height: 0.5rem; border-radius: 9999px;
    background: hsl(var(--muted-foreground) / 0.4);
    border: none; padding: 0; transition: background 0.2s;
}
.ricmart-gallery-dot.active { background: hsl(var(--primary)); }
.ricmart-gallery-thumbs {
    display: flex; gap: 0.5rem; margin-top: 0.75rem; overflow-x: auto;
}
.ricmart-thumb {
    width: 64px; height: 64px; flex-shrink: 0;
    border: 2px solid hsl(var(--border)); border-radius: var(--radius);
    overflow: hidden; padding: 0; background: hsl(var(--card));
    transition: border-color 0.2s; cursor: pointer;
}
.ricmart-thumb.active { border-color: hsl(var(--primary)); }
.ricmart-thumb img { width: 100%; height: 100%; object-fit: contain; }

.ricmart-product-cat {
    font-size: 0.875rem; color: hsl(var(--primary));
    font-weight: 500; margin: 0 0 0.25rem;
}
.ricmart-product-detail-name {
    font-size: 1.5rem; font-weight: 700;
    color: hsl(var(--foreground)); margin: 0 0 0.5rem;
}
.ricmart-product-price-detail {
    font-size: 1.5rem; font-weight: 700;
    color: hsl(var(--foreground)); margin-bottom: 1rem;
}
.ricmart-product-price-detail del {
    color: hsl(var(--muted-foreground)); font-weight: 400; font-size: 1rem;
}
.ricmart-product-desc {
    color: hsl(var(--muted-foreground)); font-size: 0.875rem;
    margin-bottom: 1.5rem; line-height: 1.6;
}
.ricmart-attr-section { margin-bottom: 1rem; }
.ricmart-attr-section h4 {
    font-size: 0.875rem; font-weight: 600;
    color: hsl(var(--foreground)); margin: 0 0 0.5rem;
}
.ricmart-attr-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ricmart-color-btn, .ricmart-size-btn {
    padding: 0.375rem 0.75rem; border-radius: var(--radius);
    border: 1px solid hsl(var(--border)); font-size: 0.875rem;
    color: hsl(var(--foreground)); background: hsl(var(--card));
    transition: all 0.2s;
}
.ricmart-color-btn:hover, .ricmart-size-btn:hover,
.ricmart-color-btn.active, .ricmart-size-btn.active {
    border-color: hsl(var(--primary)); color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.1);
}
.ricmart-features { margin-bottom: 1.5rem; }
.ricmart-features h4 {
    font-size: 0.875rem; font-weight: 600;
    color: hsl(var(--foreground)); margin: 0 0 0.5rem;
}
.ricmart-features ul { padding-left: 1.25rem; list-style: disc; }
.ricmart-features li {
    font-size: 0.875rem; color: hsl(var(--muted-foreground));
    margin-bottom: 0.25rem;
}

.ricmart-qty-row { display: flex; align-items: center; gap: 0; margin-bottom: 1rem; }
.ricmart-qty-minus, .ricmart-qty-plus {
    width: 36px; height: 36px;
    background: hsl(var(--muted)); color: hsl(var(--foreground));
    font-size: 1.25rem; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid hsl(var(--border));
}
.ricmart-qty-minus { border-radius: var(--radius) 0 0 var(--radius); }
.ricmart-qty-plus { border-radius: 0 var(--radius) var(--radius) 0; }
.ricmart-qty-input {
    width: 48px; height: 36px; text-align: center;
    border: 1px solid hsl(var(--border)); border-left: 0; border-right: 0;
    font-size: 1rem; color: hsl(var(--foreground));
    background: hsl(var(--card));
    -moz-appearance: textfield;
}
.ricmart-qty-input::-webkit-inner-spin-button { display: none; }

.ricmart-action-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.ricmart-btn-primary {
    display: flex; align-items: center; gap: 0.5rem;
    background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
    padding: 0.75rem 1.5rem; border-radius: var(--radius);
    font-weight: 600; font-size: 1rem; transition: opacity 0.2s;
    flex: 1; justify-content: center;
}
.ricmart-btn-primary:hover { opacity: 0.9; }
.ricmart-btn-secondary {
    display: flex; align-items: center; gap: 0.5rem;
    background: hsl(var(--card)); color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
    padding: 0.75rem 1.5rem; border-radius: var(--radius);
    font-weight: 500; font-size: 1rem; transition: all 0.2s;
    justify-content: center;
}
.ricmart-btn-secondary:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }

/* ─── Product Tabs ─── */
.ricmart-product-tabs { margin-top: 3rem; }
.ricmart-tabs-nav { display: flex; gap: 0; border-bottom: 2px solid hsl(var(--border)); margin-bottom: 1.5rem; }
.ricmart-tab {
    padding: 0.75rem 1.5rem; font-weight: 500; font-size: 0.875rem;
    color: hsl(var(--muted-foreground)); border-bottom: 2px solid transparent;
    margin-bottom: -2px; transition: all 0.2s; background: none;
}
.ricmart-tab.active { color: hsl(var(--primary)); border-bottom-color: hsl(var(--primary)); }
.ricmart-tab:hover { color: hsl(var(--foreground)); }
.ricmart-tab-content { display: none; color: hsl(var(--muted-foreground)); font-size: 0.875rem; line-height: 1.7; }
.ricmart-tab-content.active { display: block; }

/* ─── Footer ─── */
.ricmart-footer {
    background: hsl(var(--foreground)); color: hsl(var(--background));
    margin-top: 4rem;
}
.ricmart-footer-inner { max-width: 1280px; margin: 0 auto; padding: 3rem 1rem; }
.ricmart-footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .ricmart-footer-grid { grid-template-columns: repeat(4, 1fr); } }
.ricmart-footer-brand { font-size: 1.25rem; font-weight: 800; margin: 0 0 1rem; }
.ricmart-footer-text { font-size: 0.875rem; opacity: 0.7; line-height: 1.6; }
.ricmart-footer-heading { font-weight: 600; margin: 0 0 0.75rem; }
.ricmart-footer-links { font-size: 0.875rem; }
.ricmart-footer-links li { margin-bottom: 0.5rem; opacity: 0.7; }
.ricmart-footer-links a { opacity: 0.7; transition: opacity 0.2s; }
.ricmart-footer-links a:hover { opacity: 1; }
.ricmart-footer-bottom {
    border-top: 1px solid hsl(var(--background) / 0.2);
    margin-top: 2rem; padding-top: 1.5rem;
    text-align: center; font-size: 0.875rem; opacity: 0.5;
}

/* ─── Post Cards ─── */
.ricmart-posts-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .ricmart-posts-grid { grid-template-columns: repeat(2, 1fr); } }
.ricmart-post-card {
    background: hsl(var(--card)); border: 1px solid hsl(var(--border));
    border-radius: var(--radius); overflow: hidden;
}
.ricmart-post-img { width: 100%; height: 12rem; object-fit: cover; }
.ricmart-post-body { padding: 1rem; }
.ricmart-post-title { font-size: 1.125rem; font-weight: 600; margin: 0 0 0.5rem; }
.ricmart-post-title a { color: hsl(var(--card-foreground)); }
.ricmart-post-title a:hover { color: hsl(var(--primary)); }
.ricmart-post-excerpt { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin: 0; }
.ricmart-post-meta { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }
.ricmart-page-content { line-height: 1.8; color: hsl(var(--foreground)); }
.ricmart-page-content img { border-radius: var(--radius); }
.ricmart-page-content h2 { margin-top: 2rem; }

/* ─── WooCommerce overrides ─── */
.woocommerce-ordering select {
    background: hsl(var(--card)); color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border)); border-radius: var(--radius);
    padding: 0.5rem 0.75rem; font-size: 0.875rem;
}
.woocommerce-pagination { text-align: center; }
.woocommerce-pagination ul { display: flex; justify-content: center; gap: 0.25rem; }
.woocommerce-pagination li a, .woocommerce-pagination li span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 0.5rem;
    border: 1px solid hsl(var(--border)); border-radius: var(--radius);
    font-size: 0.875rem; color: hsl(var(--foreground));
    background: hsl(var(--card)); transition: all 0.2s;
}
.woocommerce-pagination li a:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.woocommerce-pagination li span.current {
    background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

/* ─── WooCommerce Price Filter Widget ─── */
.widget_price_filter .price_slider_wrapper { padding: 0.5rem 0; }
.widget_price_filter .ui-slider { background: hsl(var(--muted)); height: 6px; border-radius: 3px; position: relative; }
.widget_price_filter .ui-slider-range { background: hsl(var(--primary)); height: 100%; border-radius: 3px; position: absolute; }
.widget_price_filter .ui-slider-handle {
    width: 16px; height: 16px; border-radius: 50%;
    background: hsl(var(--primary)); position: absolute; top: -5px;
    cursor: pointer; outline: none;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: hsl(var(--background)); }
::-webkit-scrollbar-thumb { background: hsl(var(--muted-foreground) / 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: hsl(var(--muted-foreground) / 0.5); }

/* ─── Cart Page ─── */
.ricmart-cart-table { width: 100%; border-collapse: collapse; background: hsl(var(--card)); border-radius: 0.75rem; overflow: hidden; }
.ricmart-cart-table thead th { background: hsl(var(--muted)); padding: 0.75rem 1rem; text-align: left; font-weight: 600; font-size: 0.875rem; color: hsl(var(--foreground)); }
.ricmart-cart-table tbody td { padding: 1rem; border-bottom: 1px solid hsl(var(--border)); vertical-align: middle; color: hsl(var(--foreground)); }
.ricmart-cart-table .product-thumbnail img { width: 80px; height: 80px; object-fit: cover; border-radius: 0.5rem; }
.ricmart-cart-table .product-name a { color: hsl(var(--foreground)); font-weight: 500; text-decoration: none; }
.ricmart-cart-table .product-name a:hover { color: hsl(var(--primary)); }
.ricmart-cart-table .product-remove .remove { color: hsl(var(--destructive)); font-size: 1.5rem; text-decoration: none; font-weight: 700; }
.ricmart-cart-table .actions { text-align: right; }
.ricmart-cart-table .actions .coupon { float: left; display: flex; gap: 0.5rem; }
.ricmart-cart-table .actions .coupon input { padding: 0.5rem 0.75rem; border: 1px solid hsl(var(--border)); border-radius: 0.5rem; background: hsl(var(--background)); color: hsl(var(--foreground)); }
.ricmart-cart-table .quantity input { width: 60px; text-align: center; padding: 0.4rem; border: 1px solid hsl(var(--border)); border-radius: 0.5rem; background: hsl(var(--background)); color: hsl(var(--foreground)); }
.cart-collaterals { margin-top: 2rem; }
.cart-collaterals .cart_totals { max-width: 480px; margin-left: auto; background: hsl(var(--card)); border-radius: 0.75rem; padding: 1.5rem; border: 1px solid hsl(var(--border)); }
.cart-collaterals .cart_totals h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; color: hsl(var(--foreground)); }
.cart-collaterals .cart_totals table { width: 100%; }
.cart-collaterals .cart_totals table th, .cart-collaterals .cart_totals table td { padding: 0.5rem 0; color: hsl(var(--foreground)); }
.cart-collaterals .cart_totals table th { text-align: left; font-weight: 500; }
.cart-collaterals .cart_totals table td { text-align: right; }
.cart-collaterals .wc-proceed-to-checkout .checkout-button { display: block; width: 100%; padding: 0.75rem; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border: none; border-radius: 0.5rem; font-weight: 600; font-size: 1rem; cursor: pointer; text-align: center; text-decoration: none; margin-top: 1rem; }
.cart-collaterals .wc-proceed-to-checkout .checkout-button:hover { opacity: 0.9; }

/* ─── Checkout Page ─── */
.ricmart-checkout-form { color: hsl(var(--foreground)); }
.ricmart-checkout-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 768px) { .ricmart-checkout-columns { grid-template-columns: 1fr; } }
.ricmart-checkout-form h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; color: hsl(var(--foreground)); }
.ricmart-checkout-form .form-row { margin-bottom: 1rem; }
.ricmart-checkout-form .form-row label { display: block; margin-bottom: 0.25rem; font-weight: 500; font-size: 0.875rem; color: hsl(var(--foreground)); }
.ricmart-checkout-form .form-row input, .ricmart-checkout-form .form-row select, .ricmart-checkout-form .form-row textarea { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid hsl(var(--border)); border-radius: 0.5rem; background: hsl(var(--background)); color: hsl(var(--foreground)); font-size: 0.95rem; }
.ricmart-checkout-form .woocommerce-checkout-review-order { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 0.75rem; padding: 1.5rem; }
.ricmart-checkout-form .woocommerce-checkout-review-order-table { width: 100%; margin-bottom: 1rem; }
.ricmart-checkout-form .woocommerce-checkout-review-order-table th, .ricmart-checkout-form .woocommerce-checkout-review-order-table td { padding: 0.5rem 0; color: hsl(var(--foreground)); }
.ricmart-checkout-form #place_order { display: block; width: 100%; padding: 0.75rem; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border: none; border-radius: 0.5rem; font-weight: 600; font-size: 1rem; cursor: pointer; margin-top: 1rem; }
.ricmart-checkout-form #place_order:hover { opacity: 0.9; }

/* ─── Auth / Login Page ─── */
.ricmart-auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .ricmart-auth-wrap { grid-template-columns: 1fr; } }
.ricmart-auth-wrap h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; color: hsl(var(--foreground)); }
.ricmart-auth-wrap .woocommerce-form { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 0.75rem; padding: 2rem; }
.ricmart-auth-wrap .form-row { margin-bottom: 1rem; }
.ricmart-auth-wrap label { display: block; margin-bottom: 0.25rem; font-weight: 500; font-size: 0.875rem; color: hsl(var(--foreground)); }
.ricmart-auth-wrap input[type="text"], .ricmart-auth-wrap input[type="email"], .ricmart-auth-wrap input[type="password"] { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid hsl(var(--border)); border-radius: 0.5rem; background: hsl(var(--background)); color: hsl(var(--foreground)); }
.ricmart-auth-wrap button[type="submit"] { display: inline-block; padding: 0.6rem 1.5rem; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border: none; border-radius: 0.5rem; font-weight: 600; cursor: pointer; }
.ricmart-auth-wrap button[type="submit"]:hover { opacity: 0.9; }
.ricmart-auth-wrap .lost_password a { color: hsl(var(--primary)); font-size: 0.875rem; }

/* ─── WooCommerce Buttons (global) ─── */
.woocommerce .button, .woocommerce button.button { padding: 0.5rem 1.25rem; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border: none; border-radius: 0.5rem; font-weight: 600; cursor: pointer; font-size: 0.875rem; }
.woocommerce .button:hover, .woocommerce button.button:hover { opacity: 0.9; }
.woocommerce .button.alt { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }

/* ─── Cart responsive ─── */
@media (max-width: 768px) {
    .ricmart-cart-table thead { display: none; }
    .ricmart-cart-table tbody td { display: block; text-align: right; padding: 0.5rem 1rem; }
    .ricmart-cart-table tbody td::before { content: attr(data-title); float: left; font-weight: 600; }
    .ricmart-cart-table .actions { text-align: center; }
    .ricmart-cart-table .actions .coupon { float: none; justify-content: center; margin-bottom: 0.75rem; }
}

/* ─── Locked My Account Dashboard Layout ─── */
.ricmart-account-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}
@media (max-width: 768px) {
    .ricmart-account-layout { grid-template-columns: 1fr; }
}
.ricmart-account-sidebar {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1rem;
    height: fit-content;
}
.ricmart-account-nav ul { list-style: none; padding: 0; margin: 0; }
.ricmart-account-nav li { margin-bottom: .25rem; }
.ricmart-account-nav a {
    display: block;
    padding: .65rem .85rem;
    border-radius: .375rem;
    color: hsl(var(--foreground));
    font-weight: 500;
    font-size: .9rem;
    transition: background .15s;
}
.ricmart-account-nav a:hover { background: hsl(var(--muted)); }
.ricmart-account-nav .is-active a {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}
.ricmart-account-content {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
}
.ricmart-dashboard-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid hsl(var(--border));
}
.ricmart-dashboard-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid hsl(var(--primary));
}
.ricmart-dashboard-name { margin: 0 0 .25rem; font-size: 1.25rem; font-weight: 700; }
.ricmart-dashboard-email { margin: 0; color: hsl(var(--muted-foreground)); font-size: .9rem; }
.ricmart-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.ricmart-stat-card {
    background: hsl(var(--muted));
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.ricmart-stat-value { font-size: 1.5rem; font-weight: 800; color: hsl(var(--primary)); }
.ricmart-stat-label { font-size: .8rem; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: .05em; }
.ricmart-dashboard-welcome p { margin: 0 0 .75rem; line-height: 1.6; }

/* YITH WooCommerce Wishlist integration on product cards */
.ricmart-wishlist-yith { padding: 0; }
.ricmart-wishlist-yith .yith-wcwl-add-to-wishlist,
.ricmart-wishlist-yith .yith-wcwl-add-to-wishlist * { margin: 0; padding: 0; line-height: 1; }
.ricmart-wishlist-yith a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.ricmart-wishlist-yith a:hover { color: hsl(var(--destructive)); }
.ricmart-wishlist-yith .yith-wcwl-icon { font-size: 16px; }
.ricmart-wishlist-yith .feedback,
.ricmart-wishlist-yith .ajax-loading { display: none !important; }
