* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #000000;
    color: #FFFFFF;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    position: fixed;
}

.kiosk-container {
    width: 100%;
    height: 100vh;
    height: 100svh; 
    display: flex;
    background: transparent;
    position: relative;
    z-index: 1;
}

.detail-section {
    width: 60%;
    --detail-height: 100svh; 
    height: 100vh;
    height: var(--detail-height); 
    display: flex;
    flex-direction: column;
    border-right: 1px solid #333333;
    background: rgba(0, 0, 0, 0.3);
    transition: height 0.3s ease-in-out; 
    overflow-y: auto;
    position: relative; 
}

.kiosk-header {
    padding: 40px 50px;
    border-bottom: 1px solid #333333;
    background: #000000;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-dropdown {
    position: fixed;
    top: 40px;
    right: calc(40% + 20px); 
    z-index: 1000; 
    display: flex;
    align-items: flex-start;
}

.search-toggle {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #E0E0E0;
    width: 48px;
    height: 48px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
                0 2px 4px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.search-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.search-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.search-toggle:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(38, 38, 38, 0.98) 0%, rgba(32, 32, 32, 0.98) 100%);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4),
                0 4px 8px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.search-toggle:hover::before {
    opacity: 1;
}

.search-toggle.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 245, 245, 0.98) 100%);
    color: #000000;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2),
                0 4px 8px rgba(255, 255, 255, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.search-toggle.active::before {
    opacity: 0;
}

.search-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3),
                0 1px 2px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.search-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    stroke: currentColor;
    fill: none;
}

.search-toggle:hover .search-icon {
    transform: scale(1.1);
}

.search-toggle.active .search-icon {
    transform: scale(1.05);
}

.kiosk-header h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #FFFFFF;
    line-height: 1.2;
    white-space: nowrap;
}

.kiosk-header p {
    font-size: 14px;
    color: #E0E0E0;
    margin-top: 6px;
    font-weight: 300;
    display: none;
}

.category-tabs {
    display: flex;
    gap: 3px;
    padding: 12px 15px;
    border-bottom: 1px solid #333333;
    background: #000000;
    flex-wrap: nowrap;
}

.category-tab {
    padding: 6px 12px;
    background: #1a1a1a;
    border: 2px solid #333333;
    border-radius: 4px;
    color: #E0E0E0;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex: 1 1 0;
    text-align: center;
    min-width: fit-content;
    will-change: background-color, border-color;
}

.category-tab:hover {
    border-color: #666666;
    background: #262626;
    color: #FFFFFF;
}

.category-tab:active {
    transform: scale(0.95);
    opacity: 0.9;
}

.category-tab:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.category-tab.active {
    background: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
    font-weight: 700;
}

.products-grid {
    flex: 1;
    padding: 30px 40px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-content: start;
}

.products-grid::-webkit-scrollbar {
    width: 8px;
}

.products-grid::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.products-grid::-webkit-scrollbar-thumb {
    background: #666666;
    border-radius: 4px;
}

.products-grid::-webkit-scrollbar-thumb:hover {
    background: #888888;
}

