/* ================================================================
   GamePC Accessories Pages - Frontend Styles
   Modern WooCommerce-style Product Cards
   ================================================================ */

* {
    box-sizing: border-box;
}

/* Container */
.gpcd-acc-container {
    background: #000000;
    min-height: 100vh;
    color: #ffffff;
}

/* Hero Section */
.gpcd-acc-hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(180deg, rgba(255, 0, 0, 0.05) 0%, #000000 100%);
    border-bottom: 1px solid rgba(255, 0, 0, 0.2);
}

.gpcd-acc-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.gpcd-acc-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #ff0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Meta Info */
.gpcd-acc-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.gpcd-meta-item {
    color: #999;
    font-size: 1rem;
}

.gpcd-meta-item strong {
    color: #ff0000;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Intro Text */
.gpcd-intro-text {
    max-width: 800px;
    margin: 0 auto;
    color: #cccccc;
    line-height: 1.8;
    font-size: 1.05rem;
}

.gpcd-intro-text p {
    margin-bottom: 15px;
}

/* Content Area */
.gpcd-acc-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ================================================================
   PRODUCTS GRID - RESPONSIVE 3/2/1 COLUMNS
   ================================================================ */

.gpcd-acc-products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 0 auto;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .gpcd-acc-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Desktop: 3 columns */
@media (min-width: 1200px) {
    .gpcd-acc-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* ================================================================
   PRODUCT CARD - WooCommerce Style
   ================================================================ */

.gpcd-acc-product-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gpcd-acc-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 0, 0, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.gpcd-acc-product-card:hover {
    border-color: rgba(255, 0, 0, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.25),
                0 0 30px rgba(255, 0, 0, 0.1);
}

.gpcd-acc-product-card:hover::before {
    opacity: 1;
}

/* Sale Badge */
.gpcd-product-sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Image */
.gpcd-acc-product-image {
    width: 100%;
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.08), rgba(255, 0, 0, 0.03));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gpcd-acc-product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.gpcd-acc-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gpcd-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 0, 0.05);
    color: #666;
    font-size: 0.9rem;
}

/* Product Content */
.gpcd-acc-product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

/* Product Title */
.gpcd-acc-product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.gpcd-acc-product-title a {
    color: #fff !important;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gpcd-acc-product-title a:hover {
    color: #ff0000 !important;
}

/* Product Description */
.gpcd-acc-product-desc {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Specs Tags */
.gpcd-acc-product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.gpcd-spec-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6666;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.gpcd-spec-tag:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
    color: #ff0000;
}
/* Product Footer */
.gpcd-acc-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Product Price */
.gpcd-acc-product-price {
    flex-shrink: 0;
}

.gpcd-acc-product-price .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ff0000;
}

.gpcd-acc-product-price .price del {
    color: #666;
    font-size: 1rem;
    margin-right: 8px;
}

.gpcd-acc-product-price .price ins {
    text-decoration: none;
}

/* Product Action Button */
.gpcd-acc-product-action {
    flex-shrink: 0;
}

.gpcd-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.gpcd-btn:hover {
    background: linear-gradient(135deg, #ff3333 0%, #ff0000 100%);
    transform: translateX(2px);
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.4);
}

.gpcd-btn .arrow {
    transition: transform 0.3s ease;
}

.gpcd-btn:hover .arrow {
    transform: translateX(4px);
}

/* No Products State */
.gpcd-no-products {
    text-align: center;
    padding: 80px 20px;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 12px;
    margin: 40px auto;
    max-width: 600px;
}

.gpcd-no-products p {
    color: #999;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.gpcd-no-products a {
    display: inline-block;
    background: #ff0000;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.gpcd-no-products a:hover {
    background: #ff3333;
    transform: translateY(-2px);
}

/* ================================================================
   RESPONSIVE ADJUSTMENTS
   ================================================================ */

@media (max-width: 767px) {
    .gpcd-acc-hero {
        padding: 40px 15px 30px;
    }
    
    .gpcd-acc-hero h1 {
        font-size: 2rem;
    }
    
    .gpcd-acc-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .gpcd-acc-product-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .gpcd-acc-product-price {
        text-align: center;
    }
    
    .gpcd-btn {
        width: 100%;
        justify-content: center;
    }
}
