/*
  Product List Styles
  - Default is list view
  - .grid-view class switches to grid layout
*/

/* Default List View - Horizontal cards for desktop/tablet */
.product-list .product-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: var(--transition);
    height: 320px;
    align-items: stretch;
}

/* Style elements to match home page - Desktop/Tablet only */
@media (min-width: 769px) {
    .product-list:not(.grid-view) .product-title a {
        font-size: 1.0625rem !important;
        font-weight: 500 !important;
        color: #1f2937 !important;
        line-height: 1.4 !important;
    }

    .product-list:not(.grid-view) .product-description {
        font-size: 0.875rem !important;
        color: #6b7280 !important;
        line-height: 1.55 !important;
    }

    .product-list:not(.grid-view) .product-title-meta-row .product-sales-home,
    .product-list:not(.grid-view) .product-title-meta-row .product-rating-home {
        font-size: 0.8125rem !important;
        color: #6b7280 !important;
    }

    .product-list:not(.grid-view) .product-title-meta-row .product-sales-home i,
    .product-list:not(.grid-view) .product-title-meta-row .product-rating-home i {
        color: #667eea !important;
        font-size: 0.8125rem;
    }
}

.product-list .product-card:hover {
    box-shadow: var(--shadow);
}

.product-list .product-image {
    flex: 0 0 300px; /* Increased width from 250px to 300px */
    border-right: 1px solid var(--light-gray);
    overflow: hidden;
    padding: 0;
    margin: 0;
    position: relative;
    align-self: stretch;
    display: flex;
}

.product-list .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border: none;
    outline: none;
    flex: 1;
    min-height: 100%;
}

.product-list .product-image a {
    display: flex;
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    line-height: 0;
    flex: 1;
}

.product-list .product-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-list .product-title a {
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: var(--dark) !important;
}
.product-list .product-title a:hover {
    color: var(--primary);
}

.product-list .product-meta-details {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
}

.product-list .product-stats span {
    font-size: 0.9rem;
    color: var(--gray);
}

.product-list .product-description {
    margin: 0.75rem 0 1rem 0 !important;
    color: #666 !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    text-align: justify !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.product-list .product-tags {
    margin-top: 0.5rem; /* Moved up from auto */
}

/* Hide mobile actions on desktop */
.product-list .mobile-actions {
    display: none;
}

/* Hide grid view meta on list view and mobile */
.product-list:not(.grid-view) .grid-view-meta {
    display: none !important;
}

/* Desktop list view - move meta under description */
.product-list:not(.grid-view) .product-content {
    display: flex;
    flex-direction: column;
}

.product-list:not(.grid-view) .product-title {
    order: 1;
}

.product-list:not(.grid-view) .product-description {
    order: 2;
}

.product-list:not(.grid-view) .product-title-meta-row {
    order: 3;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
    justify-content: flex-start;
    gap: 1.5rem;
    display: flex;
    align-items: center;
}

.product-list:not(.grid-view) .product-meta-details {
    order: 4;
}

.product-list:not(.grid-view) .product-tags {
    order: 5;
}

.product-list .product-actions {
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border-left: 1px solid var(--light-gray);
    flex: 0 0 240px; /* Give the actions column a fixed width */
    text-align: left;
}

.product-list .product-actions .btn {
    width: 100%;
}

.product-pricing {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
}

.product-pricing p {
    margin: 0;
}

.product-pricing del {
    color: #ef4444;
    text-decoration-color: #ef4444;
    margin-right: 0.5rem;
}

.product-pricing strong {
    /* font-size: 1.2rem; */
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--dark);
}

/* Grid View Overrides */
.product-list.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-list.grid-view .product-card {
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    height: auto;
    min-height: 500px;
    align-items: stretch;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.product-list.grid-view .product-card:hover {
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.12);
    border-color: #667eea;
    transform: translateY(-6px);
}

.product-list.grid-view .product-image {
    width: 100%;
    height: 220px;
    border-right: none;
    border-bottom: 1px solid #f3f4f6;
    overflow: hidden;
    padding: 0;
    margin: 0;
    position: relative;
    align-self: stretch;
    display: flex;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-list.grid-view .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border: none;
    outline: none;
    flex: 1;
    transition: transform 0.4s ease;
}

