/**
 * Products CSS
 */

.xtech-products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Product Card */
.xtech-product-card {
    background: var(--xtech-bg-elevated);
    border-radius: var(--xtech-radius-lg);
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.xtech-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--xtech-shadow-lg);
    border-color: rgba(255, 140, 0, 0.3);
}

.xtech-product-card__image {
    position: relative;
    border-radius: var(--xtech-radius);
    overflow: hidden;
    aspect-ratio: 1/1;
    margin-bottom: 1.5rem;
    background: var(--xtech-bg-base);
}

.xtech-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.xtech-product-card__info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.xtech-product-card__category {
    font-size: 0.75rem;
    color: var(--xtech-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.xtech-product-card__category a {
    color: inherit;
}

.xtech-product-card__category a:hover {
    color: var(--xtech-primary);
}

.xtech-product-card__title {
    font-size: 1.125rem;
    font-family: var(--xtech-font-body);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xtech-product-card__title a {
    color: var(--xtech-text-main);
}

.xtech-product-card__title a:hover {
    color: var(--xtech-primary);
}

.xtech-product-card__price {
    margin-top: auto;
    margin-bottom: 1.5rem;
    font-family: var(--xtech-font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--xtech-primary);
}

.xtech-product-card__price del {
    color: var(--xtech-text-muted);
    font-size: 1rem;
    font-weight: 400;
    margin-right: 0.5rem;
}

.xtech-product-card__price ins {
    text-decoration: none;
}

.xtech-product-card__btn {
    width: 100%;
    text-align: center;
    border-radius: var(--xtech-radius);
    padding: 0.75rem;
    font-weight: 600;
    font-family: var(--xtech-font-heading);
    transition: all 0.3s ease;
    display: block;
}

.xtech-product-card__btn--primary {
    background: var(--xtech-gradient);
    color: #fff !important;
}

.xtech-product-card__btn--primary:hover {
    opacity: 0.9;
    box-shadow: var(--xtech-shadow-glow);
}

.xtech-featured__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.xtech-featured__title {
    font-size: 2.25rem;
    margin: 0;
}

.xtech-featured__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

/* Pagination */
.woocommerce-pagination .page-numbers {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 0.5rem;
    margin-top: 3rem;
}

.woocommerce-pagination .page-numbers li {
    display: block;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--xtech-radius-sm);
    background: var(--xtech-bg-elevated);
    color: var(--xtech-text-main);
    font-weight: 600;
    transition: all 0.3s ease;
}

.woocommerce-pagination .page-numbers a:hover {
    background: var(--xtech-primary);
    color: #fff;
}

.woocommerce-pagination .page-numbers current {
    background: var(--xtech-gradient);
    color: #fff;
}
