/* =========================================
   Product Detail Page Styles
   ========================================= */

/* =========================================
   1. Banner
   ========================================= */
.detail-banner {
    position: relative;
    height: 250px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--header-height, 80px);
}

.detail-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.banner-content h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
}

.breadcrumbs {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumbs a {
    color: var(--white);
    text-decoration: none;
}

.breadcrumb-sep {
    margin: 0 10px;
    opacity: 0.6;
}

/* =========================================
   2. Layout Container
   ========================================= */
.detail-container {
    padding-top: 60px;
}

/* =========================================
   3. Hero Section (Gallery + Info)
   ========================================= */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.hero-gallery {
    display: flex;
    flex-direction: column;
}

.gallery-main {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 15px;
    background: #f0f0f0;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.gallery-thumbs {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
	    display: grid;
	    grid-template-columns: repeat(4, 1fr);
	    gap: 20px;
}

.gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.gallery-thumb {
    min-width: 100px;
    height: 75px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: 0.2s;
    flex-shrink: 0;
}

.gallery-thumb.active {
    opacity: 1;
}

.gallery-thumb:hover {
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.product-underline {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin-bottom: 25px;
}

.info-desc {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
	max-height: 310px;
	    overflow-y: auto;
}

/* Info Features - vertical icon + text */
.info-features {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
}

.info-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
}

.feature-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.feature-icon-circle svg {
    width: 30px;
    height: 30px;
}

.feature-text {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Specs Box */
.specs-box {
    background: var(--gray-light);
    padding: 25px;
    border-radius: var(--radius-md);
}

.specs-box h4 {
    margin-bottom: 15px;
    color: var(--dark);
}

.specs-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* =========================================
   4. Advantages Section
   ========================================= */
.advantage-section {
    margin-bottom: 80px;
}

.section-header-left {
    text-align: left;
    margin-bottom: 40px;
}

.section-header-left h2 {
    margin-bottom: 10px;
	text-align: center;
}

.Add{
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin: 20px auto 60px auto;
	width: 35%;
}
.Add a{
	    background: var(--primary);
	    color: white;
	    border-radius: 12px;
		flex: 1;
		display: block;
		padding: 15px 0;
		text-align: center;
}
.flex{
	display: flex;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-medium);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card-img-box {
    position: relative;
    overflow: hidden;
}

.card-img-box img {
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-features {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.feature-tag {
    font-size: 0.8rem;
    color: var(--primary);
    background: rgba(15, 81, 50, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--gray-medium);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.card-footer:hover {
    gap: 10px;
}
.advantage-card h3{
	align-self: center;
	margin-left: 15px;
}
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.adv-card-content{
	margin-top: 15px;
}
.advantage-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-medium);
   
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.adv-card-icon {
    width: 60px;
    height: 60px;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.adv-card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.adv-card-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* =========================================
   5. Floor Plans
   ========================================= */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.plan-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.plan-img {
    width: 100%;
    object-fit: cover;
}

.plan-info {
    padding: 20px;
}

.plan-info h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.plan-meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    align-items: center;
    flex-wrap: wrap;
}

.plan-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* =========================================
   6. Interior Gallery
   ========================================= */
.interior-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.interior-item {
    text-align: center;
}

.interior-img {
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.interior-item p {
    font-size: 0.9rem;
    color: var(--text-main);
}

/* =========================================
   7. Specs Table
   ========================================= */
.specs-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.specs-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.specs-table thead {
    background: var(--primary);
    color: white;
}

.specs-table th {
    padding: 15px;
    text-align: left;
    font-size: 0.95rem;
}

.specs-table td {
    padding: 15px;
    color: var(--text-main);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-medium);
}

.specs-table tbody tr:nth-child(even) {
    background: var(--gray-light);
}

.specs-table tbody tr:last-child td {
    border-bottom: none;
}

/* =========================================
   8. Related Products
   ========================================= */
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-medium);
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.related-img-box {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.related-img-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.related-body {
    padding: 15px;
}

.related-title {
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--dark);
}

.related-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-features {
    font-size: 0.75rem;
    color: var(--primary);
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.related-features span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.related-features svg {
    width: 15px;
    height: 15px;
}

.related-link {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.related-link:hover {
    text-decoration: underline;
}

/* =========================================
   9. Global Reach Section
   ========================================= */


.content-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.global-reach-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.global-reach-section .section-description {
    font-size: 1.125rem;
    color: #e5e7eb;
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--primary);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 81, 50, 0.3);
}

/* =========================================
   Responsive - Tablet (max-width: 1024px)
   ========================================= */
@media (max-width: 1024px) {
    .detail-banner { height: 220px; }
    .banner-content h1 { font-size: 1.75rem; }

    .hero-section { grid-template-columns: 1fr; gap: 30px; }
    .product-info h2 { font-size: 1.8rem; }

    .advantage-grid { grid-template-columns: repeat(2, 1fr); }
    .plan-grid { grid-template-columns: repeat(2, 1fr); }
    .interior-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }

    .global-reach-section .section-title { font-size: 2rem; }
    .global-reach-section .section-description { font-size: 1rem; }
}

/* =========================================
   Responsive - Mobile (max-width: 768px)
   ========================================= */
@media (max-width: 768px) {
    .detail-banner { height: 200px; }
    .banner-content h1 { font-size: 1.5rem; }
    .breadcrumbs { font-size: 0.8rem; }
.product-grid {
    grid-template-columns: repeat(2, 1fr);
}
    .detail-container { padding-top: 40px; }
    .advantage-section { margin-bottom: 60px; }

    .hero-section { gap: 20px; margin-bottom: 60px; }
    .product-info h2 { font-size: 1.5rem; }
    .info-desc { font-size: 0.9rem; margin-bottom: 20px; }
    .info-features { gap: 16px; margin-bottom: 30px; }
    .info-feature-item { min-width: 70px; }
    .feature-icon-circle svg { width: 26px; height: 26px; }
    .feature-text { font-size: 0.8rem; }
    .specs-list { grid-template-columns: 1fr; }

    .advantage-grid { grid-template-columns: 1fr; gap: 20px; }
    .advantage-card { padding: 20px; }

    .plan-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .plan-info { padding: 15px; }
    .plan-info h4 { font-size: 1rem; }
    .plan-meta { font-size: 0.85rem; gap: 15px; }

    .interior-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }

    .specs-table th,
    .specs-table td { padding: 10px 12px; font-size: 0.85rem; }
    .specs-table { min-width: 500px; }

    .related-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }

    .global-reach-section {  margin-top: 0; }
    .global-reach-section .section-title { font-size: 1.75rem; }
    .cta-button { padding: 12px 30px; }
}

