/* products-page-styles.css - Universal Product Page Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.main-content {
    padding-top: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ACB Catalog Container */
.acb-catalog-container {
    display: flex;
    min-height: 100vh;
    gap: 0;
    position: relative;
}

/* Sticky Sidebar */
.acb-sidebar {
    width: 280px;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    flex-shrink: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.acb-sidebar-header {
    padding: 2rem 1.5rem 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1976d2;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #f8f9fa, #fff);
}

.acb-brand-list {
    list-style: none;
    padding: 1rem 0;
}

.acb-brand-item {
    margin-bottom: 0.5rem;
}

.acb-brand-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.5rem;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.acb-brand-link:hover {
    background-color: #f5f5f5;
    color: #1976d2;
    transform: translateX(5px);
}

.acb-brand-link.active {
    background-color: #e3f2fd;
    color: #1976d2;
    border-left-color: #1976d2;
    font-weight: 600;
}

.acb-chevron {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.acb-brand-link:hover .acb-chevron {
    transform: translateX(3px);
}

/* Main Content Area */
.acb-main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.acb-content-header {
    margin-bottom: 2rem;
    text-align: center;
    animation: headerSlideIn 1s ease-out;
}

@keyframes headerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.acb-back-button {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: absolute;
    top: -50px;
    visibility: hidden;
}

.acb-back-button:hover {
    background: #f5f5f5;
    color: #1976d2;
}

.back-icon {
    width: 16px;
    height: 16px;
}

.acb-content-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1976d2;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #1976d2, #1565c0, #00bcd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 0 4px 8px rgba(25, 118, 210, 0.3);
    transition: all 0.3s ease;
}

.acb-content-title:hover {
    transform: scale(1.05);
    animation-duration: 1s;
}

.acb-content-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.5s both;
    transition: all 0.3s ease;
}

.acb-content-subtitle:hover {
    color: #1976d2;
    transform: translateY(-2px);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Product Grid */
.acb-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.acb-product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    cursor: pointer;
}

.acb-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border: 2px solid #1976d2;
}

.acb-product-card:hover .acb-product-title {
    font-size: 1.2rem;
    color: #1976d2;
    font-weight: 700;
}

.acb-product-image {
    position: relative;
    height: 150px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    overflow: hidden;
}

.acb-placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #666;
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 10px;
}

.acb-product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #4caf50;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.acb-product-badge.new {
    background: #ff9800;
}

.acb-product-badge.popular {
    background: #4caf50;
}

.acb-product-info {
    padding: 1rem;
}

.acb-product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.acb-product-actions {
    display: flex;
    gap: 0.5rem;
}

.acb-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
}

.acb-btn-primary {
    background: #1976d2;
    color: white;
    flex: 1;
}

.acb-btn-primary:hover {
    background: #1565c0;
    transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
    margin-top: 4rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn-primary {
    background: #fff;
    color: #1976d2;
}

.cta-btn-secondary {
    color: #fff;
    border: 2px solid #fff;
    background: transparent;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Hidden state for filtered products */
.acb-product-card.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .acb-catalog-container {
        flex-direction: column;
    }

    .acb-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        order: 2;
    }

    .acb-main-content {
        order: 1;
        padding: 1rem;
    }

    .acb-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .acb-content-title {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 250px;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .acb-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 480px) {
    .acb-product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .acb-product-card {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Back to Top Button - Bottom Right */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
}

.back-to-top:hover {
    background: #1565c0;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

.back-to-top.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.3s ease;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}