.product-list.grid-view .product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-list.grid-view .product-image a {
    display: flex;
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    line-height: 0;
    flex: 1;
}

/* Hide list-view pricing and show grid-view pricing */
.product-list.grid-view .list-view-pricing { display: none; }
.product-list:not(.grid-view) .grid-view-pricing { display: none; }

.product-list.grid-view .product-meta-details {
    order: 4;
    margin: 0 !important;
}

.product-list.grid-view .product-pricing {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100% !important;
    max-width: 100% !important;
}

.product-list.grid-view .license-row-products {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    padding: 10px 12px;
    margin-bottom: 0;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-list.grid-view .license-row-products:hover {
    background: #f3f4f6;
    border-color: #667eea;
}

.product-list.grid-view .license-row-products:last-child {
    margin-bottom: 0;
}

.product-list.grid-view .license-info-products {
    position: relative;
    padding-left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-list.grid-view .license-label-products {
    position: relative;
    width: auto;
    font-size: 0.95rem;
    font-weight: 500 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #374151 !important;
    top: auto;
    left: auto;
    height: auto;
    background: none;
    padding: 0;
}

.product-list.grid-view .license-pricing-products {
    gap: 0.5rem;
    position: relative;
    top: auto;
    right: auto;
}

.product-list.grid-view .product-stats {
    text-align: right;
    font-size: 0.9rem;
    color: var(--gray);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.product-list.grid-view .product-tags {
    margin-top: 0.5rem;
}

/* Grid view content structure - Match home page style */
.product-list.grid-view .product-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Hide desktop actions in grid view */
.product-list.grid-view .product-actions {
    display: none;
}

/* Show mobile-style actions in grid view content */
.product-list.grid-view .product-content .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
    order: 10;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    align-items: center;
}

.product-list.grid-view .product-content .mobile-actions .btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: 6px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: all 0.2s ease;
}

.product-list.grid-view .product-content .mobile-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Grid view content ordering - Match home page style */
.product-list.grid-view .product-title {
    order: 1;
    margin: 0;
}

.product-list.grid-view .product-title a {
    font-size: 1.0625rem !important;
    font-weight: 500 !important;
    color: #1f2937 !important;
    line-height: 1.4 !important;
}

/* Hide original meta row completely in grid view, show only grid-specific meta */
.product-list.grid-view .product-title-meta-row:not(.grid-view-meta) {
    display: none !important;
}

.product-list.grid-view .grid-view-meta {
    display: flex !important;
    order: 3;
    margin: 0 !important;
    padding: 10px 0 !important;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    justify-content: flex-start;
    gap: 14px;
}

.product-list.grid-view .grid-view-meta .product-sales-home,
.product-list.grid-view .grid-view-meta .product-rating-home {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8125rem !important;
    color: #6b7280 !important;
    white-space: nowrap;
}

.product-list.grid-view .grid-view-meta .product-sales-home i,
.product-list.grid-view .grid-view-meta .product-rating-home i {
    color: #667eea !important;
    font-size: 0.8125rem;
}

.product-list.grid-view .product-description {
    order: 2;
    margin: 0 !important;
    color: #6b7280 !important;
    font-size: 0.875rem !important;
    line-height: 1.55 !important;
    min-height: 40px;
}

.product-list.grid-view .product-meta-details {
    order: 4;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.product-list.grid-view .license-info-products {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0;
}

.product-list.grid-view .license-label-products {
    position: relative !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
}

.product-list.grid-view .license-pricing-products {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0 !important;
}

.product-list.grid-view .license-pricing-products .original-price {
    font-size: 0.8125rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.product-list.grid-view .license-pricing-products .discount-price,
.product-list.grid-view .license-pricing-products .price {
    font-size: 1.125rem !important;
    font-weight: 500 !important;
    color: #667eea !important;
}

.product-list.grid-view .product-tags {
    order: 5;
    margin-top: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-list.grid-view .product-actions {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem 1.5rem;
    border-left: none;
    flex: 1 1 auto;
}

.product-list.grid-view .product-actions .btn {
    width: auto;
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
}

.product-list.grid-view .product-actions .btn-outline {
    display: inline-flex; /* Show button with arrow */
}

.product-list.grid-view .btn-outline i {
    margin-left: 0.5rem;
    transition: transform 0.2s ease-in-out;
}

.product-list.grid-view .btn-outline:hover i {
    transform: translateX(3px);
}

/* License Row Styles for Products Page */
.license-row-products {
    position: relative;
    padding: 0.6rem 0;
    margin-bottom: 0.3rem;
    padding-left: 140px;
    min-height: 2rem;
}

.license-info-products {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
}

.product-list .license-label-products,
.license-label-products {
    position: absolute;
    left: 0;
    top: 0.6rem;
    font-weight: 500 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #374151 !important;
    font-size: 0.95rem;
    line-height: 1.2;
    width: 130px;
    height: 1.2rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
}

.license-pricing-products {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.1rem;
    min-height: 1.4rem;
    line-height: 1.2;
}

.license-pricing-products .original-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: visible;
}

.product-list .license-pricing-products .discount-price,
.license-pricing-products .discount-price {
    color: #ef4444 !important;
    font-weight: 500 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 1rem;
    white-space: nowrap;
    overflow: visible;
}

.product-list .license-pricing-products .price,
.license-pricing-products .price {
    color: #374151 !important;
    font-weight: 500 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 1rem;
    white-space: nowrap;
    overflow: visible;
}

/* Product pricing container spacing */
.product-pricing {
    margin: 0.75rem 0;
    padding: 0.5rem 0;
}

/* Tablet responsive styles */
@media (max-width: 1024px) {
    .product-list .product-card {
        height: 300px;
    }

    .product-list .product-image {
        flex: 0 0 280px;
    }

    .product-list.grid-view {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .product-list.grid-view .product-card {
        min-height: 420px;
        border-radius: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        border: 1px solid #e5e7eb;
    }

    .product-list.grid-view .product-card:hover {
        box-shadow: 0 12px 24px rgba(102, 126, 234, 0.12);
        border-color: #667eea;
        transform: translateY(-6px);
    }

    .product-list.grid-view .product-image {
        height: 220px;
    }

    /* Header adjustments for tablet */
    .products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .products-header .search-section {
        order: 1;
    }

    .products-header .view-controls {
        order: 2;
        justify-content: center;
    }

    .products-header .filter-section {
        order: 3;
        justify-content: center;
    }
}

/* Mobile responsive styles for license rows and general layout */
@media (max-width: 768px) {
    /* Header mobile optimizations */
    .products-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
        padding: 1rem;
    }

    .products-header .search-section {
        order: 1;
    }

    .products-header .search-section input {
        width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .products-header .view-controls {
        order: 2;
        justify-content: center;
        gap: 0.5rem;
    }

    .products-header .filter-section {
        order: 3;
        justify-content: center;
    }

    .products-header .filter-section select {
        width: 100%;
        max-width: 200px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* License rows mobile */
    .license-row-products {
        padding: 0.75rem 0;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid #f3f4f6;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .license-info-products {
        position: relative;
        padding-left: 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .license-label-products {
        position: relative;
        width: auto;
        font-size: 0.95rem;
        font-weight: 500 !important;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
        color: #374151 !important;
        top: auto;
        left: auto;
        height: auto;
        background: none;
        padding: 0;
    }

    .license-pricing-products {
        gap: 0.5rem;
        position: relative;
        top: auto;
        right: auto;
    }

    .license-pricing-products .original-price {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .license-pricing-products .discount-price,
    .license-pricing-products .price {
        font-size: 0.95rem;
        white-space: nowrap;
    }

    /* Mobile license container styling - centered */
    .product-list .product-pricing {
        background: #f9fafb;
        border-radius: 8px;
        padding: 0.75rem;
        margin: 0.5rem auto;
        width: fit-content;
        max-width: 100%;
    }

    .product-list .license-row-products:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    /* Center mobile meta details container */
    .product-list .product-meta-details {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Force all cards to stack vertically on mobile - Match home page style */
    .product-list .product-card {
        height: auto;
        min-height: 400px;
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 1.5rem;
        background: #ffffff;
        border-radius: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        border: 1px solid #e5e7eb;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .product-list .product-card:hover {
        box-shadow: 0 12px 24px rgba(102, 126, 234, 0.12);
        border-color: #667eea;
        transform: translateY(-6px);
    }

    .product-list .product-image {
        flex: 0 0 220px;
        width: 100%;
        height: 220px;
        border-right: none;
        border-bottom: 1px solid #f3f4f6;
        align-self: stretch;
        display: flex;
        overflow: hidden;
        position: relative;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }

    .product-list .product-image img {
        transition: transform 0.4s ease;
    }

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

    .product-list .product-image a {
        display: flex;
        flex: 1;
    }

    .product-list .product-image img {
        flex: 1;
        min-height: 100%;
    }

    /* Product content adjustments - Match home page style */
    .product-list .product-content {
        padding: 18px;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    /* Hide the separate actions section on mobile */
    .product-list .product-actions {
        display: none;
    }

    /* Show buttons within content area after licenses - centered */
    .product-list .product-content .mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.25rem;
        order: 10;
        border-top: 1px solid #e5e7eb;
        padding-top: 1rem;
        align-items: center;
    }

    .product-list .product-content .mobile-actions .btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        border-radius: 6px;
        font-weight: 500;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        transition: all 0.2s ease;
    }

    .product-list .product-content .mobile-actions .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    /* Hide grid view meta on mobile - use original meta row under licenses */
    .product-list.grid-view .grid-view-meta {
        display: none !important;
    }

    .product-list.grid-view .product-title-meta-row:not(.grid-view-meta) {
        display: flex !important;
        order: 4;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid #f3f4f6;
        justify-content: center;
        gap: 1.5rem;
    }

    /* Grid view mobile adjustments */
    .product-list.grid-view {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-list.grid-view .product-card {
        height: auto;
        min-height: 420px;
    }

    .product-list.grid-view .product-image {
        flex: 0 0 220px;
    }

    .product-list.grid-view .product-content {
        padding: 18px;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .product-list.grid-view .product-title a {
        font-size: 1.0625rem !important;
        font-weight: 500 !important;
        color: #1f2937 !important;
    }

    .product-list.grid-view .product-description {
        font-size: 0.875rem !important;
        color: #6b7280 !important;
        line-height: 1.55 !important;
    }

    /* Center grid view elements on mobile */
    .product-list.grid-view .product-meta-details {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .product-list.grid-view .product-tags {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Hide grid view actions on mobile */
    .product-list.grid-view .product-actions {
        display: none;
    }

    /* Show mobile actions in grid view content */
    .product-list.grid-view .product-content .mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
        order: 10;
    }

    /* Mobile adjustments for title, description and tags - Match home page style */
    .product-list .product-title {
        margin: 0 !important;
        order: 1;
    }

    .product-list .product-title a {
        font-size: 1.0625rem !important;
        font-weight: 500 !important;
        color: #1f2937 !important;
        line-height: 1.4 !important;
        min-height: auto !important;
    }

    .product-title-meta-row {
        order: 3;
        justify-content: flex-start !important;
        gap: 14px !important;
        margin: 0 !important;
        padding: 10px 0 !important;
        border-top: 1px solid #f3f4f6;
        border-bottom: 1px solid #f3f4f6;
    }

    .product-list .product-description {
        margin: 0 !important;
        font-size: 0.875rem !important;
        color: #6b7280 !important;
        line-height: 1.55 !important;
        order: 2;
        min-height: 40px;
    }

    /* License section styling - Match home page */
    .product-meta-details {
        order: 4;
        margin: 0 !important;
        display: flex;
        flex-direction: column;
        gap: 7px;
    }

    .product-list .product-pricing {
        background: transparent !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .product-list .license-row-products {
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 9px;
        padding: 10px 12px;
        transition: all 0.2s ease;
        margin-bottom: 0 !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .product-list .license-row-products:hover {
        background: #f3f4f6;
        border-color: #667eea;
    }

    .product-list .license-info-products {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 0;
    }

    .product-list .license-label-products {
        position: relative !important;
        font-size: 0.8125rem !important;
        font-weight: 500 !important;
        color: #4b5563 !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        top: auto !important;
        left: auto !important;
        width: auto !important;
        height: auto !important;
    }

    .product-list .license-pricing-products {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 0 !important;
    }

    .product-list .license-pricing-products .original-price {
        font-size: 0.8125rem;
        color: #9ca3af;
        text-decoration: line-through;
    }

    .product-list .license-pricing-products .discount-price,
    .product-list .license-pricing-products .price {
        font-size: 1.125rem !important;
        font-weight: 500 !important;
        color: #667eea !important;
    }

    /* Show licenses on mobile - make both grid and list view pricing visible */
    .product-list .product-pricing {
        display: block !important;
    }

    .product-list .grid-view-pricing {
        display: block;
    }

    .product-list .list-view-pricing {
        display: none; /* Hide list view pricing on mobile to avoid duplication */
    }

    /* Stats row styling - Match home page */
    .product-title-meta-row .product-sales-home,
    .product-title-meta-row .product-rating-home {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 0.8125rem !important;
        color: #6b7280 !important;
        white-space: nowrap;
    }

    .product-title-meta-row .product-sales-home i,
    .product-title-meta-row .product-rating-home i {
        color: #667eea !important;
        font-size: 0.8125rem;
    }

    .product-list .product-tags {
        margin-top: 0;
        order: 5;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .product-list.grid-view .product-tags {
        margin-top: 0;
    }
}

/* Small mobile devices (phones in portrait) */
@media (max-width: 480px) {
    .product-list .product-card {
        min-height: 380px;
        margin-bottom: 1.25rem;
        border-radius: 16px;
    }

    .product-list .product-image {
        flex: 0 0 180px;
        height: 180px;
    }

    .product-list .product-content {
        padding: 1rem;
    }

    .product-list .product-title a {
        font-size: 1rem !important;
    }

    .product-title-meta-row {
        flex-direction: row !important;
        align-items: center !important;
        gap: 14px !important;
        margin-top: 0 !important;
    }

    .product-list .product-description {
        margin: 0 !important;
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }

    .product-list .product-actions {
        padding: 0.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .product-list .product-actions .btn {
        width: 100%;
        text-align: center;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    /* Grid view small mobile */
    .product-list.grid-view .product-card {
        min-height: 400px;
    }

    .product-list.grid-view .product-image {
        flex: 0 0 200px;
    }

    .product-list.grid-view .product-content {
        padding: 0.75rem;
    }

    .product-list.grid-view .product-actions {
        padding: 0.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Extra small devices (very small phones) */
@media (max-width: 360px) {
    .product-list .product-card {
        min-height: 360px;
        margin-bottom: 1rem;
        border-radius: 16px;
    }

    .product-list .product-image {
        flex: 0 0 160px;
        height: 160px;
    }

    .product-list .product-content {
        padding: 1rem;
    }

    .product-list .product-title a {
        font-size: 0.9375rem !important;
        line-height: 1.2 !important;
    }

    .product-list .product-description {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
        margin: 0 !important;
    }

    .product-list .product-actions {
        padding: 0.6rem;
    }

    .product-list .product-actions .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    /* Center all sections on small mobile devices */
    .product-list .product-meta-details {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .product-list .product-tags {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .product-list .product-content .mobile-actions {
        align-items: center;
    }

    .product-title-meta-row {
        justify-content: flex-start !important;
        gap: 12px !important;
        order: 3;
        margin-top: 0 !important;
        padding: 8px 0 !important;
    }
}

/* Pagination Styling - Products Page */
.product-page-container .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.product-page-container .pagination a,
.product-page-container .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #6b7280;
    background: #ffffff;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.product-page-container .pagination a:hover {
    background: #f9fafb;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
}

.product-page-container .pagination a.active {
    background: #667eea;
    border-color: #667eea;
    color: #ffffff;
    cursor: default;
}

.product-page-container .pagination a.active:hover {
    transform: none;
}

.product-page-container .pagination span.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #9ca3af;
}

.product-page-container .pagination span.disabled:hover {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #9ca3af;
    transform: none;
}

/* Mobile Pagination */
@media (max-width: 768px) {
    .product-page-container .pagination {
        margin-top: 2rem;
        margin-bottom: 1.5rem;
        gap: 6px;
    }

    .product-page-container .pagination a,
    .product-page-container .pagination span {
        min-width: 36px;
        height: 36px;
        padding: 0 12px;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .product-page-container .pagination {
        gap: 4px;
    }

    .product-page-container .pagination a,
    .product-page-container .pagination span {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 0.8125rem;
    }
}
