/* Shop Page Specific Styles */

/* Cart Icon */
.cart-icon {
    position: relative;
    color: #ff6b35;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    border: 2px solid white;
}

/* Active Navigation Link */
.nav-link.active {
    color: #ff6b35;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* Quote Request Section */
.quote-request {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 24px 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

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

.quote-content p {
    color: #374151;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.quote-link {
    color: #ff6b35;
    text-decoration: underline;
    font-weight: 500;
}

.quote-link:hover {
    color: #e55a2b;
}

/* Breadcrumbs */
.breadcrumbs {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumbs p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Shop Main Content */
.shop-main {
    padding-top: 70px;
}

.shop-content {
    background: white;
    min-height: calc(100vh - 70px);
}

.shop-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

/* Sidebar */
.sidebar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-right: 1px solid rgba(229, 231, 235, 0.3);
    border-radius: 16px;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

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

.sidebar-section h3 {
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #ff6b35;
    letter-spacing: -0.01em;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-link {
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-link:hover {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.08);
    transform: translateX(4px);
}

.category-link.active {
    color: #ff6b35;
    font-weight: 600;
    background: rgba(255, 107, 53, 0.12);
    border-left: 4px solid #ff6b35;
}

/* Price Filter */
.price-filter {
    margin-top: 1rem;
}

.price-filter label {
    display: block;
    color: #374151;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.price-min, .price-max {
    color: #6b7280;
    font-size: 0.8rem;
    min-width: 40px;
}

.price-slider {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #ff6b35;
    border-radius: 50%;
    cursor: pointer;
}

.price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ff6b35;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Main Content */
.main-content {
    padding: 0 1rem;
}

/* Product Header */
.product-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.product-header .product-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.product-info h1 {
    color: #374151;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-info p {
    color: #6b7280;
    line-height: 1.6;
}

/* Product Controls */
.product-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.product-count {
    color: #6b7280;
    font-size: 0.9rem;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-controls label {
    color: #6b7280;
    font-size: 0.9rem;
}

.sort-dropdown {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    color: #374151;
    font-size: 0.9rem;
}

.sort-dropdown:focus {
    outline: none;
    border-color: #ff6b35;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #ff8c42, #ffa726);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
    border-color: rgba(255, 107, 53, 0.2);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card .product-image {
    margin-bottom: 1rem;
}

.product-card .product-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

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

.product-card h3 {
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    flex-grow: 1;
}

.product-price {
    color: #ff6b35;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #20b2aa 0%, #17a2b8 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-shadow: 0 4px 16px rgba(32, 178, 170, 0.3);
    letter-spacing: 0.01em;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #1a9b94 0%, #138496 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(32, 178, 170, 0.4);
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin: 3rem 0;
}

.load-more-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #374151;
    border: 2px solid rgba(209, 213, 219, 0.3);
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.load-more-btn:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: #ff6b35;
    color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.2);
}

/* API Status Banner */
.api-status-banner {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.1);
}

.status-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #92400e;
    font-weight: 500;
}

.status-content i {
    font-size: 1.2rem;
    color: #f59e0b;
}

/* Loading and Error States */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(248, 250, 252, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(229, 231, 235, 0.3);
    margin: 2rem 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 107, 53, 0.2);
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    color: #6b7280;
    font-size: 1.1rem;
    margin: 0;
}

.error-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(248, 250, 252, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(229, 231, 235, 0.3);
    margin: 2rem 0;
}

.error-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.error-state h3 {
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.error-state p {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-state .btn {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-state .btn:hover {
    background: linear-gradient(135deg, #e55a2b, #ff6b35);
    transform: translateY(-2px);
}

/* Footer Updates for Shop Page */
.footer {
    background: #20b2aa;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    background: #1a9b94;
    margin-top: 2rem;
    padding: 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .shop-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sidebar {
        position: static;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        margin-bottom: 2rem;
    }

    .product-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

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

    .cart-icon {
        display: none;
    }
}

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

    .product-header .product-image img {
        height: 120px;
    }

    .product-card .product-image img {
        height: 120px;
    }
}
