/* ==========================================
   1. IMPORTS & FONTS
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@font-face {
    font-family: 'Novusa';
    src: url('fonts/Novusa.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

/* ==========================================
   2. ROOT VARIABLES & THEMES
   ========================================== */
:root {
    --bg-main: #15141b;
    --bg-panel: #201e27;
    --bg-element: #2c2a35;
    --text-main: #ffffff;
    --text-muted: #a0a0a5;
    --text-faint: #626268;
    --accent: #e24242;
    --accent-faint: #a13434;
    --accent-mid-opacity: rgba(226, 66, 66, 0.15);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.4);

    --bg-glass-header: rgba(21, 20, 27, 0.9);
    --bg-glass-sidebar: rgba(32, 30, 39, 0.45);
    --bg-glass-sidebar-hover: rgba(32, 30, 39, 0.7);
    --bg-glass-bottom: rgba(32, 30, 39, 0.85);
    --border-glass: rgba(255, 255, 255, 0.08);
    --hover-glass: rgba(255, 255, 255, 0.08);
    --img-bg: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] {
    --bg-main: #f5f6fa;
    --bg-panel: #ffffff;
    --bg-element: #e1e1e6;
    --text-main: #1a1a1a;
    --text-muted: #4a4a4e;
    --text-faint: #9a9a9f;
    --accent: #d32f2f;
    --accent-mid-opacity: rgba(211, 47, 47, 0.1);
    --shadow-soft: 0 8px 24px rgba(149, 157, 165, 0.2);

    --bg-glass-header: rgba(255, 255, 255, 0.85);
    --bg-glass-sidebar: rgba(255, 255, 255, 0.7);
    --bg-glass-sidebar-hover: rgba(255, 255, 255, 0.95);
    --bg-glass-bottom: rgba(255, 255, 255, 0.9);
    --border-glass: rgba(0, 0, 0, 0.1);
    --hover-glass: rgba(0, 0, 0, 0.05);
    --img-bg: transparent;
}

/* ==========================================
   3. GLOBAL STYLES & RESET
   ========================================== */
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

* {
    font-family: 'Prompt', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-element);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-faint);
}

/* ==========================================
   4. BUTTONS
   ========================================== */
.btn {
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 1rem;
    color: var(--text-main);
    background-color: var(--bg-panel);
    border: 1px solid var(--bg-element);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--bg-element);
    border-color: var(--text-faint);
}

.btn:active {
    transform: scale(0.95);
}

.btn.btn-active {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.btn.btn-active:hover {
    background-color: var(--accent-faint);
}

.btn-primary {
    background-color: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    color: #ffffff;
}

.btn-secondary {
    background-color: #6c757d;
    color: #ffffff;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5c636a;
    border-color: #565e64;
    color: #ffffff;
}

.btn-success {
    background-color: #198754;
    color: #ffffff;
    border-color: #198754;
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
    color: #ffffff;
}

.btn-danger {
    background-color: #dc3545;
    color: #ffffff;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
    color: #ffffff;
}

.btn-warning {
    background-color: #ffc107;
    color: #000000;
    border-color: #ffc107;
}

.btn-warning:hover {
    background-color: #ffca2c;
    border-color: #ffc720;
    color: #000000;
}

.btn-info {
    background-color: #0dcaf0;
    color: #000000;
    border-color: #0dcaf0;
}

.btn-info:hover {
    background-color: #31d2f2;
    border-color: #25cff2;
    color: #000000;
}

.btn-light {
    background-color: #f8f9fa;
    color: #000000;
    border-color: #f8f9fa;
}

.btn-light:hover {
    background-color: #e2e6ea;
    border-color: #dae0e5;
    color: #000000;
}

.btn-dark {
    background-color: #212529;
    color: #ffffff;
    border-color: #212529;
}

.btn-dark:hover {
    background-color: #1c1f23;
    border-color: #1a1e21;
    color: #ffffff;
}

.btn-outline-accent {
    background: transparent;
    border: 2px solid var(--bg-element);
    color: var(--text-muted);
    width: 50px;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline-accent:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ==========================================
   5. SEARCH BOX
   ========================================== */
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    max-width: 500px;
    margin: 0 2rem;
}

.search-box input {
    width: 100%;
    padding: 0.7rem 1.2rem;
    border-radius: 1rem;
    outline: none;
    border: 1px solid var(--bg-element);
    color: var(--text-main);
    background-color: var(--bg-main);
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-mid-opacity);
}

.search-box input::placeholder {
    color: var(--text-faint);
}

.mobile-search-btn {
    display: none;
}

