/* ===== CSS Variables (Shopify-Inspired) ===== */
:root {
    --primary: #2d2d2d;
    --primary-light: #444;
    --accent: #e8a838;
    --accent-dark: #c98b1d;
    --accent-light: #fdf3e0;
    --bg: #fafaf8;
    --bg-card: #ffffff;
    --text: #1a1a1a;
    --text-secondary: #1c1c1c;
    --text-light: #000;
    --border: #eee;
    --border-hover: #ddd;
    --success: #4caf50;
    --danger: #e53935;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-hover: 0 12px 48px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: var(--bg);
    font-family: var(--font-main);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== Focus States ===== */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 2px rgba(232, 168, 56, 0.2);
    border-color: var(--accent);
    outline: none;
}

/* ===== Top Navbar (Sticky Header) ===== */
.top-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.top-navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: var(--transition);
}

.brand:hover { opacity: 0.85; }

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.brand-highlight {
    color: var(--accent);
}

/* Auth Buttons */
.auth-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    border-left: 1px solid var(--border);
}

.auth-btn {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    text-decoration: none;
}

.auth-btn.login-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
}

.auth-btn.login-btn:hover {
    border-color: var(--primary);
    color: var(--text);
    background: #f5f5f3;
}

.auth-btn.register-btn {
    background: var(--primary);
    color: #fff;
    border: 1.5px solid var(--primary);
}

.auth-btn.register-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(232,168,56,0.3);
}

/* ===== Page Container ===== */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px;
}

/* ===== Page Header ===== */
.page-header {
    margin-bottom: 24px;
}

.page-header h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    letter-spacing: -0.5px;
}

/* ===== Filter Section ===== */
.filter-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.filter-section .filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.filter-section .filter-row:last-child {
    margin-bottom: 0;
}

.filter-section .filter-label {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 600;
    width: 80px;
    flex-shrink: 0;
    letter-spacing: 0.8px;
}

/* Filter Tags (Pill Style) */
.filter-section a.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1.5px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    background: #fff;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom:8px;
}

.filter-section a.filter-tag:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.filter-section a.filter-tag.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(45,45,45,0.15);
}

/* ===== Search Box ===== */
.search-box {
    position: relative;
    max-width: 560px;
    flex: 1;
}

.search-box input {
    border-radius: var(--radius-full);
    padding-left: 40px;
    padding-right: 80px;
    border: 1.5px solid var(--border);
    height: 40px;
    font-size: 0.82rem;
    background: #f5f5f3;
    transition: var(--transition);
    font-family: var(--font-main);
    width: 100%;
}

.search-box input:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.1);
}

.search-box .bi-search {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.9rem;
}

.search-box .btn-search {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 4px 18px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    line-height: 2;
}

.search-box .btn-search:hover {
    background: var(--accent);
    box-shadow: 0 2px 8px rgba(45,45,45,0.15);
}

/* ===== Price Range Filter ===== */
.price-filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.price-inputs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.price-input {
    width: 100px;
    height: 35px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2px 12px;
    font-size: 0.8rem;
    text-align: center;
    background: #f5f5f3;
    transition: var(--transition);
    font-family: var(--font-main);
}

.price-input:focus {
    border-color: var(--accent);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.1);
}

.price-separator {
    color: var(--text-light);
    font-size: 0.85rem;
}

.btn-price-filter {
    height: 35px;
    padding: 0 18px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.btn-price-filter:hover {
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232,168,56,0.3);
}

.btn-price-filter i {
    margin-right: 5px;
}

.btn-price-clear {
    height: 35px;
    padding: 0 16px;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    background: #fff;
    color: var(--text-light);
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.btn-price-clear:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-price-clear i {
    margin-right: 6px;
}

/* ===== Products Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ===== Product Card (Shopify Style) ===== */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.5s ease backwards;
}

