/* Dark Navy Premium Theme - Judestone USA */

:root {
    /* Color Palette */
    --navy-deep: #0D1B2A;
    --navy-primary: #4A5568;
    --navy-dark: #1E3A5F;
    --white: #FFFFFF;
    --accent: #C0C0C0;
    --accent-hover: #E0E0E0;
    --gray-light: #E5E7EB;
    --gray-medium: #9CA3AF;

    /* Responsive Units */
    --section-max-width: 1200px;
    --container-padding: clamp(1rem, 3vw, 2rem);

    /* Typography */
    --font-size-base: clamp(14px, 1vw, 16px);
    --font-size-h1: clamp(2rem, 4vw, 3rem);
    --font-size-h2: clamp(1.5rem, 3vw, 2.5rem);
    --font-size-h3: clamp(1.2rem, 2.5vw, 1.8rem);
    --font-size-body: clamp(1rem, 1.5vw, 1.1rem);

    /* Spacing */
    --spacing-xs: clamp(0.5rem, 1vw, 0.75rem);
    --spacing-sm: clamp(1rem, 2vw, 1.5rem);
    --spacing-md: clamp(1.5rem, 3vw, 2rem);
    --spacing-lg: clamp(2rem, 4vw, 3rem);
    --spacing-xl: clamp(3rem, 6vw, 4rem);

    /* Grid */
    --grid-gap: clamp(1rem, 2vw, 2rem);

    /* Breakpoints */
    --mobile: 480px;
    --tablet: 768px;
    --desktop: 1024px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--navy-deep);
    color: var(--white);
    font-size: var(--font-size-base);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
.h1 {
    font-size: var(--font-size-h1);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h2,
.h2 {
    font-size: var(--font-size-h2);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h3,
.h3 {
    font-size: var(--font-size-h3);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--spacing-xs);
}

p {
    font-size: var(--font-size-body);
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent);
}

