/* ==========================================================================
   RoasTronix V2 - Products Page Styles
   Brand-sectioned layout (Stronghold + iRhea)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Products Hero
   -------------------------------------------------------------------------- */

.products-hero {
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 400px;
}

.products-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.products-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    padding: 80px 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.6) 50%, rgba(10, 10, 10, 0.4) 100%);
}

.products-hero .section-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(160, 28, 46, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.products-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.products-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Brand Sections
   -------------------------------------------------------------------------- */

.brand-section {
    padding: 80px 60px 100px;
    background: var(--bg-dark);
}

.brand-section-alt {
    background: var(--bg-dark-lighter);
}

.brand-container {
    max-width: 1400px;
    margin: 0 auto;
}

.brand-header {
    margin-bottom: 50px;
}

.brand-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.brand-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: gap 0.3s;
}

.brand-link:hover {
    gap: 14px;
}

/* --------------------------------------------------------------------------
   Products Grid & Cards
   -------------------------------------------------------------------------- */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px;
}

.products-grid-small {
    grid-template-columns: repeat(3, 1fr);
    max-width: 480px;
}

.product-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 20px 60px rgba(160, 28, 46, 0.2);
}

.product-card-image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

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

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

.product-card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 18px;
    background: var(--primary-gold);
    color: #ffffff;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card-info {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-view-details {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    padding-top: 20px;
    border-top: 1px solid var(--border-dark);
    transition: gap 0.3s;
}

.product-card:hover .product-card-view-details {
    gap: 14px;
}

.product-card-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.product-card:hover .product-card-info h3 {
    color: var(--primary-gold);
}

.product-card-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-card-quote-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark));
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
    text-align: center;
    text-decoration: none;
}

.product-card-quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(160, 28, 46, 0.5);
}

.product-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-dark);
}

.product-card-price {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.product-card-arrow {
    width: 40px;
    height: 40px;
    background: rgba(160, 28, 46, 0.1);
    border: 1px solid var(--border-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.product-card-arrow svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary-gold);
    transition: transform 0.3s;
}

.product-card:hover .product-card-arrow {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
}

.product-card:hover .product-card-arrow svg {
    stroke: #ffffff;
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Accessories Sub-Section
   -------------------------------------------------------------------------- */

.accessories-section {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid var(--border-dark);
}

.accessories-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   Shop CTA Section
   -------------------------------------------------------------------------- */

.shop-cta-section {
    padding: 100px 60px;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(160, 28, 46, 0.1) 100%);
    text-align: center;
}

.shop-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.shop-cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
}

.shop-cta-content p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 35px;
}

/* --------------------------------------------------------------------------
   Buttons (shared)
   -------------------------------------------------------------------------- */

.btn-primary {
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark));
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(160, 28, 46, 0.5);
}

.btn-secondary {
    padding: 16px 40px;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-dark);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive - Tablet (max-width: 1024px)
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .products-hero {
        padding: 50px 40px 30px;
    }

    .brand-section {
        padding: 60px 40px 80px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-grid-small {
        max-width: 100%;
    }

    .shop-cta-section {
        padding: 80px 40px;
    }
}

/* --------------------------------------------------------------------------
   Responsive - Mobile (max-width: 768px)
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .products-hero {
        padding: 40px 25px 25px;
    }

    .products-hero h1 {
        font-size: 2rem;
    }

    .products-hero p {
        font-size: 1rem;
    }

    .brand-section {
        padding: 50px 25px 60px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card-image {
        height: 250px;
    }

    .shop-cta-section {
        padding: 60px 25px;
    }
}