.product-card:nth-child(1) { animation-delay: 0.03s; }
.product-card:nth-child(2) { animation-delay: 0.06s; }
.product-card:nth-child(3) { animation-delay: 0.09s; }
.product-card:nth-child(4) { animation-delay: 0.12s; }
.product-card:nth-child(5) { animation-delay: 0.15s; }
.product-card:nth-child(6) { animation-delay: 0.18s; }
.product-card:nth-child(7) { animation-delay: 0.21s; }
.product-card:nth-child(8) { animation-delay: 0.24s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Product Image */
.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f3;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

/* Product Overlay */
.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.overlay-btn {
    background: #fff;
    color: var(--text);
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.product-card:hover .overlay-btn {
    transform: translateY(0);
}

.overlay-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* Add to Wishlist Button */
.product-card .btn-add {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: var(--transition);
    z-index: 2;
    opacity: 0;
    transform: translateY(-5px);
    border: none;
    cursor: pointer;
}

.product-card:hover .btn-add {
    opacity: 1;
    transform: translateY(0);
}

.product-card .btn-add:hover {
    background: #ff5252;
    color: #fff;
}

.product-card .btn-add.active {
    opacity: 1;
    background: #ff5252;
    color: #fff;
}

/* Product Info */
.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent-dark);
    margin-bottom: 6px;
    display: block;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 2.66em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card:hover .product-name {
    color: var(--primary);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-current {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

/* ===== Pagination ===== */
.pagination-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0 16px;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-box a,
.pagination-box span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    background: #fff;
}

.pagination-box a:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.pagination-box span.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(45,45,45,0.15);
}

.pagination-box .total-info {
    border: none;
    color: var(--text-light);
    background: transparent;
    margin-left: 16px;
    font-size: 0.85rem;
}

/* ===== No Data ===== */
.no-data {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
    font-size: 1rem;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.no-data i {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 16px;
    color: #ddd;
}

.no-data p {
    margin: 0;
    color: var(--text-secondary);
}

/* ===== Loading Mask ===== */
.loading-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.loading-mask.show {
    display: flex;
}

.loading-mask .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    border-width: 0.2em;
}

/* ===== Product Detail Page ===== */
.detail-container {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.breadcrumb-nav {
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.breadcrumb-nav a {
    color: var(--accent-dark);
    text-decoration: none;
    transition: opacity 0.2s;
}

.breadcrumb-nav a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.gallery-main {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #f5f5f3;
    text-align: center;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.gallery-main img {
    max-width: 100%;
    max-height: 520px;
    object-fit: contain;
    padding: 20px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-thumbs img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    background: #fff;
    padding: 2px;
}

.gallery-thumbs img:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.gallery-thumbs img.active {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(232, 168, 56, 0.2);
}

.info-section h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.info-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.info-row .label {
    color: var(--text-light);
    min-width: 70px;
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
}

.price-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin: 24px 0;
    letter-spacing: -0.5px;
}

.spec-section {
    margin-top: 24px;
}

.spec-section h6 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 600;
}

.spec-color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-color-list li {
    cursor: pointer;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
    background: #fff;
}

.spec-color-list li:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.spec-color-list li.active {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(232, 168, 56, 0.2);
}

.spec-color-list li img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    display: block;
}

.spec-size-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-size-list li { cursor: pointer; }

.spec-size-list li span {
    display: inline-block;
    padding: 8px 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    transition: var(--transition);
    color: var(--text-secondary);
    background: #fff;
}

.spec-size-list li:hover span {
    border-color: var(--primary);
    color: var(--primary);
}

.spec-size-list li.active span {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
    font-weight: 600;
}

.btn-add-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 32px;
    transition: var(--transition);
    font-family: var(--font-main);
}

.btn-add-product:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232,168,56,0.3);
}

.spec-table {
    width: 100%;
    margin-top: 16px;
    font-size: 0.88rem;
    border-collapse: separate;
    border-spacing: 0;
}

.spec-table th {
    background: #f5f5f3;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
    letter-spacing: 0.5px;
}

.spec-table th:first-child { border-top-left-radius: var(--radius-sm); }
.spec-table th:last-child { border-top-right-radius: var(--radius-sm); }

.spec-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.spec-table tr:hover td { background: #fafaf8; }
.spec-table tr:last-child td { border-bottom: none; }

.size-guide-link {
    color: var(--accent-dark);
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
}

.size-guide-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    transition: var(--transition);
    background: var(--surface);
}

.back-link:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    transform: translateX(-3px);
}

