:root {
--bg: #ffffff;
--text: #000000;
--gray: #f5f5f5;
--border: #e0e0e0;
--accent: #000000;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.6;
}

/* Header - Minimal */
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem 3rem;
border-bottom: 1px solid var(--border);
position: sticky;
top: 0;
background: var(--bg);
z-index: 100;
}

.logo {
font-size: 1.5rem;
font-weight: 800;
letter-spacing: -1px;
color: var(--text);
text-decoration: none;
}

nav {
display: flex;
gap: 2rem;
align-items: center;
}

nav a {
color: var(--text);
text-decoration: none;
font-size: 0.9rem;
font-weight: 500;
opacity: 0.7;
transition: opacity 0.2s;
}

nav a:hover { opacity: 1; }

/* Hero Section */
.hero {
text-align: center;
padding: 4.5rem 2rem;
background: var(--bg);
color: var(--text);
}

.hero h1 {
font-size: 4.5rem;
font-weight: 800;
letter-spacing: -3px;
margin-bottom: 0.75rem;
line-height: 1.1;
color: var(--text);
}

.hero p {
font-size: 1.65rem;
opacity: 0.7;
margin-bottom: 2.25rem;
color: var(--text);
}

.hero-btn {
display: inline-block;
padding: 1.125rem 3rem;
background: var(--accent);
color: var(--bg);
text-decoration: none;
font-weight: 600;
font-size: 1.35rem;
border-radius: 6px;
transition: opacity 0.2s;
border: none;
}

.hero-btn:hover { opacity: 0.8; }

/* Section Titles */
.section-title {
font-size: 2.25rem;
font-weight: 700;
text-align: center;
margin: 4.5rem 0 3rem;
letter-spacing: -0.75px;
color: var(--text);
}

.section-subtitle {
text-align: center;
opacity: 0.7;
margin-bottom: 3rem;
font-size: 1.425rem;
color: var(--text);
}

/* 3D Carousel */
.carousel-section {
padding: 2rem 3rem;
position: relative;
perspective: 2000px;
overflow: visible;
background: var(--bg);
max-width: 1100px;
margin: 0 auto;
}

.carousel-stage {
position: relative;
display: flex;
align-items: center;
justify-content: center;
gap: clamp(8px, 2vw, 24px);
min-height: 450px;
}

.carousel-container {
flex: 1;
max-width: 820px;
height: 450px;
position: relative;
transform-style: preserve-3d;
overflow: visible;
touch-action: pan-y pinch-zoom;
}

.carousel-ring {
width: 100%;
height: 100%;
position: relative;
transform-style: preserve-3d;
}

.carousel-card {
position: absolute;
width: 280px;
height: 380px;
background: var(--bg);
border: none;
border-radius: 12px;
overflow: hidden;
cursor: pointer;
transition: transform 0.85s cubic-bezier(0.34, 1.12, 0.64, 1), opacity 0.55s ease, box-shadow 0.45s ease, filter 0.45s ease;
left: 50%;
top: 50%;
margin-left: -140px;
margin-top: -190px;
box-shadow: 0 8px 32px rgba(0,0,0,0.12);
transform-origin: center center;
backface-visibility: visible;
will-change: transform, opacity;
user-select: none;
}

.carousel-card.is-active {
box-shadow: 0 20px 52px rgba(0,0,0,0.22);
filter: brightness(1.02);
}

.carousel-card:not(.is-active) {
pointer-events: none;
}

.carousel-card.is-active:hover {
box-shadow: 0 24px 60px rgba(0,0,0,0.26);
}

.carousel-card-image {
height: 65%;
background: var(--gray);
overflow: hidden;
}

.carousel-card-image img {
width: 100%;
height: 100%;
object-fit: cover;
}

.carousel-card-info {
padding: 1.25rem;
}

.carousel-card-name {
font-size: 1.425rem;
font-weight: 600;
margin-bottom: 0.75rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.carousel-card-price {
font-size: 1.725rem;
font-weight: 700;
color: var(--text);
}

.carousel-nav {
flex-shrink: 0;
width: 48px;
height: 48px;
border-radius: 50%;
background: var(--bg);
border: none;
cursor: pointer;
font-size: 1.2rem;
display: flex;
align-items: center;
justify-content: center;
z-index: 100;
transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
padding: 0;
}

.carousel-nav:hover:not(:disabled) {
background: var(--accent);
color: var(--bg);
transform: scale(1.08);
box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.carousel-nav:active:not(:disabled) {
transform: scale(0.96);
}

.carousel-dots {
display: flex;
justify-content: center;
gap: 0.5rem;
margin-top: 2rem;
}

.carousel-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--border);
cursor: pointer;
transition: all 0.3s;
border: none;
padding: 0;
}

.carousel-dot.active {
background: var(--accent);
width: 28px;
border-radius: 4px;
}