/* ==========================================
   6. SITE HEADER
   ========================================== */
.site-header {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    align-items: center;
    width: 100%;
    padding: 1rem;
    padding-left: calc(80px + 2rem);
    background-color: var(--bg-glass-header);
    backdrop-filter: blur(10px);
    justify-content: space-between;
    z-index: 1000;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.header-actions a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.user-profile img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--bg-element);
    transition: 0.2s;
}

.user-profile img:hover {
    border-color: var(--accent);
}

/* ==========================================
   7. NOTIFICATIONS
   ========================================== */
.notification-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.noti-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--accent);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.notification-panel {
    display: none;
    position: absolute;
    top: 40px;
    right: -10px;
    width: 300px;
    background-color: var(--bg-panel);
    border: 1px solid var(--bg-element);
    border-radius: 0.8rem;
    box-shadow: var(--shadow-soft);
    z-index: 1000;
    flex-direction: column;
    overflow: hidden;
}

.notification-panel.show {
    display: flex;
}

.noti-header {
    padding: 1rem;
    font-weight: 700;
    border-bottom: 1px solid var(--bg-element);
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.noti-header small {
    color: var(--accent);
    cursor: pointer;
    font-weight: normal;
}

.noti-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 350px;
    overflow-y: auto;
}

.noti-list li {
    padding: 1rem;
    border-bottom: 1px solid var(--bg-element);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    transition: background-color 0.2s;
}

.noti-list li:hover {
    background-color: var(--bg-element);
}

.noti-list li:last-child {
    border-bottom: none;
}

.noti-icon {
    background-color: var(--accent-mid-opacity);
    color: var(--accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.noti-detail p {
    margin: 0 0 0.3rem 0;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.3;
}

.noti-detail small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ==========================================
   8. SIDEBAR
   ========================================== */
.site-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 80px;
    height: calc(100% - 2rem);
    padding: 1rem 0.5rem;
    border-radius: 1.5rem;
    background-color: var(--bg-glass-sidebar);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 1001;
}

.site-sidebar:hover {
    width: 220px;
    background-color: var(--bg-glass-sidebar-hover);
}

.site-sidebar .sidebar-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0 2rem 0;
    width: 100%;
}

.web-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-sidebar:hover .web-name {
    transform: scale(1.15);
}

.web-name p {
    font-family: 'Novusa', 'Prompt', sans-serif;
    margin: 0;
}

.web-name p.main-text {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b6b, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(226, 66, 66, 0.4));
    letter-spacing: 1px;
}

.web-name p.sub-text {
    font-size: 0.95rem;
    color: var(--text-main);
    letter-spacing: 4px;
    font-weight: 600;
    opacity: 1 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.site-sidebar:hover .web-name p.sub-text {
    opacity: 1;
}

.site-sidebar ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style-type: none;
    padding: 0;
}

.site-sidebar ul li {
    width: 100%;
}

.site-sidebar ul li a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.8rem 0;
    font-size: 0.95rem;
    border-radius: 1rem;
    width: 100%;
    transition: all 0.3s ease;
    font-weight: 500;
    color: transparent;
    white-space: nowrap;
}

.site-sidebar ul li a i {
    min-width: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.site-sidebar:hover ul li a {
    color: var(--text-muted);
}

.site-sidebar:hover ul li a:hover {
    background-color: var(--hover-glass);
    color: var(--text-main);
}

.site-sidebar:hover ul li a:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

.nav-active {
    background-color: var(--accent-mid-opacity) !important;
}

.site-sidebar ul li a.nav-active i {
    color: var(--accent);
}

.site-sidebar:hover ul li a.nav-active {
    color: var(--accent) !important;
}

/* ==========================================
   9. MAIN CONTENT & PRODUCT LIST
   ========================================== */
.path {
    color: var(--text-faint);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.path a:hover {
    color: var(--accent);
    text-decoration: underline;
}

article {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-left: calc(80px + 2rem);
    margin-right: 1rem;
    margin-top: 85px;
    padding: 1.5rem;
    background-color: transparent;
    border-radius: 1rem;
    min-height: calc(100vh - 100px);
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.product {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-panel);
    width: 100%;
    border-radius: 1rem;
    border: 1px solid var(--bg-element);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.product:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
    border-color: var(--text-faint);
}

.product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--bg-element);
    background-color: #ffffff;
}

.product-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    height: 100%;
    gap: 10px;
}