/* ===== Scrollable Thumbnail Gallery ===== */
.gallery-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.gallery-nav {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f3;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.gallery-nav:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.gallery-scroll {
    flex: 1;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 0;
    scrollbar-width: none;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 63px;
    height: 63px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    background: #fff;
    padding: 2px;
}

.gallery-thumb:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.gallery-thumb.sel {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(232, 168, 56, 0.25);
}

/* ===== Spec Sections (js-product style) ===== */
.js-product {
    margin-top: 20px;
}

.js-product h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0;
    letter-spacing: 0.5px;
}

.js-product hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 10px 0 14px;
}

/* Color/image spec list */
.ul-pic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 320px;
    overflow-y: auto;
}

.ul-pic-list li {
    cursor: pointer;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
    background: #fff;
}

.ul-pic-list li:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.ul-pic-list li.checkboder {
    border-color: var(--accent);
    box-shadow: 0 2px 10px rgba(232, 168, 56, 0.3);
}

.ul-pic-list li img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    display: block;
}

/* Size/text spec list */
.ul-size-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ul-size-list li {
    cursor: pointer;
}

.ul-size-list li span {
    display: inline-block;
    padding: 8px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: #fff;
    transition: var(--transition);
}

.ul-size-list li:hover span {
    border-color: var(--primary);
    color: var(--primary);
}

.ul-size-list li.checkboder span {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(45,45,45,0.18);
}

/* ===== Collapsible Section ===== */
.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 4px 0;
    user-select: none;
    transition: var(--transition);
}

.collapsible-header:hover {
    opacity: 0.75;
}

.collapsible-header h5 {
    margin: 0;
}

.collapsible-header i {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.collapsible-body {
    padding-top: 16px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== Product Description ===== */
.product-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.product-description img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 8px 0;
}

.product-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.product-description table td,
.product-description table th {
    padding: 8px 12px;
    border: 1px solid var(--border);
    font-size: 0.85rem;
}

/* ===== Product Detail Info Lines ===== */
.product-detail-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.4;
}

.info-line {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.6;
}

.info-link {
    color: var(--accent-dark);
    text-decoration: none;
}

.info-link:hover {
    text-decoration: underline;
}

/* ===== Add to My Product Button ===== */
#ProductSpecInfo {
    display: flex;
    flex-direction: column;
}

.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 20px;
}

.btn-back-to-products,
.btn-add-my-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 260px;
}

.btn-back-to-products {
    background: #f0f0f0;
    color: var(--text-secondary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.btn-back-to-products:hover {
    background: #e5e5e5;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.btn-add-my-product {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(232, 168, 56, 0.3);
}

.btn-add-my-product i {
    font-size: 1.1rem;
}

.btn-add-my-product:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 168, 56, 0.4);
}

.btn-back-to-products:active,
.btn-add-my-product:active {
    transform: translateY(-1px);
}

/* ===== Size Guide Items ===== */
.size-guide-item {
    margin-top: 10px;
}

.size-guide-item h6 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.size-img-link {
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
}

.size-img-link:hover {
    color: var(--accent);
}

/* ===== Recap Card ===== */
.recap-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 24px;
    position: sticky;
    top: 90px;
    box-shadow: var(--shadow-sm);
}

.recap-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.recap-line {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.recap-price {
    color: var(--accent-dark);
    font-weight: 700;
}

.recap-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-recap {
    width: 100%;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    font-family: var(--font-main);
}

.btn-recap-primary {
    background: var(--primary);
    color: #fff;
}

.btn-recap-primary:hover {
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232,168,56,0.3);
}

.btn-recap-outline {
    background: #fff;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
}

.btn-recap-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f5f5f3;
}

/* ===== Section Title ===== */
.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

/* ===== Scroll Buttons ===== */
.scroll-buttons {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.scroll-buttons.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(232, 168, 56, 0.3);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .page-container { padding: 20px 16px; }
    .navbar-inner { padding: 12px 16px; }
    .filter-section { padding: 16px; }
}

@media (max-width: 600px) {
    .auth-btns { gap: 4px; }
    .auth-btn { padding: 6px 12px; font-size: 0.8rem; }
    .brand-text { font-size: 1.2rem; }
    .brand-icon { width: 34px; height: 34px; font-size: 0.9rem; }
    .product-info { padding: 14px; }
    .product-name { font-size: 0.88rem; }
    .price-current { font-size: 1rem; }
    .filter-section .filter-label { width: auto; }
}