/* =========================================
   Responsive - Small Mobile (max-width: 480px)
   ========================================= */
@media (max-width: 480px) {
    .detail-banner { height: 180px; }
    .banner-content h1 { font-size: 1.3rem; }

    .detail-container { padding-top: 30px;  }
    .advantage-section { margin-bottom: 40px; }
.product-grid {
    grid-template-columns: 1fr;
}.Add {
    width: 100%;
}
    body {
        padding-bottom: 0;
    }
	.gallery-thumbs {
	    gap: 10px;
	}
    .hero-section { margin-bottom: 0px; }
    .product-info h2 { font-size: 1.3rem; }
    .info-desc { font-size: 0.85rem; }
    .specs-box { padding: 15px; }
    .gallery-thumb { min-width: 70px; height: 55px; }

    .advantage-card { padding: 15px; gap: 12px; }
    .adv-card-icon { width: 48px; height: 48px; border-radius: 8px; }
    .adv-card-icon svg { width: 22px; height: 22px; }
    .adv-card-content h3 { font-size: 1.05rem; }

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

    .interior-grid { gap: 10px; }
    .interior-img { margin-bottom: 6px; }
    .interior-item p { font-size: 0.85rem; }

    .specs-table { min-width: 400px; }
    .specs-table th,
    .specs-table td { padding: 8px 10px; font-size: 0.8rem; }

    .related-grid { gap: 10px; }
    .related-body { padding: 10px; }
    .related-title { font-size: 0.9rem; }
    .related-desc { font-size: 0.8rem; }
    .related-link { font-size: 0.75rem; }

    .global-reach-section .section-title { font-size: 1.5rem; }
    .global-reach-section .section-description { font-size: 0.9rem; }
    .cta-button { padding: 10px 24px; font-size: 0.9rem; }
}