/* Products Grid */
.products-section {
padding: 2rem 3rem;
background: var(--bg);
}

.products-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 2rem;
margin-bottom: 3rem;
}

.product-card {
background: var(--bg);
border: none;
border-radius: 8px;
overflow: hidden;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.product-card-image {
aspect-ratio: 1;
background: var(--gray);
overflow: hidden;
position: relative;
}

.product-card-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s;
}

.product-card:hover .product-card-image img {
transform: scale(1.08);
}

.product-card-info {
padding: 1.25rem;
}

.product-card-name {
font-size: 1.35rem;
font-weight: 600;
margin-bottom: 0.75rem;
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

.product-card-price {
font-size: 1.65rem;
font-weight: 700;
color: var(--text);
margin-bottom: 0.75rem;
}

.product-card-meta {
font-size: 0.8rem;
opacity: 0.7;
}

/* Product Table */
.table-section {
padding: 2rem 3rem;
background: var(--bg);
}

.table-container {
overflow-x: auto;
}

.product-cards-mobile { display: none; }

.product-table {
width: 100%;
border-collapse: collapse;
}

.product-table th {
text-align: left;
padding: 1.5rem;
border-bottom: 1px solid var(--border);
font-weight: 600;
font-size: 1.275rem;
text-transform: uppercase;
letter-spacing: 0.75px;
}

.product-table td {
padding: 1.5rem;
border-bottom: 1px solid var(--border);
vertical-align: middle;
}

.product-table tbody tr:last-child td {
border-bottom: none;
}

.product-table-img {
width: 60px;
height: 60px;
border-radius: 4px;
background: var(--gray);
overflow: hidden;
}

.product-table-img img {
width: 100%;
height: 100%;
object-fit: cover;
}

.product-table-name {
font-weight: 600;
font-size: 1.275rem;
margin-bottom: 0.375rem;
}

.product-table-desc {
font-size: 1.275rem;
opacity: 0.7;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

.product-table-price {
font-weight: 700;
font-size: 1.5rem;
}

.add-to-cart-btn {
padding: 0.75rem 1.875rem;
background: var(--accent);
color: var(--bg);
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: 600;
font-size: 1.275rem;
transition: opacity 0.2s;
}

.add-to-cart-btn:hover {
opacity: 0.8;
}

/* Pagination */
.pagination {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
margin: 2rem 0;
padding: 1.5rem;
flex-wrap: wrap;
}

.per-page-selector {
display: flex;
align-items: center;
gap: 0.5rem;
margin-right: 2rem;
}

.per-page-selector label {
font-size: 1.35rem;
font-weight: 600;
color: var(--text);
}

.per-page-selector select {
padding: 0.75rem 1.5rem;
border: none;
border-radius: 4px;
background: var(--bg);
color: var(--text);
font-size: 1.35rem;
cursor: pointer;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pagination button {
padding: 0.75rem 1.5rem;
background: var(--bg);
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: 600;
font-size: 1.35rem;
transition: all 0.2s;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pagination button:hover:not(:disabled) {
background: var(--accent);
color: var(--bg);
border-color: var(--accent);
}

.pagination button:disabled {
opacity: 0.3;
cursor: not-allowed;
}

.pagination .page-numbers {
display: flex;
gap: 0.25rem;
}

.pagination .page-btn {
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
}

.pagination .page-btn.active {
background: var(--accent);
color: var(--bg);
}

.pagination-info {
text-align: center;
opacity: 0.7;
font-size: 1.35rem;
margin-bottom: 1rem;
}

/* Filters */
.filters {
display: flex;
gap: 1rem;
padding: 1rem 3rem;
border-bottom: none;
flex-wrap: wrap;
align-items: center;
background: var(--bg);
margin-bottom: 2rem;
}

.search-box {
flex: 1;
min-width: 250px;
position: relative;
}

.search-box input {
width: 100%;
padding: 1.125rem 1.5rem 1.125rem 3.75rem;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--bg);
color: var(--text);
font-size: 1.35rem;
}

.search-box::before {
content: '🔍';
position: absolute;
left: 0.75rem;
top: 50%;
transform: translateY(-50%);
}

.filter-select {
padding: 1.125rem 1.5rem;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--bg);
color: var(--text);
font-size: 1.35rem;
cursor: pointer;
}

/* Footer */
footer {
text-align: center;
padding: 3rem;
border-top: 1px solid var(--border);
opacity: 0.6;
font-size: 1.35rem;
background: var(--bg);
color: var(--text);
}

/* Theme Toggle Button */
.theme-toggle-btn {
background: var(--accent);
color: var(--bg);
border: none;
border-radius: 4px;
padding: 0.5rem 1rem;
cursor: pointer;
font-size: 1rem;
font-weight: 500;
transition: all 0.2s;
display: flex;
align-items: center;
gap: 0.5rem;
}

.theme-toggle-btn:hover {
opacity: 0.8;
}

.theme-toggle-btn span {
font-size: 1.2rem;
}

/* Dark Mode Styles */
.dark {
--bg: #0a0a0f;
--text: #f0f0f0;
--gray: #1a1a1a;
--border: #333;
--accent: #3b82f6;
}

.dark body {
background: var(--bg);
color: var(--text);
}

.dark header {
background: var(--bg);
border-bottom-color: var(--border);
}

.dark .logo,
.dark nav a {
color: var(--text);
}

.dark .hero {
background: var(--bg);
color: var(--text);
}

.dark .carousel-card,
.dark .product-card,
.dark .category-card {
background: var(--gray);
border-color: var(--border);
color: var(--text);
}
@media (max-width: 768px) {
header { padding: 1.5rem; }
nav { gap: 1.5rem; }
.hero { padding: 3rem 1.5rem; }
.hero h1 { font-size: 3rem; }
.hero p { font-size: 1.2rem; }
.carousel-section { padding: 1.5rem; }
.carousel-stage { min-height: 360px; gap: 8px; }
.carousel-container { height: 360px; max-width: 100%; }
.carousel-card { width: 260px; height: 340px; margin-left: -130px; margin-top: -170px; }
.carousel-card-name { font-size: 1.1rem; }
.carousel-card-price { font-size: 1.3rem; }
.products-section { padding: 1.5rem; }
.products-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.product-card-name { font-size: 1rem; }
.product-card-price { font-size: 1.2rem; }
.table-section { padding: 1.5rem; }
.table-container { display: none; }
.product-cards-mobile { display: flex; flex-direction: column; gap: 1rem; }
.product-card-mobile {
border: 1px solid var(--border);
border-radius: 12px;
padding: 1rem;
display: grid;
grid-template-columns: 88px 1fr;
gap: 12px;
align-items: center;
background: var(--bg);
}
.product-card-mobile img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; }
.product-card-mobile h3 { font-size: 1rem; margin: 0 0 4px; color: var(--accent); }
.product-card-mobile .price { font-weight: 700; margin: 8px 0; }
.product-card-mobile .add-to-cart-btn { width: 100%; }
.filters { padding: 1.5rem; }
.search-box input { font-size: 1.1rem; padding: 1rem 1.2rem 1rem 3rem; }
.filter-select { font-size: 1.1rem; padding: 1rem 1.2rem; }
.product-table th { font-size: 1rem; padding: 1.2rem; }
.product-table td { padding: 1.2rem; font-size: 1rem; }
.product-table-name { font-size: 1rem; }
.product-table-price { font-size: 1.1rem; }
.add-to-cart-btn { font-size: 0.95rem; padding: 0.65rem 1.5rem; }
.pagination button { font-size: 1.1rem; padding: 0.65rem 1.2rem; }
.per-page-selector label { font-size: 1.1rem; }
.per-page-selector select { font-size: 1.1rem; padding: 0.65rem 1.2rem; }
.pagination-info { font-size: 1.1rem; }
footer { padding: 2rem; font-size: 1.1rem; }
}

/* Product Animations */
@keyframes slideInUp {
from { opacity: 0; transform: translateY(30px); }
to { opacity: 1; transform: translateY(0); }
}
.product-card, .carousel-item {
animation: slideInUp 0.4s ease-out;
}

/* Category Menu */
.category-section {
padding: 4rem 2rem;
background: var(--gray, #f5f5f5);
border-top: 1px solid var(--border, #e0e0e0);
}
.dark .category-section {
background: #111;
border-color: #333;
}
.category-title {
text-align: center;
font-size: 2rem;
font-weight: 700;
margin-bottom: 2rem;
color: var(--text, #000);
}
.category-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
max-width: 1200px;
margin: 0 auto;
}
.category-card {
background: var(--bg, #fff);
border: 1px solid var(--border, #e0e0e0);
border-radius: 16px;
padding: 1.5rem;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
color: var(--text, #000);
}
.dark .category-card {
background: #1a1a1a;
border-color: #333;
color: #f0f0f0;
}
.dark .category-title{
color: #f0f0f0 !important;
}
.dark .category-count{
color: #a0a0b0 !important;
}
.dark body{
background: #0a0a0f !important;
color: #f0f0f0 !important;
}
.category-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	border-color: #3b82f6;
}

.category-icon {
font-size: 2.5rem;
margin-bottom: 0.5rem;
}
.category-name {
font-weight: 600;
font-size: 1rem;
margin-bottom: 0.25rem;
}
.category-count {
font-size: 0.875rem;
opacity: 0.6;
}
@media (max-width: 768px) {
.category-grid {
grid-template-columns: repeat(2, 1fr);
}
.category-title {
font-size: 1.5rem;
}
}
