:root {
    --primary-color: #6366f1;
    --primary-light: #e0e7ff;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 12px;
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-color);
}

.logo .lite {
    color: var(--primary-color);
    font-weight: 300;
}

.nav-list {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Bottom Tab Bar (Mobile) - Added */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
    z-index: 1000;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
}

.bottom-nav-item .nav-icon {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-item.active .nav-icon {
    transform: translateY(-2px);
}

.footer-about-link {
    display: none;
    margin-left: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: underline;
}

/* Main Content */
main {
    padding: 40px 20px;
    min-height: calc(100vh - 140px);
}

/* Mobile media query moved to end of file */

/* Footer */
.footer {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    color: var(--text-light);
    text-align: center;
    font-size: 0.9rem;
}

/* Sections & Components */
.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-color);
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Home Page - Hero Section */
.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 40px;
    background-color: var(--white);
    border-radius: var(--radius);
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
}

.hero-image {
    flex: 1;
    max-width: 500px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.menu-card {
    text-align: center;
    padding: 40px 20px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.menu-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.menu-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.menu-card:hover h3 {
    color: #4f46e5;
}

.menu-card p {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.menu-card:hover p {
    color: var(--text-color);
}

/* 오늘의 꿀팁 섹션 */
.tip-section {
    max-width: 800px;
    margin: 48px auto 0;
    padding: 0;
}

.tip-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 20px;
}

.tip-card {
    background: linear-gradient(135deg, #fefce8, #fffbeb, #fef9c3);
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(253, 230, 138, 0.3);
    text-align: center;
}

.tip-card p {
    font-size: 1rem;
    color: #92400e;
    line-height: 1.75;
    margin-bottom: 20px;
}

.tip-card strong {
    color: #78350f;
    font-weight: 700;
    background: rgba(251, 191, 36, 0.2);
    padding: 1px 6px;
    border-radius: 4px;
}

.tip-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-color), #818cf8);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.tip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.tip-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Filters */
.filter-section {
    margin-bottom: 24px;
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

/* Filter Toggle Button - Hidden by default (PC) */
.filter-toggle-btn {
    display: none;
}

/* PC: Ensure Filter is Always Visible */
@media (min-width: 769px) {
    .filter-section {
        display: block !important;
    }

    .filter-toggle-btn {
        display: none !important;
    }
}

/* Mobile: Toggle Logic */
@media (max-width: 768px) {
    .filter-section {
        display: none;
    }

    .filter-section.active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    .filter-toggle-btn {
        display: block;
        width: 100%;
        margin-bottom: 12px;
        background-color: var(--white);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

.filter-group-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.filter-buttons:last-child {
    margin-bottom: 0;
}

.filter-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-color);
}

.filter-btn:hover {
    background-color: var(--bg-color);
    border-color: var(--text-light);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.result-count {
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: right;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Dictionary */
.search-bar {
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.bead-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.bead-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    padding-bottom: 1px;
    /* space for actions */
    position: relative;
    overflow: hidden;
    /* contain buttons */
    -webkit-tap-highlight-color: transparent;
    /* Remove blue box on mobile tap */
}

/* New Status Filter Chips */
.status-chip-container {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 4px;
    /* scrollbar spacing */
    scrollbar-width: none;
    /* Firefox */

    /* PC default: scroll if needed, but usually fits */
    overflow-x: auto;
    white-space: nowrap;
}

.status-chip-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.filter-chip {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-color);
    flex-shrink: 0;

    /* Remove tap highlight on mobile */
    -webkit-tap-highlight-color: transparent;
}

.filter-chip.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

/* Card Status Buttons (Bottom Row) */
.bead-actions {
    display: flex;
    width: 100%;
    margin-top: 12px;
    border-top: 1px solid #f3f4f6;
    padding-top: 8px;
    margin-bottom: 4px;
}

.action-btn {
    flex: 1;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.1s;
    padding: 4px;
    border-radius: 4px;
    opacity: 0.5;
    /* inactive state */
    filter: grayscale(100%);
    -webkit-tap-highlight-color: transparent;
}

.action-btn:hover {
    background-color: #f9fafb;
    transform: scale(1.1);
}

.action-btn.active {
    opacity: 1;
    filter: none;
}

/* Global: Distinct 'Need Buy' (Cart) when active - Dark Pressed Look */
.action-btn.active.need {
    background: none;
    border: none;
    box-shadow: none;
    color: inherit;

    /* Dark, pressed effect using filters */
    opacity: 1;
    transform: scale(1.1);
    filter: grayscale(100%) brightness(0.3) contrast(1.5);
}

.color-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: inner 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bead-code {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.bead-name {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

/* Gallery & Patterns */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.pattern-card h3 {
    margin-bottom: 8px;
}

.pattern-info {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.pattern-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.btn-outline {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Guide */
.guide-container {
    max-width: 800px;
    margin: 0 auto;
}

.guide-section {
    margin-bottom: 40px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.guide-section h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.guide-content p {
    margin-bottom: 12px;
}

.guide-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.guide-content li {
    margin-bottom: 8px;
}

/* FAQ Accordion Styles */
.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.faq-toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fafafa;
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    padding: 20px;
    padding-bottom: 40px;
    /* Added padding for better spacing */
    color: var(--text-light);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
    /* Increased heavily to prevent clipping on mobile */
}

.footer-promo {
    margin-top: 10px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

/* Shop List Styles */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.shop-category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.shop-category-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
}

.shop-list {
    list-style: none;
}

.shop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    min-height: 60px;
    /* Increased slightly for two-line text comfort */
}

.shop-item span {
    flex: 1;
    margin-right: 12px;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.4;
    /* Better spacing for two lines */
}

.shop-item:last-child {
    border-bottom: none;
}

.shop-btn {
    width: 86px;
    padding: 6px 0;
    text-align: center;
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-block;

    background-color: var(--primary-light);
    color: var(--primary-color);
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.shop-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.shop-disclaimer {
    margin-top: 40px;
    padding: 16px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    color: #b91c1c;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-md);
    transform: translateY(20px);
    transition: transform 0.3s, padding-bottom 0.3s;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay.open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-bead-info {
    text-align: center;
}

.modal-color-box {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Image Placeholder for Guide */
.img-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #e5e7eb;
    border-radius: var(--radius);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #9ca3af;
    font-weight: 500;
    /* margin: 10px 0 20px 0; Removed margin for side-by-side layout */
    border: 1px dashed #d1d5db;
    font-size: 0.8rem;
    /* Smaller text for small boxes */
    text-align: center;
    padding: 4px;
}

/* Guide Item Layout (Side-by-Side) */
.guide-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 12px;
}

.guide-text {
    flex: 1;
    /* Takes remaining space */
    min-width: 0;
    /* Text truncation safety */
}

/* Ensure list inside guide-text doesn't have too much padding */
.guide-text ul {
    margin-left: 18px;
    margin-bottom: 0;
}

.guide-img-container {
    width: 30%;
    /* Fixed width for image area */
    flex-shrink: 0;
}

.modal-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.95rem;
}

.modal-detail-row:last-child {
    border-bottom: none;
}

.modal-label {
    color: var(--text-light);
    font-weight: 500;
}

.modal-value {
    color: var(--text-color);
    font-weight: 700;
}

/* Expandable Shop Card Styles */
.shop-expand-card {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.shop-expand-header {
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid #f3f4f6;
    background-color: #fafafa;
}

.shop-expand-title-group {
    display: flex;
    flex-direction: column;
}

.shop-official-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.shop-official-btn:hover {
    background-color: #4f46e5;
    color: white;
    border-color: #4f46e5;
    transform: translateY(-1px);
}

.shop-official-btn .shop-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
}

.shop-toggle-area {
    width: 100%;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    background-color: var(--white);
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
    border-bottom: 1px solid transparent;
}

.shop-toggle-area:hover {
    background-color: #f9fafb;
    color: var(--text-color);
}

.shop-sublist {
    display: none;
    list-style: none;
    padding: 0;
    background-color: var(--white);
}

.shop-sublist.open {
    display: block;
    border-top: 1px solid var(--border-color);
}

.shop-subitem {
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.1s;
}

.shop-subitem:hover {
    background-color: #fafafa;
}

.shop-subitem:last-child {
    border-bottom: none;
}

.shop-sub-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.shop-sub-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 4px;
}

.shop-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 8px;
    vertical-align: middle;
}

.badge-official {
    background-color: #f3f4f6;
    color: #4b5563;
}

.badge-pattern {
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid #d1fae5;
}

.badge-tool {
    background-color: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.shop-sub-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

.shop-sub-btn {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.shop-sub-btn:hover {
    background-color: #4f46e5;
}

.admin-controls {
    display: flex;
    gap: 8px;
}

.admin-btn {
    padding: 4px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    border: 1px solid #ccc;
    background: white;
    border-radius: 4px;
}

.admin-btn.delete {
    color: red;
    border-color: #fca5a5;
    background-color: #fef2f2;
}

.admin-btn.add {
    width: 100%;
    padding: 15px;
    background: #fdfafa;
    border: 2px dashed #e5e7eb;
    margin-top: 10px;
    color: #6b7280;
    font-size: 1rem;
}

.admin-btn.add:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.shop-expand-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-toggle-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.2s;
}

.admin-toggle-btn:hover {
    opacity: 1;
}

.legal-notice {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #9ca3af;
    text-align: center;
    line-height: 1.4;
    padding: 0 10px;
}

/* ===== Compare Feature Styles ===== */

/* Compare Button on Bead Card */
.compare-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
    line-height: 1;
    padding: 0;
    opacity: 0.6;
}

.compare-btn:hover {
    opacity: 1;
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.compare-btn:active {
    transform: scale(0.92);
}

.compare-btn.active {
    opacity: 1;
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.compare-btn.active:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.5);
}

/* Compare Floating Bar - Pill Shape */
.compare-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    z-index: 1100;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 12px 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.compare-bar.visible {
    display: flex;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.compare-bar-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

.compare-bar-count {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.compare-bar-count strong {
    color: #a5b4fc;
    font-weight: 700;
    font-size: 1.05rem;
}

.compare-bar-btn {
    padding: 8px 22px;
    background: linear-gradient(135deg, var(--primary-color), #818cf8);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
    font-family: inherit;
}

.compare-bar-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.5);
}

.compare-bar-btn:active {
    transform: translateY(0);
}

/* Compare Modal Styles */
.compare-content {
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

.compare-body {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 10px 0;
}

.compare-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
    text-align: center;
}

.compare-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.compare-card:hover .compare-circle {
    transform: scale(1.05);
}

.compare-card {
    position: relative;
}

/* Remove Button (X) on Card */
.compare-remove-btn {
    position: absolute;
    top: -5px;
    right: 15px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ef4444;
    color: white;
    border: 2px solid white;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.compare-card:hover .compare-remove-btn {
    opacity: 1;
    top: -8px;
}

.compare-code {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
}

.compare-name {
    font-size: 0.9rem;
    color: var(--text-light);
    word-break: keep-all;
    line-height: 1.3;
}

/* Reset Button (Floating Bar) */
.compare-reset-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-reset-btn:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(180deg);
}

/* Clear All Button (Modal Footer) */
.compare-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}

.compare-copy-btn {
    background: linear-gradient(135deg, var(--primary-color), #818cf8);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    margin-right: 12px;
    box-shadow: 0 2px 5px rgba(99, 102, 241, 0.3);
}

.compare-copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
}

.compare-clear-all-btn {
    background: none;
    border: 1px solid #f87171;
    color: #ef4444;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.compare-clear-all-btn:hover {
    background-color: #fef2f2;
}

/* Toast Notification */
#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: rgba(30, 41, 59, 0.95);
    color: #fff;
    text-align: center;
    border-radius: 50px;
    padding: 14px 24px;
    position: fixed;
    z-index: 10000;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s, top 0.3s, visibility 0.3s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#toast.show {
    visibility: visible;
    opacity: 1;
    top: 50px;
}

@media (max-width: 600px) {
    .compare-body {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .compare-card {
        width: 100%;
    }

    .compare-circle {
        width: 60px;
        height: 60px;
    }
}

*/

/* Utility: Show only on mobile */
.mobile-only-section {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only-section {
        display: block;
    }

    /* == MOVED & UPDATED MOBILE STYLES == */
    .header-container {
        justify-content: center;
        border-bottom: none;
    }

    /* Hide Original Hamberger & Nav */
    .mobile-menu-btn {
        display: none !important;
    }

    .nav-list {
        display: none !important;
    }

    /* Show Bottom Nav */
    .bottom-nav {
        display: flex;
    }

    /* 1. Content Obscuration Fix */
    body {
        padding-bottom: 100px;
    }

    .footer {
        padding-bottom: 30px;
    }

    .footer-about-link {
        display: inline-block;
    }

    /* 2. Hero Section Mobile Layout UPDATED */
    .hero {
        flex-direction: column;
        /* Changed: Row to Column */
        padding: 40px 20px;
        gap: 30px;
        /* Spacing between text and image */
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    /* Order: Default (0) puts text first, then image */
    .hero-image {
        width: 100%;
        max-width: 90%;
        /* Changed: Limit width to 90% */
        order: 0;
        /* Changed: Reset order so it appears after text */
        margin: 0 auto;
        /* Center alignment */
        margin-top: 10px;
    }

    .hero-image img {
        width: 100%;
        height: auto;
        margin: 0 auto;
        display: block;
        /* existing border-radius is preserved by inheritance or default styles if present */
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 3 & 4. Official Homepage Button mobile style */
    .shop-official-btn {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }

    .shop-official-btn .shop-badge {
        background-color: rgba(255, 255, 255, 0.2);
        color: white;
        border: none;
    }

    /* Adjust header layout for mobile */
    .shop-expand-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    /* Mobile-Specific Adjustments for Filter Chips */
    .status-chip-container {
        /* Fit in one line without scrolling: usage of flex-shrink or smaller text */
        justify-content: space-between;
        /* distribute evenly */
        overflow-x: hidden;
        /* disable scroll if fitting */
    }

    .filter-chip {
        padding: 6px 10px;
        /* smaller padding */
        font-size: 0.8rem;
        /* smaller font */
        flex: 1;
        /* distribute width */
        text-align: center;
        margin: 0 2px;
    }

    .filter-chip:first-child {
        margin-left: 0;
    }

    .filter-chip:last-child {
        margin-right: 0;
    }

    /* Compare Feature - Mobile */
    .compare-bar {
        bottom: 90px;
        /* Position above bottom tab nav */
        padding: 10px 20px;
    }

    .compare-btn {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .compare-bar-count {
        font-size: 0.85rem;
    }

    .compare-bar-btn {
        padding: 7px 16px;
        font-size: 0.85rem;
    }

    .compare-bar-inner {
        gap: 14px;
    }

    /* Modal Mobile Refinements */
    .modal-content {
        padding: 20px;
        max-height: 95vh;
    }

    .modal-close {
        top: 10px;
        right: 15px;
    }

    .modal-color-box {
        width: 70px;
        height: 70px;
        margin-bottom: 10px;
    }

    .modal-bead-info h2 {
        font-size: 1.6rem !important;
        margin-bottom: 2px !important;
    }

    /* Dock compare bar inside modal */
    .modal-footer-dock {
        position: sticky;
        bottom: -20px;
        /* Offset for modal component padding */
        margin-left: -20px;
        width: calc(100% + 40px);
        z-index: 1010;
        margin-top: 20px;
    }

    .modal-footer-dock .compare-bar {
        position: relative;
        bottom: 0;
        border-radius: 0 0 var(--radius) var(--radius);
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
        /* Slight shadow to separate from content */
    }
}