/* Product Page Specific Styles */

/* Hero Banner */
.product-hero-night {
    background: radial-gradient(circle at 50% 0%, #1a2a4a 0%, #0d1626 50%, #050a12 100%);
    min-height: 80vh;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

/* Hero Text Styles */
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 3;
    width: 100%;
    padding: 0 20px;
}

.hero-slogan {
    font-size: 1.5rem;
    font-weight: normal;
    line-height: 1.4;
    margin: 0;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .hero-slogan {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-slogan {
        font-size: 1rem;
    }
}

.product-hero-night::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.product-hero-image-platform {
    position: relative;
    z-index: 5;
}

.product-hero-image-platform img {
    max-width: 800px;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
}

/* Category Navigation */
.category-nav {
    background: #fff;
    z-index: 1000;
}

.category-nav .nav-link {
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 1.2rem 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.category-nav .nav-link:hover,
.category-nav .nav-link.active {
    color: var(--primary-color);
}

.category-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Product Series Section */
.product-series-section {
    padding: 120px 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.product-series-section.d-none {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.series-title {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.series-desc {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.8;
    text-align: justify;
    opacity: 0.8;
}

/* Product Card V2 */
.product-card-v2 {
    background: transparent !important;
    border: none;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.product-card-v2 .image-box {
    background-color: transparent !important;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.product-card-v2 .image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card-v2 .info-box {
    padding: 15px 10px;
    text-align: center;
    background: transparent;
}

.product-card-v2 .info-box h5 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    transition: color 0.3s ease;
}

.product-card-v2 .info-box p {
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 0;
    letter-spacing: 0.5px;
}

/* Featured Card Style (Matching Image) */
.product-card-v2.featured {
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    padding: 30px 20px;
}

/* Tupiana Image Box Styles */
.product-card-v2 .tupiana {
    background-color: transparent;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    overflow: hidden;
}

.product-card-v2 .tupiana img {
    width: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s ease;
}

.product-card-v2 .tupianb {
    background-color: transparent;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    overflow: hidden;
}

.product-card-v2 .tupianb img {
    height: 220px !important;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s ease;
}

/* Gray Solid Card Style */
.product-card-v2.card-gray-solid {
    background: #d9d9d9;
}

.product-card-v2.card-gray-solid .info-box {
    background: #ccc;
    /* Darker gray strip at bottom */
    width: 100%;
    padding: 15px 0;
}

/* Transparent Card Style */
.product-card-v2.card-transparent {
    background: transparent;
}

.product-card-v2.card-transparent .image-box {
    background: #4d4d4d;
    /* Dark gray placeholder background like image */
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Adjust transparent card image box to match design - it looks like a dark box with product inside */
.product-card-v2.card-transparent .image-box {
    background: transparent;
    /* Actually it looks transparent in the second section of the image */
    border-radius: 0;
    margin-bottom: 0;
}

/* Re-evaluating based on image:
   Section 1 (White BG): 
     - Featured: White bg, shadow
     - Others: Solid gray bg (#ccc), image centered, text at bottom with darker gray bg (#bbb)
   
   Section 2 (Gray BG):
     - Featured: White bg, shadow
     - Others: Transparent bg. Just image and text below.
*/

.product-card-v2.card-gray-solid {
    background-color: #d1d1d1;
}

.product-card-v2.card-gray-solid .info-box {
    background-color: #bfbfbf;
    padding: 15px 0;
    margin-top: auto;
}

.product-card-v2.card-transparent .image-box {
    background: transparent;
    padding: 0;
    margin-bottom: 10px;
}

.product-card-v2.card-transparent .info-box {
    padding-top: 5px;
}


.product-card-v2:hover {
    transform: translateY(-5px);
}

.product-card-v2:hover .image-box img {
    transform: scale(1.05);
}

.product-card-v2:hover .info-box h5 {
    color: var(--primary-color);
}

/* Background colors */
.bg-section-gray {
    background-color: #f2f2f2;
}

.bg-section-white {
    background-color: #ffffff;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Product Grid Page Optimization - Highly Restored */
.product-list-container {
    padding: 0;
}

.product-list-container .row {
    margin-right: -15px !important;
    margin-left: -15px !important;
}

.product-grid-item {
    margin-bottom: 30px;
    padding-right: 15px !important;
    padding-left: 15px !important;
}

.product-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border: none;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-card-img-link {
    display: block;
    width: 100%;
    aspect-ratio: 3.5 / 4;
    overflow: hidden;
    position: relative;
}

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

.product-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 35px 25px;
    background: #F6F6F6;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10;
    display: flex;
    flex-direction: column;
    transform: translateY(calc(100% - 80px));
}

.product-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    margin-bottom: 0;
}

.product-card-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 15px;
}

/* Hover & Active State */
.product-card:hover .product-card-body,
.product-card.active .product-card-body {
    transform: translateY(0);
    background: #0280DC;
}

.product-card:hover .product-card-title,
.product-card.active .product-card-title {
    color: #fff;
}

.product-card:hover .product-card-desc,
.product-card.active .product-card-desc {
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

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

/* Ensure the card has enough height for the image + visible title area */
.product-grid-item .product-card {
    min-height: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .product-card-body {
        transform: translateY(calc(100% - 70px));
        padding: 15px;
    }

    .product-card-title {
        font-size: 1rem;
        margin-bottom: 0;
    }
}