/* Products Page Styles */

/* ============================================
   Breadcrumb Navigation
   ============================================ */
.breadcrumb-section {
    background-color: #f8f9fa;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    font-size: 14px;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-easing);
}

.breadcrumb-item a:hover {
    color: #e66a00;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 600;
}

.breadcrumb-item:not(:last-child)::after {
    content: "/";
    margin-left: var(--spacing-sm);
    color: #ccc;
}

/* ============================================
   Banner Section
   ============================================ */
.products-banner-section {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-white);
    z-index: 2;
}

.banner-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
    font-size: 24px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Products Content Section
   ============================================ */
.products-content-section {
    padding: var(--spacing-xl) 0;
    background-color: #fff;
}

.products-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--spacing-xl);
}

/* ============================================
   Products Sidebar - Categories
   ============================================ */
.products-sidebar {
    display: flex;
    flex-direction: column;
}

.categories-widget {
    background: #f8f9fa;
    padding: var(--spacing-lg);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    height: fit-content;
    position: sticky;
    top: var(--spacing-lg);
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 3px solid var(--primary-color);
}

.categories-menu {
    list-style: none;
}

.category-item {
    margin-bottom: 0;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    color: var(--text-dark);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all var(--transition-speed) var(--transition-easing);
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    text-align: left;
}

.category-link:hover {
    background: white;
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.category-link.active {
    background: white;
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.category-name {
    font-size: 14px;
    font-weight: 500;
}

.category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.category-link.active .category-count {
    background: var(--primary-color);
}

/* ============================================
   Products Main Content
   ============================================ */
.products-main {
    display: flex;
    flex-direction: column;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.product-item {
    display: flex;
}

.product-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: var(--spacing-lg);
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed) var(--transition-easing);
    width: 100%;
    align-items: stretch;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 116, 0, 0.15);
}

/* ============================================
   Product Image
   ============================================ */
.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--spacing-lg);
    transition: transform var(--transition-speed) var(--transition-easing);
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.sale-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #ff4757;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Product Info
   ============================================ */
.product-info {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ============================================
   Product Category
   ============================================ */
.product-category {
    display: flex;
    gap: 8px;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.category-tag {
    display: inline-block;
    background: #fff3e0;
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ============================================
   Product Title
   ============================================ */
.product-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
}

.product-title a {
    color: inherit;
    text-decoration: underline;
    transition: color var(--transition-speed) var(--transition-easing);
}

.product-title a:hover {
    color: var(--primary-color);
}

/* ============================================
   Product Rating
   ============================================ */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--spacing-md);
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 16px;
    color: #ddd;
}

.star.filled {
    color: #ffc107;
}

.rating-count {
    font-size: 12px;
    color: #999;
}

/* ============================================
   Product Description
   ============================================ */
.product-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

/* ============================================
   Product Features
   ============================================ */
.product-features {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid #e9ecef;
}

.features-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.features-list li {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
}

/* ============================================
   Product Price
   ============================================ */
.product-price {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.current-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

/* ============================================
   Ask Button
   ============================================ */
.product-buttons {
    display: flex;
    gap: var(--spacing-md);
    width: 100%;
}

.ask-button {
    flex: 1;
    background: #6366f1;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-easing);
}

.ask-button:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.ask-button:active {
    transform: translateY(0);
}

.details-button {
    flex: 1;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 32px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) var(--transition-easing);
    cursor: pointer;
}

.details-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 116, 0, 0.3);
}

.details-button:active {
    transform: translateY(0);
}

/* ============================================
   No Products Message
   ============================================ */
.no-products {
    text-align: center;
    padding: var(--spacing-xl);
    color: #999;
    font-size: 16px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .products-wrapper {
        grid-template-columns: 200px 1fr;
    }

    .product-card {
        grid-template-columns: 350px 1fr;
    }

    .product-image-wrapper {
        min-height: 300px;
    }

    .banner-title {
        font-size: 40px;
    }

    .banner-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .products-wrapper {
        grid-template-columns: 1fr;
    }

    .categories-widget {
        position: static;
    }

    .product-card {
        grid-template-columns: 1fr;
    }

    .product-image-wrapper {
        min-height: 280px;
    }

    .product-info {
        padding: var(--spacing-md);
    }

    .product-title {
        font-size: 18px;
    }

    .current-price {
        font-size: 20px;
    }

    .banner-title {
        font-size: 32px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

    .categories-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .category-link {
        padding: var(--spacing-sm);
        flex-direction: column;
        text-align: center;
    }

    .category-name {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .product-card {
        grid-template-columns: 1fr;
    }

    .product-image-wrapper {
        min-height: 250px;
    }

    .product-info {
        padding: var(--spacing-md);
    }

    .product-title {
        font-size: 16px;
    }

    .product-description {
        font-size: 13px;
    }

    .current-price {
        font-size: 18px;
    }

    .ask-button {
        width: 100%;
        text-align: center;
    }

    .banner-title {
        font-size: 24px;
    }

    .banner-subtitle {
        font-size: 14px;
    }

    .categories-menu {
        grid-template-columns: 1fr;
    }

    .category-link {
        flex-direction: row;
        text-align: left;
    }

    .category-name {
        font-size: 13px;
    }
}
