/* Product Container Fix - Ensures all content stays within boundaries */

/* Product Info Container */
.product-info {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Product Description */
.product-description {
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    hyphens: auto;
}

/* Product Main Container */
.product-main {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.product-main * {
    box-sizing: border-box;
}

/* Product Cards - Grid Layouts */
.pharma-products-grid .product-card-new,
.cosmetics-products-grid .product-card-new,
.automobile-products-grid .product-card-new {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.pharma-products-grid .product-card-content,
.cosmetics-products-grid .product-card-content,
.automobile-products-grid .product-card-content {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.pharma-products-grid .product-card-content h3,
.cosmetics-products-grid .product-card-content h3,
.automobile-products-grid .product-card-content h3 {
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: hidden;
    hyphens: auto;
}

/* Product Title */
.product-title {
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: hidden;
}

/* Specifications Section */
.specifications,
.specs-panel {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.spec-row,
.spec-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

/* Tech Specs Section */
.tech-specs-section {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Container Padding Fix */
.container {
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .product-main {
        padding: 30px 20px;
    }
    
    .product-description {
        font-size: 15px;
        line-height: 1.6;
    }
}

@media (max-width: 768px) {
    .product-main {
        padding: 20px 15px;
    }
    
    .product-description {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .product-main {
        padding: 15px 10px;
    }
    
    .product-description {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}
