/* Eclise Shop - Rubens Theme Restoration */
:root {
    --primary: #FF8D38;
    --primary-hover: #FF6E01;
    --dark: #1a1a1a;
    --text: #333;
    --text-light: #666;
    --bg: #fff;
    --bg-light: #f8f8f8;
    --border: #eee;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --radius: 8px;
    --max-w: 1200px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

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

body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }

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

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* HEADER */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--max-w); margin: 0 auto; padding: 12px 20px; }
.logo a { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--dark); }
.logo a span { color: var(--dark); }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-menu { list-style: none; display: flex; gap: 0; }
.nav-menu > li { position: relative; }
.nav-menu > li > a { display: block; padding: 10px 16px; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-menu > li:hover > a { color: var(--primary); }
.sub-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--bg); min-width: 280px; box-shadow: var(--shadow); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 0; z-index: 200; }
.nav-menu > li:hover .sub-menu { display: block; }
.sub-menu li a { display: block; padding: 8px 20px; font-size: 13px; }
.sub-menu li a:hover { background: var(--bg-light); color: var(--primary); }

.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; padding: 8px; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.search-toggle, .cart-icon { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text); }
.cart-icon:hover, .search-toggle:hover { color: var(--primary); }

/* HERO */
.hero-section { position: relative; overflow: hidden; background: var(--bg-light); }
.hero-slides { position: relative; }
.hero-slide { display: none; align-items: center; padding: 60px 40px; max-width: var(--max-w); margin: 0 auto; gap: 40px; min-height: 450px; }
.hero-slide.active { display: flex; }
.hero-content { flex: 1; }
.hero-content h1, .hero-content h2 { font-family: var(--font-display); font-size: 42px; font-weight: 700; margin-bottom: 16px; color: var(--dark); }
.hero-content p { font-size: 18px; color: var(--text-light); margin-bottom: 24px; }
.hero-image { flex: 1; }
.hero-image img { border-radius: var(--radius); }
.hero-dots { display: flex; justify-content: center; gap: 8px; padding: 16px 0; }
.hero-dots .dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: #ccc; cursor: pointer; transition: background 0.3s; }
.hero-dots .dot.active { background: var(--primary); width: 28px; border-radius: 5px; }

/* BUTTONS */
.btn { display: inline-block; padding: 12px 32px; border-radius: var(--radius); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; transition: all 0.3s; border: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }

/* CATEGORY NAV */
.category-navigation { padding: 40px 0; border-bottom: 1px solid var(--border); }
.category-navigation .container { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.category-nav-item { }
.cat-title { display: block; font-weight: 600; font-size: 16px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.cat-title:hover { color: var(--primary); }
.cat-products { display: flex; gap: 12px; }
.cat-product { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.cat-product img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }
.cat-product span { font-size: 12px; text-align: center; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* PRODUCT GRID */
.product-section { padding: 48px 0; }
.section-header { margin-bottom: 24px; }
.section-header h2 { font-family: var(--font-display); font-size: 28px; }
.section-header h2 a { color: var(--dark); }
.section-header h2 a:hover { color: var(--primary); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-grid-large { grid-template-columns: repeat(4, 1fr); }

.product-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.3s, transform 0.2s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card a { display: block; }
.product-image { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg-light); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-image img { transform: scale(1.05); }
.sale-badge { position: absolute; top: 10px; left: 10px; background: #e53e3e; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 3px; text-transform: uppercase; }
.product-info { padding: 14px; }
.product-info h3 { font-size: 14px; font-weight: 500; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.price { display: flex; align-items: center; gap: 8px; }
.sale-price { font-size: 16px; font-weight: 700; color: var(--primary); }
.original-price { font-size: 13px; color: #999; text-decoration: line-through; }

/* PRODUCT DETAIL PAGE */
.product-page { padding: 20px 0 60px; }
.breadcrumb { padding: 16px 0; font-size: 13px; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 20px; }
.main-image { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.main-image img { width: 100%; }

.product-summary h1 { font-family: var(--font-display); font-size: 28px; margin-bottom: 16px; }
.product-price { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.product-price .sale-price { font-size: 28px; font-weight: 700; color: var(--primary); }
.product-price .original-price { font-size: 18px; }
.save-badge { background: #e53e3e; color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 3px; font-weight: 600; }
.product-rating { margin-bottom: 16px; }
.stars { color: #f5a623; font-size: 18px; }
.rating-text { font-size: 14px; color: var(--text-light); margin-left: 4px; }
.product-description { margin-bottom: 20px; color: var(--text-light); }
.product-features { margin-bottom: 24px; }
.product-features h3 { font-size: 16px; margin-bottom: 10px; }
.product-features ul { padding-left: 20px; }
.product-features li { margin-bottom: 6px; font-size: 14px; color: var(--text-light); }

.product-actions { display: flex; gap: 12px; margin-bottom: 24px; align-items: center; }
.quantity-selector { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty-btn { width: 40px; height: 40px; border: none; background: var(--bg-light); cursor: pointer; font-size: 18px; }
.qty-btn:hover { background: #ddd; }
.qty-input { width: 50px; height: 40px; border: none; text-align: center; font-size: 16px; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.add-to-cart { flex: 1; height: 48px; font-size: 15px; }

.product-meta { font-size: 13px; color: var(--text-light); }
.product-meta a { color: var(--primary); }

.related-products { padding: 48px 0; background: var(--bg-light); margin-top: 48px; }
.related-products h2 { font-family: var(--font-display); font-size: 24px; margin-bottom: 24px; }

/* CATEGORY PAGE */
.category-page { padding: 20px 0 60px; }
.category-header { margin: 24px 0 32px; }
.category-header h1 { font-family: var(--font-display); font-size: 36px; margin-bottom: 8px; }
.category-header p { color: var(--text-light); font-size: 16px; }

/* BLOG */
.blog-section { padding: 48px 0; background: var(--bg-light); }
.blog-section h2 { font-family: var(--font-display); font-size: 28px; margin-bottom: 24px; }
.blog-section h2 a { color: var(--dark); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: var(--bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s; }
.blog-card:hover { transform: translateY(-3px); }
.blog-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.blog-card h2, .blog-card h3 { font-size: 16px; padding: 16px; line-height: 1.4; }
.blog-card p { padding: 0 16px 12px; font-size: 13px; color: var(--text-light); }
.blog-card .read-more { display: block; padding: 0 16px 16px; font-size: 13px; color: var(--primary); font-weight: 500; }

.blog-post { padding: 20px 0 60px; }
.post-header { margin-bottom: 24px; }
.post-header h1 { font-family: var(--font-display); font-size: 34px; margin-bottom: 12px; }
.post-meta { font-size: 14px; color: var(--text-light); }
.post-featured-image { margin-bottom: 32px; }
.post-featured-image img { border-radius: var(--radius); width: 100%; }
.post-content { max-width: 720px; font-size: 16px; line-height: 1.8; }
.post-content h2 { font-family: var(--font-display); font-size: 24px; margin: 32px 0 16px; }
.post-content h3 { font-size: 20px; margin: 24px 0 12px; }
.post-content ul, .post-content ol { padding-left: 24px; margin: 16px 0; }
.post-content li { margin-bottom: 8px; }
.post-content p { margin-bottom: 16px; }

.blog-index { padding: 40px 0 60px; }
.blog-index h1 { font-family: var(--font-display); font-size: 36px; margin-bottom: 32px; }

/* INFO PAGES */
.info-page { padding: 20px 0 60px; }
.info-page h1 { font-family: var(--font-display); font-size: 36px; margin-bottom: 24px; }
.page-content { max-width: 720px; font-size: 16px; line-height: 1.8; }
.page-content h2 { font-size: 24px; margin: 28px 0 12px; font-family: var(--font-display); }
.page-content h3 { font-size: 18px; margin: 20px 0 10px; }
.page-content ul, .page-content ol { padding-left: 24px; margin: 12px 0; }
.page-content li { margin-bottom: 6px; }
.page-content p { margin-bottom: 14px; }
.page-content a { color: var(--primary); }

/* SHOP PAGE */
.shop-page { padding: 20px 0 60px; }
.shop-page h1 { font-family: var(--font-display); font-size: 36px; margin-bottom: 8px; }
.shop-count { color: var(--text-light); margin-bottom: 24px; }

/* CART PAGE */
.cart-page { padding: 40px 0 80px; }
.cart-page h1 { font-family: var(--font-display); font-size: 36px; margin-bottom: 24px; }
.empty-cart { text-align: center; padding: 60px 0; }
.empty-cart p { font-size: 18px; color: var(--text-light); margin-bottom: 24px; }

/* NEWSLETTER */
.newsletter-section { padding: 60px 0; background: var(--dark); color: #fff; text-align: center; }
.newsletter-section h2 { font-family: var(--font-display); font-size: 24px; margin-bottom: 20px; color: #fff; }
.newsletter-form { display: flex; max-width: 480px; margin: 0 auto; gap: 8px; }
.newsletter-form input { flex: 1; padding: 12px 16px; border: none; border-radius: var(--radius); font-size: 14px; }
.newsletter-form .btn { white-space: nowrap; }

/* FEATURES */
.features-section { padding: 48px 0; border-top: 1px solid var(--border); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.feature img { margin: 0 auto 12px; }
.feature h3 { font-size: 16px; margin-bottom: 4px; }
.feature p { font-size: 13px; color: var(--text-light); }

/* FOOTER */
.site-footer { background: var(--dark); color: #ccc; padding: 48px 0 32px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #aaa; font-size: 14px; }
.footer-col a:hover { color: var(--primary); }
.footer-col p { font-size: 14px; line-height: 1.6; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid-large { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: 16px 0; }
    .nav-menu.open { display: flex; }
    .nav-menu > li > a { padding: 12px 20px; }
    .sub-menu { position: static; box-shadow: none; border: none; padding-left: 20px; display: block; }

    .hero-slide { flex-direction: column; padding: 30px 20px; min-height: auto; gap: 20px; }
    .hero-content h1, .hero-content h2 { font-size: 28px; }

    .product-grid, .product-grid-large { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-detail { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .newsletter-form { flex-direction: column; }
    .category-navigation .container { grid-template-columns: repeat(2, 1fr); }

    .product-summary h1 { font-size: 22px; }
    .product-price .sale-price { font-size: 22px; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-info h3 { font-size: 12px; }
    .sale-price { font-size: 14px; }
    .category-navigation .container { grid-template-columns: 1fr; }
}