/* Container */
.container {
    max-width: var(--section-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* Header */
header {
    background-color: var(--navy-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.logo {
    display: flex;
    align-items: center;
}

/* Logo size: applies when img is inside .logo (header) or when img has .logo directly (index) */
img.logo,
.logo img {
    height: 50px;
    width: auto;
    max-width: 200px;
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

nav a {
    color: var(--white);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

nav a:hover {
    color: var(--accent);
    background-color: rgba(255, 255, 255, 0.05);
}

nav a.active {
    color: var(--accent);
}

/* Utility Icons */
.header-utils {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.icon-btn {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: var(--spacing-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.icon-btn:hover {
    color: var(--accent);
}

.icon-btn svg {
    width: 24px;
    height: 24px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: var(--font-size-body);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--navy-deep);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: var(--navy-dark);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: var(--navy-primary);
    border-color: var(--accent);
}

/* Hero Section */
.hero {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-dark) 100%);
}

.hero h1 {
    margin-bottom: var(--spacing-md);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    color: var(--gray-light);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--grid-gap);
    padding: var(--spacing-lg) 0;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Product Card */
.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

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

.product-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: var(--white);
}

.product-card-content {
    padding: var(--spacing-md);
    color: var(--navy-deep);
}

.product-card-title {
    font-size: var(--font-size-h3);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--navy-deep);
}

.product-card-brand {
    color: var(--navy-primary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.product-card-description {
    color: var(--navy-primary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
}

.product-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.tag {
    background-color: var(--gray-light);
    color: var(--navy-deep);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Filter Bar */
.filter-bar {
    background-color: var(--navy-dark);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 73px;
    z-index: 999;
}

.filter-header {
    padding: var(--spacing-xs) 0;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    align-items: center;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background-color: var(--accent);
    color: var(--navy-deep);
    border-color: var(--accent);
}

.sort-select {
    background-color: var(--navy-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-left: auto;
}

.sort-select:hover {
    border-color: var(--accent);
}

/* Page Title */
.page-title {
    padding: var(--spacing-lg) 0 var(--spacing-md);
    text-align: center;
}

.page-title h1 {
    color: var(--accent);
    margin-bottom: var(--spacing-xs);
}

.page-title p {
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: var(--navy-dark);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-column h3 {
    color: var(--accent);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

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

.footer-column ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-column a {
    color: var(--gray-light);
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* Email Signup */
form.email-signup,
.email-signup {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.email-signup input {
    flex: 1;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background-color: var(--navy-deep);
    color: var(--white);
    font-size: 0.9rem;
}

.email-signup input::placeholder {
    color: var(--gray-medium);
}

.email-signup button {
    padding: var(--spacing-xs) var(--spacing-md);
}

/* Load More Button */
.load-more {
    text-align: center;
    padding: var(--spacing-lg) 0;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--spacing-xs);
}

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding-top: var(--spacing-sm);
    }

    nav.active {
        display: flex;
    }

    .filter-bar {
        top: auto;
        position: relative;
    }

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

/* Saved Designs Header Link */
.saved-designs-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-light);
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: relative;
}

.saved-designs-link:hover {
    color: #e74c3c;
}

.saved-designs-link svg {
    transition: all 0.2s ease;
}

.saved-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Product Card Image Wrapper */
.product-card-image-wrapper {
    position: relative;
    overflow: hidden;
}

/* Heart Save Button */
.save-heart-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.save-heart-btn svg {
    width: 20px;
    height: 20px;
    color: #666;
    transition: all 0.2s ease;
}

.save-heart-btn:hover {
    background: white;
    transform: scale(1.1);
}

.save-heart-btn:hover svg {
    color: #e74c3c;
}

.save-heart-btn.saved svg {
    color: #e74c3c;
}

/* Saved Designs Modal */
.saved-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.saved-modal-content {
    background: var(--navy-dark);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.saved-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.saved-modal-header h2 {
    color: var(--white);
    margin: 0;
    font-size: 1.25rem;
}

.saved-modal-close {
    background: none;
    border: none;
    color: var(--gray-light);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.saved-modal-close:hover {
    color: white;
}

.saved-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.saved-modal-empty {
    color: var(--gray-light);
    text-align: center;
    padding: 30px 0;
}

.saved-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
}

.saved-compare-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.saved-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
}

.saved-item:last-child {
    margin-bottom: 0;
}

.saved-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.saved-item-info {
    flex: 1;
}

.saved-item-info h4 {
    color: var(--white);
    margin: 0 0 4px 0;
    font-size: 0.95rem;
}

.saved-item-info p {
    color: var(--gray-light);
    margin: 0;
    font-size: 0.85rem;
}

.saved-item-remove {
    background: none;
    border: none;
    color: var(--gray-medium);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.saved-item-remove:hover {
    color: #e74c3c;
}

/* Loading State */
.loading {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--gray-light);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--gray-light);
}

.empty-state h3 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

/* Product Detail Modal */
.product-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.product-detail-content {
    background: var(--navy-dark);
    border-radius: 16px;
    width: 95%;
    max-width: 1200px;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

@media (min-width: 768px) {
    .product-detail-content {
        flex-direction: row;
        width: 85%;
        height: 80vh;
        max-height: 800px;
        overflow: hidden;
    }
}

.detail-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: background 0.2s;
}

.detail-close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.detail-image-container {
    flex: 1;
    min-height: 300px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (min-width: 768px) {
    .detail-image-container {
        min-height: auto;
        flex: 1.2;
    }
}

.detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 400px;
}

@media (min-width: 768px) {
    .detail-image {
        max-height: none;
        object-fit: contain;
    }
}

.detail-info {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

@media (min-width: 768px) {
    .detail-info {
        padding: 50px;
    }
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
}

.detail-title {
    color: var(--white);
    font-size: 2rem;
    margin: 0;
    flex: 1;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .detail-title {
        font-size: 2.25rem;
    }
}

.detail-save-btn {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--gray-light);
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-top: 5px;
}

.detail-save-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.detail-save-btn.saved {
    border-color: #e74c3c;
    color: #e74c3c;
}

.detail-brand {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.detail-meta-item {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.detail-description {
    color: var(--gray-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-medium);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sink Specifications Styles */
.sink-specs {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-row:first-child {
    padding-top: 0;
}

.spec-label {
    color: var(--gray-medium);
    font-size: 0.9rem;
    font-weight: 500;
    flex-shrink: 0;
    margin-right: 15px;
}

.spec-value {
    color: var(--white);
    font-size: 0.95rem;
    text-align: right;
    font-weight: 500;
}

/* Sink Options Styles */
.sink-options {
    margin-bottom: 20px;
}

.options-label {
    color: var(--gray-medium);
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.options-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option-item {
    background: rgba(192, 192, 192, 0.15);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(192, 192, 192, 0.3);
    transition: all 0.2s;
}

.option-item:hover {
    background: rgba(192, 192, 192, 0.25);
    border-color: var(--accent);
}

/* =====================================================
   PRODUCT DETAIL PAGE STYLES
   ===================================================== */

/* Breadcrumb */
.breadcrumb-bar {
    background: var(--navy-dark);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb-separator {
    color: var(--gray-medium);
}

.breadcrumb span:last-child {
    color: var(--white);
    font-weight: 500;
}

/* Product Detail Page Section */
.product-detail-page {
    padding: 60px 0;
    min-height: 60vh;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .product-detail-layout {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

/* Product Image */
.product-page-image {
    background: #1a1a2e;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

@media (min-width: 992px) {
    .product-page-image {
        min-height: 500px;
        position: sticky;
        top: 100px;
    }
}

.product-page-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 600px;
}

/* Product Info */
.product-page-info {
    padding: 20px 0;
}

@media (min-width: 992px) {
    .product-page-info {
        padding: 0;
    }
}

.product-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 10px;
}

.product-page-title {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .product-page-title {
        font-size: 3rem;
    }
}

.product-page-save-btn {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--gray-light);
    cursor: pointer;
    padding: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.product-page-save-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.product-page-save-btn.saved {
    border-color: #e74c3c;
    color: #e74c3c;
}

.product-page-subtitle {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Product Specs */
.product-page-specs {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-item:first-child {
    padding-top: 0;
}

.spec-item .spec-label {
    color: var(--gray-medium);
    font-size: 0.95rem;
    font-weight: 500;
}

.spec-item .spec-value {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}

/* Product Description */
.product-page-description {
    margin-bottom: 30px;
}

.product-page-description h3,
.product-page-tags h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.product-page-description p {
    color: var(--gray-light);
    font-size: 1rem;
    line-height: 1.8;
}

/* Product Tags */
.product-page-tags {
    margin-bottom: 40px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-page-tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.product-page-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Product Actions */
.product-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.product-page-actions .btn {
    padding: 16px 32px;
    font-size: 1rem;
}

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

.btn-secondary:hover {
    background: var(--accent);
    color: var(--navy-dark);
}

/* Product Not Found */
.product-not-found {
    text-align: center;
    padding: 80px 20px;
}

.product-not-found h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 15px;
}

.product-not-found p {
    color: var(--gray-light);
    margin-bottom: 30px;
}

.product-not-found .btn {
    margin: 0 10px 10px 0;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-light);
}

/* Related Products Section */
.related-products-section {
    padding: 60px 0;
    background: var(--navy-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-products-section h2 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

/* =====================================================
   COMPARISON PAGE STYLES
   ===================================================== */

.compare-page {
    padding: 40px 0 80px;
    min-height: 60vh;
}

.compare-header {
    text-align: center;
    margin-bottom: 40px;
}

.compare-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.compare-header p {
    color: var(--gray-light);
    font-size: 1.1rem;
}

/* Tab Switcher */
.compare-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.compare-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
}

.compare-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.compare-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--navy-dark);
}

/* Comparison Grid */
.compare-grid {
    display: grid;
    gap: 20px;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .compare-grid {
        grid-template-columns: repeat(2, minmax(200px, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    .compare-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Comparison Item */
.compare-item {
    background: var(--navy-dark);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: border-color 0.2s;
}

.compare-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.compare-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s, color 0.2s;
}

.compare-remove-btn:hover {
    background: #e74c3c;
}

.compare-item-image {
    background: #1a1a2e;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.compare-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.compare-item-details {
    padding: 20px;
}

.compare-item-name {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.compare-spec {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.compare-spec:last-of-type {
    border-bottom: none;
}

.compare-spec-label {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.compare-spec-value {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
}

.compare-description {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.compare-description p {
    color: var(--gray-light);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Add Item Card */
.compare-add-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.15);
}

.compare-add-item {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--gray-light);
    transition: color 0.2s, border-color 0.2s;
}

.compare-add-item:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.compare-add-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Empty State */
.compare-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.compare-empty-content {
    text-align: center;
    padding: 60px 20px;
}

.compare-empty-content svg {
    color: var(--gray-medium);
    margin-bottom: 20px;
}

.compare-empty-content h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.compare-empty-content p {
    color: var(--gray-light);
    margin-bottom: 25px;
}

/* Floating Add Button (for 2+ items) */
.compare-add-floating {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--navy-dark);
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin: 30px auto 0;
    transition: all 0.2s;
}

.compare-add-floating:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.compare-add-floating svg {
    width: 20px;
    height: 20px;
}

/* Product Selector Modal */
.product-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.product-selector-content {
    background: var(--navy-dark);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-selector-header h2 {
    color: var(--white);
    font-size: 1.3rem;
    margin: 0;
}

.product-selector-close {
    background: none;
    border: none;
    color: var(--gray-light);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.product-selector-close:hover {
    color: var(--white);
}

.product-selector-body {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
}

.selector-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.selector-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.selector-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #1a1a2e;
}

.selector-item-info h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 4px;
}

.selector-item-info p {
    color: var(--gray-medium);
    font-size: 0.85rem;
}

.selector-empty {
    text-align: center;
    color: var(--gray-light);
    padding: 40px 20px;
}

/* Selector checkbox and selected state */
.selector-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--gray-medium);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.selector-checkbox svg {
    opacity: 0;
    transition: opacity 0.2s;
}

.selector-item.selected {
    background: rgba(212, 175, 55, 0.1);
}

.selector-item.selected .selector-checkbox {
    background: var(--accent);
    border-color: var(--accent);
}

.selector-item.selected .selector-checkbox svg {
    opacity: 1;
    stroke: var(--navy-dark);
}

/* Selector footer */
.selector-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--navy-dark);
}

.selector-hint {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.selector-count {
    color: var(--accent);
    font-weight: 500;
}

.selector-confirm-btn {
    background: var(--accent);
    color: var(--navy-dark);
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.selector-confirm-btn:hover {
    background: var(--accent-hover);
}