/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-light);
}

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

/* Navigation */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

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

.nav-menu .btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.nav-menu .btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Categories */
.categories {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.category-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Product Grid */
.featured-listings,
.listings-page {
    padding: 60px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: var(--bg-light);
}

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

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.product-info {
    padding: 1.5rem;
}

.product-type-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.product-brand {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-condition {
    color: var(--success-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-location {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.no-products,
.no-products-full {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background-color: var(--bg-white);
    border-radius: 12px;
}

.no-products a,
.no-products-full a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* How It Works */
.how-it-works {
    background-color: var(--bg-white);
    padding: 60px 0;
}

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

.step-card {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
}

/* Filters */
.filters {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

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

.filter-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.filter-group input,
.filter-group select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

/* Forms */
.sell-page {
    padding: 60px 0;
}

.page-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.sell-form {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Product Detail */
.product-detail {
    padding: 60px 0;
}

.breadcrumb {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.product-detail-image {
    width: 100%;
}

.product-detail-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.placeholder-image-large {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
}

.product-detail-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.condition-badge {
    display: inline-block;
    background-color: #d1fae5;
    color: #065f46;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.product-price-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-location-large {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.product-description,
.product-specifications {
    margin-bottom: 1.5rem;
}

.product-description h3,
.product-specifications h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.seller-info {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.seller-info h3 {
    margin-bottom: 1rem;
}

.seller-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.seller-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.seller-item a:hover {
    text-decoration: underline;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.product-posted {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.similar-products {
    margin-top: 3rem;
}

.similar-products h2 {
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Order Pages */
.order-buy-section {
    margin-bottom: 1.5rem;
}

.btn-order {
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
}

.order-page,
.order-success-page,
.my-orders-page,
.order-details-page {
    padding: 60px 0;
}

.order-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.order-product-summary {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.order-product-summary h2,
.order-form-section h2 {
    margin-bottom: 1.5rem;
}

.summary-card {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.summary-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.summary-placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.summary-details h3 {
    margin-bottom: 0.5rem;
}

.summary-brand,
.summary-condition {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.summary-price-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.summary-price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-price-row.total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    font-size: 1.2rem;
}

.summary-price-row .price {
    color: var(--primary-color);
    font-weight: 700;
}

.seller-contact-info {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.seller-contact-info h3 {
    margin-bottom: 1rem;
}

.order-form-section {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.order-form .form-section h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.order-terms {
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Order Success */
.success-card {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.success-card h1 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

.success-message {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.order-details-card {
    text-align: left;
    margin: 2rem 0;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 12px;
}

.order-details-card h2 {
    margin-bottom: 1.5rem;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-confirmed {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-in_transit {
    background-color: #e0e7ff;
    color: #3730a3;
}

.status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

.order-product-info h3,
.delivery-address h3,
.order-notes-display h3,
.seller-will-contact h3 {
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.product-summary-horizontal {
    display: flex;
    gap: 1.5rem;
    align-items: start;
    padding: 1rem;
    background-color: var(--bg-white);
    border-radius: 8px;
}

.product-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.product-thumb-placeholder {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
}

.product-info-text h4 {
    margin-bottom: 0.5rem;
}

.product-price-success {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3rem;
    margin-top: 0.5rem;
}

.next-steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.step-item {
    display: flex;
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    background-color: var(--bg-white);
    border-radius: 8px;
}

.step-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.seller-contact-box {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* My Orders */
.order-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    font-weight: 600;
    transition: all 0.3s;
}

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

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.order-id-date h3 {
    margin-bottom: 0.5rem;
}

.order-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.order-body {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.order-product {
    display: flex;
    gap: 1rem;
}

.order-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.order-product-placeholder {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
}

.order-product-details h4 {
    margin-bottom: 0.5rem;
}

.order-brand {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.order-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.order-buyer-info h4,
.order-seller-info h4 {
    margin-bottom: 0.75rem;
}

.order-buyer-info p,
.order-seller-info p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.order-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.no-orders {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--bg-white);
    border-radius: 12px;
}

.no-orders p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Order Details Page */
.order-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.order-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-section {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.detail-section.full-width {
    grid-column: 1 / -1;
}

.detail-section h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.product-detail-card {
    display: flex;
    gap: 1.5rem;
}

.detail-product-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.detail-product-placeholder {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
}

.detail-product-info h3 {
    margin-bottom: 1rem;
}

.detail-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    margin: 1rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.price-highlight {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.buyer-details p,
.address-box p,
.notes-box p {
    margin-bottom: 0.5rem;
}

.address-box,
.notes-box {
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
}

.status-update-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.status-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.status-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.status-options label:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-light);
}

.status-options input[type="radio"] {
    cursor: pointer;
}

.status-options input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.detail-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* PC Builder Pages */
.pc-builder-page,
.save-build-page,
.build-saved-page,
.my-builds-page,
.view-build-page {
    padding: 60px 0;
}

.builder-header,
.builds-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.builder-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: -1rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.section-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0 2rem 0;
    text-align: center;
}

.section-title-builder {
    color: white;
    font-size: 1.8rem;
    margin: 0;
}

.section-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.builder-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
}

/* Build Summary Sidebar */
.build-summary {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.build-summary h2 {
    margin-bottom: 1.5rem;
}

.summary-components {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-item {
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.summary-item.selected {
    border-color: var(--success-color);
    background-color: #f0fdf4;
}

.summary-item.empty {
    border-style: dashed;
}

.summary-item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.component-icon {
    font-size: 1.5rem;
}

.component-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.summary-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.component-name {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.component-price {
    color: var(--primary-color);
    font-weight: 700;
}

.btn-remove {
    color: var(--error-color);
    font-size: 0.75rem;
    text-decoration: none;
    cursor: pointer;
}

.btn-remove:hover {
    text-decoration: underline;
}

.summary-item-empty {
    text-align: center;
}

.build-total {
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.total-row.price-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

.total-price {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.build-actions {
    margin-top: 1rem;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Component Selection */
.component-selection h2 {
    margin-bottom: 2rem;
}

.component-category {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

.component-category h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

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

.component-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: all 0.3s;
}

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

.component-card.selected {
    border-color: var(--success-color);
    background-color: #f0fdf4;
}

.component-card-header h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.component-brand {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.component-card-body {
    margin: 1rem 0;
}

.component-specs {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.component-compat {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background-color: var(--bg-light);
    padding: 0.5rem;
    border-radius: 6px;
}

.component-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.component-card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
    cursor: default;
}

.btn-success:hover {
    transform: none;
}

.no-components {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

/* Save Build Page */
.save-build-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

.build-preview,
.save-form-section {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.build-preview h2,
.save-form-section h2 {
    margin-bottom: 1.5rem;
}

.preview-components {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.preview-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--bg-light);
    border-radius: 6px;
}

.preview-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.preview-value {
    font-size: 0.9rem;
}

.preview-price {
    font-weight: 700;
    color: var(--primary-color);
}

.preview-total {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    font-size: 1.2rem;
}

/* Build Saved Success */
.build-saved-details {
    text-align: left;
    margin: 2rem 0;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 12px;
}

.build-saved-details h2,
.build-saved-details h3 {
    margin-bottom: 1rem;
}

.saved-build-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: var(--bg-white);
    border-radius: 6px;
}

.price-large {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.saved-components-list {
    margin-bottom: 2rem;
}

.saved-component-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: var(--bg-white);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    align-items: center;
}

.comp-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.comp-name {
    font-size: 0.9rem;
}

.comp-price {
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
}

.saved-notes {
    background-color: var(--bg-white);
    padding: 1rem;
    border-radius: 6px;
}

/* My Builds Page */
.builds-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.build-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.build-card:hover {
    box-shadow: var(--shadow-lg);
}

.build-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.build-title-section h3 {
    margin-bottom: 0.5rem;
}

.build-purpose-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.build-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.build-card-body {
    margin-bottom: 1.5rem;
}

.build-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stat-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.stat-value.price {
    color: var(--primary-color);
}

.build-components-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.preview-component {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: var(--bg-light);
    border-radius: 6px;
    font-size: 0.85rem;
}

.preview-icon {
    font-size: 1.25rem;
}

.preview-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.build-notes-preview {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.75rem;
    background-color: var(--bg-light);
    border-radius: 6px;
}

.build-card-footer {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.no-builds {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--bg-white);
    border-radius: 12px;
}

.no-builds p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* View Build Page */
.build-details-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 2rem;
}

.build-purpose-badge-large {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.build-info-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-box {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-box.price-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.info-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

.info-value {
    font-size: 1.3rem;
    font-weight: 700;
}

.components-detail-list {
    margin-bottom: 2rem;
}

.components-detail-list h2 {
    margin-bottom: 1.5rem;
}

.component-detail-card {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.component-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.component-icon-large {
    font-size: 2.5rem;
}

.component-title {
    flex: 1;
}

.component-title h3 {
    margin-bottom: 0.25rem;
}

.component-brand-large {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.component-price-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.component-detail-body h4 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.specs-text,
.compat-text {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.build-notes-section,
.contact-info-section {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.build-notes-section h2,
.contact-info-section h2 {
    margin-bottom: 1rem;
}

.notes-content {
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: 6px;
}

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

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.build-actions-bottom {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Full Setup Builder Styles */
.subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-top: -1rem;
    margin-bottom: 1rem;
}

.summary-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.summary-section:last-child {
    border-bottom: none;
}

.summary-section-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.summary-item-compact {
    display: grid;
    grid-template-columns: 30px 1fr auto 30px;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    background-color: var(--bg-light);
}

.summary-item-compact.selected {
    background-color: #f0fdf4;
    border-left: 3px solid var(--success-color);
}

.summary-item-compact.empty {
    background-color: transparent;
    border: 1px dashed var(--border-color);
}

.compact-icon {
    font-size: 1.25rem;
}

.compact-label {
    font-size: 0.85rem;
    font-weight: 600;
}

.compact-price {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

.compact-remove {
    color: var(--error-color);
    font-size: 1.5rem;
    text-decoration: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.compact-remove:hover {
    background-color: #fee2e2;
}

.compact-add {
    color: var(--success-color);
    font-size: 1.5rem;
    text-decoration: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.compact-add:hover {
    background-color: #d1fae5;
}

.section-total {
    text-align: right;
    padding-top: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.total-components {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.component-section-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 3rem 0 2rem 0;
}

.section-header-title {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    text-align: center;
}

/* Tablet Styles */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

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

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

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .contact-buttons {
        flex-direction: column;
    }

    .contact-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .order-container {
        grid-template-columns: 1fr;
    }

    .order-product-summary {
        position: static;
    }

    .order-body {
        grid-template-columns: 1fr;
    }

    .order-details-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-card {
        flex-direction: column;
    }

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

    .builder-container {
        grid-template-columns: 1fr;
    }

    .build-summary {
        position: static;
    }

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

    .save-build-container {
        grid-template-columns: 1fr;
    }

    .build-components-preview {
        grid-template-columns: 1fr;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        gap: 0.5rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 60px 0;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

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

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

    .product-price {
        font-size: 1.25rem;
    }

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

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

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sell-form {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .product-detail-info h1 {
        font-size: 1.5rem;
    }

    .product-price-large {
        font-size: 2rem;
    }

    .placeholder-image-large {
        font-size: 5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Full Setup Builder - Compact Layout */
.subtitle {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.summary-section {
    margin-bottom: 2rem;
}

.summary-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.summary-item-compact {
    display: grid;
    grid-template-columns: 30px 1fr 80px 30px;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.summary-item-compact.selected {
    background-color: #f0fdf4;
    border-color: var(--success-color);
}

.summary-item-compact.empty {
    border-style: dashed;
    opacity: 0.6;
}

.compact-icon {
    font-size: 1.2rem;
}

.compact-label {
    font-size: 0.85rem;
    font-weight: 600;
}

.compact-price {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 700;
    text-align: right;
}

.compact-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--error-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    transition: all 0.3s;
}

.compact-remove:hover {
    background-color: #dc2626;
    transform: scale(1.1);
}

.compact-add {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    transition: all 0.3s;
    grid-column: 4;
}

.compact-add:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.section-total {
    text-align: right;
    padding: 0.75rem;
    background-color: var(--bg-light);
    border-radius: 6px;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.section-total strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.total-components {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.component-section-header {
    margin: 3rem 0 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    text-align: center;
}

.section-header-title {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}