.product-top h4 {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product .product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed var(--bg-element);
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.filters .btn {
    flex-shrink: 0;
    white-space: nowrap;
    align-self: flex-start;
}

.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-yellow {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.badge-red {
    background-color: var(--accent-mid-opacity);
    color: var(--accent);
}

/* ==========================================
   10. HERO BANNER & SLIDER
   ========================================== */
.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    max-height: 400px;
    overflow: hidden;
    border-radius: 1.5rem;
    margin-bottom: 2rem;
    user-select: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--bg-element);
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 4rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
    z-index: 1;
    overflow: hidden;
}

.hero-banner.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    color: #ffffff;
    max-width: 55%;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.6s ease 0.2s;
}

.hero-banner.active .banner-content {
    transform: translateY(0);
}

.banner-content h1 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    font-style: italic;
    letter-spacing: 1px;
}

.banner-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
}

.banner-image {
    max-width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transform: translateX(30px) scale(0.9);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}

.hero-banner.active .banner-image {
    transform: translateX(0) scale(1);
}

.banner-image img {
    max-height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
    animation: floatProduct 4s ease-in-out infinite;
}

@keyframes floatProduct {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ffffff;
    width: 30px;
    border-radius: 6px;
}

/* ==========================================
   11. HOME SECTIONS & CATEGORIES
   ========================================== */
.home-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid var(--bg-element);
    padding-bottom: 10px;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--text-main);
}

.section-header a {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 500;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
}

.cat-item {
    background-color: var(--bg-panel);
    padding: 2rem 1rem;
    border-radius: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--bg-element);
}

.cat-item:hover {
    background-color: var(--bg-element);
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(226, 66, 66, 0.1);
}

.cat-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.cat-item:hover i {
    transform: scale(1.1);
}

/* ==========================================
   12. VIEW PRODUCT
   ========================================== */
.view-product {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
    background-color: var(--bg-panel);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--bg-element);
}

.view-product-left .main-img-container {
    background-color: var(--img-bg);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--bg-element);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.view-product-left img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.view-product-left img:hover {
    transform: scale(1.05);
}

.product-info-header h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.price-section {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(to right, var(--accent-mid-opacity), transparent);
    border-left: 4px solid var(--accent);
    border-radius: 0.5rem;
}

.price-section h2 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 5px;
}

.divider {
    border: none;
    border-top: 1px solid var(--bg-element);
    margin: 30px 0;
}

.purchase-actions {
    display: flex;
    gap: 15px;
    align-items: stretch;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    border: 1px solid var(--bg-element);
    border-radius: 1rem;
    overflow: hidden;
    background: var(--bg-main);
    height: 50px;
}

.quantity-selector button {
    background: none;
    border: none;
    color: var(--text-main);
    width: 40px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1.2rem;
}

.quantity-selector button:hover {
    background: var(--bg-element);
    color: var(--accent);
}

.quantity-selector input {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-weight: bold;
    font-size: 1.1rem;
    outline: none;
    -moz-appearance: textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.purchase-actions .btn-primary {
    padding: 0 2rem;
    font-size: 1.1rem;
    height: 50px;
}

/* ==========================================
   13. CART
   ========================================== */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: var(--bg-panel);
    border: 1px solid var(--bg-element);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    gap: 1rem;
    margin-bottom: 10px;
    transition: transform 0.2s;
}

.cart-item:hover {
    transform: translateX(5px);
    border-color: var(--text-faint);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.8rem;
    background: #ffffff;
}

.cart-detail-left {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.cart-product-text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.cart-product-text p {
    color: var(--accent);
    font-weight: 600;
}

.web-name-mobile {
    display: none;
}

/* ==========================================
   14. FORM CONTROLS & INPUTS
   ========================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 1rem;
    border: 1px solid var(--bg-element);
    background-color: var(--bg-main);
    color: var(--text-main);
    font-size: 1rem;
    font-family: 'Prompt', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: var(--text-faint);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-mid-opacity);
    background-color: var(--bg-panel);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ==========================================
   15. MEDIA QUERIES & RESPONSIVE
   ========================================== */
@media (max-width: 992px) {
    .view-product {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 1.5rem;
    }

    .view-product-left img {
        max-width: 100%;
    }
}

.bottom-nav {
    display: none;
}

/* ==========================================
   16. FOOTER
   ========================================== */
.site-footer {
    margin-left: calc(80px + 2rem);
    margin-right: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 3rem 2rem 1rem 2rem;
    background-color: var(--bg-panel);
    border: 1px solid var(--bg-element);
    border-radius: 1.5rem;
    transition: all 0.3s ease;
}

.footer-content {
    display: grid;
    /* ปรับ Grid ให้รองรับ 4 คอลัมน์ */
    grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand .web-name {
    align-items: flex-start;
    margin-bottom: 1rem;
}

.brand-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 300px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-element);
    color: var(--text-main);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3,
.footer-members h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1.2rem;
}