.product-card {
    background: #1a1a1a;
    border: 2px solid #333333;
    border-radius: 8px;
    padding: 15px 15px 15px 0px;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    height: 120px;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.product-card:hover {
    border-color: #FFFFFF;
    background: #262626;
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.product-card:active {
    transform: translateY(-1px) translateZ(0);
    opacity: 0.9;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:focus {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
}

.product-card.selected {
    border-color: #FFFFFF;
    background: #262626;
}

.product-image-container {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    background: #0a0a0a;
    border: 1px solid #333333;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    font-size: 12px;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.product-name {
    font-size: 18px;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 1.4;
    margin-bottom: 6px;
    text-align: left;
}

.product-description {
    font-size: 13px;
    font-weight: 300;
    color: #999999;
    line-height: 1.4;
    text-align: left;
}

.products-section {
    width: 40%;
    height: 100vh;
    height: 100svh; 
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.3);
}

.detail-header {
    padding: 40px 50px;
    border-bottom: 1px solid #333333;
    background: rgba(0, 0, 0, 0.5);
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.detail-title {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #FFFFFF;
}

.detail-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    align-items: center;
    justify-content: center;
    padding: 60px;
    text-align: center;
    overflow: hidden;
}

.placeholder-video {
    position: absolute;
    top: 0;
    left: 50%;
    width: auto;
    height: 100%;
    min-height: 100%;
    transform: translateX(-50%);
    object-fit: cover;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

.placeholder-content {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.placeholder-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
}

.placeholder-text {
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@media (max-width: 768px) {
    .detail-placeholder {
        padding: 40px 20px;
    }
    
    .placeholder-content {
        max-width: 100%;
        gap: 15px;
    }
    
    .placeholder-text {
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .placeholder-line {
        flex: 0.5;
    }
}

.detail-content {
    flex: 1;
    padding: 40px 60px;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.detail-content-section {
    margin-bottom: 50px;
}

.detail-content-section:not(:first-child) {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.detail-content-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #FFFFFF;
    border-bottom: 1px solid #333333;
    padding-bottom: 15px;
}

.detail-content-section p {
    font-size: 20px;
    line-height: 1.8;
    color: #E0E0E0;
    font-weight: 300;
}

.detail-content-section ul {
    list-style: none;
    margin-top: 20px;
}

.detail-content-section li {
    font-size: 20px;
    line-height: 2;
    color: #E0E0E0;
    padding-left: 30px;
    position: relative;
    font-weight: 300;
}

.detail-content-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #FFFFFF;
    font-size: 28px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.specs-table tr {
    border-bottom: 1px solid #333333;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 15px 20px;
    font-size: 18px;
    line-height: 1.6;
}

.specs-table td:first-child {
    font-weight: 600;
    color: #A0826D;
    width: 40%;
    padding-right: 20px;
    padding-left: 20px;
}

.specs-table td:last-child {
    color: #E0E0E0;
    font-weight: 300;
    padding-left: 20px;
}

.specs-table tr.spec-highlight {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #FFFFFF;
}

.specs-table tr.spec-highlight td {
    font-weight: 500;
}

.specs-table tr.spec-highlight td:first-child {
    font-weight: 700;
    color: #9D7F4A;
}

.specs-table tr.spec-highlight td:last-child {
    color: #FFFFFF;
    font-weight: 400;
}

.image-slider {
    width: 100%;
    height: 500px;
    margin-bottom: 40px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
    border: 2px solid #333333;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.slide-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #666666;
    font-size: 20px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    z-index: 10;
    padding: 0;
    margin: 0;
    text-align: center;
}

.slider-nav span {
    display: inline-block;
    line-height: 1;
    transform: translateY(-3px);
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #FFFFFF;
}

.slider-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 300;
    z-index: 10;
}

.detail-content::-webkit-scrollbar {
    width: 8px;
}

.detail-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.detail-content::-webkit-scrollbar-thumb {
    background: #666666;
    border-radius: 4px;
}

.detail-content::-webkit-scrollbar-thumb:hover {
    background: #888888;
}

@media (max-width: 1920px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1440px) {
    .kiosk-header h1 {
        font-size: 28px;
    }
    .detail-title {
        font-size: 36px;
    }
}

@media (max-width: 1080px) {
    .kiosk-container {
        flex-direction: column;
        height: 100svh; 
    }
    
    .products-section {
        width: 100%;
        --products-height: 40svh; 
        height: var(--products-height);
    }
    
    .detail-section {
        width: 100%;
        --detail-height: 60svh; 
        height: var(--detail-height);
        border-right: none;
        border-bottom: 1px solid #333333;
        transition: height 0.3s ease-in-out; 
    }
    
    .products-section {
        border-bottom: none;
        background: #151a22; 
        transition: height 0.3s ease-in-out; 
    }

    .kiosk-header {
        background: #151a22; 
    }
    
    .compare-panel {
        background: #151a22; 
    }
    
    .category-tabs {
        background: #151a22; 
    }
    
    .product-card {
        background: #1f2530; 
    }

    .search-dropdown {
        position: absolute; 
        top: 32px;
        right: 22px;
        left: auto;
        z-index: 1000;
    }
    
    .search-icon {
        width: 34px;
        height: 34px;
    }
    
    .search-toggle {
        width: 81px;
        height: 81px;
    }
}

@media (max-width: 768px) {
    .kiosk-header {
        padding: 10px 12px;
        height: auto;
        min-height: 60px;
    }
    
    .kiosk-header h1 {
        font-size: 16px;
        letter-spacing: 0.5px;
    }
    
    .kiosk-header p {
        display: none;
    }
    
    .detail-header {
        padding: 12px 15px;
        height: auto;
        min-height: 60px;
    }
    
    .detail-title {
        font-size: 18px;
        letter-spacing: 1px;
    }
    
    .category-tabs {
        padding: 10px 15px;
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .category-tab {
        padding: 3.5px;
        font-size: 7px;
        letter-spacing: 0px;
    }
    
    .products-grid {
        padding: 15px 15px;
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .product-card {
        padding: 12px 8px 12px 0px;
        height: 100px;
        gap: 8px;
    }
    
    .skeleton-card {
        padding: 12px 8px 12px 0px;
        height: 100px;
        gap: 8px;
    }
    
    .skeleton-image {
        width: 100px;
        height: 100px;
    }
    
    .product-image-container {
        width: 100px;
        height: 100px;
    }
    
    .product-info {
        padding-left: 0;
        padding-right: 0;
    }
    
    .product-name {
        font-size: 16px;
    }
    
    .product-description {
        font-size: 12px;
    }
    
    .detail-content {
        padding: 20px 20px;
    }
    
    .detail-content-section h2 {
        font-size: 24px;
    }
    
    .detail-content-section p {
        font-size: 16px;
    }
    
    .specs-table td {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .image-slider {
        height: 300px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .slider-nav.prev {
        left: 10px;
    }
    
    .slider-nav.next {
        right: 10px;
    }

    .kiosk-header .recent-history-dropdown {
        display: none;
    }
}

@media (max-width: 480px) {
    .kiosk-header h1 {
        font-size: 20px;
    }
    
    .category-tab {
        padding: 3.5px;
        font-size: 7px;
    }
    
    .product-card {
        padding: 12px 6px 12px 0px;
        height: 90px;
        gap: 6px;
    }
    
    .skeleton-card {
        padding: 12px 6px 12px 0px;
        height: 90px;
        gap: 6px;
    }
    
    .skeleton-image {
        width: 80px;
        height: 80px;
    }
    
    .product-image-container {
        width: 80px;
        height: 80px;
    }
    
    .product-info {
        padding-left: 0;
        padding-right: 0;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-description {
        font-size: 11px;
    }
    
    .image-slider {
        height: 250px;
    }
}

.skeleton {
    background: linear-gradient(90deg, #1a1a1a 25%, #262626 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        background-position: -200% 0;
        opacity: 1;
    }
}

.skeleton-card {
    background: #1a1a1a;
    border: 2px solid #333333;
    border-radius: 8px;
    padding: 15px 15px 15px 0px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    height: 120px;
}

.skeleton-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 6px;
    background: #0a0a0a;
}

.skeleton-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-line {
    height: 18px;
    border-radius: 4px;
}

.skeleton-line:first-child {
    width: 60%;
}

.skeleton-line:last-child {
    width: 80%;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.product-image-container img {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.compare-mode-toggle {
    background: #1a1a1a;
    border: 2px solid #333333;
    border-radius: 8px;
    color: #E0E0E0;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    will-change: background-color, border-color;
    height: 44px;
    box-sizing: border-box;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 130px;
}

.compare-mode-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.compare-mode-toggle:hover {
    border-color: #FFFFFF;
    background: #262626;
    color: #FFFFFF;
}

.compare-mode-toggle:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.compare-mode-toggle.active {
    background: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
}

.compare-icon {
    font-size: 18px;
}

.recent-history-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.recent-history-toggle {
    background: #1a1a1a;
    border: 2px solid #333333;
    border-radius: 8px;
    color: #E0E0E0;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    will-change: background-color, border-color;
    height: 44px;
    box-sizing: border-box;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 130px;
}

.recent-history-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.recent-history-toggle:hover {
    border-color: #FFFFFF;
    background: #262626;
    color: #FFFFFF;
}

.recent-history-toggle:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.recent-history-toggle.active {
    background: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
}

.recent-icon {
    width: 16px;
    height: 14px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

.recent-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    box-shadow: 
        0 5px 0 currentColor,
        0 10px 0 currentColor;
}

.recent-icon::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 70%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.recent-history-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1a1a1a;
    border: 2px solid #333333;
    border-radius: 8px;
    width: 320px;
    max-height: 500px;
    z-index: 100;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
    -webkit-overflow-scrolling: touch;
}

.recent-history-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    will-change: opacity;
}

.recent-history-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.recent-history-header {
    padding: 15px 20px;
    border-bottom: 1px solid #333333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-history-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
}

.recent-history-clear {
    background: transparent;
    border: none;
    color: #999999;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.recent-history-clear:hover {
    color: #FFFFFF;
    background: #262626;
}

.recent-history-content {
    padding: 10px;
    overflow-y: auto;
    max-height: 420px;
}

.recent-history-content::-webkit-scrollbar {
    width: 6px;
}

.recent-history-content::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.recent-history-content::-webkit-scrollbar-thumb {
    background: #666666;
    border-radius: 3px;
}

.recent-history-content::-webkit-scrollbar-thumb:hover {
    background: #888888;
}

.recent-history-empty {
    color: #666666;
    font-size: 14px;
    text-align: center;
    padding: 40px 20px;
    margin: 0;
}

.recent-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    border: 1px solid transparent;
    background: #0f0f0f;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    will-change: background-color, transform;
}

.recent-history-item:hover {
    background: #262626;
    border-color: #444444;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.recent-history-item:active {
    background: #333333;
    transform: translateY(0);
}

.recent-history-item-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background: #0a0a0a;
    border: 1px solid #333333;
}

.recent-history-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-history-item-info {
    flex: 1;
    min-width: 0;
}

.recent-history-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-history-item-summary {
    font-size: 12px;
    color: #999999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-panel {
    background: #1a1a1a;
    border-top: 2px solid #333333;
    padding: 15px 20px;
    max-height: 200px;
    overflow-y: auto;
}

.compare-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.compare-panel-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
}

.compare-count {
    font-size: 14px;
    color: #E0E0E0;
    font-weight: 500;
}

.compare-panel-content {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.compare-empty {
    color: #666666;
    font-size: 14px;
    margin: 0;
    width: 100%;
    text-align: center;
    padding: 20px 0;
}

.compare-item {
    background: #0a0a0a;
    border: 2px solid #333333;
    border-radius: 6px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
    position: relative;
}

.compare-item-name {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.compare-item-remove {
    background: transparent;
    border: none;
    color: #999999;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.compare-item-remove:hover {
    color: #FFFFFF;
}

.compare-panel-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333333;
}

.compare-button,
.clear-compare-button {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid;
}

.compare-button {
    background: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
    flex: 1;
}

.compare-button:hover {
    background: #CCCCCC;
    border-color: #CCCCCC;
}

.clear-compare-button {
    background: transparent;
    color: #E0E0E0;
    border-color: #666666;
}

.clear-compare-button:hover {
    background: #262626;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.product-card-compare {
    position: absolute;
    top: 8px;
    right: 8px;
    left: auto;
    bottom: auto;
    width: 16px;
    height: 16px;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease;
    margin: 0;
    padding: 0;
    pointer-events: auto;
}

.compare-mode .product-card-compare {
    opacity: 1;
}

.product-card-compare-input {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: 2px solid #666666;
    border-radius: 3px;
    background: #1a1a1a;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    bottom: auto;
    flex-shrink: 0;
    accent-color: #FFFFFF;
    box-sizing: border-box;
}

.product-card .product-card-compare-input:checked {
    background: #FFFFFF;
    border-color: #FFFFFF;
    accent-color: #FFFFFF;
}

.product-card-compare-input:checked::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 0px;
    width: 5px;
    height: 9px;
    border: solid #000000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.product-card-compare-input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.product-card.compare-selected {
    border-color: #FFFFFF;
    background: #262626;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.compare-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.compare-modal-content {
    position: relative;
    background: #1a1a1a;
    border: 2px solid #333333;
    border-radius: 12px;
    width: 90%;
    max-width: 1400px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 1001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.compare-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #333333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compare-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.compare-modal-close {
    background: transparent;
    border: none;
    color: #E0E0E0;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    line-height: 1;
}

.compare-modal-close:hover {
    color: #FFFFFF;
}

.compare-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.compare-charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.compare-chart-container {
    background: #0f0f0f;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.compare-chart-container h3 {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: center;
}

.compare-chart-container canvas {
    max-height: 250px;
    flex: 1;
}

.compare-table-section {
    margin-bottom: 10px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #333333;
}

.compare-table th {
    background: #0a0a0a;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 16px;
}

.compare-table thead th {
    background: #0a0a0a;
}

.compare-table td {
    color: #E0E0E0;
    font-size: 14px;
}

.compare-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.compare-table .compare-spec-name {
    font-weight: 600;
    color: #A0826D;
    width: 200px;
}

.compare-table .compare-product-name {
    font-weight: 600;
    color: #FFFFFF;
    text-align: center;
    background: #0a0a0a;
}

.compare-table tbody td.compare-product-col-1,
.compare-table thead th.compare-product-col-1 {
    background: #0f0f0f;
}

.compare-table tbody td.compare-product-col-2,
.compare-table thead th.compare-product-col-2 {
    background: #131313;
}

.compare-table tbody tr:hover td.compare-product-col-1 {
    background: rgba(15, 15, 15, 0.9);
}

.compare-table tbody tr:hover td.compare-product-col-2 {
    background: rgba(19, 19, 19, 0.9);
}

.compare-modal .compare-table td.compare-value-highlight {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.03) 100%);
    color: #FFFFFF;
    font-weight: 500;
    position: relative;
    padding-left: 12px;
    transition: all 0.2s ease;
}

.compare-modal .compare-table td.compare-value-highlight.compare-value-highlight-1 {
    border-left: 3px solid #FF4D4D;
    box-shadow: -2px 0 8px rgba(255, 77, 77, 0.2);
}

.compare-modal .compare-table td.compare-value-highlight.compare-value-highlight-2 {
    border-left: 3px solid #4D9EFF;
    box-shadow: -2px 0 8px rgba(77, 158, 255, 0.2);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1920px;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2002;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #FFFFFF;
    width: 50px;
    height: 80px;
    border: none;
    border-radius: 0;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2002;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    color: #FFFFFF;
    transform: translateY(-50%);
}

.lightbox-nav:active {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    /* PC 모드에서 화면 끝이 아니라 콘텐츠 쪽으로 당김 (UX 개선) */
    left: clamp(24px, 5vw, 140px);
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.lightbox-next {
    /* PC 모드에서 화면 끝이 아니라 콘텐츠 쪽으로 당김 (UX 개선) */
    right: clamp(24px, 5vw, 140px);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 2002;
}

@media (max-width: 768px) {
    .lightbox-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .lightbox-image {
        max-height: 85vh;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 60px;
        font-size: 24px;
    }
    
    .lightbox-prev {
        left: 0;
    }
    
    .lightbox-next {
        right: 0;
    }
    
    .lightbox-counter {
        bottom: 20px;
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .compare-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .compare-modal-header {
        padding: 10px 15px;
    }
    
    .compare-modal-header h2 {
        font-size: 18px;
    }
    
    .compare-modal-body {
        padding: 15px;
        gap: 20px;
    }
    
    .compare-charts-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .compare-chart-container {
        padding: 15px;
    }
    
    .compare-chart-container h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .compare-chart-container canvas {
        max-height: 200px;
    }
    
    .compare-table {
        font-size: 12px;
    }
    
    .compare-table th,
    .compare-table td {
        padding: 10px 8px;
    }

    .compare-table .compare-spec-name {
        width: 120px;
        min-width: 120px;
        max-width: 120px;
        font-size: 11px;
        padding-right: 8px;
    }
    
    .compare-table th:not(:first-child),
    .compare-table td:not(:first-child) {
        width: auto;
        min-width: 0;
    }

    .compare-panel {
        padding: 8px 12px;
        max-height: 150px;
    }
    
    .compare-panel-header {
        margin-bottom: 8px;
    }
    
    .compare-panel-header h3 {
        font-size: 15px;
    }
    
    .compare-count {
        font-size: 11px;
    }
    
    .compare-panel-content {
        gap: 6px;
    }
    
    .compare-panel-actions {
        margin-top: 6px;
        padding-top: 6px;
        gap: 6px;
    }
    
    .compare-empty {
        padding: 10px 0;
        font-size: 12px;
    }
    
    .compare-item {
        padding: 5px 8px;
        min-width: 100px;
        gap: 5px;
    }
    
    .compare-item-name {
        font-size: 11px;
    }
    
    .compare-item-remove {
        width: 16px;
        height: 16px;
        font-size: 14px;
    }
    
    .compare-button,
    .clear-compare-button {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .header-actions {
        width: 100%;
        flex-direction: column;
        gap: 6px;
    }
    
    .recent-history-dropdown {
        width: 100%;
        display: flex;
        align-items: center;
        height: 44px;
    }
    
    .compare-mode-toggle,
    .recent-history-toggle {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        justify-content: center;
        padding: 8px 20px;
        height: 36px;
        min-height: 36px;
        max-height: 36px;
        box-sizing: border-box;
        flex: 0 0 auto;
    }
    
    .recent-history-menu {
        width: 100%;
        right: 0;
        left: 0;
        max-height: calc(100vh - 250px);
        top: calc(100% + 8px);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        -webkit-overflow-scrolling: touch;
    }
    
    .recent-history-header {
        flex-shrink: 0;
    }
    
    .recent-history-content {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;

        max-height: 200px;
        min-height: 0;
        -webkit-overflow-scrolling: touch;
    }
}

.search-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1a1a1a;
    border: 2px solid #333333;
    border-radius: 8px;
    width: 400px;
    max-height: 600px;
    z-index: 1001; 
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
    overflow: hidden; 
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000; 
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    will-change: opacity;
}

.search-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.search-header {
    padding: 15px 20px;
    border-bottom: 1px solid #333333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
}

.search-close {
    background: transparent;
    border: none;
    color: #E0E0E0;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    line-height: 1;
}

.search-close:hover {
    color: #FFFFFF;
}

.search-content {
    padding: 15px 20px;
    border-bottom: 1px solid #333333;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    background: #0a0a0a;
    border: 2px solid #333333;
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: #FFFFFF;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.search-input::placeholder {
    color: #666666;
}

.search-results-count {
    font-size: 12px;
    color: #E0E0E0;
    text-align: right;
    padding: 5px 0;
}

.search-results {
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    max-height: 480px; 
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.search-results::-webkit-scrollbar-thumb {
    background: #666666;
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #888888;
}

.search-empty {
    color: #666666;
    font-size: 14px;
    text-align: center;
    padding: 40px 20px;
    margin: 0;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    border: 1px solid transparent;
    background: #0f0f0f;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    will-change: background-color, transform;
}

.search-item:hover {
    background: #262626;
    border-color: #444444;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.search-item:active {
    background: #333333;
    transform: translateY(0);
}

.search-item-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background: #0a0a0a;
    border: 1px solid #333333;
}

.search-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-item-info {
    flex: 1;
    min-width: 0;
}

.search-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-summary {
    font-size: 12px;
    color: #999999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .search-dropdown {
        position: absolute; 
        top: 12px;
        right: 12px;
        left: auto;
        z-index: 1000;
        
    }
    
    .search-menu {
        width: calc(100vw - 24px);
        right: 0;
        left: auto;
        max-height: calc(100vh - 100px); 
        top: calc(100% + 8px);
    }
    
    .search-results {
        max-height: 300px;
    }
    
    .search-toggle {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3),
                    0 1px 2px rgba(0, 0, 0, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
    
    .search-toggle:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4),
                    0 2px 4px rgba(0, 0, 0, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .search-icon {
        width: 16px;
        height: 16px;
    }
}

.category-tab {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-tab.active {
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.compare-modal {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.compare-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.compare-modal-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.compare-modal.show .compare-modal-overlay {
    opacity: 1;
}

.compare-modal-content {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.compare-modal.show .compare-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.lightbox {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show .lightbox-overlay {
    opacity: 1;
}

.lightbox-content {
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.lightbox.show .lightbox-content {
    transform: scale(1);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .category-tab,
    .compare-modal,
    .compare-modal-overlay,
    .compare-modal-content,
    .lightbox,
    .lightbox-overlay,
    .lightbox-content,
    .product-card {
        transition: none !important;
        animation: none !important;
    }
    
    .compare-modal.show,
    .lightbox.show {
        opacity: 1;
        transform: none !important;
    }
}

.hidden {
    display: none !important;
}

.visible-block {
    display: block !important;
}

.visible-flex {
    display: flex !important;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #FFFFFF;
    padding: 16px 20px;
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6),
                0 4px 8px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    transform: translateX(400px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(400px);
    opacity: 0;
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #FFFFFF;
}

.toast-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #E0E0E0;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    line-height: 1;
}

.toast-close:hover {
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
        gap: 8px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
        padding: 12px 16px;
    }
    
    .toast-message {
        font-size: 13px;
    }
    
    .toast-icon {
        width: 20px;
        height: 20px;
        font-size: 18px;
    }
    
    .toast-close {
        width: 20px;
        height: 20px;
        font-size: 18px;
    }
}

