/* 基礎變數與重置 (Flagship UI) */
:root {
    --primary: #199A8E; 
    --primary-hover: #12796E;
    --secondary: #f0f0f0;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #E2E2E2;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --star-color: #f1c40f;
    --error: #e74c3c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Outfit', 'Noto Sans TC', sans-serif; color: var(--text-dark); background-color: #fafafa; line-height: 1.6; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 10px; }

/* Blob Background */
.blob-wrapper { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; filter: blur(60px); opacity: 0.3; }
.blob { position: absolute; border-radius: 50%; opacity: 0.5; animation: drift 20s infinite alternate linear; }
.blob-1 { width: 500px; height: 500px; background: #e0f2f1; top: -100px; left: -100px; }
.blob-2 { width: 600px; height: 600px; background: #e8f5e9; bottom:-200px; right: -100px; }
@keyframes drift { 0% {transform: translate(0,0);} 100% {transform: translate(100px, 100px);} }

.top-announcement { background: var(--text-dark); color: white; text-align: center; padding: 8px; font-size: 13px; font-weight: 500; }

/* Navbar */
.main-header { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.header-container { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 15px 40px; }
.logo { font-size: 26px; font-weight: 800; color: var(--text-dark); }
.nav-menu { display: flex; gap: 30px; align-items: center; }
.nav-item { text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 15px; position: relative; padding: 10px 0; cursor: pointer; }
.nav-item a { color: inherit; text-decoration: none; }
.nav-item:hover, .nav-item a:hover { color: var(--primary); }

.mega-dropdown {
    position: absolute; top: 100%; left: 0; background: white; border-radius: var(--radius-md); box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-width: 250px; padding: 15px; opacity: 0; visibility: hidden; transition: 0.3s;
}
.has-dropdown:hover .mega-dropdown { opacity: 1; visibility: visible; }
.mega-dropdown ul { list-style: none; }
.mega-dropdown a { text-decoration: none; color: var(--text-dark); display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; }
.mega-dropdown a:hover { background: #f4f6f6; color: var(--primary); }
.mega-dropdown i { color: var(--primary); font-size: 18px; }

.header-actions { display: flex; gap: 15px; align-items: center; }
.icon-btn { background: none; border: none; font-size: 22px; color: var(--text-dark); cursor: pointer; position: relative; }
.icon-btn:hover { color: var(--primary); }
.auth-group { display: flex; gap: 10px; }
.auth-btn { padding: 6px 14px; border-radius: 20px; font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.3s; border: 1px solid var(--text-dark); background: transparent; color: var(--text-dark); }
.auth-btn:hover { background: var(--text-dark); color: white; }
.login-btn { border: none; font-weight: 500; }
.register-btn { border-color: var(--primary); color: var(--primary); }
.register-btn:hover { background: var(--primary); color: white; }
.cart-count { position: absolute; top: -5px; right: -8px; background: #e74c3c; color: white; font-size: 10px; font-weight: bold; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.user-btn { color: var(--primary); }
.hidden { display: none !important; }

/* Hero */
.hero { height: 40vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 60px); font-weight: 900; margin-bottom: 20px; color: var(--text-dark); }
.hero p { font-size: 18px; color: #555; max-width: 600px; margin: 0 auto 30px; }
.btn-primary { background: var(--primary); color: white; padding: 12px 30px; border-radius: var(--radius-sm); font-size: 16px; font-weight: 600; transition: 0.3s; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(25, 154, 142, 0.3); }

/* Products Layout */
.category-layout { max-width: 1400px; margin: 40px auto; padding: 0 40px; }
.grid-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; }
.grid-header h2 { font-size: 24px; color: var(--text-dark); margin:0;}
.grid-header a { font-weight: 600; text-decoration: none;}
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 25px; min-height: 400px; align-content: start;}

/* E-Book Card */
.book-card { background: white; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-color); cursor: pointer; transition: 0.3s; position: relative; display: flex; flex-direction: column; box-shadow: 0 4px 10px rgba(0,0,0,0.02);}
.book-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-color: var(--primary); }
.book-cover { width: 100%; aspect-ratio: 3/4; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }

/* 次世代動態合成封面 */
.synthetic-cover {
    display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 25px; text-align: center; color: white; position: relative; overflow: hidden;
    background-size: cover; background-position: center; border-radius:var(--radius-sm); border-bottom-left-radius:0; border-bottom-right-radius:0;
}
.synthetic-cover .dark-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.65); z-index: 1; transition: 0.3s; }
.book-card:hover .synthetic-cover .dark-overlay { background: rgba(0,0,0,0.4); } 
.synthetic-cover h3 { font-size: 20px; font-weight: 800; margin-bottom: 15px; z-index: 2; line-height: 1.3; text-shadow: 0 2px 15px rgba(0,0,0,0.8); word-break: break-word; font-family: 'Noto Sans TC'; letter-spacing: 1px; color: #fff; }
.synthetic-cover p { font-size: 13px; font-weight: 500; opacity: 0.9; z-index: 2; letter-spacing: 1px; text-shadow: 0 2px 8px rgba(0,0,0,0.8); color: #fff; }

.book-info { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between;}
.book-title { font-size: 15px; font-weight: 700; margin-bottom: 5px; color: var(--text-dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-author { font-size: 12px; color: var(--text-light); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.book-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto;}
.book-price { font-size: 16px; font-weight: 800; color: var(--text-dark); }
.stars { color: var(--star-color); font-size: 11px; font-weight: bold;}

/* Skeleton Loading */
.skeleton-card { border: 1px solid #eee; background: white; border-radius: 8px; padding-bottom: 15px;}
.skeleton-cover { width: 100%; aspect-ratio: 3/4; border-bottom-left-radius: 0; border-bottom-right-radius: 0;}
.skeleton-text { height: 14px; margin: 15px 15px 5px; width: 80%; }
.skeleton-text.short { width: 50%; }

/* ★ 獨立商品專頁 (Product Details Page) ★ */
.product-page-layout { max-width: 1200px; margin: 40px auto; padding: 0 40px; animation: fadeIn 0.4s ease; }
.product-top-section { display: flex; flex-direction: column; gap: 50px; background: white; border-radius: var(--radius-lg); padding: 50px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); margin-bottom: 40px; }
@media(min-width: 800px) { .product-top-section { flex-direction: row; } }
.prod-cover-col { flex: 0 0 350px; }
.prod-cover-col .synthetic-cover { width: 100%; aspect-ratio: 3/4; border-radius: var(--radius-md); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.prod-cover-col .synthetic-cover h3 { font-size: 32px; margin-bottom: 20px; }
.prod-cover-col .synthetic-cover p { font-size: 16px; }

.prod-info-col { flex: 1; display: flex; flex-direction: column; }
.breadcrumb { font-size: 13px; color: #999; margin-bottom: 15px; cursor: pointer; }
.breadcrumb:hover { color: var(--primary); text-decoration: underline; }
.prod-title { font-size: 32px; font-weight: 900; color: var(--text-dark); margin-bottom: 10px; line-height: 1.3;}
.prod-author { font-size: 16px; color: var(--primary); font-weight: bold; margin-bottom: 20px; }
.prod-stats { display: flex; gap: 20px; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.prod-stats span { font-size: 14px; color: #666; display: flex; align-items: center; gap: 5px; }

.prod-price-box { margin-bottom: 30px; }
.prod-price { font-size: 38px; font-weight: 900; color: var(--text-dark); margin-right: 15px; }
.prod-old-price { font-size: 18px; color: #aaa; text-decoration: line-through; }
.prod-desc-title { font-size: 18px; font-weight: bold; margin-bottom: 10px; color: var(--text-dark); }
.prod-desc { font-size: 15px; color: #555; line-height: 1.8; margin-bottom: 40px; }
.prod-actions { display: flex; gap: 15px; }
.prod-actions .btn-primary { flex: 1; padding: 18px; font-size: 18px; border-radius: 12px; }

/* 逼真評論區 (Reviews Section) */
.reviews-section { background: white; padding: 50px; border-radius: var(--radius-lg); box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.reviews-section h2 { font-size: 24px; margin-bottom: 30px; border-bottom: 2px solid #eee; padding-bottom: 15px; display: flex; align-items: center; gap: 10px;}
.review-item { padding: 25px 0; border-bottom: 1px solid #f5f5f5; display: flex; gap: 20px; }
.review-item:last-child { border-bottom: none; }
.review-avatar { width: 50px; height: 50px; border-radius: 50%; background: #eee; display: flex; justify-content: center; align-items: center; font-size: 20px; color: #999; flex-shrink: 0;}
.review-content { flex: 1; }
.review-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.review-user { font-weight: bold; color: var(--text-dark); }
.review-date { font-size: 12px; color: #999; }
.review-stars { color: var(--star-color); font-size: 12px; margin-bottom: 12px; }
.review-text { font-size: 15px; color: #555; line-height: 1.6; }

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


/* 關於我們 (Portaly-Style Rich Page) */
.about-page-layout { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.about-hero-section { text-align: center; margin: 60px 0 40px; padding: 40px; background: linear-gradient(135deg, rgba(25,154,142,0.1) 0%, rgba(25,154,142,0.02) 100%); border-radius: var(--radius-md); }
.about-hero-section h1 { font-size: 42px; font-weight: 900; margin-bottom: 20px; color: var(--text-dark); }
.about-hero-section .about-tagline { font-size: 20px; color: var(--primary); font-weight: bold; margin-bottom: 15px; }
.about-hero-section p { font-size: 16px; color: #555; background: rgba(255,255,255,0.8); padding: 10px 20px; border-radius: 20px; display: inline-block; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.about-content-section { background: white; border-radius: var(--radius-md); padding: 50px; margin-bottom: 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
.about-content-section h2 { font-size: 26px; color: var(--primary); margin-bottom: 25px; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.about-content-section h3 { font-size: 20px; color: var(--text-dark); margin-top: 30px; margin-bottom: 10px; }
.about-content-section p { font-size: 16px; color: #555; line-height: 1.8; margin-bottom: 15px; }
.about-feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 30px; }
.about-feature-box { background: #fafafa; border: 1px solid #eee; padding: 25px; border-radius: var(--radius-md); text-align: center; }
.about-feature-box i { font-size: 32px; color: var(--primary); margin-bottom: 15px; display: inline-block; }
.about-feature-box h4 { font-size: 18px; margin-bottom: 10px; color: var(--text-dark); }
.about-feature-box p { font-size: 14px; line-height: 1.6; margin-bottom: 0; }
.about-cta { text-align: center; margin: 60px 0; padding: 40px; border-radius: var(--radius-md); background: var(--text-dark); color: white; }
.about-cta h2 { color: white; margin-bottom: 15px; }
.about-cta p { color: #ccc; margin-bottom: 25px; }

/* Auth Modals & Forms */
.glass-modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(5px); justify-content: center; align-items: center; opacity: 0; transition: 0.3s; }
.glass-modal.show { display: flex; opacity: 1; }
.modal-content { background: white; border-radius: var(--radius-lg); position: relative; max-height: 90vh; overflow-y: auto; overflow-x: hidden; transform: scale(0.95); transition: 0.3s; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.glass-modal.show .modal-content { transform: scale(1); }
.auth-content { max-width: 450px; padding: 40px 35px; }
.auth-tabs { display: flex; margin-bottom: 25px; border-bottom: 2px solid #eee; }
.auth-tab { flex: 1; background: none; border: none; padding: 10px; font-size: 16px; font-weight: 600; color: #999; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.auth-form h3 { font-size: 20px; margin-bottom: 5px; }
.auth-form p { font-size: 13px; color: #777; margin-bottom: 20px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.form-group input:not([type="checkbox"]) { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; outline: none; font-family: inherit; font-size: 14px; transition: 0.3s; }
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(25, 154, 142, 0.1);}
.form-group.flex-label { display: flex; align-items: center; gap: 10px; }
.form-group.flex-label label { margin-bottom: 0; font-weight: 400; font-size: 12px;}
.form-group.flex-label a { color: var(--primary); text-decoration: none;}
.form-error { background: #fee; color: var(--error); padding: 10px; border-radius: 6px; font-size: 13px; font-weight: 600; margin-bottom: 15px; border-left: 4px solid var(--error); animation: shake 0.5s;}
.auth-submit { width: 100%; padding: 14px; border-radius: 6px; margin-top: 10px; }
@keyframes shake { 0%, 100% {transform: translateX(0);} 25% {transform: translateX(-5px);} 75% {transform: translateX(5px);} }

/* My Library View */
.library-layout { max-width: 1200px; margin: 40px auto; padding: 0 40px; }
.lib-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; background: white; padding: 30px; border-radius: var(--radius-md); box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.lib-user-info h1 { font-size: 28px; margin-bottom: 5px; }
.lib-user-info p { color: #777; font-size: 14px; }
.logout-btn { padding: 8px 16px; background: transparent; border: 1px solid #ccc; border-radius: 20px; cursor: pointer; transition: 0.3s;}
.logout-btn:hover { background: #eee; border-color: #aaa;}
.lib-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 25px; }
.owned-book { border: 1px solid #eee; padding: 15px; border-radius: 8px; text-align: center; background: white; position: relative; overflow: hidden; }
.owned-book .synthetic-cover { height: 260px; border-radius: 4px; box-shadow: 0 5px 10px rgba(0,0,0,0.1); margin-bottom: 15px;}
.owned-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 40px; }
.download-btn { display: inline-block; padding: 8px 12px; background: var(--text-dark); color: white; border-radius: 4px; font-size: 13px; font-weight: 500; cursor: pointer; border: none; width: 100%; transition: 0.2s;}
.download-btn:hover { background: var(--primary); }

/* Cart */
.cart-drawer-overlay, .cart-drawer { position: fixed; height: 100vh; top: 0; z-index: 1000; }
.cart-drawer-overlay { left: 0; width: 100vw; background: rgba(0,0,0,0.4); opacity: 0; visibility: hidden; transition: 0.3s; }
.cart-drawer { right: -400px; width: 400px; background: white; box-shadow: -5px 0 20px rgba(0,0,0,0.1); transition: 0.3s; display: flex; flex-direction: column; }
.cart-drawer.open { right: 0; }
.cart-drawer-overlay.open { visibility: visible; opacity: 1; }
.cart-header { padding: 20px; display: flex; justify-content: space-between; border-bottom: 1px solid #eee; }
.close-cart { background: none; border: none; font-size: 24px; cursor: pointer; }
.cart-body { flex: 1; padding: 20px; overflow-y: auto; }
.cart-item { display: flex; gap: 15px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #f9f9f9; align-items:flex-start;}
.cart-item .synthetic-cover { width: 60px; height: 80px; padding:5px; border-radius:4px !important; }
.cart-item .synthetic-cover h3 { font-size: 10px; margin-bottom:2px; }
.cart-item .synthetic-cover p { display: none; }
.cart-footer { padding: 20px; border-top: 1px solid #eee; background: #fafafa; }
.cart-item-title { font-size: 14px; font-weight: bold; margin-bottom: 5px; line-height:1.2;}
.cart-item-price { color: var(--primary); font-weight: bold; }
.cart-total-row { display: flex; justify-content: space-between; font-weight: bold; font-size: 18px; margin-bottom: 15px;}
.cart-disclaimer { font-size: 12px; color: #999; margin-bottom: 10px; }

/* Flagship Toast Notifications */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 10001; display: flex; flex-direction: column; gap: 10px; }
.toast { background: white; border-radius: 8px; padding: 15px 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 12px; transform: translateX(120%); transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); border-left: 4px solid var(--primary); min-width: 250px;}
.toast.show { transform: translateX(0); }
.toast i { font-size: 20px; color: var(--primary); }
.toast .toast-msg { font-size: 14px; font-weight: 500; color: var(--text-dark); }
.toast.error { border-left-color: var(--error); }
.toast.error i { color: var(--error); }

/* Modals Checkout */
.close-btn { position: absolute; top: 15px; right: 15px; background: transparent; border: none; font-size: 24px; cursor: pointer; color: #999; }
.close-btn:hover { color: #333; transform: rotate(90deg); }
.icon-circle { width: 50px; height: 50px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; margin: 0 auto 15px; }
.checkout-header { text-align: center; margin-bottom: 20px; }
.order-summary { text-align: center; margin-bottom: 20px; }
.amount { color: var(--primary); font-size: 24px; font-weight: bold; display: block; margin-top: 5px;}

/* Footer */
.footer { background: #fff; border-top: 1px solid #eee; padding: 60px 40px 30px; margin-top: 50px; }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer h3, .footer h4 { color: var(--text-dark); margin-bottom: 15px; }
.footer p, .footer a { color: var(--text-light); text-decoration: none; font-size: 14px; }
.footer a:hover { color: var(--primary); }
.social-links { margin-top: 10px; }
.social-links a { font-size: 20px; margin-right: 15px; transition: 0.3s; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.copyright { text-align: center; font-size: 13px; color: #aaa; border-top: 1px solid #eee; padding-top: 20px; }

/* Mobile Responsive Styling */
.mobile-menu-btn { display: none; background: transparent; border: none; font-size: 26px; cursor: pointer; color: var(--text-dark); padding: 5px; }

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .nav-menu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 15px 30px; box-shadow: 0 10px 15px rgba(0,0,0,0.05); transform: scaleY(0); transform-origin: top; transition: 0.3s ease-in-out; opacity: 0; visibility: hidden; gap: 10px;}
    .nav-menu.open { transform: scaleY(1); opacity: 1; visibility: visible; }
    .header-actions { display: flex; align-items: center; gap: 10px; }
    .header-container { padding: 15px 20px; }
}

/* --- Flagship 10 Features Additions --- */
[data-theme="dark"] {
    --primary: #2bebc8;
    --primary-hover: #4debd0;
    --secondary: #1a1a1a;
    --text-dark: #e0e0e0;
    --text-light: #a0a0a0;
    --border-color: #333333;
    --bg-main: #0a0a0a;
    --bg-card: #141414;
    --bg-nav: rgba(10, 10, 10, 0.95);
}
:root {
    --bg-main: #fafafa;
    --bg-card: #ffffff;
    --bg-nav: rgba(255,255,255,0.95);
}
body { background-color: var(--bg-main); transition: background-color 0.3s, color 0.3s; }
.main-header { background: var(--bg-nav); }
.book-card, .product-top-section, .reviews-section, .about-content-section, .lib-header, .owned-book, .cart-drawer, .modal-content, .footer { background: var(--bg-card); transition: background-color 0.3s; }
.mega-dropdown, .reader-header { background: var(--bg-card); }

/* Theme Toggle Button */
.theme-toggle { background: none; border: none; font-size: 22px; color: var(--text-dark); cursor: pointer; margin-right: 15px; }
.theme-toggle:hover { color: var(--primary); }

/* Web Reader */
.reader-modal { position: fixed; inset: 0; background: var(--bg-main); z-index: 100000; display: none; flex-direction: column; overflow: hidden; opacity:0; transition:0.3s;}
.reader-modal.show { display: flex; opacity: 1; }
.reader-header { display: flex; justify-content: space-between; padding: 15px 30px; border-bottom: 1px solid var(--border-color); align-items:center; }
.reader-content { flex: 1; overflow-y: auto; padding: 50px 20px; max-width: 800px; margin: 0 auto; width: 100%; font-size: 18px; line-height: 1.8; color: var(--text-dark); font-family: serif; }
.reader-controls button { background: none; border: 1px solid var(--border-color); color: var(--text-dark); border-radius: 4px; padding: 5px 10px; cursor: pointer; margin-left: 10px; transition: 0.2s;}
.reader-controls button:hover { background: var(--primary); color: white; border-color: var(--primary);}

/* Filter & Sort */
.sort-select { padding: 8px 15px; border-radius: 20px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-dark); cursor: pointer; outline: none; font-size: 14px; margin-left: auto; display: block;}

/* Wishlist Heart */
.wishlist-btn { position: absolute; top: 10px; right: 10px; z-index: 10; background: rgba(255,255,255,0.8); border: none; border-radius: 50%; width: 35px; height: 35px; display: flex; justify-content:center; align-items:center; cursor: pointer; font-size: 18px; color: #ccc; transition: 0.2s; backdrop-filter: blur(5px);}
[data-theme="dark"] .wishlist-btn { background: rgba(0,0,0,0.6); }
.wishlist-btn.active { color: #e74c3c; }
.wishlist-btn:hover { transform: scale(1.1); }

/* Promo Code */
.promo-box { display: flex; gap: 10px; margin: 20px 0; }
.promo-box input { flex:1; padding: 10px; border: 1px solid var(--border-color); border-radius: 6px; background:var(--bg-main); color:var(--text-dark); }
.promo-box button { padding: 10px 15px; background: var(--text-dark); color: var(--bg-main); border: none; border-radius: 6px; cursor: pointer;}
.promo-applied { color: #2ecc71; font-size: 14px; margin-top: 5px; display: none; }

/* Flash Sale */
.flash-sale-banner { background: var(--text-dark); color: var(--bg-main); padding: 35px 40px; border-radius: 4px; margin-bottom: 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; border: 1px solid var(--border-color);}
.flash-timer { font-size: 32px; font-weight: 600; font-family: 'Helvetica Neue', Arial, sans-serif; background: transparent; border: 1px solid rgba(255,255,255,0.2); padding: 10px 25px; border-radius: 4px; letter-spacing: 4px;}

/* Live Notification */
.live-notify { position: fixed; bottom: 20px; left: 20px; background: var(--bg-card); color: var(--text-dark); padding: 12px 20px; border-radius: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 10px; font-size: 13px; z-index: 9999; transform: translateY(100px); opacity: 0; transition: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); border: 1px solid var(--border-color);}
.live-notify.show { transform: translateY(0); opacity: 1; }

/* Product Review Form */
.review-form { margin-top: 30px; background: var(--bg-main); padding: 20px; border-radius: var(--radius-md); }
.review-form textarea { width: 100%; height: 80px; padding: 15px; border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 10px; background: var(--bg-card); color:var(--text-dark); font-family:inherit; resize:none; outline:none;}
.review-form textarea:focus { border-color: var(--primary);}

/* Hero Carousel */
.hero-carousel { position: relative; width: 100%; height: 400px; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; }
.carousel-inner { display: flex; width: 300%; height: 100%; transition: transform 0.5s ease-in-out; }
.carousel-slide { width: 33.333%; height: 100%; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; padding: 50px; color: white;}
.carousel-slide::after { content:''; position:absolute; inset:0; background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%); z-index: 1;}
.carousel-content { position: relative; z-index: 2; max-width: 500px;}
.carousel-content h2 { font-size: 40px; font-weight: 900; margin-bottom: 15px; text-shadow: 0 2px 10px rgba(0,0,0,0.5);}
.carousel-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10;}
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition:0.3s;}
.dot.active { background: white; transform:scale(1.2); }
