/* ============================================
   Products Page - Modern Solid Color Styles
   ============================================ */

/* ======== Header Dropdown Menu - 호버 효과 제거 ======== */
nav a[href*="/user/"]:hover,
nav a[href*="/admin/"]:hover,
nav a[href="/support"]:hover,
nav button:hover {
    background-color: inherit !important;
    color: inherit !important;
}

/* ======== Hero Section ======== */
.products-hero {
    background-color: #3b82f6;
    color: white;
    padding: 4rem 0;
}

.products-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.products-hero p {
    font-size: 1.25rem;
    color: #bfdbfe;
    margin-bottom: 2rem;
    max-width: 42rem;
}

@media (max-width: 768px) {
    .products-hero h1 {
        font-size: 2rem;
    }
    .products-hero p {
        font-size: 1rem;
    }
}

/* ======== Stats Grid ======== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 48rem;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.25);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #bfdbfe;
    font-weight: 500;
}

/* ======== Filter Section ======== */
.filter-section {
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
    background-color: white;
}

.filter-form {
    display: grid;
    gap: 1rem;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: white;
    color: #111827;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-select {
    cursor: pointer;
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #2563eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background-color: #d1d5db;
}

/* ======== Featured Products Section ======== */
.featured-section {
    padding: 4rem 0;
    border-bottom: 1px solid #e5e7eb;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* ======== Product Card ======== */
.product-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
}

.product-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.product-card.featured {
    border: 2px solid #fbbf24;
}

.product-image-wrapper {
    position: relative;
    height: 14rem;
    overflow: hidden;
    background-color: #f3f4f6;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: background 0.3s ease;
}

.product-card:hover .product-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.overlay-btn {
    opacity: 0;
    transform: scale(0.75);
    transition: all 0.3s ease;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

.product-card:hover .overlay-btn {
    opacity: 1;
    transform: scale(1);
}

.overlay-btn.view {
    background: white;
    color: #3b82f6;
}

.overlay-btn.view:hover {
    background: #3b82f6;
    color: white;
}

.overlay-btn.wishlist {
    background: white;
    color: #ef4444;
}

.overlay-btn.wishlist:hover {
    background: #ef4444;
    color: white;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: #fbbf24;
    color: #78350f;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.badge.popular {
    background-color: #3b82f6;
    color: white;
}

.product-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.product-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.product-card:hover .product-title {
    color: #3b82f6;
}

.product-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.75rem;
}

.rating-stars {
    display: flex;
    gap: 0.125rem;
}

.rating-stars i {
    color: #fbbf24 !important;
}

.rating-count {
    font-weight: 600;
    color: #374151;
    margin-left: 0.25rem;
}

.product-version {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
}

.product-pricing {
    margin-bottom: 1rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.price-label {
    color: #6b7280;
    font-weight: 600;
}

.price-value {
    font-weight: 700;
    font-size: 1.125rem;
    color: #3b82f6;
}

.discount-badge {
    display: inline-block;
    background-color: #fee2e2;
    color: #991b1b;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-detail {
    display: block;
    width: 100%;
    background-color: #3b82f6;
    color: white;
    padding: 0.625rem;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
}

.btn-detail:hover {
    background-color: #2563eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-trial {
    display: block;
    width: 100%;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    padding: 0.625rem;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    background-color: transparent;
    cursor: pointer;
}

.btn-trial:hover {
    background-color: #eff6ff;
}

/* ======== Products Section ======== */
.products-section {
    padding: 4rem 0;
    background-color: white;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.results-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
}

.results-count {
    color: #3b82f6;
    font-weight: 700;
}

.filter-applied {
    font-size: 1.125rem;
    color: #6b7280;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.toggle-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #e5e7eb;
    color: #374151;
}

.toggle-btn.active {
    background-color: #3b82f6;
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* ======== Empty State ======== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.empty-text {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* ======== Pagination ======== */
.pagination-nav {
    margin-top: 3rem;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    background-color: white;
    color: #374151;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    min-width: 2.5rem;
    text-align: center;
}

.pagination-btn:hover {
    background-color: #f3f4f6;
}

.pagination-btn.active {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ======== List View ======== */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-list-item {
    display: grid;
    grid-template-columns: 150px 1fr 200px;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.product-list-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.product-list-image {
    width: 150px;
    height: 150px;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

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

.product-list-content {
    flex: 1;
    min-width: 0;
}

.product-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.product-list-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    word-break: break-word;
}

.product-list-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.product-list-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    justify-content: space-between;
}

.price-info {
    text-align: right;
}

.price-info .price-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #3b82f6;
}

.price-info .price-type {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
}

.product-list-buttons {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    justify-content: flex-end;
}

.btn-icon-list {
    width: 40px;
    height: 40px;
    border: 2px solid #e5e7eb;
    background-color: white;
    color: #374151;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-icon-list:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background-color: #eff6ff;
}

.btn-detail-list {
    padding: 0.625rem 1.25rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-detail-list:hover {
    background-color: #2563eb;
}

/* ======== Responsive Design ======== */
@media (max-width: 768px) {
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .product-list-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-list-image {
        width: 100%;
        height: 200px;
    }

    .product-list-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .price-info {
        text-align: left;
    }

    .product-list-buttons {
        justify-content: flex-start;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .results-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .filter-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        flex: 1;
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .view-toggle {
        width: 100%;
    }

    .toggle-btn {
        flex: 1;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .products-hero h1 {
        font-size: 1.5rem;
    }

    .products-hero p {
        font-size: 0.875rem;
    }
}