.footer-links ul,
.footer-members ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-members li {
    color: var(--text-muted);
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-members li {
    display: flex;
    align-items: center;
}

.footer-members li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--accent);
    width: 16px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid var(--bg-element);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-faint);
    font-size: 0.85rem;
}

.clean-code-members h3 {
    margin-bottom: 1.5rem;
}

.member-grid-list {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
}

.member-grid-list li {
    display: grid;
    grid-template-columns: 1fr 40px 75px; 
    gap: 16px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05); 
    transition: background 0.3s ease;
}

.member-grid-list li:last-child {
    border-bottom: none;
}

.member-grid-list li::before {
    display: none;
}

.member-grid-list li:hover {
    background: linear-gradient(90deg, transparent, var(--bg-element), transparent); /* ไฮไลท์ตอนชี้เมาส์แบบเนียนๆ */
}

.m-name {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.member-grid-list li:hover .m-name {
    color: var(--text-main);
}

.m-id {
    font-family: 'Consolas', 'Courier New', monospace;
    color: var(--text-faint);
    font-size: 0.85rem;
    text-align: center; 
    letter-spacing: 1px;
}

.m-role {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    padding: 4px 0;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.html-tag {
    color: #ff6b4a;
    background-color: rgba(255, 107, 74, 0.08);
}

.figma-tag {
    color: #b87cff;
    background-color: rgba(184, 124, 255, 0.08);
}

/* Responsive */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .site-sidebar {
        display: none !important;
        transform: translateX(-100%);
        width: 250px;
    }

    .web-name-mobile {
        display: block;
    }

    .site-header {
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
    }

    article {
        margin-left: 0;
        margin-right: 0;
        margin-top: 75px;
        margin-bottom: 80px;
        padding: 1rem;
    }

    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .search-box {
        display: none !important;
    }

    .mobile-search-btn {
        display: block;
    }

    .banner-content h1 {
        font-size: 1.8rem;
    }

    .bottom-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--bg-glass-bottom);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--border-glass);
        z-index: 1001;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    }

    .bottom-nav ul {
        display: flex;
        justify-content: space-around;
        align-items: center;
        list-style-type: none;
        padding: 0.8rem 0;
        margin: 0;
    }

    .bottom-nav ul li {
        flex: 1;
        text-align: center;
    }

    .bottom-nav ul li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        color: var(--text-muted);
        font-size: 0.7rem;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .bottom-nav ul li a i {
        font-size: 1.2rem;
        transition: transform 0.3s ease;
    }

    .bottom-nav ul li a.nav-active {
        color: var(--accent) !important;
        background-color: transparent !important;
    }

    .bottom-nav ul li a.nav-active i {
        transform: translateY(-3px) scale(1.15);
        color: var(--accent);
        filter: drop-shadow(0 4px 8px rgba(226, 66, 66, 0.4));
    }

    .bottom-nav ul li a.nav-active span {
        font-weight: 700;
    }

    .slider-container {
        aspect-ratio: 2 / 1;
        height: auto;
        max-height: 220px;
    }

    .hero-banner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 1rem 1rem 1.8rem 1rem;
    }

    .banner-content {
        max-width: 55%;
        align-items: flex-start;
        transform: translateY(0) !important;
        gap: 6px;
    }

    .banner-content h1 {
        font-size: 1.1rem;
        margin-bottom: 0;
        line-height: 1.2;
    }

    .banner-content p {
        font-size: 0.75rem;
        margin-bottom: 2px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .banner-content .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .banner-image {
        max-width: 45%;
        margin-bottom: 0;
        transform: translateX(0) scale(1) !important;
        display: flex;
        justify-content: flex-end;
    }

    .banner-image img {
        max-height: 110px;
    }

    .slider-dots {
        bottom: 10px;
    }

    .site-footer {
        margin-left: 0;
        margin-right: 0;
        margin-top: 1rem;
        margin-bottom: 90px;
        padding: 2.5rem 1.5rem 1rem 1.5rem;
        border-radius: 1.5rem 1.5rem 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-brand .web-name {
        align-items: center;
    }

    .brand-desc {
        margin: 0 auto 1.5rem auto;
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .footer-members ul {
        align-items: center;
    }

    .footer-members li::before {
        display: none;
    }

    .member-grid-list li {
        grid-template-columns: 1fr max-content max-content;
        gap: 12px;
    }
}